------------[ cut here ]------------ do not call blocking ops when !TASK_RUNNING; state=1 set at [] smpboot_thread_fn+0xc0/0x9d0 kernel/smpboot.c:132 WARNING: CPU: 0 PID: 15 at kernel/sched/core.c:9660 __might_sleep+0xb0/0xe0 kernel/sched/core.c:9656 Modules linked in: CPU: 0 PID: 15 Comm: ksoftirqd/0 Tainted: G W 5.17.0-syzkaller-12882-g1930a6e739c4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__might_sleep+0xb0/0xe0 kernel/sched/core.c:9656 Code: b0 0c 01 42 80 3c 23 00 74 08 48 89 ef e8 38 cf 7a 00 48 8b 4d 00 48 c7 c7 80 b6 8e 8a 44 89 ee 48 89 ca 31 c0 e8 50 b2 f2 ff <0f> 0b eb b7 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 72 ff ff ff 48 89 RSP: 0018:ffffc90000007b38 EFLAGS: 00010246 RAX: 88a916af58500a00 RBX: 1ffff11027fd9a1e RCX: ffff88813fecba00 RDX: 0000000000000101 RSI: 0000000000000101 RDI: 0000000000000000 RBP: ffff88813fecd0f0 R08: ffffffff816b4962 R09: fffff52000000eb9 R10: fffff52000000eb9 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000000000001 R14: 00000000000002fe R15: ffffffff8c6b4ce2 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d921000 CR3: 0000000034341000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 00000000e08e0077 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: blk_release_queue+0x2e/0x2a0 block/blk-sysfs.c:766 kobject_cleanup+0x1c0/0x280 lib/kobject.c:705 blkg_free+0x2d0/0x320 block/blk-cgroup.c:86 rcu_do_batch kernel/rcu/tree.c:2535 [inline] rcu_core+0xa85/0x1700 kernel/rcu/tree.c:2786 __do_softirq+0x392/0x7a3 kernel/softirq.c:558 __irq_exit_rcu+0xec/0x170 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:85 [inline] RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline] RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline] RIP: 0010:kasan_check_range+0x84/0x2f0 mm/kasan/generic.c:189 Code: df 4d 01 ea 4d 89 d6 4d 29 ce 49 83 fe 10 7f 30 4d 85 f6 0f 84 ae 01 00 00 4c 89 cb 4c 29 d3 0f 1f 80 00 00 00 00 45 0f b6 19 <45> 84 db 0f 85 f3 01 00 00 49 ff c1 48 ff c3 75 eb e9 87 01 00 00 RSP: 0018:ffffc90000147e20 EFLAGS: 00000297 RAX: 1ffff11027fd9801 RBX: ffffffffffffffff RCX: ffffffff8158d835 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88813fef8000 RBP: 0000000004208040 R08: dffffc0000000000 R09: ffffed1027fdf000 R10: ffffed1027fdf001 R11: 0000000000000000 R12: 1ffff11027fdf000 R13: dffffc0000000001 R14: 0000000000000001 R15: dffffc0000000000 instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] kthread_should_stop+0x85/0xe0 kernel/kthread.c:157 smpboot_thread_fn+0x104/0x9d0 kernel/smpboot.c:114 kthread+0x2a3/0x2d0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 4d 01 ea add %r13,%r10 3: 4d 89 d6 mov %r10,%r14 6: 4d 29 ce sub %r9,%r14 9: 49 83 fe 10 cmp $0x10,%r14 d: 7f 30 jg 0x3f f: 4d 85 f6 test %r14,%r14 12: 0f 84 ae 01 00 00 je 0x1c6 18: 4c 89 cb mov %r9,%rbx 1b: 4c 29 d3 sub %r10,%rbx 1e: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 25: 45 0f b6 19 movzbl (%r9),%r11d * 29: 45 84 db test %r11b,%r11b <-- trapping instruction 2c: 0f 85 f3 01 00 00 jne 0x225 32: 49 ff c1 inc %r9 35: 48 ff c3 inc %rbx 38: 75 eb jne 0x25 3a: e9 87 01 00 00 jmpq 0x1c6