BUG: sleeping function called from invalid context at block/blk-sysfs.c:767 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 13, name: ksoftirqd/0 preempt_count: 100, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:396 [inline] [] __do_softirq+0xe1/0x9c2 kernel/softirq.c:534 CPU: 0 PID: 13 Comm: ksoftirqd/0 Tainted: G W 5.17.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:106 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9573 blk_release_queue+0x21/0x2e0 block/blk-sysfs.c:767 kobject_cleanup lib/kobject.c:705 [inline] kobject_release lib/kobject.c:736 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x139/0x410 lib/kobject.c:753 blkg_free.part.0+0xde/0x1b0 block/blk-cgroup.c:86 rcu_do_batch kernel/rcu/tree.c:2527 [inline] rcu_core+0x7b8/0x1540 kernel/rcu/tree.c:2778 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 run_ksoftirqd kernel/softirq.c:921 [inline] run_ksoftirqd+0x2d/0x60 kernel/softirq.c:913 smpboot_thread_fn+0x548/0x8c0 kernel/smpboot.c:164 kthread+0x299/0x340 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 BUG: sleeping function called from invalid context at block/blk-sysfs.c:767 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 preempt_count: 101, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] schedule_preempt_disabled+0x19/0x20 kernel/sched/core.c:6427 CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 5.17.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:106 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9573 blk_release_queue+0x21/0x2e0 block/blk-sysfs.c:767 kobject_cleanup lib/kobject.c:705 [inline] kobject_release lib/kobject.c:736 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x139/0x410 lib/kobject.c:753 blkg_free.part.0+0xde/0x1b0 block/blk-cgroup.c:86 rcu_do_batch kernel/rcu/tree.c:2527 [inline] rcu_core+0x7b8/0x1540 kernel/rcu/tree.c:2778 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:cpuidle_enter_state+0x281/0xb40 drivers/cpuidle/cpuidle.c:271 Code: f2 06 00 00 49 8d 7d 01 48 ba 00 00 00 00 00 fc ff df 48 c1 e7 06 48 01 df 48 89 f9 48 c1 e9 03 80 3c 11 00 0f 85 ba 06 00 00 <4d> 89 ef 49 c1 e7 06 49 01 df 49 83 fd 09 49 8b 57 40 0f 87 7c 06 RSP: 0018:ffffffff8aa07de0 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff8881463f8800 RCX: 1ffff11028c7f110 RDX: dffffc0000000000 RSI: ffffffff8942c2e0 RDI: ffff8881463f8880 RBP: ffffffff8b73d640 R08: 0000000000000000 R09: 0000000000000000 R10: fffffbfff194ac02 R11: 0000000000000001 R12: 0000000000103f3c R13: 0000000000000001 R14: 0000000000000001 R15: ffff8881463f8804 cpuidle_enter+0x45/0xa0 drivers/cpuidle/cpuidle.c:351 call_cpuidle kernel/sched/idle.c:158 [inline] cpuidle_idle_call kernel/sched/idle.c:239 [inline] do_idle+0x3e8/0x590 kernel/sched/idle.c:306 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:403 start_kernel+0x33e/0x35c init/main.c:1138 secondary_startup_64_no_verify+0xc3/0xcb BUG: sleeping function called from invalid context at block/blk-sysfs.c:767 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 658, name: kworker/u4:4 preempt_count: 101, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] on_each_cpu_cond_mask+0x2b/0x70 kernel/smp.c:1134 CPU: 0 PID: 658 Comm: kworker/u4:4 Tainted: G W 5.17.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Workqueue: events_unbound toggle_allocation_gate Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:106 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9573 blk_release_queue+0x21/0x2e0 block/blk-sysfs.c:767 kobject_cleanup lib/kobject.c:705 [inline] kobject_release lib/kobject.c:736 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x139/0x410 lib/kobject.c:753 blkg_free.part.0+0xde/0x1b0 block/blk-cgroup.c:86 rcu_do_batch kernel/rcu/tree.c:2527 [inline] rcu_core+0x7b8/0x1540 kernel/rcu/tree.c:2778 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:_flat_send_IPI_mask+0x2d/0x60 arch/x86/kernel/apic/apic_flat_64.c:58 Code: ec 10 9c 58 fa 25 00 02 00 00 48 89 c3 75 1d ba 00 08 00 00 e8 e4 03 ff ff 9c 58 f6 c4 02 75 32 48 85 db 74 01 fb 48 83 c4 10 <5b> c3 89 74 24 0c 48 89 3c 24 e8 04 8d 44 00 8b 74 24 0c ba 00 08 RSP: 0018:ffffc9000301f9c0 EFLAGS: 00000286 RAX: 0000000000000046 RBX: 0000000000000200 RCX: 1ffffffff194b27d RDX: 0000000000000000 RSI: 00000000000000fb RDI: ffffffff812d5383 RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000 R10: ffffed10173875aa R11: 0000000000000000 R12: 0000000000000001 R13: ffff8880b9d3e9c0 R14: 0000000000000000 R15: ffff8880b9c3ad50 smp_call_function_many_cond+0xab0/0xd30 kernel/smp.c:949 on_each_cpu_cond_mask+0x3f/0x70 kernel/smp.c:1135 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1112 [inline] text_poke_bp_batch+0x440/0x520 arch/x86/kernel/alternative.c:1369 text_poke_flush arch/x86/kernel/alternative.c:1470 [inline] text_poke_flush arch/x86/kernel/alternative.c:1467 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1477 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 static_key_disable_cpuslocked+0x100/0x160 kernel/jump_label.c:207 static_key_disable+0x11/0x20 kernel/jump_label.c:215 toggle_allocation_gate mm/kfence/core.c:748 [inline] toggle_allocation_gate+0x154/0x310 mm/kfence/core.c:726 process_one_work+0x879/0x1410 kernel/workqueue.c:2307 worker_thread+0x5a0/0xf60 kernel/workqueue.c:2454 kthread+0x299/0x340 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 BUG: sleeping function called from invalid context at block/blk-sysfs.c:767 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 preempt_count: 101, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] schedule_preempt_disabled+0x19/0x20 kernel/sched/core.c:6427 CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 5.17.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:106 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9573 blk_release_queue+0x21/0x2e0 block/blk-sysfs.c:767 kobject_cleanup lib/kobject.c:705 [inline] kobject_release lib/kobject.c:736 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x139/0x410 lib/kobject.c:753 blkg_free.part.0+0xde/0x1b0 block/blk-cgroup.c:86 rcu_do_batch kernel/rcu/tree.c:2527 [inline] rcu_core+0x7b8/0x1540 kernel/rcu/tree.c:2778 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline] RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline] RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:111 [inline] RIP: 0010:acpi_idle_do_entry+0x15e/0x1c0 drivers/acpi/processor_idle.c:551 Code: 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 75 6a 48 8b 45 00 a8 08 75 c9 e8 cd 8e eb f8 eb 07 0f 00 2d 24 c8 c6 00 fb f4 <9c> 58 fa f6 c4 02 74 b1 5d e9 44 8b eb f8 48 89 ef 5d e9 ab f9 ff RSP: 0018:ffffffff8aa07d88 EFLAGS: 00000246 RAX: 0000000000000007 RBX: ffff888014d9f065 RCX: 1ffffffff194b27d RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff88865513 RBP: ffffffff8aabb480 R08: 0000000000000000 R09: 0000000000000000 ---------------- Code disassembly (best guess): 0: f2 06 repnz (bad) 2: 00 00 add %al,(%rax) 4: 49 8d 7d 01 lea 0x1(%r13),%rdi 8: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx f: fc ff df 12: 48 c1 e7 06 shl $0x6,%rdi 16: 48 01 df add %rbx,%rdi 19: 48 89 f9 mov %rdi,%rcx 1c: 48 c1 e9 03 shr $0x3,%rcx 20: 80 3c 11 00 cmpb $0x0,(%rcx,%rdx,1) 24: 0f 85 ba 06 00 00 jne 0x6e4 * 2a: 4d 89 ef mov %r13,%r15 <-- trapping instruction 2d: 49 c1 e7 06 shl $0x6,%r15 31: 49 01 df add %rbx,%r15 34: 49 83 fd 09 cmp $0x9,%r13 38: 49 8b 57 40 mov 0x40(%r15),%rdx 3c: 0f .byte 0xf 3d: 87 .byte 0x87 3e: 7c 06 jl 0x46