Files
Linux/fs
Jan Kara 7303cb5bfe 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: 109ba779d6 ("ext4: check for directory entries too close to block end")
CC: [email protected]
Signed-off-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
2020-08-07 16:04:27 -04:00
..
2020-03-27 09:29:56 +00:00
2020-06-27 22:04:24 -07:00
…
…
2020-08-07 14:12:35 -04:00
…
…
…
2020-08-07 15:44:59 -04:00
…
…
…
…
2020-05-14 16:44:25 +02:00
…
…
2020-06-15 08:51:38 -06:00
…
…
2020-05-14 16:44:24 +02:00
…
…
…
…
2020-05-14 16:44:24 +02:00
2020-04-09 15:33:09 -04:00