BUG: sleeping function called from invalid context at block/blk-sysfs.c:766 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1150, name: kworker/0:3 preempt_count: 101, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] delay_tsc+0x38/0xb0 arch/x86/lib/delay.c:79 CPU: 0 PID: 1150 Comm: kworker/0:3 Tainted: G W 5.17.0-syzkaller-13573-g8e9d0d7a76c5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: rcu_gp process_srcu Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9733 blk_release_queue+0x1f/0x320 block/blk-sysfs.c:766 kobject_cleanup lib/kobject.c:705 [inline] kobject_release lib/kobject.c:736 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x1c8/0x540 lib/kobject.c:753 blkg_free.part.0+0x112/0x1f0 block/blk-cgroup.c:86 blkg_free block/blk-cgroup.c:78 [inline] __blkg_release+0x105/0x160 block/blk-cgroup.c:102 rcu_do_batch kernel/rcu/tree.c:2535 [inline] rcu_core+0x7b1/0x1880 kernel/rcu/tree.c:2786 __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:645 RIP: 0010:rdtsc_ordered arch/x86/include/asm/msr.h:224 [inline] RIP: 0010:delay_tsc+0x45/0xb0 arch/x86/lib/delay.c:72 Code: 0f 01 f9 66 90 48 c1 e2 20 48 09 c2 48 89 d5 eb 16 f3 90 bf 01 00 00 00 e8 38 e5 3b fd e8 03 b5 49 05 44 39 e0 75 36 0f 01 f9 <66> 90 48 c1 e2 20 48 89 d3 48 09 c3 48 89 d8 48 29 e8 4c 39 e8 73 RSP: 0018:ffffc900050cfba0 EFLAGS: 00000246 RAX: 00000000a1a50c4e RBX: 00000077a1a50bd2 RCX: 0000000000000000 RDX: 0000000000000077 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 00000077a1a506e0 R08: 0000000000000008 R09: ffffc900050cfb77 R10: ffffffff8410f504 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000002af9 R14: ffffed100379339a R15: 0000000000000001 try_check_zero+0x222/0x420 kernel/rcu/srcutree.c:702 srcu_advance_state kernel/rcu/srcutree.c:1227 [inline] process_srcu+0x2f2/0xe90 kernel/rcu/srcutree.c:1325 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 ---------------- Code disassembly (best guess): 0: 0f 01 f9 rdtscp 3: 66 90 xchg %ax,%ax 5: 48 c1 e2 20 shl $0x20,%rdx 9: 48 09 c2 or %rax,%rdx c: 48 89 d5 mov %rdx,%rbp f: eb 16 jmp 0x27 11: f3 90 pause 13: bf 01 00 00 00 mov $0x1,%edi 18: e8 38 e5 3b fd callq 0xfd3be555 1d: e8 03 b5 49 05 callq 0x549b525 22: 44 39 e0 cmp %r12d,%eax 25: 75 36 jne 0x5d 27: 0f 01 f9 rdtscp * 2a: 66 90 xchg %ax,%ax <-- trapping instruction 2c: 48 c1 e2 20 shl $0x20,%rdx 30: 48 89 d3 mov %rdx,%rbx 33: 48 09 c3 or %rax,%rbx 36: 48 89 d8 mov %rbx,%rax 39: 48 29 e8 sub %rbp,%rax 3c: 4c 39 e8 cmp %r13,%rax 3f: 73 .byte 0x73