------------[ cut here ]------------ do not call blocking ops when !TASK_RUNNING; state=1 set at [] prepare_to_wait_exclusive+0x7a/0x2b0 kernel/sched/wait.c:286 WARNING: CPU: 1 PID: 4272 at kernel/sched/core.c:9689 __might_sleep+0x105/0x150 kernel/sched/core.c:9689 Modules linked in: CPU: 1 PID: 4272 Comm: syz-executor.3 Tainted: G W 5.17.0-next-20220321-syzkaller #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:9689 Code: 70 02 00 48 8d bb f8 16 00 00 48 89 fa 48 c1 ea 03 80 3c 02 00 75 34 48 8b 93 f8 16 00 00 48 c7 c7 60 dc cb 89 e8 67 74 c8 07 <0f> 0b e9 75 ff ff ff e8 4f 37 73 00 e9 26 ff ff ff 89 34 24 e8 52 RSP: 0018:ffffc900001e0d68 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88801be1ba80 RCX: 0000000000000000 RDX: ffff88801be1ba80 RSI: ffffffff815fc918 RDI: fffff5200003c19f RBP: ffffffff8a2485c0 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff815f72de R11: 0000000000000000 R12: 00000000000002fe R13: 0000000000000000 R14: ffffffff8a2489c0 R15: 0000000000000000 FS: 00007fbe2d4ca700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000180 CR3: 0000000023950000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 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 5a 66 fc f7 48 89 ef e8 a2 e5 fc 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 63 07 f0 f7 65 8b 05 0c 7b a1 76 85 c0 74 0a 5b 5d c3 e8 e0 fb RSP: 0018:ffffc9000bd7f690 EFLAGS: 00000206 RAX: 0000000000000046 RBX: 0000000000000200 RCX: 1ffffffff1b6d7ad RDX: 0000000000000000 RSI: ffffffff817ef0f1 RDI: 0000000000000001 RBP: ffff8880b9d28258 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff817ef0d8 R11: 0000000000000000 R12: ffff88807ebc8088 R13: dffffc0000000000 R14: ffff8880235e3d88 R15: dead000000000122 sctp_bind_addr_clean+0x135/0x1f0 net/sctp/bind_addr.c:125 sctp_association_free+0x28c/0x7d0 net/sctp/associola.c:359 sctp_cmd_delete_tcb net/sctp/sm_sideeffect.c:940 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1324 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1195 [inline] sctp_do_sm+0x3855/0x4f00 net/sctp/sm_sideeffect.c:1166 sctp_assoc_bh_rcv+0x386/0x6c0 net/sctp/associola.c:1054 sctp_inq_push+0x1d2/0x270 net/sctp/inqueue.c:80 sctp_backlog_rcv+0x196/0x5a0 net/sctp/input.c:344 sk_backlog_rcv include/net/sock.h:1051 [inline] __release_sock+0x134/0x3b0 net/core/sock.c:2794 release_sock+0x54/0x1b0 net/core/sock.c:3327 sctp_wait_for_connect+0x1cb/0x5d0 net/sctp/socket.c:9316 __sctp_connect+0x9a6/0xc30 net/sctp/socket.c:1244 sctp_connect net/sctp/socket.c:4808 [inline] sctp_inet_connect+0x15e/0x200 net/sctp/socket.c:4823 __sys_connect_file+0x155/0x1a0 net/socket.c:1900 __sys_connect+0x161/0x190 net/socket.c:1917 __do_sys_connect net/socket.c:1927 [inline] __se_sys_connect net/socket.c:1924 [inline] __x64_sys_connect+0x6f/0xb0 net/socket.c:1924 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:0x7fbe2c289049 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fbe2d4ca168 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 00007fbe2c39bf60 RCX: 00007fbe2c289049 RDX: 000000000000001c RSI: 00000000200001c0 RDI: 0000000000000003 RBP: 00007fbe2c2e308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffa78944bf R14: 00007fbe2d4ca300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: 74 24 je 0x26 2: 10 e8 adc %ch,%al 4: 5a pop %rdx 5: 66 fc data16 cld 7: f7 48 89 ef e8 a2 e5 testl $0xe5a2e8ef,-0x77(%rax) e: fc cld 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 63 07 f0 f7 callq 0xf7f00792 <-- trapping instruction 2f: 65 8b 05 0c 7b a1 76 mov %gs:0x76a17b0c(%rip),%eax # 0x76a17b42 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: e0 fb loopne 0x3b