list_add corruption. next is NULL. ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:25! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 119 Comm: jfsCommit Not tainted 6.0.0-rc7-syzkaller-00081-gc3e0e1e23c70 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:__list_add_valid.cold+0x1d/0x58 lib/list_debug.c:25 Code: ff ff ff e8 58 63 05 00 e9 9e 2e b6 fa 4c 89 e1 48 c7 c7 80 06 49 8a e8 86 ee f0 ff 0f 0b 48 c7 c7 20 06 49 8a e8 78 ee f0 ff <0f> 0b 48 c7 c7 80 05 49 8a e8 6a ee f0 ff 0f 0b 48 89 f2 4c 89 e1 RSP: 0018:ffffc900029afc30 EFLAGS: 00010082 RAX: 0000000000000022 RBX: ffffc90002301220 RCX: 0000000000000000 RDX: ffff888018951d80 RSI: ffffffff8161f2a8 RDI: fffff52000535f78 RBP: ffff88807128a1f0 R08: 0000000000000022 R09: 0000000000000000 R10: 0000000080000001 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88807627a800 R14: 1ffff92000535f8f R15: ffffc90002301230 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fde90deb150 CR3: 0000000071376000 CR4: 0000000000350ee0 Call Trace: __list_add include/linux/list.h:69 [inline] list_add include/linux/list.h:88 [inline] diUpdatePMap+0x979/0xf90 fs/jfs/jfs_imap.c:2821 txUpdateMap+0xa2c/0xc50 fs/jfs/jfs_txnmgr.c:2351 txLazyCommit fs/jfs/jfs_txnmgr.c:2659 [inline] jfs_lazycommit+0x610/0xb70 fs/jfs/jfs_txnmgr.c:2727 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_add_valid.cold+0x1d/0x58 lib/list_debug.c:25 Code: ff ff ff e8 58 63 05 00 e9 9e 2e b6 fa 4c 89 e1 48 c7 c7 80 06 49 8a e8 86 ee f0 ff 0f 0b 48 c7 c7 20 06 49 8a e8 78 ee f0 ff <0f> 0b 48 c7 c7 80 05 49 8a e8 6a ee f0 ff 0f 0b 48 89 f2 4c 89 e1 RSP: 0018:ffffc900029afc30 EFLAGS: 00010082 RAX: 0000000000000022 RBX: ffffc90002301220 RCX: 0000000000000000 RDX: ffff888018951d80 RSI: ffffffff8161f2a8 RDI: fffff52000535f78 RBP: ffff88807128a1f0 R08: 0000000000000022 R09: 0000000000000000 R10: 0000000080000001 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88807627a800 R14: 1ffff92000535f8f R15: ffffc90002301230 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fde90deb150 CR3: 0000000071376000 CR4: 0000000000350ee0