B
BUG: sleeping function called from invalid context at kernel/workqueue.c:4552
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 240, name: kworker/u9:4
preempt_count: 100, expected: 0
RCU nest depth: 0, expected: 0
locks held by kworker/u9:4/240: 6, last CPU#1:
 #0: ffff8881000ac140 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #1: ffffc90003647c40 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630
 #2: ffffffff8ebe98f0 (cpu_hotplug_lock){++++}-{0:0}, at: static_key_enable+0x12/0x20
 #3: ffffffff8ee38180 (jump_label_mutex){+.+.}-{4:4}, at: static_key_enable_cpuslocked+0xcb/0x240
 #4: ffffffff8ebff620 (text_mutex){+.+.}-{4:4}, at: arch_jump_label_transform_apply+0x17/0x30
 #5: ffffc90000a18cc0 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x5f0
Preemption disabled at:
[<ffffffff8188f04b>] handle_softirqs+0xab/0x860
CPU: 1 UID: 0 PID: 240 Comm: kworker/u9:4 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: events_unbound toggle_allocation_gate
Call Trace:
 <IRQ>
 dump_stack_lvl+0xe8/0x150
 __might_resched+0x36a/0x4c0
 __cancel_work_sync+0x6d/0x110
 mmc_free_host+0x19/0x30
 call_timer_fn+0x18d/0x5f0
 __run_timer_base+0x652/0x8b0
 run_timer_softirq+0xb7/0x170
 handle_softirqs+0x226/0x860
 __irq_exit_rcu+0xcb/0x220
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:smp_call_function_many_cond+0x1132/0x1500
Code: 78 44 8b 2b 44 89 ee 83 e6 01 31 ff e8 47 46 0c 00 41 83 e5 01 49 bd 00 00 00 00 00 fc ff df 75 07 e8 32 41 0c 00 eb 35 f3 90 <43> 0f b6 04 2c 84 c0 75 0f f7 03 01 00 00 00 74 1d e8 18 41 0c 00
RSP: 0018:ffffc90003647720 EFLAGS: 00000293
RAX: ffffffff81bb7598 RBX: ffff888121043708 RCX: ffff888104fc1e00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90003647870 R08: ffffffff907a147f R09: 1ffffffff20f428f
R10: dffffc0000000000 R11: fffffbfff20f4290 R12: 1ffff110242086e1
R13: dffffc0000000000 R14: 1ffff110209f8673 R15: 0000000000000000
 smp_text_poke_batch_finish+0xe8a/0x1110
 arch_jump_label_transform_apply+0x1c/0x30
 static_key_enable_cpuslocked+0x128/0x240
 static_key_enable+0x1a/0x20
 toggle_allocation_gate+0xab/0x290
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
ODEBUG: object ffffc90000a18a80 is NOT on stack ffffc90003640000, but annotated.
------------[ cut here ]------------
1
WARNING: lib/debugobjects.c:672 at __debug_object_init+0x2c4/0x3c0, CPU#1: kworker/u9:4/240
Modules linked in:
CPU: 1 UID: 0 PID: 240 Comm: kworker/u9:4 Tainted: G        W           syzkaller #0 PREEMPT(full) 
Tainted: [W]=WARN
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:__debug_object_init+0x2c4/0x3c0
Code: cc cc cc 41 ff c7 44 89 3d 09 88 e8 15 48 c7 c1 80 9d 6d 8c 48 c7 c7 e0 9d 6d 8c 84 c0 48 0f 45 f9 48 89 de e8 4d 1c 3e fc 90 <0f> 0b 90 e9 c0 fe ff ff e8 4f 1c 00 00 8b 05 21 f1 6e 0a 3b 05 1f
RSP: 0018:ffffc90000a189b8 EFLAGS: 00010046
RAX: 0000000000000050 RBX: ffffc90000a18a80 RCX: 99b16c0643b2f000
RDX: 0000000000000100 RSI: 0000000000000100 RDI: 0000000000000000
RBP: ffff888104fc1e20 R08: 0000000000000100 R09: 0000000000080000
R10: 0000000000008000 R11: ffffffff8ec362b8 R12: 1ffff9200014314c
R13: ffff88816d4c4b60 R14: dffffc0000000000 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8882a8cda000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000297000 CR3: 000000000eb48000 CR4: 00000000000006f0
Call Trace:
 <IRQ>
 __synchronize_srcu+0x1d5/0x2f0
 wakeup_source_unregister+0x129/0x3f0
 mmc_host_classdev_release+0x47/0x100
 device_release+0xc4/0x1f0
 kobject_put+0x222/0x550
 call_timer_fn+0x18d/0x5f0
 __run_timer_base+0x652/0x8b0
 run_timer_softirq+0xb7/0x170
 handle_softirqs+0x226/0x860
 __irq_exit_rcu+0xcb/0x220
 irq_exit_rcu+0x9/0x30
 sysvec_apic_timer_interrupt+0xa6/0xc0
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20
RIP: 0010:smp_call_function_many_cond+0x1132/0x1500
Code: 78 44 8b 2b 44 89 ee 83 e6 01 31 ff e8 47 46 0c 00 41 83 e5 01 49 bd 00 00 00 00 00 fc ff df 75 07 e8 32 41 0c 00 eb 35 f3 90 <43> 0f b6 04 2c 84 c0 75 0f f7 03 01 00 00 00 74 1d e8 18 41 0c 00
RSP: 0018:ffffc90003647720 EFLAGS: 00000293
RAX: ffffffff81bb7598 RBX: ffff888121043708 RCX: ffff888104fc1e00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90003647870 R08: ffffffff907a147f R09: 1ffffffff20f428f
R10: dffffc0000000000 R11: fffffbfff20f4290 R12: 1ffff110242086e1
R13: dffffc0000000000 R14: 1ffff110209f8673 R15: 0000000000000000
 smp_text_poke_batch_finish+0xe8a/0x1110
 arch_jump_label_transform_apply+0x1c/0x30
 static_key_enable_cpuslocked+0x128/0x240
 static_key_enable+0x1a/0x20
 toggle_allocation_gate+0xab/0x290
 process_scheduled_works+0xc3d/0x1630
 worker_thread+0xa47/0xfb0
 kthread+0x38b/0x480
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
