]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: inode recovery does not validate the recovered inode
authorDave Chinner <dchinner@redhat.com>
Thu, 15 Feb 2024 08:27:54 +0000 (09:27 +0100)
committerCarlos Maiolino <cem@kernel.org>
Thu, 15 Feb 2024 11:56:43 +0000 (12:56 +0100)
commit53d96fc6b19415dfe1dedcf95099b3333ae4fe92
tree0001ba20e2411e57d824cd2062772f91ef22499b
parent8fdde9dd48edc32a2f5e5a061a12e8dad54c3c7e
xfs: inode recovery does not validate the recovered inode

Source kernel commit: 038ca189c0d2c1570b4d922f25b524007c85cf94

Discovered when trying to track down a weird recovery corruption
issue that wasn't detected at recovery time.

The specific corruption was a zero extent count field when big
extent counts are in use, and it turns out the dinode verifier
doesn't detect that specific corruption case, either. So fix it too.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_inode_buf.c