diff options
author | Jan Kara <jack@suse.cz> | 2020-07-31 19:21:35 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-08-07 23:04:27 +0300 |
commit | 7303cb5bfe845f7d43cd9b2dbd37dbb266efda9b (patch) | |
tree | 8b54df9eeccd55137323f950ca9bcbd681d4876a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 377254b2cd2252c7c3151b113cbdf93a7736c2e9 (diff) | |
download | linux-7303cb5bfe845f7d43cd9b2dbd37dbb266efda9b.tar.xz |
ext4: fix checking of directory entry validity for inline directories
ext4_search_dir() and ext4_generic_delete_entry() can be called both for
standard director blocks and for inline directories stored inside inode
or inline xattr space. For the second case we didn't call
ext4_check_dir_entry() with proper constraints that could result in
accepting corrupted directory entry as well as false positive filesystem
errors like:
EXT4-fs error (device dm-0): ext4_search_dir:1395: inode #28320400:
block 113246792: comm dockerd: bad entry in directory: directory entry too
close to block end - offset=0, inode=28320403, rec_len=32, name_len=8,
size=4096
Fix the arguments passed to ext4_check_dir_entry().
Fixes: 109ba779d6cc ("ext4: check for directory entries too close to block end")
CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20200731162135.8080-1-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions