list_add corruption. next is NULL. ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:27! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 109 Comm: jfsCommit Not tainted 6.5.0-next-20230829-syzkaller-13297-gae782d4e2bf5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:__list_add_valid_or_report+0x91/0x100 lib/list_debug.c:27 Code: 39 dd 74 4d 48 83 c4 08 b8 01 00 00 00 5b 5d c3 48 c7 c7 e0 28 e9 8a e8 ad 6c 3f fd 0f 0b 48 c7 c7 80 29 e9 8a e8 9f 6c 3f fd <0f> 0b 48 89 d9 48 c7 c7 e0 29 e9 8a e8 8e 6c 3f fd 0f 0b 48 89 f1 RSP: 0018:ffffc90002cdfbf8 EFLAGS: 00010086 RAX: 0000000000000022 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff816b8ad2 RDI: 0000000000000005 RBP: ffffc90002631110 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000001 R11: 0000000000000001 R12: 0000000000000000 R13: ffffc90002631120 R14: ffff88801a2a69c0 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555704a938 CR3: 000000007500d000 CR4: 00000000003506f0 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+0x95f/0xf00 fs/jfs/jfs_imap.c:2822 txUpdateMap+0x9f8/0xd10 fs/jfs/jfs_txnmgr.c:2356 txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline] jfs_lazycommit+0x5dc/0xb20 fs/jfs/jfs_txnmgr.c:2732 kthread+0x33a/0x430 kernel/kthread.c:388 ret_from_fork+0x45/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+0x91/0x100 lib/list_debug.c:27 Code: 39 dd 74 4d 48 83 c4 08 b8 01 00 00 00 5b 5d c3 48 c7 c7 e0 28 e9 8a e8 ad 6c 3f fd 0f 0b 48 c7 c7 80 29 e9 8a e8 9f 6c 3f fd <0f> 0b 48 89 d9 48 c7 c7 e0 29 e9 8a e8 8e 6c 3f fd 0f 0b 48 89 f1 RSP: 0018:ffffc90002cdfbf8 EFLAGS: 00010086 RAX: 0000000000000022 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff816b8ad2 RDI: 0000000000000005 RBP: ffffc90002631110 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000001 R11: 0000000000000001 R12: 0000000000000000 R13: ffffc90002631120 R14: ffff88801a2a69c0 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555704a938 CR3: 000000007500d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400