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: 0 UID: 0 PID: 6401 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 : ffff8000a04e79e0 x29: ffff8000a04e7ae0 x28: ffff70001409cf48 x27: 0000000000000000 x26: dfff800000000000 x25: ffff0000dcb9b270 x24: ffff0000dcb9f000 x23: ffff8000a04e7aa0 x22: ffff0000dcb9f2d0 x21: 0000000000000000 x20: ffff0000dcb9b248 x19: 1ffff00011f5ab84 x18: 1fffe00036799fe6 x17: ffff80008f50d000 x16: ffff800083014574 x15: 0000000000000001 x14: 1ffff0001409ce90 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000001 x10: 0000000000ff0100 x9 : 23233b54f9108600 x8 : 23233b54f9108600 x7 : ffff8000802b5ca8 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 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 ]---