do not call blocking ops when !TASK_RUNNING; state=1 set at [] prepare_to_wait+0x1cf/0x310 kernel/sched/wait.c:272 WARNING: CPU: 0 PID: 15956 at kernel/sched/core.c:9912 __might_sleep+0x98/0xc0 kernel/sched/core.c:9908 Modules linked in: CPU: 1 PID: 15956 Comm: syz-executor.5 Not tainted 6.1.0-syzkaller-11674-g84e57d292203 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:__might_sleep+0x98/0xc0 kernel/sched/core.c:9908 Code: f6 31 d2 5b 41 5c 41 5e 41 5f 5d e9 42 00 00 00 c6 05 9e 1e 22 0d 01 48 c7 c7 00 39 ed 8a 89 de 48 89 ca 31 c0 e8 88 32 f2 ff <0f> 0b eb cd 89 d9 80 e1 07 80 c1 03 38 c1 7c 8c 48 89 df e8 80 d9 RSP: 0018:ffffc9000b72fa30 EFLAGS: 00010246 RAX: a43107443da32b00 RBX: 0000000000000001 RCX: 0000000000040000 RDX: ffffc9000ca4a000 RSI: 00000000000055b9 RDI: 00000000000055ba RBP: ffff888021ea96b8 R08: ffffffff816f274d R09: fffff520016e5f01 R10: fffff520016e5f01 R11: 1ffff920016e5f00 R12: dffffc0000000000 R13: 1ffff920016e5f60 R14: 0000000000000244 R15: ffffffff8aedaa20 FS: 00007f7b3001c700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558d58ff0a10 CR3: 0000000076d9f000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __mutex_lock_common+0xba/0x26e0 kernel/locking/mutex.c:580 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799 io_sync_cancel+0x886/0x9f0 io_uring/cancel.c:297 __io_uring_register io_uring/io_uring.c:4130 [inline] __do_sys_io_uring_register io_uring/io_uring.c:4164 [inline] __se_sys_io_uring_register+0x89b/0x1040 io_uring/io_uring.c:4146 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7b2f28c0d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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:00007f7b3001c168 EFLAGS: 00000246 ORIG_RAX: 00000000000001ab RAX: ffffffffffffffda RBX: 00007f7b2f3ac120 RCX: 00007f7b2f28c0d9 RDX: 0000000020000080 RSI: 0000000000000018 RDI: 0000000000000003 RBP: 00007f7b2f2e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc6b6a0faf R14: 00007f7b3001c300 R15: 0000000000022000