__vm_enough_memory: pid: 5493, comm: sed, not enough memory for the allocation stack segment: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5493 Comm: sed Not tainted 6.7.0-rc5-syzkaller-00014-g26aff849438c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:find_stack lib/stackdepot.c:350 [inline] RIP: 0010:__stack_depot_save+0x15e/0x520 lib/stackdepot.c:390 Code: 29 c0 89 c3 48 8b 05 79 db 15 0e 89 d9 23 0d 69 db 15 0e 48 8d 0c c8 48 8b 29 48 85 ed 75 0b eb 70 48 8b 6d 00 48 85 ed 74 67 <39> 5d 08 75 f2 44 3b 7d 0c 75 ec 31 c0 48 8b 74 c5 18 49 39 34 c6 RSP: 0000:ffffc90005c47068 EFLAGS: 00010286 RAX: ffff88823b400000 RBX: 00000000933bbfbf RCX: ffff88823b9dfdf8 RDX: 0000000000000010 RSI: 0000000000000002 RDI: 00000000e7e59890 RBP: e8f70e233be89090 R08: 000000006dd43fb3 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000000 R12: 0000000000000001 R13: 0000000000102800 R14: ffffc90005c470f0 R15: 0000000000000010 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000004b434548 CR3: 0000000018b78000 CR4: 0000000000350ef0 Call Trace: save_stack+0x16d/0x1f0 mm/page_owner.c:129 __set_page_owner+0x1f/0x60 mm/page_owner.c:192 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1544 [inline] get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312 __alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568 alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133 __get_free_pages+0xc/0x40 mm/page_alloc.c:4615 tlb_next_batch mm/mmu_gather.c:35 [inline] __tlb_remove_page_size+0x2a8/0x470 mm/mmu_gather.c:136 __tlb_remove_page include/asm-generic/tlb.h:471 [inline] zap_pte_range mm/memory.c:1469 [inline] zap_pmd_range mm/memory.c:1583 [inline] zap_pud_range mm/memory.c:1612 [inline] zap_p4d_range mm/memory.c:1633 [inline] unmap_page_range+0x1314/0x2b70 mm/memory.c:1654 unmap_single_vma+0x194/0x2b0 mm/memory.c:1700 unmap_vmas+0x229/0x470 mm/memory.c:1744 exit_mmap+0x1ad/0xa70 mm/mmap.c:3308 __mmput+0x12a/0x4d0 kernel/fork.c:1349 mmput+0x62/0x70 kernel/fork.c:1371 exit_mm kernel/exit.c:567 [inline] do_exit+0x9ad/0x2ae0 kernel/exit.c:858 do_group_exit+0xd4/0x2a0 kernel/exit.c:1021 get_signal+0x23be/0x2790 kernel/signal.c:2904 arch_do_signal_or_restart+0x90/0x7f0 arch/x86/kernel/signal.c:309 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x121/0x240 kernel/entry/common.c:204 irqentry_exit_to_user_mode+0xa/0x40 kernel/entry/common.c:309 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0033:0x4b434548 Code: Unable to access opcode bytes at 0x4b43451e. RSP: 002b:00007fff84089b68 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00007fec1ee0d580 RCX: 00007fec1ee2a95a RDX: 0000000000000003 RSI: 00007fec1ee0c928 RDI: 00007fec1ee0c928 RBP: 00007fec1ee0d59c R08: 00000000ffffffff R09: 0000000000000000 R10: 0000000000000032 R11: 0000000000000213 R12: 00007fec1ee0d0c0 R13: 00007fec1ee32253 R14: 00007fec1ee0c928 R15: 0000000000000000 Modules linked in: ---------------- Code disassembly (best guess): 0: 29 c0 sub %eax,%eax 2: 89 c3 mov %eax,%ebx 4: 48 8b 05 79 db 15 0e mov 0xe15db79(%rip),%rax # 0xe15db84 b: 89 d9 mov %ebx,%ecx d: 23 0d 69 db 15 0e and 0xe15db69(%rip),%ecx # 0xe15db7c 13: 48 8d 0c c8 lea (%rax,%rcx,8),%rcx 17: 48 8b 29 mov (%rcx),%rbp 1a: 48 85 ed test %rbp,%rbp 1d: 75 0b jne 0x2a 1f: eb 70 jmp 0x91 21: 48 8b 6d 00 mov 0x0(%rbp),%rbp 25: 48 85 ed test %rbp,%rbp 28: 74 67 je 0x91 * 2a: 39 5d 08 cmp %ebx,0x8(%rbp) <-- trapping instruction 2d: 75 f2 jne 0x21 2f: 44 3b 7d 0c cmp 0xc(%rbp),%r15d 33: 75 ec jne 0x21 35: 31 c0 xor %eax,%eax 37: 48 8b 74 c5 18 mov 0x18(%rbp,%rax,8),%rsi 3c: 49 39 34 c6 cmp %rsi,(%r14,%rax,8)