------------[ 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: 0 PID: 3633 at kernel/sched/core.c:9656 __might_sleep+0x105/0x150 kernel/sched/core.c:9656 Modules linked in: CPU: 0 PID: 3633 Comm: syz-executor.5 Tainted: G W 5.17.0-syzkaller-13430-g787af64d05cd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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 00 df cb 89 e8 92 38 c8 07 <0f> 0b e9 75 ff ff ff e8 3f 2f 73 00 e9 26 ff ff ff 89 34 24 e8 42 RSP: 0018:ffffc90000007d68 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff888019669d00 RCX: 0000000000000000 RDX: ffff888019669d00 RSI: ffffffff815fcd18 RDI: fffff52000000f9f RBP: ffffffff8a247e40 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff815f76ee R11: 0000000000000000 R12: 00000000000002fe R13: 0000000000000000 R14: ffffffff8a248240 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0063) knlGS:0000000056723380 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000033123000 CR3: 0000000022177000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 000000000000d0eb DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 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 9a ac fc f7 48 89 ef e8 e2 2b fd 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 a3 44 f0 f7 65 8b 05 3c bd a1 76 85 c0 74 0a 5b 5d c3 e8 d0 31 RSP: 0018:ffffc9000400fc58 EFLAGS: 00000206 RAX: 0000000000000046 RBX: 0000000000000200 RCX: 1ffffffff1b6d5ed RDX: 0000000000000000 RSI: ffffffff817ee4b1 RDI: 0000000000000001 RBP: ffff8880b9c2a600 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff817ee498 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000000000001 R14: ffffc9000400fdb8 R15: ffff888019669d00 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] __ia32_sys_clock_nanosleep+0x2f4/0x430 kernel/time/posix-timers.c:1245 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7f9e549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f748fc60 EFLAGS: 00000282 ORIG_RAX: 0000000000000197 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000000000 RDX: 00000000f748fcdc RSI: 00000000f748fcec RDI: 00000000f748fcdc RBP: 00000000f748fcec R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 24 10 and $0x10,%al 2: e8 9a ac fc f7 callq 0xf7fcaca1 7: 48 89 ef mov %rbp,%rdi a: e8 e2 2b fd f7 callq 0xf7fd2bf1 f: 81 e3 00 02 00 00 and $0x200,%ebx 15: 75 25 jne 0x3c 17: 9c pushfq 18: 58 pop %rax 19: f6 c4 02 test $0x2,%ah 1c: 75 2d jne 0x4b 1e: 48 85 db test %rbx,%rbx 21: 74 01 je 0x24 23: fb sti 24: bf 01 00 00 00 mov $0x1,%edi * 29: e8 a3 44 f0 f7 callq 0xf7f044d1 <-- trapping instruction 2e: 65 8b 05 3c bd a1 76 mov %gs:0x76a1bd3c(%rip),%eax # 0x76a1bd71 35: 85 c0 test %eax,%eax 37: 74 0a je 0x43 39: 5b pop %rbx 3a: 5d pop %rbp 3b: c3 retq 3c: e8 .byte 0xe8 3d: d0 31 shlb (%rcx)