syzbot


upstream test error: WARNING in enable_work

Status: upstream: reported on 2025/01/09 20:39
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+0bef82da8b7dca7e5869@syzkaller.appspotmail.com
Fix commit: cd6313beaeae Revert "vmstat: disable vmstat_work on vmstat_cpu_down_prep()"
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu-native-arm64-kvm ci-qemu2-arm32 ci-qemu2-riscv64 ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64]
First crash: 15d, last: 14d
Duplicate bugs (2)
duplicates (2):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
bpf test error: WARNING in enable_work mm 4 9d20h 10d 0/28 closed as dup on 2025/01/11 01:12
linux-next test error: WARNING in enable_work mm 1 14d 10d 0/28 closed as dup on 2025/01/11 01:13
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] upstream test error: WARNING in enable_work 2 (3) 2025/01/11 01:08

Sample crash report:
------------[ cut here ]------------
workqueue: work disable count underflowed
WARNING: CPU: 1 PID: 22 at kernel/workqueue.c:4317 work_offqd_enable kernel/workqueue.c:4317 [inline]
WARNING: CPU: 1 PID: 22 at kernel/workqueue.c:4317 enable_work+0x2fa/0x340 kernel/workqueue.c:4488
Modules linked in:
CPU: 1 UID: 0 PID: 22 Comm: cpuhp/1 Not tainted 6.13.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:work_offqd_enable kernel/workqueue.c:4317 [inline]
RIP: 0010:enable_work+0x2fa/0x340 kernel/workqueue.c:4488
Code: 89 ee e8 b9 d5 36 00 45 84 ed 0f 85 28 fe ff ff e8 0b db 36 00 c6 05 90 c1 e4 0e 01 90 48 c7 c7 e0 d9 6b 8b e8 57 12 f7 ff 90 <0f> 0b 90 90 e9 05 fe ff ff 48 89 ef e8 e5 a5 98 00 e9 a9 fe ff ff
RSP: 0018:ffffc900001c7ca0 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff815a5139
RDX: ffff88801d69bc00 RSI: ffffffff815a5146 RDI: 0000000000000001
RBP: ffff8880b8738660 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000002 R12: 1ffff92000038f95
R13: 0000000000000000 R14: 00000000000000c4 R15: ffffffff81db2390
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000000df7e000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 vmstat_cpu_online+0x83/0xf0 mm/vmstat.c:2151
 cpuhp_invoke_callback+0x3d3/0xa10 kernel/cpu.c:194
 cpuhp_thread_fun+0x480/0x6f0 kernel/cpu.c:1102
 smpboot_thread_fn+0x664/0xa30 kernel/smpboot.c:164
 kthread+0x2c4/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (20):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/06 04:49 upstream 9d89551994a4 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream test error: WARNING in enable_work
2025/01/06 04:07 upstream 9d89551994a4 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream test error: WARNING in enable_work
2025/01/06 03:25 upstream 9d89551994a4 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root upstream test error: WARNING in enable_work
2025/01/06 02:43 upstream 9d89551994a4 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream test error: WARNING in enable_work
2025/01/06 01:26 upstream 9d89551994a4 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce upstream test error: WARNING in enable_work
2025/01/06 00:47 upstream 9244696b34f2 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream test error: WARNING in enable_work
2025/01/06 00:08 upstream 9244696b34f2 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream test error: WARNING in enable_work
2025/01/06 00:05 upstream 9d89551994a4 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto upstream test error: WARNING in enable_work
2025/01/05 23:29 upstream 9244696b34f2 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root upstream test error: WARNING in enable_work
2025/01/05 23:07 upstream 9d89551994a4 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING in enable_work
2025/01/05 22:23 upstream 9244696b34f2 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream test error: WARNING in enable_work
2025/01/05 21:27 upstream 9244696b34f2 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce upstream test error: WARNING in enable_work
2025/01/05 20:39 upstream 9244696b34f2 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto upstream test error: WARNING in enable_work
2025/01/05 20:37 upstream 9244696b34f2 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING in enable_work
2025/01/06 02:06 upstream 9d89551994a4 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 upstream test error: WARNING in enable_work
2025/01/05 20:49 upstream 9244696b34f2 f3558dbf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 upstream test error: WARNING in enable_work
2025/01/05 23:30 upstream 9d89551994a4 f3558dbf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream upstream test error: WARNING in enable_work
2025/01/05 21:12 upstream 9244696b34f2 f3558dbf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream upstream test error: WARNING in enable_work
2025/01/05 22:56 upstream 9d89551994a4 f3558dbf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 upstream test error: WARNING in enable_work
2025/01/05 21:45 upstream 9244696b34f2 f3558dbf .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 upstream test error: WARNING in enable_work
* Struck through repros no longer work on HEAD.