diff options
author | Darrick J. Wong <[email protected]> | 2023-04-11 19:00:18 -0700 |
---|---|---|
committer | Darrick J. Wong <[email protected]> | 2023-04-11 19:00:18 -0700 |
commit | 6bb9209ceebb07fd07cec25af04eed1809c654de (patch) | |
tree | ba404918e618d7c3ffecee6b808bcb6a6eea20b3 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | d9a94480f978d5fbf1235a12a476f9f39a029ea5 (diff) |
xfs: always check the existence of a dirent's child inode
When we're scrubbing directory entries, we always need to iget the child
inode to make sure that the inode pointer points to a valid inode. The
original directory scrub code (commit a5c4) only set us up to do this
for ftype=1 filesystems, which is not sufficient; and then commit 4b80
made it worse by exempting the dot and dotdot entries.
Sorta-fixes: a5c46e5e8912 ("xfs: scrub directory metadata")
Sorta-fixes: 4b80ac64450f ("xfs: scrub should mark a directory corrupt if any entries cannot be iget'd")
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions