------------[ cut here ]------------ current->flags & PF_MEMALLOC WARNING: mm/page_alloc.c:4817 at __alloc_pages_slowpath mm/page_alloc.c:4817 [inline], CPU#2: syz.0.4947/23097 WARNING: mm/page_alloc.c:4817 at __alloc_frozen_pages_noprof+0x1d75/0x31e0 mm/page_alloc.c:5477, CPU#2: syz.0.4947/23097 Modules linked in: CPU: 2 UID: 0 PID: 23097 Comm: syz.0.4947 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: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:ffffc9000430e158 EFLAGS: 00010202 RAX: ffff888000772580 RBX: 0000000000000000 RCX: 1ffff1100fffad69 RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff88803fffd938 RBP: 0000000000000000 R08: 0000000000008000 R09: 0000000000002dd6 R10: 0000000000000000 R11: 0000000000000001 R12: ffff8880007725ac R13: 1ffff92000861c45 R14: 0000000000048c40 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88809547d000(0063) knlGS:00000000f5416b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000808d3018 CR3: 0000000053c3d000 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 vma_alloc_folio_noprof+0xed/0x1d0 mm/mempolicy.c:2565 folio_prealloc mm/memory.c:1252 [inline] wp_page_copy mm/memory.c:4080 [inline] do_wp_page+0xe17/0x46c0 mm/memory.c:4550 handle_pte_fault mm/memory.c:6692 [inline] __handle_mm_fault+0x1d72/0x2f40 mm/memory.c:6817 handle_mm_fault+0x363/0xa30 mm/memory.c:6984 do_user_addr_fault+0x745/0x12f0 arch/x86/mm/fault.c:1394 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: 0010:__put_user_4+0xd/0x30 arch/x86/lib/putuser.S:74 Code: 01 ca e9 46 f7 03 00 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 89 cb 48 c1 fb 3f 48 09 d9 0f 01 cb <89> 01 31 c9 0f 01 ca e9 17 f7 03 00 0f 1f 80 00 00 00 00 90 90 90 RSP: 0000:ffffc9000430f9a8 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00000000808d3018 RDX: 0000000000080000 RSI: ffffffff89ab9a9f RDI: 0000000000000005 RBP: ffffc9000430fd40 R08: 0000000000000000 R09: 0000000080000140 R10: 0000000000000200 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000001 R14: ffffc9000430fd84 R15: 0000000080000140 ____sys_recvmsg+0x3ee/0x6a0 net/socket.c:2948 ___sys_recvmsg+0x16a/0x1a0 net/socket.c:2977 do_recvmmsg+0x548/0x750 net/socket.c:3064 __sys_recvmmsg+0x21f/0x270 net/socket.c:3146 __do_compat_sys_recvmmsg_time32 net/compat.c:417 [inline] __se_compat_sys_recvmmsg_time32 net/compat.c:413 [inline] __ia32_compat_sys_recvmmsg_time32+0xc4/0x160 net/compat.c:413 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:79 [inline] __do_fast_syscall_32+0x14b/0x8c0 arch/x86/entry/syscall_32.c:282 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:307 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7f65fbc 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:00000000f541650c EFLAGS: 00000292 ORIG_RAX: 0000000000000151 RAX: ffffffffffffffda RBX: 000000000000000a RCX: 0000000080000080 RDX: 00000000159adff3 RSI: 0000000000010100 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 01 ca add %ecx,%edx 2: e9 46 f7 03 00 jmp 0x3f74d 7: 66 0f 1f 44 00 00 nopw 0x0(%rax,%rax,1) d: 90 nop e: 90 nop 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: 48 89 cb mov %rcx,%rbx 20: 48 c1 fb 3f sar $0x3f,%rbx 24: 48 09 d9 or %rbx,%rcx 27: 0f 01 cb stac * 2a: 89 01 mov %eax,(%rcx) <-- trapping instruction 2c: 31 c9 xor %ecx,%ecx 2e: 0f 01 ca clac 31: e9 17 f7 03 00 jmp 0x3f74d 36: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 3d: 90 nop 3e: 90 nop 3f: 90 nop