BUG at fs/jfs/namei.c:513 assert(ip->i_nlink) ------------[ cut here ]------------ kernel BUG at fs/jfs/namei.c:513! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 UID: 0 PID: 6395 Comm: syz-executor Not tainted 6.11.0-rc3-syzkaller-g7c626ce4bae1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : jfs_unlink+0x9d8/0xa48 fs/jfs/namei.c:513 lr : jfs_unlink+0x9d8/0xa48 fs/jfs/namei.c:513 sp : ffff8000ab2b79e0 x29: ffff8000ab2b7ae0 x28: ffff700015656f48 x27: 0000000000000000 x26: dfff800000000000 x25: ffff0000dcfdb270 x24: ffff0000ef57af78 x23: ffff8000ab2b7aa0 x22: ffff0000ef57b248 x21: 0000000000000000 x20: ffff0000dcfdb248 x19: 1ffff00011f5ab84 x18: 0000000000000008 x17: 0000000000000000 x16: ffff800083014574 x15: 0000000000000001 x14: 1ffff00015656e90 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000001 x10: 0000000000ff0100 x9 : 1120fc0c39ff4000 x8 : 1120fc0c39ff4000 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000ab2b7158 x4 : ffff80008f5fb1a0 x3 : ffff800082f9efc4 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000002d Call trace: jfs_unlink+0x9d8/0xa48 fs/jfs/namei.c:513 vfs_unlink+0x2f0/0x534 fs/namei.c:4422 do_unlinkat+0x4d0/0x700 fs/namei.c:4486 __do_sys_unlinkat fs/namei.c:4529 [inline] __se_sys_unlinkat fs/namei.c:4522 [inline] __arm64_sys_unlinkat+0xc8/0xf8 fs/namei.c:4522 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Code: b004eb43 91008063 52804022 9592fadf (d4210000) ---[ end trace 0000000000000000 ]---