]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: wipe ext4_dir_entry2 upon file deletion
authorLeah Rumancik <leah.rumancik@gmail.com>
Thu, 22 Apr 2021 18:08:34 +0000 (18:08 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 22 Apr 2021 20:51:23 +0000 (16:51 -0400)
commitb5d95d79296e21d0a9dfe638485990f83c952e23
tree3c418e18dc009422a2c63e4b244da2afdd58f36a
parentfc0f89aee8d9e3cecd363843035a23fdc19036b9
ext4: wipe ext4_dir_entry2 upon file deletion

Upon file deletion, zero out all fields in ext4_dir_entry2 besides rec_len.
In case sensitive data is stored in filenames, this ensures no potentially
sensitive data is left in the directory entry upon deletion. Also, wipe
these fields upon moving a directory entry during the conversion to an
htree and when splitting htree nodes.

The data wiped may still exist in the journal, but there are future
commits planned to address this.

Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
Link: https://lore.kernel.org/r/20210422180834.2242353-1-leah.rumancik@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/namei.c