]> 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)
commit8c85db1d00b7a69627610fcf92c9e5d64893c962
tree147620e9e40875a3eed164c97a01d46b8ec21965
parentaf6698a91491046ce8332007030441712c8ac0eb
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