syzbot


BUG: corrupted list in do_compact_page

Status: moderation: reported on 2024/09/04 23:13
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+4588f4bce0e1f2a78dae@syzkaller.appspotmail.com
First crash: 15d, last: 8d11h

Sample crash report:
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:29!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 3 UID: 0 PID: 1106 Comm: kworker/u32:7 Not tainted 6.11.0-rc6-syzkaller-00326-gd1f2d51b711a #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+0xa9/0x100 lib/list_debug.c:29
Code: fb b0 8b e8 59 68 de fc 90 0f 0b 48 c7 c7 60 fc b0 8b e8 4a 68 de fc 90 0f 0b 48 89 d9 48 c7 c7 c0 fc b0 8b e8 38 68 de fc 90 <0f> 0b 48 89 f1 48 c7 c7 40 fd b0 8b 48 89 de e8 23 68 de fc 90 0f
RSP: 0018:ffffc90005d2fbf8 EFLAGS: 00010286
RAX: 0000000000000075 RBX: ffff88802fef5000 RCX: ffffffff816c5a79
RDX: 0000000000000000 RSI: ffffffff816ceeb6 RDI: 0000000000000005
RBP: ffff888024213000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000293 R12: ffff88802fef5000
R13: ffff8880242130b0 R14: ffffea00009084c0 R15: ffff888024213008
FS:  0000000000000000(0000) GS:ffff88806a900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c35107b CR3: 000000004352c000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __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 mm/z3fold.c:550 [inline]
 do_compact_page+0x10f2/0x27b0 mm/z3fold.c:772
 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3231
 process_scheduled_works kernel/workqueue.c:3312 [inline]
 worker_thread+0x6c8/0xed0 kernel/workqueue.c:3389
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_add_valid_or_report+0xa9/0x100 lib/list_debug.c:29
Code: fb b0 8b e8 59 68 de fc 90 0f 0b 48 c7 c7 60 fc b0 8b e8 4a 68 de fc 90 0f 0b 48 89 d9 48 c7 c7 c0 fc b0 8b e8 38 68 de fc 90 <0f> 0b 48 89 f1 48 c7 c7 40 fd b0 8b 48 89 de e8 23 68 de fc 90 0f
RSP: 0018:ffffc90005d2fbf8 EFLAGS: 00010286
RAX: 0000000000000075 RBX: ffff88802fef5000 RCX: ffffffff816c5a79
RDX: 0000000000000000 RSI: ffffffff816ceeb6 RDI: 0000000000000005
RBP: ffff888024213000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000293 R12: ffff88802fef5000
R13: ffff8880242130b0 R14: ffffea00009084c0 R15: ffff888024213008
FS:  0000000000000000(0000) GS:ffff88806a900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c35107b CR3: 000000004352c000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/08 02:46 upstream d1f2d51b711a 9750182a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: corrupted list in do_compact_page
2024/09/08 07:40 upstream d1f2d51b711a 9750182a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: corrupted list in do_compact_page
2024/09/02 18:41 upstream 67784a74e258 1eda0d14 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: corrupted list in do_compact_page
2024/08/31 23:01 upstream 1934261d8974 1eda0d14 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: corrupted list in do_compact_page
* Struck through repros no longer work on HEAD.