syzbot


BUG: corrupted list in add_to_unbuddied

Status: upstream: reported syz repro on 2024/09/08 22:22
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+30eac43568e2b3d65728@syzkaller.appspotmail.com
First crash: 63d, last: 1d12h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] BUG: corrupted list in add_to_unbuddied 4 (6) 2024/10/18 07:56

Sample crash report:
list_add corruption. next->prev should be prev (ffffe8ffffc31ed0), but was ffff88803a6e7000. (next=ffff88801fbef400).
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:31!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 30 Comm: kworker/u4:2 Not tainted 6.12.0-rc4-syzkaller-00261-g850925a8133c #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 9f 66 00 07 90 0f 0b 48 c7 c7 c0 04 61 8c e8 90 66 00 07 90 0f 0b 48 c7 c7 20 05 61 8c 4c 89 e6 4c 89 f1 e8 7b 66 00 07 90 <0f> 0b 48 c7 c7 a0 05 61 8c 4c 89 f6 4c 89 e1 e8 66 66 00 07 90 0f
RSP: 0000:ffffc9000050fad0 EFLAGS: 00010246
RAX: 0000000000000075 RBX: ffff88801fbef408 RCX: 0023d31b53ac3b00
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
RBP: ffffe8ffffc31ed0 R08: ffffffff8174b16c R09: 1ffff920000a1ef4
R10: dffffc0000000000 R11: fffff520000a1ef5 R12: ffffe8ffffc31ed0
R13: dffffc0000000000 R14: ffff88801fbef400 R15: ffff888041930000
FS:  0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0068cf000 CR3: 0000000042fa8000 CR4: 0000000000352ef0
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+0x2e4/0x4d0 mm/z3fold.c:550
 do_compact_page+0x924/0xc50 mm/z3fold.c:772
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310
 worker_thread+0x870/0xd30 kernel/workqueue.c:3391
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/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+0xd6/0xf0 lib/list_debug.c:29
Code: e8 9f 66 00 07 90 0f 0b 48 c7 c7 c0 04 61 8c e8 90 66 00 07 90 0f 0b 48 c7 c7 20 05 61 8c 4c 89 e6 4c 89 f1 e8 7b 66 00 07 90 <0f> 0b 48 c7 c7 a0 05 61 8c 4c 89 f6 4c 89 e1 e8 66 66 00 07 90 0f
RSP: 0000:ffffc9000050fad0 EFLAGS: 00010246
RAX: 0000000000000075 RBX: ffff88801fbef408 RCX: 0023d31b53ac3b00
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
RBP: ffffe8ffffc31ed0 R08: ffffffff8174b16c R09: 1ffff920000a1ef4
R10: dffffc0000000000 R11: fffff520000a1ef5 R12: ffffe8ffffc31ed0
R13: dffffc0000000000 R14: ffff88801fbef400 R15: ffff888041930000
FS:  0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0068cf000 CR3: 0000000042fa8000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/26 17:07 upstream 850925a8133c 65e8686b .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/10/15 14:52 upstream eca631b8fe80 b01b6661 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/11/03 23:08 upstream a33ab3f94f51 f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce BUG: corrupted list in add_to_unbuddied
2024/10/17 01:12 upstream c964ced77262 666f77ed .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/10/13 07:37 upstream 7234e2ea0edd 084d8178 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/10/11 06:56 upstream 1d227fcc7222 cd942402 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/10/04 21:52 upstream 0c559323bbaa d7906eff .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/10/04 13:11 upstream 3840cbe24cf0 d7906eff .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/10/04 03:59 upstream 3840cbe24cf0 d7906eff .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/10/03 21:42 upstream 7ec462100ef9 d7906eff .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/30 22:11 upstream 9852d85ec9d4 179f4029 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/30 22:06 upstream 9852d85ec9d4 179f4029 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/30 19:53 upstream 9852d85ec9d4 179f4029 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/30 17:12 upstream 9852d85ec9d4 179f4029 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/30 16:52 upstream 9852d85ec9d4 179f4029 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/30 15:46 upstream 9852d85ec9d4 179f4029 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/30 15:16 upstream 9852d85ec9d4 179f4029 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/30 15:13 upstream 9852d85ec9d4 179f4029 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/30 14:45 upstream 9852d85ec9d4 179f4029 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/30 13:58 upstream 9852d85ec9d4 179f4029 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/29 13:46 upstream 3efc57369a0c ba29ff75 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/23 17:37 upstream de5cb0dcb74c 49f9c2d2 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/15 19:42 upstream d42f7708e27c 08d8a733 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/08 22:21 upstream 89f5e14d05b4 9750182a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/06 06:25 upstream ad618736883b 464ac2ed .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/04 19:43 upstream c7fb1692dc01 dfbe2ed4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/03 11:22 upstream 67784a74e258 8045124c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
2024/09/02 20:55 upstream 67784a74e258 0dd55198 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: corrupted list in add_to_unbuddied
* Struck through repros no longer work on HEAD.