list_add corruption. next->prev should be prev (ffffe8ffffc31ed0), but was ffff88803db23800. (next=ffff88801eb57400). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:31! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5097 Comm: udevd Not tainted 6.12.0-rc2-syzkaller-00305-g7234e2ea0edd #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__list_add_valid_or_report+0xd6/0xf0 lib/list_debug.c:29 Code: e8 1f 29 00 07 90 0f 0b 48 c7 c7 80 fc 60 8c e8 10 29 00 07 90 0f 0b 48 c7 c7 e0 fc 60 8c 4c 89 e6 4c 89 f1 e8 fb 28 00 07 90 <0f> 0b 48 c7 c7 60 fd 60 8c 4c 89 f6 4c 89 e1 e8 e6 28 00 07 90 0f RSP: 0018:ffffc9000302efe8 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff88801eb57408 RCX: 1bc126187b53e500 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000 RBP: ffffe8ffffc31ed0 R08: ffffffff8174afec R09: fffffbfff1cf9fd8 R10: dffffc0000000000 R11: fffffbfff1cf9fd8 R12: ffffe8ffffc31ed0 R13: dffffc0000000000 R14: ffff88801eb57400 R15: ffff88800e5ba000 FS: 00007f38b4f21280(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcfea10d0d8 CR3: 000000003c11e000 CR4: 0000000000352ef0 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] add_to_unbuddied+0x2e4/0x4d0 mm/z3fold.c:550 do_compact_page+0x924/0xc50 mm/z3fold.c:772 zswap_entry_free+0x2f6/0x440 mm/zswap.c:798 zswap_load+0x386/0x8f0 mm/zswap.c:1583 swap_read_folio+0x8c0/0x20b0 mm/page_io.c:618 swap_cluster_readahead+0x707/0x7f0 mm/swap_state.c:706 swapin_readahead+0x1bb/0xdf0 mm/swap_state.c:882 do_swap_page+0x584/0x7b30 mm/memory.c:4324 handle_pte_fault+0x61d/0x6800 mm/memory.c:5754 __handle_mm_fault mm/memory.c:5894 [inline] handle_mm_fault+0x1106/0x1bb0 mm/memory.c:6062 do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x459/0x8c0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x56080549b9a8 Code: 05 e8 2c 10 fe ff 48 81 c4 28 08 00 00 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 89 f8 48 85 ff 74 03 ff 47 08 c3 48 85 ff 74 4b 55 <8b> 47 08 48 89 fd ff c8 89 47 08 85 c0 7f 37 48 8b bf a8 00 00 00 RSP: 002b:00007ffcc986a450 EFLAGS: 00010206 RAX: 000056080548876f RBX: 00005608054bb5b0 RCX: 0000000000000000 RDX: 00000005608399bd RSI: 0000000000000000 RDI: 00005608399be030 RBP: 00005608399a6910 R08: 0000000000000007 R09: 374bd6bb537f90d7 R10: 00000000ffffffff R11: 0000000000000007 R12: 00005608054bb5e8 R13: 00007ffcc986a4c8 R14: 0000000000000001 R15: 00005608399a6910 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_add_valid_or_report+0xd6/0xf0 lib/list_debug.c:29 Code: e8 1f 29 00 07 90 0f 0b 48 c7 c7 80 fc 60 8c e8 10 29 00 07 90 0f 0b 48 c7 c7 e0 fc 60 8c 4c 89 e6 4c 89 f1 e8 fb 28 00 07 90 <0f> 0b 48 c7 c7 60 fd 60 8c 4c 89 f6 4c 89 e1 e8 e6 28 00 07 90 0f RSP: 0018:ffffc9000302efe8 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff88801eb57408 RCX: 1bc126187b53e500 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000 RBP: ffffe8ffffc31ed0 R08: ffffffff8174afec R09: fffffbfff1cf9fd8 R10: dffffc0000000000 R11: fffffbfff1cf9fd8 R12: ffffe8ffffc31ed0 R13: dffffc0000000000 R14: ffff88801eb57400 R15: ffff88800e5ba000 FS: 00007f38b4f21280(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcfea10d0d8 CR3: 000000003c11e000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400