syz-executor.3: vmalloc error: size 32768, vm_struct allocation failed, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=syz3,mems_allowed=0-1 CPU: 0 PID: 9884 Comm: syz-executor.3 Not tainted 6.0.0-rc1-next-20220819-syzkaller #0 BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1521 in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 9884, name: syz-executor.3 preempt_count: 0, expected: 0 RCU nest depth: 0, expected: 0 1 lock held by syz-executor.3/9884: #0: ffff88803a3200a8 (&ctx->uring_lock){+.+.}-{3:3}, at: handle_tw_list+0x165/0x420 io_uring/io_uring.c:981 irq event stamp: 1712 hardirqs last enabled at (1711): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1352 [inline] hardirqs last enabled at (1711): [] finish_lock_switch kernel/sched/core.c:4956 [inline] hardirqs last enabled at (1711): [] finish_task_switch.isra.0+0x2b5/0xc70 kernel/sched/core.c:5074 hardirqs last disabled at (1712): [] dump_stack_lvl+0x2e/0x134 lib/dump_stack.c:139 softirqs last enabled at (1704): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last enabled at (1704): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 softirqs last disabled at (1687): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last disabled at (1687): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 CPU: 0 PID: 9884 Comm: syz-executor.3 Not tainted 6.0.0-rc1-next-20220819-syzkaller #0 syz-executor.3[9884] cmdline: /root/syz-executor.3 exec Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:122 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:140 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9896 down_read_killable+0x75/0x490 kernel/locking/rwsem.c:1521 mmap_read_lock_killable include/linux/mmap_lock.h:126 [inline] __access_remote_vm+0xac/0x6f0 mm/memory.c:5461 get_mm_cmdline.part.0+0x217/0x620 fs/proc/base.c:299 get_mm_cmdline fs/proc/base.c:367 [inline] get_task_cmdline_kernel+0x1d9/0x220 fs/proc/base.c:367 dump_stack_print_cmdline.part.0+0x82/0x150 lib/dump_stack.c:61 dump_stack_print_cmdline lib/dump_stack.c:89 [inline] dump_stack_print_info+0x185/0x190 lib/dump_stack.c:97 __dump_stack lib/dump_stack.c:121 [inline] dump_stack_lvl+0xc1/0x134 lib/dump_stack.c:140 warn_alloc.cold+0x9b/0x189 mm/page_alloc.c:4356 __vmalloc_node_range+0xdf5/0x13a0 mm/vmalloc.c:3161 alloc_thread_stack_node kernel/fork.c:312 [inline] dup_task_struct kernel/fork.c:977 [inline] copy_process+0x13cd/0x7120 kernel/fork.c:2090 create_io_thread+0xab/0xe0 kernel/fork.c:2625 create_io_worker+0x25c/0x630 io_uring/io-wq.c:820 io_wqe_create_worker io_uring/io-wq.c:310 [inline] io_wqe_enqueue+0x6c3/0xbc0 io_uring/io-wq.c:936 io_queue_iowq+0x247/0x510 io_uring/io_uring.c:461 io_queue_async+0x1b2/0x430 io_uring/io_uring.c:1738 io_queue_sqe io_uring/io_uring.c:1762 [inline] io_req_task_submit+0x1c0/0x220 io_uring/io_uring.c:1104 handle_tw_list+0xa8/0x420 io_uring/io_uring.c:984 tctx_task_work+0xc4/0x420 io_uring/io_uring.c:1031 task_work_run+0xdd/0x1a0 kernel/task_work.c:177 get_signal+0x1c3/0x2610 kernel/signal.c:2635 arch_do_signal_or_restart+0x82/0x2300 arch/x86/kernel/signal.c:869 exit_to_user_mode_loop kernel/entry/common.c:166 [inline] exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7faed8089279 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:00007faed91d6168 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: 000000000000002a RBX: 00007faed819bf80 RCX: 00007faed8089279 RDX: 0000000000000000 RSI: 000000000000002a RDI: 0000000000000003 RBP: 00007faed91d61d0 R08: 0000000000000000 R09: 000000000000070c R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffca650391f R14: 00007faed91d6300 R15: 0000000000022000 syz-executor.3[9884] cmdline: /root/syz-executor.3 exec Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:122 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:140 warn_alloc.cold+0x9b/0x189 mm/page_alloc.c:4356 __vmalloc_node_range+0xdf5/0x13a0 mm/vmalloc.c:3161 alloc_thread_stack_node kernel/fork.c:312 [inline] dup_task_struct kernel/fork.c:977 [inline] copy_process+0x13cd/0x7120 kernel/fork.c:2090 create_io_thread+0xab/0xe0 kernel/fork.c:2625 create_io_worker+0x25c/0x630 io_uring/io-wq.c:820 io_wqe_create_worker io_uring/io-wq.c:310 [inline] io_wqe_enqueue+0x6c3/0xbc0 io_uring/io-wq.c:936 io_queue_iowq+0x247/0x510 io_uring/io_uring.c:461 io_queue_async+0x1b2/0x430 io_uring/io_uring.c:1738 io_queue_sqe io_uring/io_uring.c:1762 [inline] io_req_task_submit+0x1c0/0x220 io_uring/io_uring.c:1104 handle_tw_list+0xa8/0x420 io_uring/io_uring.c:984 tctx_task_work+0xc4/0x420 io_uring/io_uring.c:1031 task_work_run+0xdd/0x1a0 kernel/task_work.c:177 get_signal+0x1c3/0x2610 kernel/signal.c:2635 arch_do_signal_or_restart+0x82/0x2300 arch/x86/kernel/signal.c:869 exit_to_user_mode_loop kernel/entry/common.c:166 [inline] exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7faed8089279 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:00007faed91d6168 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa RAX: 000000000000002a RBX: 00007faed819bf80 RCX: 00007faed8089279 RDX: 0000000000000000 RSI: 000000000000002a RDI: 0000000000000003 RBP: 00007faed91d61d0 R08: 0000000000000000 R09: 000000000000070c R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffca650391f R14: 00007faed91d6300 R15: 0000000000022000 Mem-Info: active_anon:685 inactive_anon:226325 isolated_anon:0 active_file:11980 inactive_file:966 isolated_file:0 unevictable:769 dirty:62 writeback:0 slab_reclaimable:19681 slab_unreclaimable:96748 mapped:19183 shmem:1786 pagetables:1109 bounce:0 kernel_misc_reclaimable:0 free:1211887 free_pcp:6530 free_cma:0 Node 0 active_anon:2740kB inactive_anon:903200kB active_file:47844kB inactive_file:3864kB unevictable:1540kB isolated(anon):0kB isolated(file):0kB mapped:76732kB dirty:244kB writeback:0kB shmem:5608kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 47104kB writeback_tmp:0kB kernel_stack:10728kB pagetables:4432kB all_unreclaimable? no Node 1 active_anon:0kB inactive_anon:0kB active_file:76kB inactive_file:0kB unevictable:1536kB isolated(anon):0kB isolated(file):0kB mapped:0kB dirty:4kB writeback:0kB shmem:1536kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB kernel_stack:16kB pagetables:4kB all_unreclaimable? no Node 0 DMA free:15360kB boost:0kB min:200kB low:248kB high:296kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15992kB managed:15360kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB lowmem_reserve[]: 0 2631 2632 2632 2632 Node 0 DMA32 free:898232kB boost:0kB min:35556kB low:44444kB high:53332kB reserved_highatomic:0KB active_anon:2636kB inactive_anon:903068kB active_file:46872kB inactive_file:2864kB unevictable:1540kB writepending:244kB present:3129332kB managed:2699792kB mlocked:4kB bounce:0kB free_pcp:13640kB local_pcp:6752kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 0 Node 0 Normal free:0kB boost:0kB min:12kB low:12kB high:12kB reserved_highatomic:0KB active_anon:4kB inactive_anon:32kB active_file:872kB inactive_file:0kB unevictable:0kB writepending:0kB present:1048576kB managed:912kB mlocked:0kB bounce:0kB free_pcp:4kB local_pcp:4kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 0 Node 1 Normal free:3933508kB boost:0kB min:54336kB low:67920kB high:81504kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:76kB inactive_file:0kB unevictable:1536kB writepending:4kB present:4194304kB managed:4117620kB mlocked:0kB bounce:0kB free_pcp:18624kB local_pcp:6400kB free_cma:0kB lowmem_reserve[]: 0 0 0 0 0 Node 0 DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15360kB Node 0 DMA32: 1200*4kB (UME) 979*8kB (UME) 1730*16kB (UME) 443*32kB (UME) 261*64kB (UME) 64*128kB (UME) 20*256kB (UME) 6*512kB (UM) 5*1024kB (U) 9*2048kB (UME) 192*4096kB (UM) = 897560kB Node 0 Normal: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB Node 1 Normal: 181*4kB (UME) 34*8kB (UME) 24*16kB (UME) 55*32kB (UME) 32*64kB (UME) 6*128kB (UME) 2*256kB (UM) 4*512kB (UM) 1*1024kB (U) 0*2048kB 958*4096kB (ME) = 3933508kB Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB Node 0 hugepages_total=2 hugepages_free=2 hugepages_surp=0 hugepages_size=2048kB Node 1 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB Node 1 hugepages_total=2 hugepages_free=2 hugepages_surp=0 hugepages_size=2048kB 14433 total pagecache pages 0 pages in swap cache Free swap = 0kB Total swap = 0kB 2097051 pages RAM 0 pages HighMem/MovableOnly 388630 pages reserved 0 pages cma reserved