]> 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)
commitbd2c38cf1726ea913024393a0d11f2e2a3f4c180
tree147620e9e40875a3eed164c97a01d46b8ec21965
parentb2bbb92f7042e8075fb036bf97043339576330c3
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