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] SMP Modules linked in: CPU: 0 UID: 0 PID: 6635 Comm: syz-executor Not tainted 6.16.0-rc5-syzkaller-gec4801305969 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : jfs_unlink+0x8cc/0x93c fs/jfs/namei.c:513 lr : jfs_unlink+0x8cc/0x93c fs/jfs/namei.c:513 sp : ffff8000a4217a80 x29: ffff8000a4217b70 x28: dfff800000000000 x27: ffff8000a4217ac0 x26: 0000000000000007 x25: ffff700014842f58 x24: 0000000000000000 x23: 1ffff00011f8fc4c x22: ffff0000e432e6c8 x21: ffff0000e432e998 x20: dfff800000000000 x19: ffff0000e432b248 x18: 0000000000000000 x17: ffff800093364000 x16: ffff80008aefc458 x15: 0000000000000001 x14: 1ffff00014842ec8 x13: 0000000000000000 x12: 0000000000000000 x11: ffff700014842ec9 x10: 0000000000ff0100 x9 : 7dd91ac53c7a2d00 x8 : 7dd91ac53c7a2d00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a4217418 x4 : ffff80008f766be0 x3 : ffff8000807bd1d8 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 000000000000002d Call trace: jfs_unlink+0x8cc/0x93c fs/jfs/namei.c:513 (P) vfs_unlink+0x2e0/0x520 fs/namei.c:4595 do_unlinkat+0x2f0/0x4dc fs/namei.c:4659 __do_sys_unlinkat fs/namei.c:4700 [inline] __se_sys_unlinkat fs/namei.c:4693 [inline] __arm64_sys_unlinkat+0xdc/0xf8 fs/namei.c:4693 __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+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Code: 9004bea3 91248063 52804022 97963fbe (d4210000) ---[ end trace 0000000000000000 ]---