list_add corruption. next is NULL. ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:28! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 110 Comm: jfsCommit Not tainted 6.6.0-rc3-syzkaller-00146-g9f3ebbef746f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 RIP: 0010:__list_add_valid_or_report+0xba/0xf0 lib/list_debug.c:27 Code: 4c 89 fe 4c 89 e2 4c 89 f1 e8 52 13 85 06 0f 0b 48 c7 c7 60 9b 59 8b e8 44 13 85 06 0f 0b 48 c7 c7 00 9c 59 8b e8 36 13 85 06 <0f> 0b 48 c7 c7 60 9c 59 8b 4c 89 e6 4c 89 f1 e8 22 13 85 06 0f 0b RSP: 0018:ffffc90002cefbf0 EFLAGS: 00010046 RAX: 0000000000000022 RBX: 1ffff920004c8224 RCX: 19ee8c2329eebd00 RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000 RBP: ffffc90002641120 R08: ffffffff8171098c R09: 1ffff9200059df1c R10: dffffc0000000000 R11: fffff5200059df1d R12: dffffc0000000000 R13: ffff8880193939b8 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f05df0ff5e8 CR3: 000000001fbf8000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_add_valid include/linux/list.h:88 [inline] __list_add include/linux/list.h:150 [inline] list_add include/linux/list.h:169 [inline] diUpdatePMap+0x5d4/0xd90 fs/jfs/jfs_imap.c:2822 txUpdateMap+0x714/0x9e0 fs/jfs/jfs_txnmgr.c:2356 txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline] jfs_lazycommit+0x47a/0xb70 fs/jfs/jfs_txnmgr.c:2732 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_add_valid_or_report+0xba/0xf0 lib/list_debug.c:27 Code: 4c 89 fe 4c 89 e2 4c 89 f1 e8 52 13 85 06 0f 0b 48 c7 c7 60 9b 59 8b e8 44 13 85 06 0f 0b 48 c7 c7 00 9c 59 8b e8 36 13 85 06 <0f> 0b 48 c7 c7 60 9c 59 8b 4c 89 e6 4c 89 f1 e8 22 13 85 06 0f 0b RSP: 0018:ffffc90002cefbf0 EFLAGS: 00010046 RAX: 0000000000000022 RBX: 1ffff920004c8224 RCX: 19ee8c2329eebd00 RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000 RBP: ffffc90002641120 R08: ffffffff8171098c R09: 1ffff9200059df1c R10: dffffc0000000000 R11: fffff5200059df1d R12: dffffc0000000000 R13: ffff8880193939b8 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f05df0ff5e8 CR3: 000000001fbf8000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400