]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: Make sure quota files are not grabbed accidentally
authorJan Kara <jack@suse.cz>
Thu, 12 Aug 2021 13:31:22 +0000 (15:31 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 14 Aug 2021 14:28:11 +0000 (10:28 -0400)
commitd7d6785de00f5b576c8b370331e2ca18259d3797
treef2bdacc09f9b18fb6b85f744b30616bda4fbea74
parente905fbe3fd0fdb90052f6efdf88f50a78833cfe7
ext4: Make sure quota files are not grabbed accidentally

If ext4 filesystem is corrupted so that quota files are linked from
directory hirerarchy, bad things can happen. E.g. quota files can get
corrupted or deleted. Make sure we are not grabbing quota file inodes
when we expect normal inodes.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Link: https://lore.kernel.org/r/20210812133122.26360-1-jack@suse.cz
fs/ext4/inode.c