------------[ cut here ]------------ test_bit(IO_SQ_THREAD_SHOULD_STOP, &sqd->state) WARNING: io_uring/sqpoll.c:88 at io_sq_thread_stop+0x18b/0x1c0 io_uring/sqpoll.c:88, CPU#1: kworker/u33:9/1162 Modules linked in: CPU: 1 UID: 0 PID: 1162 Comm: kworker/u33:9 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Workqueue: iou_exit io_ring_exit_work RIP: 0010:io_sq_thread_stop+0x18b/0x1c0 io_uring/sqpoll.c:88 Code: 48 c7 c2 00 cd 80 8c be 25 00 00 00 48 c7 c7 60 cd 80 8c c6 05 49 cd 21 0d 01 e8 d0 d5 b7 fc e9 12 ff ff ff e8 f6 3e dd fc 90 <0f> 0b 90 e9 c8 fe ff ff e8 e8 3e dd fc 90 0f 0b 90 e9 3c ff ff ff RSP: 0018:ffffc9000636fa28 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff8880277a9c00 RCX: 0000000000000000 RDX: ffff888000e1a580 RSI: ffffffff853095ca RDI: 0000000000000001 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000001 R10: ffff8880277a9d1f R11: 0000000000000000 R12: ffff8880277a9d18 R13: 0000000000000000 R14: ffff88804eda84e0 R15: ffff8880277a97c0 FS: 0000000000000000(0000) GS:ffff88809537e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d4706c5d51 CR3: 000000000fd96000 CR4: 0000000000352ef0 Call Trace: io_put_sq_data io_uring/sqpoll.c:105 [inline] io_put_sq_data+0xb0/0x100 io_uring/sqpoll.c:100 io_sq_thread_finish+0x252/0x320 io_uring/sqpoll.c:130 io_ring_ctx_free io_uring/io_uring.c:2322 [inline] io_ring_exit_work+0x40a/0x9f5 io_uring/io_uring.c:2658 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3495 process_scheduled_works kernel/workqueue.c:3578 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3659 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245