]> git.baikalelectronics.ru Git - kernel.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>
Tue, 31 Aug 2021 03:36:50 +0000 (23:36 -0400)
commitabae80e817789c288e7bcb289909ff61836a1a2b
tree147620e9e40875a3eed164c97a01d46b8ec21965
parent1207995027b34128a1c3643ad40ff264ebabb298
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