BUG: sleeping function called from invalid context in cancel_delayed_work_sync

Status: upstream: reported C repro on 2026/08/05 22:45
Subsystems: usb
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+1ee4f3b9228e35f14677@syzkaller.appspotmail.com
First crash: 5d14h, last: 8h05m
✨ AI Patch Versions (1)
Version Stage Reported Report Link Job
1 moderation 2026/08/07 05:35 Discussion f105b557-f491-4cff-97a1-a15b027fdeec
✨ AI Jobs (3)
ID Workflow Result Correct Bug Created Started Finished Revision
373e526f assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ✅ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ BUG: sleeping function called from invalid context in cancel_delayed_work_sync 2026/08/09 09:07 2026/08/09 09:07 2026/08/09 09:13 5d63f80b
f105b557 patching BUG: sleeping function called from invalid context in cancel_delayed_work_sync 2026/08/06 06:48 2026/08/07 04:19 2026/08/07 05:35 c38879ea
f50558c5 assessment-security 💥 BUG: sleeping function called from invalid context in cancel_delayed_work_sync 2026/08/05 00:03 2026/08/05 00:03 2026/08/05 00:03 d4abbeac
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [usb?] BUG: sleeping function called from invalid context in cancel_delayed_work_sync 0 (1) 2026/08/05 22:45
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 KASAN: use-after-free Read in consume_skb 19 syz, C 73 384d 1054d 0/2 auto-obsoleted due to no activity on 2025/10/29 05:12
upstream KASAN: slab-use-after-free Read in consume_skb bpf net 19 syz, C error 6 1068d 1069d 0/29 closed as invalid on 2023/10/04 10:50
android-6-1 KASAN: use-after-free Read in consume_skb 19 syz, C error done 4 1006d 1065d 0/2 auto-obsoleted due to no activity on 2024/02/15 15:09
linux-5.15 KASAN: use-after-free Read in consume_skb origin:lts-only 19 syz, C done 6 431d 730d 0/3 auto-obsoleted due to no activity on 2025/09/13 01:43
upstream KASAN: use-after-free Read in consume_skb bpf net 19 syz, C done inconclusive 33 1485d 1764d 0/29 closed as invalid on 2022/10/12 18:37

Sample crash report:
BUG: sleeping function called from invalid context at kernel/workqueue.c:4487
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/1
preempt_count: 101, expected: 0
RCU nest depth: 0, expected: 0
1 lock held by swapper/1/0:
 #0: ffffc900001a8a10 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0x11f/0x610 kernel/time/timer.c:1745
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted syzkaller #0 PREEMPT(lazy) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
 __might_resched.cold+0x1ec/0x232 kernel/sched/core.c:9197
 __cancel_work_sync kernel/workqueue.c:4487 [inline]
 cancel_delayed_work_sync+0xb8/0xf0 kernel/workqueue.c:4568
 mmc_free_host+0x19/0x30 drivers/mmc/core/host.c:700
 vub300_delete drivers/mmc/host/vub300.c:379 [inline]
 kref_put include/linux/kref.h:65 [inline]
 vub300_inactivity_timer_expired drivers/mmc/host/vub300.c:747 [inline]
 vub300_inactivity_timer_expired+0x42f/0x550 drivers/mmc/host/vub300.c:742
 call_timer_fn+0x19a/0x610 kernel/time/timer.c:1748
 expire_timers kernel/time/timer.c:1799 [inline]
 __run_timers+0x757/0xb00 kernel/time/timer.c:2374
 __run_timer_base kernel/time/timer.c:2386 [inline]
 __run_timer_base kernel/time/timer.c:2378 [inline]
 timer_expire_remote+0x102/0x170 kernel/time/timer.c:2136
 tmigr_handle_remote_cpu kernel/time/timer_migration.c:985 [inline]
 tmigr_handle_remote_up+0x50e/0xab0 kernel/time/timer_migration.c:1076
 __walk_groups_from+0x56/0x190 kernel/time/timer_migration.c:564
 __walk_groups kernel/time/timer_migration.c:581 [inline]
 tmigr_handle_remote+0x2cb/0x380 kernel/time/timer_migration.c:1135
 run_timer_softirq+0x3a/0x50 kernel/time/timer.c:2409
 handle_softirqs+0x1dd/0x990 kernel/softirq.c:622
 __do_softirq kernel/softirq.c:656 [inline]
 invoke_softirq kernel/softirq.c:496 [inline]
 __irq_exit_rcu+0x160/0x210 kernel/softirq.c:735
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
 sysvec_apic_timer_interrupt+0x8f/0xb0 arch/x86/kernel/apic/apic.c:1062
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:pv_native_safe_halt+0xf/0x20 arch/x86/kernel/paravirt.c:64
Code: b0 ab 01 c3 cc cc cc cc 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d 63 5f 0a 00 fb f4 <e9> 3c f6 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90
RSP: 0018:ffffc9000013fe10 EFLAGS: 00000242
RAX: 0000000000045ad9 RBX: ffff8881022d9e00 RCX: ffffffff877c28e5
RDX: 0000000000000000 RSI: ffffffff890f2c7f RDI: ffffffff87b15480
RBP: ffffed102045b3c0 R08: 0000000000000001 R09: ffffed103eae670d
R10: ffff8881f573386b R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 1ffff92000027fc6 R15: dffffc0000000000
 arch_safe_halt arch/x86/include/asm/paravirt.h:62 [inline]
 default_idle+0x9/0x10 arch/x86/kernel/process.c:768
 default_idle_call+0x6c/0xb0 kernel/sched/idle.c:122
 cpuidle_idle_call kernel/sched/idle.c:199 [inline]
 do_idle+0x3a7/0x5b0 kernel/sched/idle.c:355
 cpu_startup_entry+0x4f/0x60 kernel/sched/idle.c:454
 start_secondary+0x21d/0x2d0 arch/x86/kernel/smpboot.c:312
 common_startup_64+0x13e/0x158
 </TASK>
