Commit 2d91b376 authored by Lizhi Xu's avatar Lizhi Xu Committed by Dave Kleikamp
Browse files

jfs: truncate good inode pages when hard link is 0



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: default avatar <syzbot+6e516bb515d93230bc7b@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=6e516bb515d93230bc7b


Signed-off-by: default avatarLizhi Xu <lizhi.xu@windriver.com>
Signed-off-by: default avatarDave Kleikamp <dave.kleikamp@oracle.com>
parent 1014354c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment