BUG: sleeping function called from invalid context at kernel/workqueue.c:3414 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 12572, name: kworker/0:4 preempt_count: 101, expected: 0 RCU nest depth: 0, expected: 0 6 locks held by kworker/0:4/12572: #0: ffff888140e5a138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline] #0: ffff888140e5a138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734 #1: ffffc90004d57d00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline] #1: ffffc90004d57d00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734 #2: ffff8880261531d8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1094 [inline] #2: ffff8880261531d8 (&dev->mutex){....}-{3:3}, at: hub_event+0x188/0x4a80 drivers/usb/core/hub.c:5871 #3: ffffffff8e126700 (console_lock){+.+.}-{0:0}, at: dev_vprintk_emit+0x339/0x3f0 drivers/base/core.c:5038 #4: ffffffff8e00df10 (console_srcu){....}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:339 [inline] #4: ffffffff8e00df10 (console_srcu){....}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:232 [inline] #4: ffffffff8e00df10 (console_srcu){....}-{0:0}, at: console_srcu_read_lock kernel/printk/printk.c:292 [inline] #4: ffffffff8e00df10 (console_srcu){....}-{0:0}, at: console_flush_all+0x10b/0xcf0 kernel/printk/printk.c:2992 #5: ffffc90000007be0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd2/0x540 kernel/time/timer.c:1698 Preemption disabled at: [] vprintk_emit+0x146/0x610 kernel/printk/printk.c:2333 CPU: 0 PID: 12572 Comm: kworker/0:4 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Workqueue: usb_hub_wq hub_event Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 __might_resched+0x48d/0x5f0 kernel/sched/core.c:10264 start_flush_work kernel/workqueue.c:3414 [inline] __flush_work+0x10f/0xac0 kernel/workqueue.c:3474 __cancel_work_timer+0x3f8/0x560 kernel/workqueue.c:3562 mmc_free_host+0x19/0x40 drivers/mmc/core/host.c:694 call_timer_fn+0x189/0x540 kernel/time/timer.c:1701 expire_timers kernel/time/timer.c:1752 [inline] __run_timers+0x570/0x810 kernel/time/timer.c:2023 run_timer_softirq+0x67/0xf0 kernel/time/timer.c:2036 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:console_flush_all+0x883/0xcf0 arch/x86/include/asm/irqflags.h:-1 Code: ed 01 00 00 e8 be 8b 1b 00 4d 85 ff 48 8b 5c 24 38 75 07 e8 af 8b 1b 00 eb 06 e8 a8 8b 1b 00 fb 49 bf 00 00 00 00 00 fc ff df <48> 8b 44 24 58 42 0f b6 04 38 84 c0 0f 85 2f 02 00 00 80 3b 01 0f RSP: 0018:ffffc90004d56e60 EFLAGS: 00000287 RAX: ffffffff816c4838 RBX: ffffc90004d56fdf RCX: 0000000000100000 RDX: ffffc90017318000 RSI: 0000000000017880 RDI: 0000000000017881 RBP: ffffc90004d56fb0 R08: ffffffff92223507 R09: 1ffffffff24446a0 R10: dffffc0000000000 R11: fffffbfff24446a1 R12: ffffffff8e8c22a0 R13: 1ffffffff1bf975c R14: ffffffff8e8c22f8 R15: dffffc0000000000 console_unlock+0xad/0x350 kernel/printk/printk.c:3069 vprintk_emit+0x497/0x610 kernel/printk/printk.c:2341 dev_vprintk_emit+0x339/0x3f0 drivers/base/core.c:5038 dev_printk_emit+0xef/0x140 drivers/base/core.c:5049 _dev_notice+0x11f/0x170 drivers/base/core.c:5106 usb_parse_endpoint drivers/usb/core/config.c:480 [inline] usb_parse_interface drivers/usb/core/config.c:607 [inline] usb_parse_configuration drivers/usb/core/config.c:820 [inline] usb_get_configuration+0x2f83/0x5300 drivers/usb/core/config.c:973 usb_enumerate_device drivers/usb/core/hub.c:2502 [inline] usb_new_device+0x136/0x1550 drivers/usb/core/hub.c:2640 hub_port_connect drivers/usb/core/hub.c:5539 [inline] hub_port_connect_change drivers/usb/core/hub.c:5679 [inline] port_event drivers/usb/core/hub.c:5843 [inline] hub_event+0x29d5/0x4a80 drivers/usb/core/hub.c:5925 process_one_work kernel/workqueue.c:2657 [inline] process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 ================================ WARNING: inconsistent lock state syzkaller #0 Tainted: G W -------------------------------- inconsistent {SOFTIRQ-ON-R} -> {IN-SOFTIRQ-W} usage. kworker/0:4/12572 [HC0[0]:SC1[1]:HE1:SE0] takes: ffffffff8ea19330 (wakeup_srcu){.+-+}-{0:0}, at: srcu_lock_sync include/linux/srcu.h:128 [inline] ffffffff8ea19330 (wakeup_srcu){.+-+}-{0:0}, at: __synchronize_srcu+0xae/0x3d0 kernel/rcu/srcutree.c:1371 {SOFTIRQ-ON-R} state was registered at: lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5790 srcu_lock_acquire include/linux/srcu.h:116 [inline] srcu_read_lock include/linux/srcu.h:215 [inline] pm_print_active_wakeup_sources+0x5d/0x310 drivers/base/power/wakeup.c:846 pm_get_wakeup_count+0x1cf/0x300 drivers/base/power/wakeup.c:978 wakeup_count_show+0x86/0xf0 kernel/power/main.c:757 sysfs_kf_seq_show+0x34d/0x4c0 fs/sysfs/file.c:59 seq_read_iter+0x464/0xc50 fs/seq_file.c:230 call_read_iter include/linux/fs.h:2013 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x486/0x990 fs/read_write.c:470 ksys_read+0x151/0x260 fs/read_write.c:613 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 irq event stamp: 1983282 hardirqs last enabled at (1983282): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (1983282): [] _raw_spin_unlock_irqrestore+0x86/0x120 kernel/locking/spinlock.c:194 hardirqs last disabled at (1983281): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (1983281): [] _raw_spin_lock_irqsave+0x8f/0x100 kernel/locking/spinlock.c:162 softirqs last enabled at (1982934): [] __do_softirq kernel/softirq.c:612 [inline] softirqs last enabled at (1982934): [] invoke_softirq kernel/softirq.c:452 [inline] softirqs last enabled at (1982934): [] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 softirqs last disabled at (1982949): [] __do_softirq kernel/softirq.c:612 [inline] softirqs last disabled at (1982949): [] invoke_softirq kernel/softirq.c:452 [inline] softirqs last disabled at (1982949): [] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(wakeup_srcu); lock(wakeup_srcu); *** DEADLOCK *** 6 locks held by kworker/0:4/12572: #0: ffff888140e5a138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline] #0: ffff888140e5a138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734 #1: ffffc90004d57d00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2632 [inline] #1: ffffc90004d57d00 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x975/0x1600 kernel/workqueue.c:2734 #2: ffff8880261531d8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1094 [inline] #2: ffff8880261531d8 (&dev->mutex){....}-{3:3}, at: hub_event+0x188/0x4a80 drivers/usb/core/hub.c:5871 #3: ffffffff8e126700 (console_lock){+.+.}-{0:0}, at: dev_vprintk_emit+0x339/0x3f0 drivers/base/core.c:5038 #4: ffffffff8e00df10 (console_srcu){....}-{0:0}, at: rcu_try_lock_acquire include/linux/rcupdate.h:339 [inline] #4: ffffffff8e00df10 (console_srcu){....}-{0:0}, at: srcu_read_lock_nmisafe include/linux/srcu.h:232 [inline] #4: ffffffff8e00df10 (console_srcu){....}-{0:0}, at: console_srcu_read_lock kernel/printk/printk.c:292 [inline] #4: ffffffff8e00df10 (console_srcu){....}-{0:0}, at: console_flush_all+0x10b/0xcf0 kernel/printk/printk.c:2992 #5: ffffc90000007be0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd2/0x540 kernel/time/timer.c:1698 stack backtrace: CPU: 0 PID: 12572 Comm: kworker/0:4 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Workqueue: usb_hub_wq hub_event Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:4041 mark_lock_irq+0xd3/0x900 kernel/locking/lockdep.c:4250 mark_lock+0x208/0x320 kernel/locking/lockdep.c:4706 mark_usage kernel/locking/lockdep.c:-1 [inline] __lock_acquire+0xdf7/0x7eb0 kernel/locking/lockdep.c:5125 lock_sync+0x155/0x290 kernel/locking/lockdep.c:5837 srcu_lock_sync include/linux/srcu.h:128 [inline] __synchronize_srcu+0xc2/0x3d0 kernel/rcu/srcutree.c:1371 wakeup_source_remove drivers/base/power/wakeup.c:198 [inline] wakeup_source_unregister+0x116/0x190 drivers/base/power/wakeup.c:242 mmc_host_classdev_release+0x47/0x100 drivers/mmc/core/host.c:77 device_release+0xbc/0x1e0 drivers/base/core.c:-1 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x21b/0x450 lib/kobject.c:737 call_timer_fn+0x189/0x540 kernel/time/timer.c:1701 expire_timers kernel/time/timer.c:1752 [inline] __run_timers+0x570/0x810 kernel/time/timer.c:2023 run_timer_softirq+0x67/0xf0 kernel/time/timer.c:2036 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:console_flush_all+0x883/0xcf0 arch/x86/include/asm/irqflags.h:-1 Code: ed 01 00 00 e8 be 8b 1b 00 4d 85 ff 48 8b 5c 24 38 75 07 e8 af 8b 1b 00 eb 06 e8 a8 8b 1b 00 fb 49 bf 00 00 00 00 00 fc ff df <48> 8b 44 24 58 42 0f b6 04 38 84 c0 0f 85 2f 02 00 00 80 3b 01 0f RSP: 0018:ffffc90004d56e60 EFLAGS: 00000287 RAX: ffffffff816c4838 RBX: ffffc90004d56fdf RCX: 0000000000100000 RDX: ffffc90017318000 RSI: 0000000000017880 RDI: 0000000000017881 RBP: ffffc90004d56fb0 R08: ffffffff92223507 R09: 1ffffffff24446a0 R10: dffffc0000000000 R11: fffffbfff24446a1 R12: ffffffff8e8c22a0 R13: 1ffffffff1bf975c R14: ffffffff8e8c22f8 R15: dffffc0000000000 console_unlock+0xad/0x350 kernel/printk/printk.c:3069 vprintk_emit+0x497/0x610 kernel/printk/printk.c:2341 dev_vprintk_emit+0x339/0x3f0 drivers/base/core.c:5038 dev_printk_emit+0xef/0x140 drivers/base/core.c:5049 _dev_notice+0x11f/0x170 drivers/base/core.c:5106 usb_parse_endpoint drivers/usb/core/config.c:480 [inline] usb_parse_interface drivers/usb/core/config.c:607 [inline] usb_parse_configuration drivers/usb/core/config.c:820 [inline] usb_get_configuration+0x2f83/0x5300 drivers/usb/core/config.c:973 usb_enumerate_device drivers/usb/core/hub.c:2502 [inline] usb_new_device+0x136/0x1550 drivers/usb/core/hub.c:2640 hub_port_connect drivers/usb/core/hub.c:5539 [inline] hub_port_connect_change drivers/usb/core/hub.c:5679 [inline] port_event drivers/usb/core/hub.c:5843 [inline] hub_event+0x29d5/0x4a80 drivers/usb/core/hub.c:5925 process_one_work kernel/workqueue.c:2657 [inline] process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 ODEBUG: object ffffc900000079c0 is NOT on stack ffffc90004d50000, but annotated. ------------[ cut here ]------------ WARNING: CPU: 0 PID: 12572 at lib/debugobjects.c:558 debug_object_is_on_stack lib/debugobjects.c:-1 [inline] WARNING: CPU: 0 PID: 12572 at lib/debugobjects.c:558 lookup_object_or_alloc lib/debugobjects.c:591 [inline] WARNING: CPU: 0 PID: 12572 at lib/debugobjects.c:558 __debug_object_init+0x18d/0x450 lib/debugobjects.c:672 Modules linked in: CPU: 0 PID: 12572 Comm: kworker/0:4 Tainted: G W syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Workqueue: usb_hub_wq hub_event RIP: 0010:debug_object_is_on_stack lib/debugobjects.c:558 [inline] RIP: 0010:lookup_object_or_alloc lib/debugobjects.c:591 [inline] RIP: 0010:__debug_object_init+0x18d/0x450 lib/debugobjects.c:672 Code: 24 08 74 2f 41 ff c6 44 89 35 1f 35 2e 14 48 c7 c1 80 59 3c 8b 48 c7 c7 e0 59 3c 8b 84 c0 48 0f 45 f9 48 89 de e8 c3 7a 55 06 <0f> 0b eb 05 4c 8b 7c 24 18 4d 8d 65 10 4d 89 e6 49 c1 ee 03 41 0f RSP: 0018:ffffc90000007928 EFLAGS: 00010046 RAX: 0000000000000050 RBX: ffffc900000079c0 RCX: 6c645746eed2b500 RDX: 0000000000000100 RSI: 0000000000000102 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffff8880b8c28c53 R09: 1ffff1101718518a R10: dffffc0000000000 R11: ffffed101718518b R12: ffff88807ccebc20 R13: ffff88802dd2eb98 R14: 0000000000000001 R15: ffffffff8aebe440 FS: 0000000000000000(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff052becc40 CR3: 000000009e9ca000 CR4: 00000000003506f0 Call Trace: __synchronize_srcu+0x2ae/0x3d0 kernel/rcu/srcutree.c:1384 wakeup_source_remove drivers/base/power/wakeup.c:198 [inline] wakeup_source_unregister+0x116/0x190 drivers/base/power/wakeup.c:242 mmc_host_classdev_release+0x47/0x100 drivers/mmc/core/host.c:77 device_release+0xbc/0x1e0 drivers/base/core.c:-1 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x21b/0x450 lib/kobject.c:737 call_timer_fn+0x189/0x540 kernel/time/timer.c:1701 expire_timers kernel/time/timer.c:1752 [inline] __run_timers+0x570/0x810 kernel/time/timer.c:2023 run_timer_softirq+0x67/0xf0 kernel/time/timer.c:2036 handle_softirqs+0x27d/0x820 kernel/softirq.c:578 __do_softirq kernel/softirq.c:612 [inline] invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xd3/0x190 kernel/softirq.c:661 irq_exit_rcu+0x9/0x20 kernel/softirq.c:673 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687 RIP: 0010:console_flush_all+0x883/0xcf0 arch/x86/include/asm/irqflags.h:-1 Code: ed 01 00 00 e8 be 8b 1b 00 4d 85 ff 48 8b 5c 24 38 75 07 e8 af 8b 1b 00 eb 06 e8 a8 8b 1b 00 fb 49 bf 00 00 00 00 00 fc ff df <48> 8b 44 24 58 42 0f b6 04 38 84 c0 0f 85 2f 02 00 00 80 3b 01 0f RSP: 0018:ffffc90004d56e60 EFLAGS: 00000287 RAX: ffffffff816c4838 RBX: ffffc90004d56fdf RCX: 0000000000100000 RDX: ffffc90017318000 RSI: 0000000000017880 RDI: 0000000000017881 RBP: ffffc90004d56fb0 R08: ffffffff92223507 R09: 1ffffffff24446a0 R10: dffffc0000000000 R11: fffffbfff24446a1 R12: ffffffff8e8c22a0 R13: 1ffffffff1bf975c R14: ffffffff8e8c22f8 R15: dffffc0000000000 console_unlock+0xad/0x350 kernel/printk/printk.c:3069 vprintk_emit+0x497/0x610 kernel/printk/printk.c:2341 dev_vprintk_emit+0x339/0x3f0 drivers/base/core.c:5038 dev_printk_emit+0xef/0x140 drivers/base/core.c:5049 _dev_notice+0x11f/0x170 drivers/base/core.c:5106 usb_parse_endpoint drivers/usb/core/config.c:480 [inline] usb_parse_interface drivers/usb/core/config.c:607 [inline] usb_parse_configuration drivers/usb/core/config.c:820 [inline] usb_get_configuration+0x2f83/0x5300 drivers/usb/core/config.c:973 usb_enumerate_device drivers/usb/core/hub.c:2502 [inline] usb_new_device+0x136/0x1550 drivers/usb/core/hub.c:2640 hub_port_connect drivers/usb/core/hub.c:5539 [inline] hub_port_connect_change drivers/usb/core/hub.c:5679 [inline] port_event drivers/usb/core/hub.c:5843 [inline] hub_event+0x29d5/0x4a80 drivers/usb/core/hub.c:5925 process_one_work kernel/workqueue.c:2657 [inline] process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815 kthread+0x2fa/0x390 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293 ---------------- Code disassembly (best guess): 0: ed in (%dx),%eax 1: 01 00 add %eax,(%rax) 3: 00 e8 add %ch,%al 5: be 8b 1b 00 4d mov $0x4d001b8b,%esi a: 85 ff test %edi,%edi c: 48 8b 5c 24 38 mov 0x38(%rsp),%rbx 11: 75 07 jne 0x1a 13: e8 af 8b 1b 00 call 0x1b8bc7 18: eb 06 jmp 0x20 1a: e8 a8 8b 1b 00 call 0x1b8bc7 1f: fb sti 20: 49 bf 00 00 00 00 00 movabs $0xdffffc0000000000,%r15 27: fc ff df * 2a: 48 8b 44 24 58 mov 0x58(%rsp),%rax <-- trapping instruction 2f: 42 0f b6 04 38 movzbl (%rax,%r15,1),%eax 34: 84 c0 test %al,%al 36: 0f 85 2f 02 00 00 jne 0x26b 3c: 80 3b 01 cmpb $0x1,(%rbx) 3f: 0f .byte 0xf