quota: Add more checking after reading from quota file
authorZhihao Cheng <chengzhihao1@huawei.com>
Fri, 23 Sep 2022 13:45:54 +0000 (21:45 +0800)
committerJan Kara <jack@suse.cz>
Thu, 29 Sep 2022 13:37:30 +0000 (15:37 +0200)
commit191249f708897fc34c78f4494f7156896aaaeca9
tree5d10066f0b4a10b4a50c9718f8a3c04decef22fe
parent3fc61e0e96a3261aacfd3150fb3a9228f7ce5dd6
quota: Add more checking after reading from quota file

It would be better to do more sanity checking (eg. dqdh_entries,
block no.) for the content read from quota file, which can prevent
corrupting the quota file.

Link: https://lore.kernel.org/r/20220923134555.2623931-4-chengzhihao1@huawei.com
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/quota/quota_tree.c