]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 4 Jan 2021 15:33:09 +0000 (16:33 +0100)
commit4d5a07ea64c32e314b9767807be17ca3d7068875
treeb86d978407f76b34c4cabd43c2a18a52b624915a
parentd98756f66557bd9630e6c54dc4e3217a7ee27f22
quota: Sanity-check quota file headers on load

BugLink: https://bugs.launchpad.net/bugs/1910109
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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/quota/quota_v2.c