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: 7115 Comm: syz-executor Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 63400005 (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 : ffff8000a3e47a80 x29: ffff8000a3e47b70 x28: dfff800000000000 x27: ffff8000a3e47ac0 x26: 0000000000000007 x25: ffff7000147c8f58 x24: 0000000000000000 x23: 1ffff00011fc0c2c x22: ffff0000f11e2640 x21: ffff0000f11e2910 x20: dfff800000000000 x19: ffff0000f1213248 x18: 0000000000000000 x17: 0000000000000000 x16: ffff80008b021030 x15: 0000000000000001 x14: 1ffff000147c8ec8 x13: 0000000000000000 x12: 0000000000000000 x11: ffff7000147c8ec9 x10: 0000000000ff0100 x9 : 975bbf41dacd8200 x8 : 975bbf41dacd8200 x7 : ffff800080565b6c x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000807e08b4 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:4586 do_unlinkat+0x2b8/0x488 fs/namei.c:4650 __do_sys_unlinkat fs/namei.c:4691 [inline] __se_sys_unlinkat fs/namei.c:4684 [inline] __arm64_sys_unlinkat+0xdc/0xf8 fs/namei.c:4684 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 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+0x5c/0x254 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:763 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Code: f004c5c3 91168063 52804022 97950279 (d4210000) ---[ end trace 0000000000000000 ]---