ODEBUG: object ffffc900001a87e0 is NOT on stack ffffc90000138000, but annotated.

======================================================
----------------
Code disassembly (best guess):
   0:	b0 ab                	mov    $0xab,%al
   2:	01 c3                	add    %eax,%ebx
   4:	cc                   	int3
   5:	cc                   	int3
   6:	cc                   	int3
   7:	cc                   	int3
   8:	0f 1f 00             	nopl   (%rax)
   b:	90                   	nop
   c:	90                   	nop
   d:	90                   	nop
   e:	90                   	nop
   f:	90                   	nop
  10:	90                   	nop
  11:	90                   	nop
  12:	90                   	nop
  13:	90                   	nop
  14:	90                   	nop
  15:	90                   	nop
  16:	90                   	nop
  17:	90                   	nop
  18:	90                   	nop
  19:	90                   	nop
  1a:	90                   	nop
  1b:	f3 0f 1e fa          	endbr64
  1f:	66 90                	xchg   %ax,%ax
  21:	0f 00 2d 63 5f 0a 00 	verw   0xa5f63(%rip)        # 0xa5f8b
  28:	fb                   	sti
  29:	f4                   	hlt
* 2a:	e9 3c f6 02 00       	jmp    0x2f66b <-- trapping instruction
  2f:	66 2e 0f 1f 84 00 00 	cs nopw 0x0(%rax,%rax,1)
  36:	00 00 00
  39:	66 90                	xchg   %ax,%ax
  3b:	90                   	nop
  3c:	90                   	nop
  3d:	90                   	nop
  3e:	90                   	nop
  3f:	90                   	nop

Crashes (31):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/09 19:51 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5d5fd841c346 5d63f80b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/09 10:30 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5d5fd841c346 5d63f80b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 19:22 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5d5fd841c346 d4abbeac .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 18:05 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5d5fd841c346 d4abbeac .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/07 06:32 upstream 0d8395707651 c38879ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/07 05:36 upstream 0d8395707651 c38879ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/07 00:23 upstream 0d8395707651 c38879ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/07 00:03 upstream 0d8395707651 c38879ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/06 23:38 upstream 0d8395707651 c38879ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/06 16:05 upstream 0d8395707651 c38879ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/06 14:01 upstream 0d8395707651 cd5b1963 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/06 13:23 upstream 0d8395707651 cd5b1963 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/06 11:04 upstream 0d8395707651 cd5b1963 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/05 07:55 upstream c21bb4193868 b3eac40e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/05 07:55 upstream c21bb4193868 b3eac40e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/05 02:32 upstream c21bb4193868 d4abbeac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/05 02:32 upstream c21bb4193868 d4abbeac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 20:33 upstream 848acc8ffe1b d4abbeac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 15:30 upstream 848acc8ffe1b d4abbeac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 15:19 upstream 848acc8ffe1b d4abbeac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 15:19 upstream 848acc8ffe1b d4abbeac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 15:17 upstream 848acc8ffe1b d4abbeac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 15:16 upstream 848acc8ffe1b d4abbeac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 15:16 upstream 848acc8ffe1b d4abbeac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 17:22 upstream 848acc8ffe1b 3c5eaa21 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 15:59 upstream 848acc8ffe1b 3c5eaa21 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 15:55 upstream 848acc8ffe1b 3c5eaa21 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 15:31 upstream 848acc8ffe1b 3c5eaa21 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 15:18 upstream 848acc8ffe1b 3c5eaa21 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 14:19 upstream 848acc8ffe1b 3c5eaa21 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in cancel_delayed_work_sync
2026/08/04 13:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7235a3e71949 d4abbeac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: sleeping function called from invalid context in cancel_delayed_work_sync
* Struck through repros no longer work on HEAD.