------------[ cut here ]------------ do not call blocking ops when !TASK_RUNNING; state=1 set at [] prepare_to_wait_exclusive+0x7e/0x2c0 kernel/sched/wait.c:290 WARNING: CPU: 0 PID: 8701 at kernel/sched/core.c:9908 __might_sleep+0x109/0x160 kernel/sched/core.c:9908 Modules linked in: CPU: 0 PID: 8701 Comm: syz-executor.2 Not tainted 6.1.0-syzkaller-13031-g77856d911a8c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:__might_sleep+0x109/0x160 kernel/sched/core.c:9908 Code: ac 03 00 48 8d bb b8 16 00 00 48 89 fa 48 c1 ea 03 80 3c 02 00 75 34 48 8b 93 b8 16 00 00 48 c7 c7 80 d6 2b 8a e8 74 f6 5b 08 <0f> 0b e9 75 ff ff ff e8 7b 78 78 00 e9 26 ff ff ff 89 34 24 e8 8e RSP: 0018:ffffc90003bd7bb8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff88807dd20000 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff8166707c RDI: fffff5200077af69 RBP: ffffffff8a2c3500 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: 0000000000000244 R13: dffffc0000000000 R14: 0000000000000001 R15: 0000000000001000 FS: 00007fec0de24700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa042b85058 CR3: 000000002a310000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __mutex_lock_common kernel/locking/mutex.c:580 [inline] __mutex_lock+0x9f/0x1360 kernel/locking/mutex.c:747 io_cqring_overflow_flush io_uring/io_uring.c:674 [inline] io_cqring_overflow_flush+0xe6/0x130 io_uring/io_uring.c:669 io_cqring_wait io_uring/io_uring.c:2534 [inline] __do_sys_io_uring_enter+0x1590/0x21b0 io_uring/io_uring.c:3358 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fec0d08c0d9 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:00007fec0de24168 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: ffffffffffffffda RBX: 00007fec0d1abf80 RCX: 00007fec0d08c0d9 RDX: 000000000000fc0f RSI: 0000000000001000 RDI: 0000000000000003 RBP: 00007fec0d0e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fec0d2cfb1f R14: 00007fec0de24300 R15: 0000000000022000