Re: [syzbot] [exfat?] [ocfs2?] kernel BUG in link_path_walk

Al Viro
2025-12-10T21:47:06Z

#syz test

commit 9c7d3d572d0a67484e9cbe178184cfd9a89aa430
Author: Al Viro <viro@zeniv.linux.org.uk>
Date: Wed Dec 10 16:44:53 2025 -0500

Revert "ocfs2: mark inode bad upon validation failure during read"

This reverts commit 58b6fcd2ab34399258dc509f701d0986a8e0bcaa.

You can't use make_bad_inode() on live inodes.

diff --git a/fs/ocfs2/inode.c b/fs/ocfs2/inode.c
index 8340525e5589..53d649436017 100644
--- a/fs/ocfs2/inode.c
+++ b/fs/ocfs2/inode.c
@@ -1708,8 +1708,6 @@ int ocfs2_read_inode_block_full(struct inode *inode, struct buffer_head **bh,
rc = ocfs2_read_blocks(INODE_CACHE(inode), OCFS2_I(inode)->ip_blkno,
1, &tmp, flags, ocfs2_validate_inode_block);

- if (rc < 0)
- make_bad_inode(inode);
/* If ocfs2_read_blocks() got us a new bh, pass it up. */
if (!rc && !*bh)
*bh = tmp;