------------[ cut here ]------------ current->flags & PF_MEMALLOC WARNING: mm/page_alloc.c:4824 at __alloc_pages_slowpath mm/page_alloc.c:4824 [inline], CPU#1: syz.2.2584/16873 WARNING: mm/page_alloc.c:4824 at __alloc_frozen_pages_noprof+0x1e0b/0x31e0 mm/page_alloc.c:5510, CPU#1: syz.2.2584/16873 Modules linked in: CPU: 1 UID: 0 PID: 16873 Comm: syz.2.2584 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP 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:4824 [inline] RIP: 0010:__alloc_frozen_pages_noprof+0x1e0b/0x31e0 mm/page_alloc.c:5510 Code: 38 d0 7c 08 84 d2 0f 85 56 13 00 00 65 48 8b 05 63 ed 41 13 c7 84 24 a0 00 00 00 00 80 00 00 f6 40 2d 08 0f 84 0d e7 ff ff 90 <0f> 0b 90 e9 04 e7 ff ff 90 0f 0b 90 e9 63 f8 ff ff 8b 84 24 a0 00 RSP: 0000:ffffc90006fed8b8 EFLAGS: 00010202 RAX: ffff88802a270000 RBX: 0000000000000000 RCX: 1ffff1100fffad69 RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff88802a27002c RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000003dea R10: ffff88807ffd7217 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff9ccaa0a4 R15: 0000000000048c40 FS: 0000000000000000(0000) GS:ffff888095371000(0063) knlGS:00000000f54a6b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002d520000 CR3: 0000000057124000 CR4: 0000000000352ef0 Call Trace: alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513 alloc_pages_noprof mm/mempolicy.c:2604 [inline] folio_alloc_noprof+0x22/0x250 mm/mempolicy.c:2614 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/0x1840 fs/ext4/inode.c:395 evict+0x403/0xb90 fs/inode.c:829 dispose_list+0x117/0x1e0 fs/inode.c:871 prune_icache_sb+0xea/0x150 fs/inode.c:1032 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_node_memcgs mm/vmscan.c:6440 [inline] shrink_node+0x7c1/0x4410 mm/vmscan.c:6482 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:4448 [inline] __alloc_pages_direct_reclaim mm/page_alloc.c:4471 [inline] __alloc_pages_slowpath mm/page_alloc.c:4967 [inline] __alloc_frozen_pages_noprof+0x1057/0x31e0 mm/page_alloc.c:5510 alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2513 folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2532 shmem_alloc_folio+0x135/0x160 mm/shmem.c:2184 shmem_alloc_and_add_folio+0x371/0xd40 mm/shmem.c:2226 shmem_get_folio_gfp+0x758/0x1af0 mm/shmem.c:2780 shmem_get_folio mm/shmem.c:2879 [inline] shmem_write_begin+0x1a4/0x420 mm/shmem.c:3514 generic_perform_write+0x292/0xa40 mm/filemap.c:4392 shmem_file_write_iter+0x10e/0x140 mm/shmem.c:3689 __kernel_write_iter+0x2ac/0x920 fs/read_write.c:601 dump_write_iter fs/coredump.c:1360 [inline] dump_emit_page fs/coredump.c:1533 [inline] dump_user_range+0xa0d/0xe90 fs/coredump.c:1601 elf_core_dump+0x31f7/0x4300 fs/binfmt_elf.c:2106 coredump_write+0xd88/0x1c20 fs/coredump.c:1150 do_coredump.constprop.0+0x9bb/0x25e0 fs/coredump.c:1237 vfs_coredump+0x9b0/0x1180 fs/coredump.c:1312 get_signal+0x1fba/0x22e0 kernel/signal.c:3098 arch_do_signal_or_restart+0x91/0x7a0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:66 [inline] exit_to_user_mode_loop kernel/entry/common.c:101 [inline] __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] irqentry_exit_to_user_mode_prepare include/linux/irq-entry-common.h:244 [inline] irqentry_exit_to_user_mode include/linux/irq-entry-common.h:315 [inline] irqentry_exit+0x542/0xab0 kernel/entry/common.c:152 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0023:0xf7ff7fbc Code: d2 74 05 c1 e8 0c 89 02 8b 5d fc 31 c0 c9 c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 2e 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 58 b8 RSP: 002b:00000000fffffe70 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000008000 RCX: 00000000fffffe70 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00000000f54a65ec R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: d2 74 05 c1 shlb %cl,-0x3f(%rbp,%rax,1) 4: e8 0c 89 02 8b call 0x8b028915 9: 5d pop %rbp a: fc cld b: 31 c0 xor %eax,%eax d: c9 leave e: c3 ret f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 0f 1f 00 nopl (%rax) 21: 51 push %rcx 22: 52 push %rdx 23: 55 push %rbp 24: 89 e5 mov %esp,%ebp 26: 0f 34 sysenter 28: cd 80 int $0x80 * 2a: 5d pop %rbp <-- trapping instruction 2b: 5a pop %rdx 2c: 59 pop %rcx 2d: c3 ret 2e: 90 nop 2f: 2e 8d b4 26 00 00 00 cs lea 0x0(%rsi,%riz,1),%esi 36: 00 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 3e: 58 pop %rax 3f: b8 .byte 0xb8