]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
quota: Sanity-check quota file headers on load
authorJan Kara <jack@suse.cz>
Mon, 2 Nov 2020 15:16:29 +0000 (16:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Dec 2020 12:46:49 +0000 (13:46 +0100)
commita9c625fcddc078624e1e7a673443b29c71be3431
tree3849972a74d8ca5a4b91cb64e6348a931de410cd
parentcf394db8b470c41589a7e8a2da0192b7a49c9cac
quota: Sanity-check quota file headers on load

commit 11c514a99bb960941535134f0587102855e8ddee upstream.

Perform basic sanity checks of quota headers to avoid kernel crashes on
corrupted quota files.

CC: stable@vger.kernel.org
Reported-by: syzbot+f816042a7ae2225f25ba@syzkaller.appspotmail.com
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/quota/quota_v2.c