BUG: sleeping function called from invalid context at kernel/workqueue.c:3028 in_atomic(): 1, irqs_disabled(): 1, 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: ffffc90000dc0d70 ((&dum_hcd->timer)){+.-.}-{0:0}, at: lockdep_copy_map include/linux/lockdep.h:35 [inline] #0: ffffc90000dc0d70 ((&dum_hcd->timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x6b0 kernel/time/timer.c:1411 irq event stamp: 3641015 hardirqs last enabled at (3641014): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] hardirqs last enabled at (3641014): [] _raw_spin_unlock_irq+0x1f/0x40 kernel/locking/spinlock.c:202 hardirqs last disabled at (3641015): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (3641015): [] _raw_spin_lock_irqsave+0x4e/0x50 kernel/locking/spinlock.c:162 softirqs last enabled at (3640974): [] invoke_softirq kernel/softirq.c:432 [inline] softirqs last enabled at (3640974): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637 softirqs last disabled at (3641011): [] invoke_softirq kernel/softirq.c:432 [inline] softirqs last disabled at (3641011): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.16.0-rc5-next-20211216-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9583 start_flush_work kernel/workqueue.c:3028 [inline] __flush_work+0x109/0xb10 kernel/workqueue.c:3092 __cancel_work_timer+0x3f9/0x570 kernel/workqueue.c:3180 hci_cmd_sync_cancel net/bluetooth/hci_sync.c:346 [inline] hci_cmd_sync_cancel+0xe1/0x170 net/bluetooth/hci_sync.c:338 btusb_tx_complete+0x34a/0x3e0 drivers/bluetooth/btusb.c:1402 __usb_hcd_giveback_urb+0x2b0/0x5c0 drivers/usb/core/hcd.c:1656 usb_hcd_giveback_urb+0x367/0x410 drivers/usb/core/hcd.c:1726 dummy_timer+0x11f9/0x32b0 drivers/usb/gadget/udc/dummy_hcd.c:1987 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1421 expire_timers kernel/time/timer.c:1466 [inline] __run_timers.part.0+0x675/0xa20 kernel/time/timer.c:1734 __run_timers kernel/time/timer.c:1715 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1747 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline] RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline] RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:111 [inline] RIP: 0010:acpi_idle_do_entry+0x1c6/0x250 drivers/acpi/processor_idle.c:551 Code: 89 de e8 3d 67 20 f8 84 db 75 ac e8 54 63 20 f8 e8 0f ac 26 f8 eb 0c e8 48 63 20 f8 0f 00 2d 41 f7 b9 00 e8 3c 63 20 f8 fb f4 <9c> 5b 81 e3 00 02 00 00 fa 31 ff 48 89 de e8 b7 65 20 f8 48 85 db RSP: 0018:ffffc90000d57d18 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff88801192d7c0 RSI: ffffffff89579e04 RDI: 0000000000000000 RBP: ffff888144592864 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff817e4a38 R11: 0000000000000000 R12: 0000000000000001 R13: ffff888144592800 R14: ffff888144592864 R15: ffff888018404004 acpi_idle_enter+0x361/0x500 drivers/acpi/processor_idle.c:686 cpuidle_enter_state+0x1b1/0xc80 drivers/cpuidle/cpuidle.c:237 cpuidle_enter+0x4a/0xa0 drivers/cpuidle/cpuidle.c:351 call_cpuidle kernel/sched/idle.c:158 [inline] cpuidle_idle_call kernel/sched/idle.c:239 [inline] do_idle+0x3e8/0x590 kernel/sched/idle.c:306 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:403 start_secondary+0x265/0x340 arch/x86/kernel/smpboot.c:272 secondary_startup_64_no_verify+0xc3/0xcb ---------------- Code disassembly (best guess): 0: 89 de mov %ebx,%esi 2: e8 3d 67 20 f8 callq 0xf8206744 7: 84 db test %bl,%bl 9: 75 ac jne 0xffffffb7 b: e8 54 63 20 f8 callq 0xf8206364 10: e8 0f ac 26 f8 callq 0xf826ac24 15: eb 0c jmp 0x23 17: e8 48 63 20 f8 callq 0xf8206364 1c: 0f 00 2d 41 f7 b9 00 verw 0xb9f741(%rip) # 0xb9f764 23: e8 3c 63 20 f8 callq 0xf8206364 28: fb sti 29: f4 hlt * 2a: 9c pushfq <-- trapping instruction 2b: 5b pop %rbx 2c: 81 e3 00 02 00 00 and $0x200,%ebx 32: fa cli 33: 31 ff xor %edi,%edi 35: 48 89 de mov %rbx,%rsi 38: e8 b7 65 20 f8 callq 0xf82065f4 3d: 48 85 db test %rbx,%rbx