------------[ cut here ]------------ do not call blocking ops when !TASK_RUNNING; state=1 set at [] do_nanosleep+0x167/0x690 kernel/time/hrtimer.c:2049 WARNING: CPU: 1 PID: 3692 at kernel/sched/core.c:9656 __might_sleep+0x105/0x150 kernel/sched/core.c:9656 Modules linked in: CPU: 1 PID: 3692 Comm: syz-executor.2 Not tainted 5.17.0-syzkaller-13034-gd888c83fcec7 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:__might_sleep+0x105/0x150 kernel/sched/core.c:9656 Code: 70 02 00 48 8d bb f0 16 00 00 48 89 fa 48 c1 ea 03 80 3c 02 00 75 34 48 8b 93 f0 16 00 00 48 c7 c7 e0 c8 cb 89 e8 3a 63 c9 07 <0f> 0b e9 75 ff ff ff e8 3f 92 72 00 e9 26 ff ff ff 89 34 24 e8 42 RSP: 0018:ffffc90000748d68 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff888025d56240 RCX: 0000000000000000 RDX: ffff888025d56240 RSI: ffffffff815efad8 RDI: fffff520000e919f RBP: ffffffff8a23f2c0 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff815ea4ae R11: 0000000000000000 R12: 00000000000002fe R13: 0000000000000000 R14: ffffffff8a23f6c0 R15: 0000000000000000 FS: 0000555556220400(0000) GS:ffff88802cb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f14da8adcf0 CR3: 0000000069714000 CR4: 0000000000150ee0 Call Trace: 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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x38/0x70 kernel/locking/spinlock.c:194 Code: 74 24 10 e8 ca 69 fb f7 48 89 ef e8 12 e9 fb f7 81 e3 00 02 00 00 75 25 9c 58 f6 c4 02 75 2d 48 85 db 74 01 fb bf 01 00 00 00 b3 03 ef f7 65 8b 05 ac 4c a1 76 85 c0 74 0a 5b 5d c3 e8 60 f1 RSP: 0018:ffffc900022cfc78 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000200 RCX: 1ffffffff1b6c0d1 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffff88802cb2a600 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff817e14b8 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000000000001 R14: ffffc900022cfdd8 R15: ffff888025d56240 hrtimer_start_expires include/linux/hrtimer.h:432 [inline] hrtimer_sleeper_start_expires kernel/time/hrtimer.c:1965 [inline] do_nanosleep+0x1e8/0x690 kernel/time/hrtimer.c:2041 hrtimer_nanosleep+0x1f9/0x4a0 kernel/time/hrtimer.c:2097 common_nsleep+0xa2/0xc0 kernel/time/posix-timers.c:1227 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1267 [inline] __se_sys_clock_nanosleep kernel/time/posix-timers.c:1245 [inline] __x64_sys_clock_nanosleep+0x2f4/0x430 kernel/time/posix-timers.c:1245 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fa3076add71 Code: 24 0c 89 3c 24 48 89 4c 24 18 e8 aa e7 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 8b 74 24 0c 8b 3c 24 b8 e6 00 00 00 0f 05 <44> 89 c7 48 89 04 24 e8 e3 e7 ff ff 48 8b 04 24 eb 97 66 2e 0f 1f RSP: 002b:00007ffe55e4f960 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 00000000000004d4 RCX: 00007fa3076add71 RDX: 00007ffe55e4f9a0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007ffe55e4fa2c R08: 0000000000000000 R09: 00007ffe55fec080 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032 R13: 000000000005bdb6 R14: 0000000000000005 R15: 00007ffe55e4fa90 ---------------- Code disassembly (best guess): 0: 74 24 je 0x26 2: 10 e8 adc %ch,%al 4: ca 69 fb lret $0xfb69 7: f7 48 89 ef e8 12 e9 testl $0xe912e8ef,-0x77(%rax) e: fb sti f: f7 81 e3 00 02 00 00 testl $0x9c257500,0x200e3(%rcx) 16: 75 25 9c 19: 58 pop %rax 1a: f6 c4 02 test $0x2,%ah 1d: 75 2d jne 0x4c 1f: 48 85 db test %rbx,%rbx 22: 74 01 je 0x25 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 b3 03 ef f7 callq 0xf7ef03e2 <-- trapping instruction 2f: 65 8b 05 ac 4c a1 76 mov %gs:0x76a14cac(%rip),%eax # 0x76a14ce2 36: 85 c0 test %eax,%eax 38: 74 0a je 0x44 3a: 5b pop %rbx 3b: 5d pop %rbp 3c: c3 retq 3d: e8 .byte 0xe8 3e: 60 (bad) 3f: f1 icebp