list_add corruption. next->prev should be prev (ffffe8ffffc31ed0), but was ffff88803433a000. (next=ffff88801f919400). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:31! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5108 Comm: syz.0.0 Not tainted 6.12.0-rc2-syzkaller-00205-g1d227fcc7222 #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 af 23 00 07 90 0f 0b 48 c7 c7 80 fc 60 8c e8 a0 23 00 07 90 0f 0b 48 c7 c7 e0 fc 60 8c 4c 89 e6 4c 89 f1 e8 8b 23 00 07 90 <0f> 0b 48 c7 c7 60 fd 60 8c 4c 89 f6 4c 89 e1 e8 76 23 00 07 90 0f RSP: 0018:ffffc90002eedf88 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff88801f919408 RCX: 2c3d3265ad050a00 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000 RBP: ffffe8ffffc31ed0 R08: ffffffff8174afec R09: 1ffff920005ddb8c R10: dffffc0000000000 R11: fffff520005ddb8d R12: ffffe8ffffc31ed0 R13: dffffc0000000000 R14: ffff88801f919400 R15: ffff88800e560000 FS: 00007f77cf9896c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000100000000 CR3: 000000000e52e000 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 faultin_page mm/gup.c:1187 [inline] __get_user_pages+0x1b16/0x48d0 mm/gup.c:1485 __get_user_pages_locked mm/gup.c:1751 [inline] get_dump_page+0x155/0x2f0 mm/gup.c:2269 dump_user_range+0x14c/0x950 fs/coredump.c:943 elf_core_dump+0x3e85/0x4770 fs/binfmt_elf.c:2121 do_coredump+0x2162/0x2ec0 fs/coredump.c:758 get_signal+0x13fc/0x1740 kernel/signal.c:2902 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] irqentry_exit_to_user_mode+0x79/0x280 kernel/entry/common.c:231 exc_page_fault+0x590/0x8c0 arch/x86/mm/fault.c:1542 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x5b8e Code: Unable to access opcode bytes at 0x5b64. RSP: 002b:0000000020000608 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f77ced36058 RCX: 00007f77ceb7dff9 RDX: 0000000000000000 RSI: 0000000020000600 RDI: 0000000002108000 RBP: 00007f77cebf0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000380 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f77ced36058 R15: 00007fff69721ae8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_add_valid_or_report+0xd6/0xf0 lib/list_debug.c:29 Code: e8 af 23 00 07 90 0f 0b 48 c7 c7 80 fc 60 8c e8 a0 23 00 07 90 0f 0b 48 c7 c7 e0 fc 60 8c 4c 89 e6 4c 89 f1 e8 8b 23 00 07 90 <0f> 0b 48 c7 c7 60 fd 60 8c 4c 89 f6 4c 89 e1 e8 76 23 00 07 90 0f RSP: 0018:ffffc90002eedf88 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff88801f919408 RCX: 2c3d3265ad050a00 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000 RBP: ffffe8ffffc31ed0 R08: ffffffff8174afec R09: 1ffff920005ddb8c R10: dffffc0000000000 R11: fffff520005ddb8d R12: ffffe8ffffc31ed0 R13: dffffc0000000000 R14: ffff88801f919400 R15: ffff88800e560000 FS: 00007f77cf9896c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000005b64 CR3: 000000000e52e000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400