list_add corruption. next->prev should be prev (ffffe8ffffc37e50), but was ffffffff848c49f0. (next=ffff88801e2fb180). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:31! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 1093 Comm: kworker/u4:10 Not tainted 6.13.0-syzkaller-04858-g21266b8df522 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: zswap1 compact_page_work RIP: 0010:__list_add_valid_or_report+0xd6/0xf0 lib/list_debug.c:29 Code: e8 7f 09 3a fc 90 0f 0b 48 c7 c7 20 0d 60 8c e8 70 09 3a fc 90 0f 0b 48 c7 c7 80 0d 60 8c 4c 89 e6 4c 89 f1 e8 5b 09 3a fc 90 <0f> 0b 48 c7 c7 00 0e 60 8c 4c 89 f6 4c 89 e1 e8 46 09 3a fc 90 0f RSP: 0018:ffffc9000279fa30 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff88801e2fb188 RCX: b4656eb88377a100 RDX: 0000000000000000 RSI: 0000000080000002 RDI: 0000000000000000 RBP: ffffe8ffffc37e50 R08: ffffffff817f2aec R09: fffffbfff1cfa5c4 R10: dffffc0000000000 R11: fffffbfff1cfa5c4 R12: ffffe8ffffc37e50 R13: dffffc0000000000 R14: ffff88801e2fb180 R15: ffff888011e9c000 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020926000 CR3: 0000000041e6e000 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 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3317 worker_thread+0x870/0xd30 kernel/workqueue.c:3398 kthread+0x7a9/0x920 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_add_valid_or_report+0xd6/0xf0 lib/list_debug.c:29 Code: e8 7f 09 3a fc 90 0f 0b 48 c7 c7 20 0d 60 8c e8 70 09 3a fc 90 0f 0b 48 c7 c7 80 0d 60 8c 4c 89 e6 4c 89 f1 e8 5b 09 3a fc 90 <0f> 0b 48 c7 c7 00 0e 60 8c 4c 89 f6 4c 89 e1 e8 46 09 3a fc 90 0f RSP: 0018:ffffc9000279fa30 EFLAGS: 00010246 RAX: 0000000000000075 RBX: ffff88801e2fb188 RCX: b4656eb88377a100 RDX: 0000000000000000 RSI: 0000000080000002 RDI: 0000000000000000 RBP: ffffe8ffffc37e50 R08: ffffffff817f2aec R09: fffffbfff1cfa5c4 R10: dffffc0000000000 R11: fffffbfff1cfa5c4 R12: ffffe8ffffc37e50 R13: dffffc0000000000 R14: ffff88801e2fb180 R15: ffff888011e9c000 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020926000 CR3: 0000000041e6e000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400