------------[ cut here ]------------ current->flags & PF_MEMALLOC WARNING: mm/page_alloc.c:4817 at __alloc_pages_slowpath mm/page_alloc.c:4817 [inline], CPU#0: syz-executor/18139 WARNING: mm/page_alloc.c:4817 at __alloc_frozen_pages_noprof+0x1d75/0x31e0 mm/page_alloc.c:5477, CPU#0: syz-executor/18139 Modules linked in: CPU: 0 UID: 0 PID: 18139 Comm: syz-executor 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 RIP: 0010:__alloc_pages_slowpath mm/page_alloc.c:4817 [inline] RIP: 0010:__alloc_frozen_pages_noprof+0x1d75/0x31e0 mm/page_alloc.c:5477 Code: 38 d0 7c 08 84 d2 0f 85 02 14 00 00 65 48 8b 05 99 34 41 13 c7 84 24 90 00 00 00 00 80 00 00 f6 40 2d 08 0f 84 73 e7 ff ff 90 <0f> 0b 90 e9 6a e7 ff ff 8b bc 24 90 00 00 00 85 ff 0f 85 90 07 00 RSP: 0000:ffffc90002e36468 EFLAGS: 00010202 RAX: ffff888045504b00 RBX: 0000000000000000 RCX: 1ffff1100fffad69 RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff88803fffd938 RBP: 0000000000000000 R08: 0000000000008000 R09: 0000000000002e0b R10: 0000000000000000 R11: 0000000000000001 R12: ffff888045504b2c R13: 1ffff920005c6ca7 R14: 0000000000048c40 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88809527d000(0063) knlGS:00000000566e0480 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f73cf2c4 CR3: 000000005a6b5000 CR4: 0000000000352ef0 Call Trace: alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2511 alloc_pages_noprof mm/mempolicy.c:2602 [inline] folio_alloc_noprof+0x22/0x250 mm/mempolicy.c:2612 filemap_alloc_folio_noprof.part.0+0x3db/0x440 mm/filemap.c:1017 filemap_alloc_folio_noprof mm/filemap.c:2062 [inline] __filemap_get_folio_mpol+0x64e/0x11d0 mm/filemap.c:2047 __filemap_get_folio include/linux/pagemap.h:758 [inline] ext4_mb_load_buddy_gfp+0x708/0x1b20 fs/ext4/mballoc.c:1730 ext4_discard_preallocations+0x584/0x10c0 fs/ext4/mballoc.c:5684 ext4_clear_inode+0x6e/0x280 fs/ext4/super.c:1574 ext4_evict_inode+0x1de/0x1890 fs/ext4/inode.c:400 evict+0x3c2/0xad0 fs/inode.c:821 dispose_list+0x117/0x1e0 fs/inode.c:863 prune_icache_sb+0xea/0x150 fs/inode.c:1021 super_cache_scan+0x37c/0x560 fs/super.c:227 do_shrink_slab+0x411/0x1200 mm/shrinker.c:452 shrink_slab_memcg mm/shrinker.c:569 [inline] shrink_slab+0xa78/0x12d0 mm/shrinker.c:647 shrink_one+0x3d3/0x870 mm/vmscan.c:5320 shrink_many mm/vmscan.c:5381 [inline] lru_gen_shrink_node mm/vmscan.c:5459 [inline] shrink_node+0x2a61/0x4410 mm/vmscan.c:6465 shrink_zones mm/vmscan.c:6701 [inline] do_try_to_free_pages+0x2da/0x1500 mm/vmscan.c:6763 try_to_free_pages+0x2a0/0x740 mm/vmscan.c:7002 __perform_reclaim mm/page_alloc.c:4441 [inline] __alloc_pages_direct_reclaim mm/page_alloc.c:4464 [inline] __alloc_pages_slowpath mm/page_alloc.c:4959 [inline] __alloc_frozen_pages_noprof+0x11b6/0x31e0 mm/page_alloc.c:5477 alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2511 folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2530 __swap_cache_alloc mm/swap_state.c:458 [inline] __swap_cache_alloc_folio+0x3d7/0xc50 mm/swap_state.c:550 swap_cache_read_folio+0x47/0x150 mm/swap_state.c:714 swap_cache_read_folio_sync mm/swap_state.c:800 [inline] swap_cluster_readahead+0x477/0x5d0 mm/swap_state.c:922 swapin_readahead+0xf0/0x260 mm/swap_state.c:1061 do_swap_page+0xf98/0x54a0 mm/memory.c:5083 handle_pte_fault mm/memory.c:6668 [inline] __handle_mm_fault+0x190a/0x2f40 mm/memory.c:6817 handle_mm_fault+0x363/0xa30 mm/memory.c:6984 do_user_addr_fault+0x59c/0x12f0 arch/x86/mm/fault.c:1343 handle_page_fault arch/x86/mm/fault.c:1483 [inline] exc_page_fault+0x6f/0xd0 arch/x86/mm/fault.c:1536 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0023:0xf702368e Code: 00 6a 06 6a 01 6a 02 8d b3 00 03 00 00 e8 ba 8c 14 00 89 44 24 20 83 c4 10 c7 44 24 0c 00 00 00 00 83 f8 ff 0f 84 ea 01 00 00 <8b> 6e d0 85 ed 75 33 83 44 24 0c 01 8b 44 24 0c 81 c6 54 06 00 00 RSP: 002b:00000000ffe49ed0 EFLAGS: 00010213 RAX: 0000000000000003 RBX: 00000000f73ceff4 RCX: 00000000ffe49ea0 RDX: 0000000000000000 RSI: 00000000f73cf2f4 RDI: 00000000ffe4a624 RBP: 000000000000002a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000286 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 00 6a 06 add %ch,0x6(%rdx) 3: 6a 01 push $0x1 5: 6a 02 push $0x2 7: 8d b3 00 03 00 00 lea 0x300(%rbx),%esi d: e8 ba 8c 14 00 call 0x148ccc 12: 89 44 24 20 mov %eax,0x20(%rsp) 16: 83 c4 10 add $0x10,%esp 19: c7 44 24 0c 00 00 00 movl $0x0,0xc(%rsp) 20: 00 21: 83 f8 ff cmp $0xffffffff,%eax 24: 0f 84 ea 01 00 00 je 0x214 * 2a: 8b 6e d0 mov -0x30(%rsi),%ebp <-- trapping instruction 2d: 85 ed test %ebp,%ebp 2f: 75 33 jne 0x64 31: 83 44 24 0c 01 addl $0x1,0xc(%rsp) 36: 8b 44 24 0c mov 0xc(%rsp),%eax 3a: 81 c6 54 06 00 00 add $0x654,%esi