syzbot


WARNING in __queue_work (3)

Status: upstream: reported syz repro on 2020/08/04 00:36
Reported-by: syzbot+63bed493aebbf6872647@syzkaller.appspotmail.com
Fix commit: Bluetooth: When HCI work queue is drained, only queue chained work
Patched on: [ci-upstream-linux-next-kasan-gce-root], missing on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak 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 ci-upstream-kmsan-gce-386 ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 705d, last: 1d15h

Cause bisection: failed (bisect log)
similar bugs (5):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __queue_work C 1 1600d 1600d 4/22 fixed on 2018/02/26 20:04
linux-4.14 WARNING in __queue_work 3 493d 532d 0/1 auto-closed as invalid on 2021/06/28 11:00
upstream WARNING in __queue_work (2) 1 779d 775d 0/22 auto-closed as invalid on 2020/07/17 09:16
linux-4.14 WARNING in __queue_work (2) 5 32d 211d 0/1 upstream: reported on 2021/12/07 06:42
linux-4.19 WARNING in __queue_work 17 23d 664d 0/1 upstream: reported on 2020/09/10 01:47

Sample crash report:
Bluetooth: hci5: command 0x0419 tx timeout
------------[ cut here ]------------
WARNING: CPU: 0 PID: 143 at kernel/workqueue.c:1438 __queue_work+0xdb0/0x1150 kernel/workqueue.c:1438
Modules linked in:
CPU: 0 PID: 143 Comm: kworker/0:2 Not tainted 5.19.0-rc4-syzkaller-00125-ga175eca0f3d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
Workqueue: events hci_cmd_timeout
RIP: 0010:__queue_work+0xdb0/0x1150 kernel/workqueue.c:1438
Code: e0 07 83 c0 03 38 d0 7c 09 84 d2 74 05 e8 48 67 79 00 8b 5b 2c 31 ff 83 e3 20 89 de e8 29 9f 2c 00 85 db 75 42 e8 e0 a2 2c 00 <0f> 0b e9 da f8 ff ff e8 d4 a2 2c 00 0f 0b e9 6c f8 ff ff e8 c8 a2
RSP: 0018:ffffc900029cfc60 EFLAGS: 00010093
RAX: 0000000000000000 RBX: ffff8880b9a3ec00 RCX: 0000000000000000
RDX: ffff88801b393b00 RSI: ffffffff814dc3d0 RDI: ffff8880b9a3ec08
RBP: 0000000000000008 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000200000 R11: 0000000000000001 R12: ffff8880219a4c60
R13: 0000000000000000 R14: ffff8880212c0800 R15: ffff8880212c0800
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff873d9c028 CR3: 0000000074f62000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 queue_work_on+0xee/0x110 kernel/workqueue.c:1545
 process_one_work+0x996/0x1610 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e9/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302
 </TASK>

