BUG at fs/jfs/namei.c:513 assert(ip->i_nlink) ------------[ cut here ]------------ kernel BUG at fs/jfs/namei.c:513! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 UID: 0 PID: 5815 Comm: syz-executor Not tainted 6.11.0-syzkaller-gadfc3ded5c33-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:jfs_unlink+0xafd/0xb30 fs/jfs/namei.c:513 Code: e8 68 ea 90 08 e8 03 5b 73 fe 48 c7 c7 e0 b5 22 8c 48 c7 c6 a0 b3 22 8c ba 01 02 00 00 48 c7 c1 20 b6 22 8c e8 54 de 8d 08 90 <0f> 0b e8 dc 5a 73 fe 48 c7 c7 e0 b5 22 8c 48 c7 c6 a0 b3 22 8c ba RSP: 0018:ffffc90002f27be0 EFLAGS: 00010246 RAX: 000000000000002d RBX: 0000000000000000 RCX: 535b7edc7e1efd00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90002f27d10 R08: ffffffff81741cec R09: 1ffff920005e4f1c R10: dffffc0000000000 R11: fffff520005e4f1d R12: 0000000000000000 R13: ffffc90002f27c60 R14: 1ffff920005e4f8c R15: ffff8880789a44b8 FS: 0000555578ff4500(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f40b29ff000 CR3: 000000007bbcc000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vfs_unlink+0x365/0x650 fs/namei.c:4469 do_unlinkat+0x4ae/0x830 fs/namei.c:4533 __do_sys_unlink fs/namei.c:4581 [inline] __se_sys_unlink fs/namei.c:4579 [inline] __x64_sys_unlink+0x47/0x50 fs/namei.c:4579 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f40bad79467 Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd43157d78 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f40bad79467 RDX: 00007ffd43157da0 RSI: 00007ffd43157e30 RDI: 00007ffd43157e30 RBP: 00007ffd43157e30 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffd43158f20 R13: 00007f40bade77dc R14: 000000000001cd7e R15: 00007ffd43159fe0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:jfs_unlink+0xafd/0xb30 fs/jfs/namei.c:513 Code: e8 68 ea 90 08 e8 03 5b 73 fe 48 c7 c7 e0 b5 22 8c 48 c7 c6 a0 b3 22 8c ba 01 02 00 00 48 c7 c1 20 b6 22 8c e8 54 de 8d 08 90 <0f> 0b e8 dc 5a 73 fe 48 c7 c7 e0 b5 22 8c 48 c7 c6 a0 b3 22 8c ba RSP: 0018:ffffc90002f27be0 EFLAGS: 00010246 RAX: 000000000000002d RBX: 0000000000000000 RCX: 535b7edc7e1efd00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc90002f27d10 R08: ffffffff81741cec R09: 1ffff920005e4f1c R10: dffffc0000000000 R11: fffff520005e4f1d R12: 0000000000000000 R13: ffffc90002f27c60 R14: 1ffff920005e4f8c R15: ffff8880789a44b8 FS: 0000555578ff4500(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f40b29ff000 CR3: 000000007bbcc000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400