BUG: sleeping function called from invalid context at kernel/workqueue.c:4487
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6058, name: syz.5.48
preempt_count: 101, expected: 0
RCU nest depth: 0, expected: 0
1 lock held by syz.5.48/6058:
#0: ffffc90000a08cc0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd4/0x5e0 kernel/time/timer.c:1745
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 1 UID: 0 PID: 6058 Comm: syz.5.48 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
__might_resched+0x378/0x4d0 kernel/sched/core.c:9197
__cancel_work_sync+0x6d/0x110 kernel/workqueue.c:4487
mmc_free_host+0x19/0x30 drivers/mmc/core/host.c:700
call_timer_fn+0x192/0x5e0 kernel/time/timer.c:1748
expire_timers kernel/time/timer.c:1799 [inline]
__run_timers kernel/time/timer.c:2374 [inline]
__run_timer_base+0x652/0x8b0 kernel/time/timer.c:2386
run_timer_base kernel/time/timer.c:2395 [inline]
run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2405
handle_softirqs+0x225/0x840 kernel/softirq.c:622
__do_softirq kernel/softirq.c:656 [inline]
invoke_softirq kernel/softirq.c:496 [inline]
__irq_exit_rcu+0xca/0x220 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+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1062
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:179 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:198
Code: f7 e8 8d 7d cf f5 f7 c3 00 02 00 00 74 05 e8 40 5e fb f5 9c 58 a9 00 02 00 00 75 27 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 24 91 c0 f5 65 8b 05 1d 61 99 07 85 c0 74 18 5b 41 5e e9 ec 51
RSP: 0018:ffffc90004c47c70 EFLAGS: 00000206
RAX: 0000000000000002 RBX: 0000000000000282 RCX: 0000000080000001
RDX: 0000000000000000 RSI: ffffffff8e22f174 RDI: 0000000000000001
RBP: ffffffff9aa0df30 R08: ffffffff90579d37 R09: 1ffffffff20af3a6
R10: dffffc0000000000 R11: fffffbfff20af3a7 R12: 1ffff1100f23549b
R13: dead000000000122 R14: ffffffff9aa0df38 R15: ffff8880791aa4d0
debug_object_free+0x294/0x340 lib/debugobjects.c:1038
destroy_hrtimer_on_stack kernel/time/hrtimer.c:500 [inline]
hrtimer_nanosleep+0x2cc/0x3a0 kernel/time/hrtimer.c:2460
__do_sys_clock_nanosleep kernel/time/posix-timers.c:1406 [inline]
__se_sys_clock_nanosleep+0x35b/0x3b0 kernel/time/posix-timers.c:1383
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f21f915e84e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007ffc62c0fb18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e6
RAX: ffffffffffffffda RBX: 000055557ad7f500 RCX: 00007f21f915e84e
RDX: 00007ffc62c0fb70 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f21f9427da0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000019c30
R13: 00007f21f9425fac R14: 0000000000019930 R15: 00007ffc62c0fca0
ODEBUG: object ffffc90000a08a80 is NOT on stack ffffc90004c40000, but annotated.
======================================================
----------------
Code disassembly (best guess):
0: f7 e8 imul %eax
2: 8d 7d cf lea -0x31(%rbp),%edi
5: f5 cmc
6: f7 c3 00 02 00 00 test $0x200,%ebx
c: 74 05 je 0x13
e: e8 40 5e fb f5 call 0xf5fb5e53
13: 9c pushf
14: 58 pop %rax
15: a9 00 02 00 00 test $0x200,%eax
1a: 75 27 jne 0x43
1c: f7 c3 00 02 00 00 test $0x200,%ebx
22: 74 01 je 0x25
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 24 91 c0 f5 call 0xf5c09153 <-- trapping instruction
2f: 65 8b 05 1d 61 99 07 mov %gs:0x799611d(%rip),%eax # 0x7996153
36: 85 c0 test %eax,%eax
38: 74 18 je 0x52
3a: 5b pop %rbx
3b: 41 5e pop %r14
3d: e9 .byte 0xe9
3e: ec in (%dx),%al
3f: 51 push %rcx