Crashes (839):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/07/01 20:54 upstream a175eca0f3d7 1434eec0 .config log report syz WARNING in __queue_work
ci-upstream-kasan-gce-smack-root 2022/06/19 13:36 upstream 354c6e071be9 8f633d84 .config log report syz WARNING in __queue_work
ci-upstream-kasan-gce-smack-root 2021/08/25 18:06 upstream 6e764bcd1cf7 b599f2fc .config log report syz WARNING in __queue_work
ci-upstream-linux-next-kasan-gce-root 2022/06/12 16:45 linux-next 6d0c80680317 0d5abf15 .config log report syz WARNING in __queue_work
ci-upstream-kasan-gce-smack-root 2020/12/10 11:52 upstream a68a0262abda c090b4da .config log report syz
ci-upstream-kasan-gce-root 2020/12/09 11:47 upstream 7d8761ba27fc 40cc414d .config log report syz
ci-upstream-kasan-gce 2022/06/26 04:59 upstream 8c23f235a6a8 a371c43c .config log report info WARNING in __queue_work
ci-upstream-kasan-gce-selinux-root 2022/06/23 11:15 upstream 3abc3ae553c7 912f5df7 .config log report info WARNING in __queue_work
ci-upstream-kasan-gce-selinux-root 2022/06/17 17:16 upstream f0ec9c65a8d6 cb58b3b2 .config log report info WARNING in __queue_work
ci-upstream-kasan-gce-selinux-root 2022/06/12 22:21 upstream 7a68065eb9cd 0d5abf15 .config log report info WARNING in __queue_work
ci-upstream-kasan-gce-smack-root 2022/06/06 10:46 upstream f2906aa86338 c8857892 .config log report info WARNING in __queue_work
ci-upstream-kasan-gce-root 2022/05/19 06:37 upstream f993aed406ea 50c53f39 .config log report info WARNING in __queue_work
ci-upstream-kasan-gce-smack-root 2022/05/18 14:50 upstream 210e04ff7681 50c53f39 .config log report info WARNING in __queue_work
ci-upstream-kasan-gce 2022/05/15 20:06 upstream bc403203d65a 744a39e2 .config log report info WARNING in __queue_work
ci-upstream-kasan-gce-selinux-root 2022/05/13 17:52 upstream f3f19f939c11 107f6434 .config log report info WARNING in __queue_work
ci-qemu-upstream 2022/03/26 08:56 upstream cb7cbaae7fd9 89bc8608 .config log report info WARNING in __queue_work
ci-qemu-upstream-386 2022/06/11 00:04 upstream 874c8ca1e60b 0d5abf15 .config log report info WARNING in __queue_work
ci-upstream-kasan-gce-386 2022/05/30 23:21 upstream 2c5ca23f7414 af70c3a9 .config log report info WARNING in __queue_work
ci-upstream-bpf-kasan-gce 2022/06/30 02:15 bpf 512d1999b8e9 1434eec0 .config log report info WARNING in __queue_work
ci-upstream-bpf-kasan-gce 2022/06/11 11:24 bpf 825464e79db4 0d5abf15 .config log report info WARNING in __queue_work
ci-upstream-bpf-kasan-gce 2022/06/11 01:49 bpf 825464e79db4 0d5abf15 .config log report info WARNING in __queue_work
ci-upstream-bpf-kasan-gce 2022/06/09 11:40 bpf 7c217aca85dd 0d5abf15 .config log report info WARNING in __queue_work
ci-upstream-bpf-kasan-gce 2022/06/04 22:31 bpf d08af2c46881 c8857892 .config log report info WARNING in __queue_work
ci-upstream-bpf-kasan-gce 2022/06/04 00:09 bpf e0491b11c131 eee80d3c .config log report info WARNING in __queue_work
ci-upstream-bpf-kasan-gce 2022/06/03 04:51 bpf e0491b11c131 02dddea8 .config log report info WARNING in __queue_work
ci-upstream-bpf-kasan-gce 2022/06/01 21:47 bpf e0491b11c131 b4bc6a3d .config log report info WARNING in __queue_work
ci-upstream-bpf-kasan-gce 2022/05/27 05:18 bpf a54ce3703613 3037caa9 .config log report info WARNING in __queue_work
ci-upstream-bpf-kasan-gce 2022/05/23 18:01 bpf 8c3b8dc5cc9b 4c7657cb .config log report info WARNING in __queue_work
ci-upstream-bpf-kasan-gce 2022/05/21 20:52 bpf f3f19f939c11 7268fa62 .config log report info WARNING in __queue_work
ci-upstream-bpf-kasan-gce 2022/05/07 18:35 bpf a0df71948e95 e60b1103 .config log report info WARNING in __queue_work
ci-upstream-bpf-kasan-gce 2022/05/04 05:12 bpf a0df71948e95 dc9e5259 .config log report info WARNING in __queue_work
ci-upstream-bpf-kasan-gce 2022/05/01 14:57 bpf a0df71948e95 2df221f6 .config log report info WARNING in __queue_work
ci-upstream-net-this-kasan-gce 2022/01/05 18:02 net b3c8e0de473e 6acc789a .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/07/05 04:11 bpf-next b0d93b44641a bff65f44 .config log report info WARNING in __queue_work
ci-upstream-net-kasan-gce 2022/07/01 06:02 net-next bf48c3fae6d7 1434eec0 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/06/26 23:54 bpf-next fd75733da2f3 a371c43c .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/06/22 09:51 bpf-next d4609a5d8c70 0fc5c330 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/06/21 11:14 bpf-next b40b414ec8d9 0fc5c330 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/06/20 11:11 bpf-next dbca1596bbb0 8f633d84 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/06/20 07:06 bpf-next dbca1596bbb0 8f633d84 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/06/09 19:23 bpf-next fe92833524e3 0d5abf15 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/06/09 18:34 bpf-next fe92833524e3 0d5abf15 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/06/09 00:08 bpf-next d352bd889b6a b2706118 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/06/07 21:39 bpf-next d352bd889b6a c8857892 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/06/07 18:24 bpf-next 02f4afebf8a5 c8857892 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/06/06 19:06 bpf-next 02f4afebf8a5 c8857892 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/06/04 23:38 bpf-next 02f4afebf8a5 c8857892 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/05/31 12:56 bpf-next 4b4b4f94a4f6 af70c3a9 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/05/31 03:43 bpf-next 1626f57f061c af70c3a9 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/05/30 22:07 bpf-next 1626f57f061c af70c3a9 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/05/30 20:29 bpf-next 1626f57f061c af70c3a9 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/05/26 11:54 bpf-next 7e062cda7d90 3037caa9 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/05/26 02:23 bpf-next 7e062cda7d90 3037caa9 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/05/25 14:52 bpf-next 677fb7525331 647c0e27 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/05/16 23:27 bpf-next ac6a65868a5a 744a39e2 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/05/16 14:48 bpf-next 418fbe82578e 744a39e2 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/05/16 01:38 bpf-next 418fbe82578e 744a39e2 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/05/12 17:05 bpf-next a2aa95b71c9b 9ad6612a .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/05/05 14:27 bpf-next 20b87e7c29df 06089fcd .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/05/04 16:35 bpf-next 20b87e7c29df dc9e5259 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/05/01 14:27 bpf-next 20b87e7c29df 2df221f6 .config log report info WARNING in __queue_work
ci-upstream-bpf-next-kasan-gce 2022/05/01 06:16 bpf-next 20b87e7c29df 2df221f6 .config log report info WARNING in __queue_work
ci-upstream-net-kasan-gce 2021/12/06 22:40 net-next ce83278f313c 0230ba3e .config log report info WARNING in __queue_work
ci-upstream-linux-next-kasan-gce-root 2022/05/17 05:19 linux-next 3f7bdc402fb0 744a39e2 .config log report info WARNING in __queue_work
ci-upstream-kasan-gce-root 2021/01/14 11:47 upstream 65f0d2414b70 269d24e8 .config log report info
ci-qemu-upstream-386 2020/07/31 00:25 upstream e2c46b5762c6 8df85ed9 .config log report