]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
jfs: truncate good inode pages when hard link is 0
authorLizhi Xu <lizhi.xu@windriver.com>
Fri, 13 Jun 2025 03:05:34 +0000 (11:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:25:59 +0000 (16:25 +0200)
commitb5b471820c33365a8ccd2d463578bf4e47056c2c
treef2462571be113cad0f8ac44345b6052e817ad9a2
parent8e03dd9fadf76db5b9799583074a1a2a54f787f1
jfs: truncate good inode pages when hard link is 0

[ Upstream commit 2d91b3765cd05016335cd5df5e5c6a29708ec058 ]

The fileset value of the inode copy from the disk by the reproducer is
AGGR_RESERVED_I. When executing evict, its hard link number is 0, so its
inode pages are not truncated. This causes the bugon to be triggered when
executing clear_inode() because nrpages is greater than 0.

Reported-by: syzbot+6e516bb515d93230bc7b@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=6e516bb515d93230bc7b
Signed-off-by: Lizhi Xu <lizhi.xu@windriver.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/jfs/inode.c