BUG: sleeping function called from invalid context at include/linux/sched/mm.h:274 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6165, name: syz-executor.1 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 1 lock held by syz-executor.1/6165: #0: ffff8880221410a8 (&ctx->uring_lock){+.+.}-{3:3}, at: __do_sys_io_uring_enter+0x1039/0x1f30 Preemption disabled at: [] get_page_from_freelist+0x426/0x2ad0 CPU: 0 PID: 6165 Comm: syz-executor.1 Not tainted 5.19.0-rc2-next-20220614 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 __might_resched.cold+0x222/0x26b __kmalloc_node+0x32b/0x470 memcg_alloc_slab_cgroups+0x7a/0x120 allocate_slab+0xd6/0x300 ___slab_alloc+0xa09/0xe50 kmem_cache_alloc_bulk+0x264/0x780 io_submit_sqes.cold+0x1fe/0x3b1 __do_sys_io_uring_enter+0x1043/0x1f30 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7faf1bb9db19 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007faf19113188 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: ffffffffffffffda RBX: 00007faf1bcb0f60 RCX: 00007faf1bb9db19 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000003 RBP: 00007faf1bbf7f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe39dd32ef R14: 00007faf19113300 R15: 0000000000022000 BUG: scheduling while atomic: syz-executor.1/6165/0x00000002 no locks held by syz-executor.1/6165. Modules linked in: Preemption disabled at: [] get_page_from_freelist+0x426/0x2ad0 CPU: 0 PID: 6165 Comm: syz-executor.1 Tainted: G W 5.19.0-rc2-next-20220614 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 __schedule_bug.cold+0x133/0x143 __schedule+0x18e6/0x2470 schedule+0xd2/0x1f0 exit_to_user_mode_prepare+0x114/0x1a0 syscall_exit_to_user_mode+0x19/0x40 do_syscall_64+0x48/0x90 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7faf1bb9db19 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007faf19113188 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: 0000000000000001 RBX: 00007faf1bcb0f60 RCX: 00007faf1bb9db19 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000003 RBP: 00007faf1bbf7f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe39dd32ef R14: 00007faf19113300 R15: 0000000000022000 BUG: sleeping function called from invalid context at mm/vmscan.c:833 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 39, name: kswapd0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by kswapd0/39: #0: ffffffff852b38c0 (fs_reclaim){+.+.}-{0:0}, at: balance_pgdat+0xc9a/0x1490 #1: ffffffff85287c90 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab+0xc4/0x6e0 Preemption disabled at: [] free_unref_page+0x1e5/0x440 CPU: 0 PID: 39 Comm: kswapd0 Tainted: G W 5.19.0-rc2-next-20220614 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 __might_resched.cold+0x222/0x26b do_shrink_slab+0x34a/0xb00 shrink_slab+0x172/0x6e0 shrink_node+0x892/0x1d10 balance_pgdat+0x8bb/0x1490 kswapd+0x739/0xe90 kthread+0x2f2/0x3b0 ret_from_fork+0x22/0x30 BUG: scheduling while atomic: kswapd0/39/0x00000002 no locks held by kswapd0/39. Modules linked in: Preemption disabled at: [] free_unref_page+0x1e5/0x440 CPU: 0 PID: 39 Comm: kswapd0 Tainted: G W 5.19.0-rc2-next-20220614 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 __schedule_bug.cold+0x133/0x143 __schedule+0x18e6/0x2470 schedule+0xd2/0x1f0 schedule_timeout+0x143/0x280 kswapd+0x8f0/0xe90 kthread+0x2f2/0x3b0 ret_from_fork+0x22/0x30 BUG: scheduling while atomic: kcompactd0/30/0x00000005 no locks held by kcompactd0/30. Modules linked in: Preemption disabled at: [] free_unref_page+0x1e5/0x440 CPU: 1 PID: 30 Comm: kcompactd0 Tainted: G W 5.19.0-rc2-next-20220614 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 __schedule_bug.cold+0x133/0x143 __schedule+0x18e6/0x2470 schedule+0xd2/0x1f0 schedule_timeout+0x143/0x280 kcompactd+0x97f/0xe00 kthread+0x2f2/0x3b0 ret_from_fork+0x22/0x30 BUG: scheduling while atomic: syz-executor.4/6191/0x00000002 no locks held by syz-executor.4/6191. Modules linked in: Preemption disabled at: [] free_unref_page+0x1e5/0x440 CPU: 0 PID: 6191 Comm: syz-executor.4 Tainted: G W 5.19.0-rc2-next-20220614 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 __schedule_bug.cold+0x133/0x143 __schedule+0x18e6/0x2470 schedule+0xd2/0x1f0 exit_to_user_mode_prepare+0x114/0x1a0 syscall_exit_to_user_mode+0x19/0x40 do_syscall_64+0x48/0x90 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f2ca9d79b19 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2ca72ef188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: fffffffffffffff4 RBX: 00007f2ca9e8cf60 RCX: 00007f2ca9d79b19 RDX: 0000000000000005 RSI: 0000000000000107 RDI: 0000000000000004 RBP: 00007f2ca9dd3f6d R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020000100 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff5d81441f R14: 00007f2ca72ef300 R15: 0000000000022000 loop5: detected capacity change from 0 to 16383 loop5: detected capacity change from 0 to 16383 loop3: detected capacity change from 0 to 16383 loop5: detected capacity change from 0 to 16383 loop7: detected capacity change from 0 to 16383 blk_print_req_error: 4 callbacks suppressed I/O error, dev loop7, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 buffer_io_error: 9 callbacks suppressed Buffer I/O error on dev loop7, logical block 0, async page read loop7: unable to read partition table loop7: partition table beyond EOD, truncated loop3: detected capacity change from 0 to 16383 loop5: detected capacity change from 0 to 16383 loop3: detected capacity change from 0 to 16383 loop7: detected capacity change from 0 to 16383 blktrace: Concurrent blktraces are not allowed on sg0 blktrace: Concurrent blktraces are not allowed on sg0 loop5: detected capacity change from 0 to 16383 loop7: detected capacity change from 0 to 16383