syzbot


BUG: corrupted list in add_to_unbuddied

Status: upstream: reported on 2024/09/08 22:22
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+30eac43568e2b3d65728@syzkaller.appspotmail.com
First crash: 42d, last: 2d05h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] BUG: corrupted list in add_to_unbuddied 0 (1) 2024/09/08 22:22

Sample crash report:
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:
 <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
 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
 </TASK>
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

Crashes (24):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.