BUG: sleeping function called from invalid context at kernel/workqueue.c:3414
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 16357, name: syz.6.3259
preempt_count: 101, expected: 0
RCU nest depth: 0, expected: 0
2 locks held by syz.6.3259/16357:
#0: ffff88805daf1b30 (sk_lock-AF_INET6){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1780 [inline]
#0: ffff88805daf1b30 (sk_lock-AF_INET6){+.+.}-{0:0}, at: __inet6_bind+0x300/0xf20 net/ipv6/af_inet6.c:305
#1: ffffc90000007c80 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd2/0x540 kernel/time/timer.c:1698
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 PID: 16357 Comm: syz.6.3259 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
__might_resched+0x48d/0x5f0 kernel/sched/core.c:10212
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/0x30 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+0xfa/0x1a0 kernel/softirq.c:479
__local_bh_enable_ip+0x184/0x1c0 kernel/softirq.c:406
spin_unlock_bh include/linux/spinlock.h:396 [inline]
inet_csk_get_port+0x1345/0x1890 net/ipv4/inet_connection_sock.c:595
__inet6_bind+0x6b6/0xf20 net/ipv6/af_inet6.c:405
__sys_bind+0x2f0/0x3f0 net/socket.c:1856
__do_sys_bind net/socket.c:1867 [inline]
__se_sys_bind net/socket.c:1865 [inline]
__x64_sys_bind+0x7a/0x90 net/socket.c:1865
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
RIP: 0033:0x7f2bb639e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2bb731f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 00007f2bb6625fa0 RCX: 00007f2bb639e159
RDX: 000000000000004a RSI: 0000200000000280 RDI: 0000000000000003
RBP: 00007f2bb643506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2bb6626038 R14: 00007f2bb6625fa0 R15: 00007fff592c9438
================================
WARNING: inconsistent lock state
syzkaller #0 Tainted: G W
--------------------------------
inconsistent {SOFTIRQ-ON-R} -> {IN-SOFTIRQ-W} usage.
syz.6.3259/16357 [HC0[0]:SC1[1]:HE1:SE0] takes:
ffffffff8da25110 (wakeup_srcu){.+-+}-{0:0}, at: srcu_lock_sync include/linux/srcu.h:128 [inline]
ffffffff8da25110 (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:5756
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:2012 [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: 408
hardirqs last enabled at (408): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline]
hardirqs last enabled at (408): [] _raw_spin_unlock_irqrestore+0x86/0x120 kernel/locking/spinlock.c:194
hardirqs last disabled at (407): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline]
hardirqs last disabled at (407): [] _raw_spin_lock_irqsave+0x8f/0x100 kernel/locking/spinlock.c:162
softirqs last enabled at (168): [] spin_unlock_bh include/linux/spinlock.h:396 [inline]
softirqs last enabled at (168): [] inet_csk_get_port+0x1345/0x1890 net/ipv4/inet_connection_sock.c:595
softirqs last disabled at (169): [] do_softirq+0xfa/0x1a0 kernel/softirq.c:479
other info that might help us debug this:
Possible unsafe locking scenario:
CPU0
----
lock(wakeup_srcu);
lock(wakeup_srcu);
*** DEADLOCK ***
2 locks held by syz.6.3259/16357:
#0: ffff88805daf1b30 (sk_lock-AF_INET6){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1780 [inline]
#0: ffff88805daf1b30 (sk_lock-AF_INET6){+.+.}-{0:0}, at: __inet6_bind+0x300/0xf20 net/ipv6/af_inet6.c:305
#1: ffffc90000007c80 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd2/0x540 kernel/time/timer.c:1698
stack backtrace:
CPU: 0 PID: 16357 Comm: syz.6.3259 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
valid_state+0x13b/0x1d0 kernel/locking/lockdep.c:4013
mark_lock_irq+0xd3/0x900 kernel/locking/lockdep.c:4222
mark_lock+0x208/0x320 kernel/locking/lockdep.c:4678
mark_usage kernel/locking/lockdep.c:-1 [inline]
__lock_acquire+0xcfc/0x7d80 kernel/locking/lockdep.c:5091
lock_sync+0x155/0x290 kernel/locking/lockdep.c:5803
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+0xfa/0x1a0 kernel/softirq.c:479
__local_bh_enable_ip+0x184/0x1c0 kernel/softirq.c:406
spin_unlock_bh include/linux/spinlock.h:396 [inline]
inet_csk_get_port+0x1345/0x1890 net/ipv4/inet_connection_sock.c:595
__inet6_bind+0x6b6/0xf20 net/ipv6/af_inet6.c:405
__sys_bind+0x2f0/0x3f0 net/socket.c:1856
__do_sys_bind net/socket.c:1867 [inline]
__se_sys_bind net/socket.c:1865 [inline]
__x64_sys_bind+0x7a/0x90 net/socket.c:1865
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
RIP: 0033:0x7f2bb639e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2bb731f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 00007f2bb6625fa0 RCX: 00007f2bb639e159
RDX: 000000000000004a RSI: 0000200000000280 RDI: 0000000000000003
RBP: 00007f2bb643506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2bb6626038 R14: 00007f2bb6625fa0 R15: 00007fff592c9438
BUG: sleeping function called from invalid context at kernel/rcu/srcutree.c:1381
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 16357, name: syz.6.3259
preempt_count: 101, expected: 0
RCU nest depth: 0, expected: 0
INFO: lockdep is turned off.
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 PID: 16357 Comm: syz.6.3259 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
__might_resched+0x48d/0x5f0 kernel/sched/core.c:10212
__synchronize_srcu+0x197/0x3d0 kernel/rcu/srcutree.c:1381
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+0xfa/0x1a0 kernel/softirq.c:479
__local_bh_enable_ip+0x184/0x1c0 kernel/softirq.c:406
spin_unlock_bh include/linux/spinlock.h:396 [inline]
inet_csk_get_port+0x1345/0x1890 net/ipv4/inet_connection_sock.c:595
__inet6_bind+0x6b6/0xf20 net/ipv6/af_inet6.c:405
__sys_bind+0x2f0/0x3f0 net/socket.c:1856
__do_sys_bind net/socket.c:1867 [inline]
__se_sys_bind net/socket.c:1865 [inline]
__x64_sys_bind+0x7a/0x90 net/socket.c:1865
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
RIP: 0033:0x7f2bb639e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2bb731f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 00007f2bb6625fa0 RCX: 00007f2bb639e159
RDX: 000000000000004a RSI: 0000200000000280 RDI: 0000000000000003
RBP: 00007f2bb643506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2bb6626038 R14: 00007f2bb6625fa0 R15: 00007fff592c9438
ODEBUG: object ffffc90000007a60 is NOT on stack ffffc90003360000, but annotated.
------------[ cut here ]------------
WARNING: CPU: 0 PID: 16357 at lib/debugobjects.c:558 debug_object_is_on_stack lib/debugobjects.c:-1 [inline]
WARNING: CPU: 0 PID: 16357 at lib/debugobjects.c:558 lookup_object_or_alloc lib/debugobjects.c:591 [inline]
WARNING: CPU: 0 PID: 16357 at lib/debugobjects.c:558 __debug_object_init+0x18d/0x450 lib/debugobjects.c:672
Modules linked in:
CPU: 0 PID: 16357 Comm: syz.6.3259 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
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 2f 5b 25 13 48 c7 c1 40 44 1d 8b 48 c7 c7 a0 44 1d 8b 84 c0 48 0f 45 f9 48 89 de e8 33 98 4a 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:ffffc900000079c8 EFLAGS: 00010046
RAX: 0000000000000050 RBX: ffffc90000007a60 RCX: d5e162bad734d700
RDX: 0000000000000100 RSI: 0000000000000102 RDI: 0000000000000000
RBP: dffffc0000000000 R08: ffffffff8d126383 R09: 1ffffffff1a24c70
R10: dffffc0000000000 R11: fffffbfff1a24c71 R12: ffff888027f4bc20
R13: ffff8880259707e0 R14: 0000000000000001 R15: ffffffff8acbe000
FS: 00007f2bb731f6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30223ffc CR3: 0000000049540000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000006800 DR2: 0000000000009951
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
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+0xfa/0x1a0 kernel/softirq.c:479
__local_bh_enable_ip+0x184/0x1c0 kernel/softirq.c:406
spin_unlock_bh include/linux/spinlock.h:396 [inline]
inet_csk_get_port+0x1345/0x1890 net/ipv4/inet_connection_sock.c:595
__inet6_bind+0x6b6/0xf20 net/ipv6/af_inet6.c:405
__sys_bind+0x2f0/0x3f0 net/socket.c:1856
__do_sys_bind net/socket.c:1867 [inline]
__se_sys_bind net/socket.c:1865 [inline]
__x64_sys_bind+0x7a/0x90 net/socket.c:1865
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
RIP: 0033:0x7f2bb639e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2bb731f028 EFLAGS: 00000246 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 00007f2bb6625fa0 RCX: 00007f2bb639e159
RDX: 000000000000004a RSI: 0000200000000280 RDI: 0000000000000003
RBP: 00007f2bb643506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2bb6626038 R14: 00007f2bb6625fa0 R15: 00007fff592c9438