syzbot


possible deadlock in touch_wq_lockdep_map

Status: fixed on 2024/10/03 15:25
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+91dbdfecdd3287734d8e@syzkaller.appspotmail.com
Fix commit: ccbde4b128ef char: xillybus: Don't destroy workqueue from work item running on it
First crash: 275d, last: 75d
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
possible deadlock in __flush_workqueue (2) usb C error 43 96d 124d 0/28 closed as dup on 2024/08/13 06:06
Discussions (4)
Title Replies (including bot) Last reply
[PATCH] char: xillybus: Don't destroy workqueue from work item running on it 2 (2) 2024/08/03 06:56
[syzbot] [bluetooth?] possible deadlock in touch_wq_lockdep_map 2 (6) 2024/07/26 09:00
[syzbot] Monthly bluetooth report (Jun 2024) 0 (1) 2024/06/10 11:56
[syzbot] Monthly bluetooth report (May 2024) 0 (1) 2024/05/10 08:47
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream possible deadlock in touch_wq_lockdep_map (2) bluetooth 5 52d 62d 0/28 upstream: reported on 2024/10/11 09:06
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/07/03 10:26 26m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 734610514cb0 OK log

Sample crash report:
============================================
WARNING: possible recursive locking detected
6.11.0-rc1-syzkaller-00033-g25f51b76f90f #0 Not tainted
--------------------------------------------
kworker/0:1H/1251 is trying to acquire lock:
ffff888111e8f548 ((wq_completion)xillyusb){+.+.}-{0:0}, at: touch_wq_lockdep_map+0x6e/0x120 kernel/workqueue.c:3876

but task is already holding lock:
ffff888111e8f548 ((wq_completion)xillyusb){+.+.}-{0:0}, at: process_one_work+0x1277/0x1b40 kernel/workqueue.c:3206

other info that might help us debug this:
 Possible unsafe locking scenario:

       CPU0
       ----
  lock((wq_completion)xillyusb);
  lock((wq_completion)xillyusb);

 *** DEADLOCK ***

 May be due to missing lock nesting notation

2 locks held by kworker/0:1H/1251:
 #0: ffff888111e8f548 ((wq_completion)xillyusb){+.+.}-{0:0}, at: process_one_work+0x1277/0x1b40 kernel/workqueue.c:3206
 #1: ffffc9000250fd80 ((work_completion)(&xdev->wakeup_workitem)){+.+.}-{0:0}, at: process_one_work+0x921/0x1b40 kernel/workqueue.c:3207

stack backtrace:
CPU: 0 UID: 0 PID: 1251 Comm: kworker/0:1H Not tainted 6.11.0-rc1-syzkaller-00033-g25f51b76f90f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
Workqueue: xillyusb wakeup_all
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:93 [inline]
 dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119
 check_deadlock kernel/locking/lockdep.c:3061 [inline]
 validate_chain kernel/locking/lockdep.c:3855 [inline]
 __lock_acquire+0x2167/0x3cb0 kernel/locking/lockdep.c:5142
 lock_acquire kernel/locking/lockdep.c:5759 [inline]
 lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5724
 touch_wq_lockdep_map+0x78/0x120 kernel/workqueue.c:3876
 __flush_workqueue+0x129/0x1200 kernel/workqueue.c:3918
 drain_workqueue+0x18f/0x3d0 kernel/workqueue.c:4082
 destroy_workqueue+0xc2/0xaa0 kernel/workqueue.c:5781
 cleanup_dev+0xc5/0x150 drivers/char/xillybus/xillyusb.c:558
 kref_put include/linux/kref.h:65 [inline]
 wakeup_all+0x28c/0x300 drivers/char/xillybus/xillyusb.c:612
 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3231
 process_scheduled_works kernel/workqueue.c:3312 [inline]
 worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390
 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>

Crashes (1208):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/08 14:15 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 25f51b76f90f de12cf65 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/08 13:07 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 25f51b76f90f de12cf65 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/08 11:55 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 25f51b76f90f de12cf65 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/08 03:44 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 25f51b76f90f de12cf65 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/06 17:56 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d483f034f032 1ef9fe42 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/06 17:34 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d483f034f032 1ef9fe42 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/06 17:12 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d483f034f032 1ef9fe42 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/03 09:29 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing d483f034f032 1786a2a8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/07/26 07:19 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 933069701c1b 3f86dfed .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/07/26 05:20 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 933069701c1b 3f86dfed .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/07/26 03:20 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 933069701c1b 3f86dfed .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/07/03 01:46 upstream 734610514cb0 1ecfa2d8 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in touch_wq_lockdep_map
2024/09/20 23:49 upstream baeb9a7d8b60 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root possible deadlock in touch_wq_lockdep_map
2024/08/13 00:28 upstream d74da846046a 7b0f4b46 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root possible deadlock in touch_wq_lockdep_map
2024/08/07 15:00 upstream d4560686726f 7b2f2f35 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root possible deadlock in touch_wq_lockdep_map
2024/03/13 04:28 upstream 9187210eee7d c35c26ec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root possible deadlock in touch_wq_lockdep_map
2024/03/12 14:24 upstream 855684c7d938 c35c26ec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root possible deadlock in touch_wq_lockdep_map
2024/09/27 04:44 upstream 075dbe9f6e3c 9314348a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in touch_wq_lockdep_map
2024/08/07 05:18 upstream d4560686726f 1ef9fe42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream possible deadlock in touch_wq_lockdep_map
2024/09/19 19:18 upstream 839c4f596f89 6f888b75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 possible deadlock in touch_wq_lockdep_map
2024/08/09 05:22 upstream cf6d429eb656 61405512 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 possible deadlock in touch_wq_lockdep_map
2024/08/19 04:15 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/19 03:20 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/19 01:17 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/19 00:15 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/18 22:38 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/18 20:43 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/18 19:14 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/18 18:12 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/18 16:06 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/18 15:58 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/18 14:26 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/18 12:21 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/18 10:41 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/18 07:13 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/18 02:50 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/18 01:48 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/18 00:08 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/17 21:31 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/17 19:32 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/17 18:20 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/17 17:15 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/17 15:45 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/17 14:30 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/17 13:24 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/17 11:07 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/17 07:28 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/17 05:22 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/17 03:06 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/17 02:00 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/17 00:19 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/16 20:16 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae e1c76ab2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/16 17:43 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae e1c76ab2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/16 15:47 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae e1c76ab2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/16 13:27 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae e1c76ab2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/16 12:22 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae e1c76ab2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/16 10:06 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae e1c76ab2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/16 05:38 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/16 04:28 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/16 03:27 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/15 23:27 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/15 22:48 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/08/15 21:11 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 82313624b2ae e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb possible deadlock in touch_wq_lockdep_map
2024/09/28 17:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 5f5673607153 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 possible deadlock in touch_wq_lockdep_map
2024/08/25 10:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci be6d853c7631 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 possible deadlock in touch_wq_lockdep_map
2024/07/20 07:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c912bf709078 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 possible deadlock in touch_wq_lockdep_map
* Struck through repros no longer work on HEAD.