BUG: sleeping function called from invalid context at drivers/usb/core/urb.c:705 in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 20359, name: syz.8.3033 preempt_count: 101, expected: 0 RCU nest depth: 0, expected: 0 1 lock held by syz.8.3033/20359: #0: ffff888102ae0228 (&k->list_lock){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:341 [inline] #0: ffff888102ae0228 (&k->list_lock){+.+.}-{3:3}, at: bus_to_subsys+0x3e/0x150 drivers/base/bus.c:68 irq event stamp: 2261 hardirqs last enabled at (2260): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:178 [inline] hardirqs last enabled at (2260): [] _raw_spin_unlock_irqrestore+0x52/0x80 kernel/locking/spinlock.c:194 hardirqs last disabled at (2261): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:130 [inline] hardirqs last disabled at (2261): [] _raw_spin_lock_irqsave+0x52/0x60 kernel/locking/spinlock.c:162 softirqs last enabled at (2246): [] __do_softirq kernel/softirq.c:656 [inline] softirqs last enabled at (2246): [] invoke_softirq kernel/softirq.c:496 [inline] softirqs last enabled at (2246): [] __irq_exit_rcu+0xed/0x150 kernel/softirq.c:723 softirqs last disabled at (2257): [] __do_softirq kernel/softirq.c:656 [inline] softirqs last disabled at (2257): [] invoke_softirq kernel/softirq.c:496 [inline] softirqs last disabled at (2257): [] __irq_exit_rcu+0xed/0x150 kernel/softirq.c:723 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 UID: 0 PID: 20359 Comm: syz.8.3033 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Call Trace: __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:8888 usb_kill_urb+0x8e/0x320 drivers/usb/core/urb.c:705 usb_tx_block+0x91/0x320 drivers/net/wireless/marvell/libertas/if_usb.c:429 if_usb_send_fw_pkt.isra.0+0x2e4/0x550 drivers/net/wireless/marvell/libertas/if_usb.c:366 if_usb_receive_fwload+0x5d3/0x780 drivers/net/wireless/marvell/libertas/if_usb.c:592 __usb_hcd_giveback_urb+0x38d/0x610 drivers/usb/core/hcd.c:1657 usb_hcd_giveback_urb+0x3ca/0x4a0 drivers/usb/core/hcd.c:1741 dummy_timer+0xda1/0x36c0 drivers/usb/gadget/udc/dummy_hcd.c:2005 __run_hrtimer kernel/time/hrtimer.c:1785 [inline] __hrtimer_run_queues+0x50e/0xa70 kernel/time/hrtimer.c:1849 hrtimer_run_softirq+0x17d/0x350 kernel/time/hrtimer.c:1866 handle_softirqs+0x1de/0x9d0 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xed/0x150 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline] sysvec_apic_timer_interrupt+0x8f/0xb0 arch/x86/kernel/apic/apic.c:1056 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:bus_to_subsys+0xcf/0x150 drivers/base/bus.c:77 Code: 85 8e 00 00 00 48 8b 43 08 48 8d 58 f8 48 39 c5 74 6b e8 54 d1 f1 fd 48 8d bb 60 02 00 00 48 89 f8 48 c1 e8 03 42 80 3c 20 00 <75> 60 4c 39 ab 60 02 00 00 75 b5 e8 31 d1 f1 fd 4c 8d 63 b0 e8 28 RSP: 0018:ffffc9000a5bfd58 EFLAGS: 00000246 RAX: 1ffff11020253e56 RBX: ffff88810129f050 RCX: ffffffff818f2a58 RDX: ffff888124e19d80 RSI: ffffffff83c02aec RDI: ffff88810129f2b0 RBP: ffff888102ae0200 R08: 0000000000000001 R09: fffff520014b7f9d R10: 0000000000000003 R11: 0000000000000000 R12: dffffc0000000000 R13: ffffffff882425c0 R14: ffff88813121414c R15: 0000000000000000 bus_remove_driver+0x3e/0x2e0 drivers/base/bus.c:813 driver_unregister+0x76/0xb0 drivers/base/driver.c:277 usb_gadget_register_driver_owner.cold+0x6c/0xd0 drivers/usb/gadget/udc/core.c:1742 raw_ioctl_run drivers/usb/gadget/legacy/raw_gadget.c:596 [inline] raw_ioctl+0x1a85/0x2b80 drivers/usb/gadget/legacy/raw_gadget.c:1307 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x106/0x7b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f31c600c4ab Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007f31c4a5cf00 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f31c600c4ab RDX: 0000000000000000 RSI: 0000000000005501 RDI: 0000000000000005 RBP: 00007f31c4a5dfd0 R08: 0000000000000001 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000200000000000 R14: 0000000000000000 R15: 00000000000010d0 BUG: scheduling while atomic: syz.8.3033/20359/0x00000102 1 lock held by syz.8.3033/20359: #0: ffff888102ae0228 (&k->list_lock){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:341 [inline] #0: ffff888102ae0228 (&k->list_lock){+.+.}-{3:3}, at: bus_to_subsys+0x3e/0x150 drivers/base/bus.c:68 Modules linked in: irq event stamp: 2261 hardirqs last enabled at (2260): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:178 [inline] hardirqs last enabled at (2260): [] _raw_spin_unlock_irqrestore+0x52/0x80 kernel/locking/spinlock.c:194 hardirqs last disabled at (2261): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:130 [inline] hardirqs last disabled at (2261): [] _raw_spin_lock_irqsave+0x52/0x60 kernel/locking/spinlock.c:162 softirqs last enabled at (2246): [] __do_softirq kernel/softirq.c:656 [inline] softirqs last enabled at (2246): [] invoke_softirq kernel/softirq.c:496 [inline] softirqs last enabled at (2246): [] __irq_exit_rcu+0xed/0x150 kernel/softirq.c:723 softirqs last disabled at (2257): [] __do_softirq kernel/softirq.c:656 [inline] softirqs last disabled at (2257): [] invoke_softirq kernel/softirq.c:496 [inline] softirqs last disabled at (2257): [] __irq_exit_rcu+0xed/0x150 kernel/softirq.c:723 Preemption disabled at: [<0000000000000000>] 0x0 ---------------- Code disassembly (best guess): 0: 85 8e 00 00 00 48 test %ecx,0x48000000(%rsi) 6: 8b 43 08 mov 0x8(%rbx),%eax 9: 48 8d 58 f8 lea -0x8(%rax),%rbx d: 48 39 c5 cmp %rax,%rbp 10: 74 6b je 0x7d 12: e8 54 d1 f1 fd call 0xfdf1d16b 17: 48 8d bb 60 02 00 00 lea 0x260(%rbx),%rdi 1e: 48 89 f8 mov %rdi,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) * 2a: 75 60 jne 0x8c <-- trapping instruction 2c: 4c 39 ab 60 02 00 00 cmp %r13,0x260(%rbx) 33: 75 b5 jne 0xffffffea 35: e8 31 d1 f1 fd call 0xfdf1d16b 3a: 4c 8d 63 b0 lea -0x50(%rbx),%r12 3e: e8 .byte 0xe8 3f: 28 .byte 0x28