------------[ cut here ]------------ current->flags & PF_MEMALLOC WARNING: mm/page_alloc.c:4816 at __alloc_pages_slowpath mm/page_alloc.c:4816 [inline], CPU#2: syz.4.1797/11843 WARNING: mm/page_alloc.c:4816 at __alloc_frozen_pages_noprof+0x1eac/0x3300 mm/page_alloc.c:5449, CPU#2: syz.4.1797/11843 Modules linked in: CPU: 2 UID: 0 PID: 11843 Comm: syz.4.1797 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:4816 [inline] RIP: 0010:__alloc_frozen_pages_noprof+0x1eac/0x3300 mm/page_alloc.c:5449 Code: 38 d0 7c 08 84 d2 0f 85 de 12 00 00 65 48 8b 05 62 a8 1c 12 c7 84 24 94 00 00 00 00 80 00 00 f6 40 2d 08 0f 84 ba e7 ff ff 90 <0f> 0b 90 e9 b1 e7 ff ff 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 RSP: 0000:ffffc900245e5e58 EFLAGS: 00010202 RAX: ffff88804bb08000 RBX: 0000000000000000 RCX: 1ffff1100fffad29 RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff88803fffd938 RBP: ffff88804bb0802c R08: 0000000000008000 R09: 0000000000000001 R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000148c48 R13: ffff88803fffb900 R14: 0000000000000000 R15: 1ffff920048bcbe5 FS: 0000000000000000(0000) GS:ffff888096b55000(0063) knlGS:00000000f548db40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000080c6a018 CR3: 0000000051976000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000406 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: alloc_pages_mpol+0x201/0x550 mm/mempolicy.c:2486 alloc_pages_noprof mm/mempolicy.c:2577 [inline] folio_alloc_noprof+0x22/0x250 mm/mempolicy.c:2587 filemap_alloc_folio_noprof.part.0+0x3db/0x440 mm/filemap.c:1019 filemap_alloc_folio_noprof mm/filemap.c:2033 [inline] __filemap_get_folio_mpol+0x653/0x1280 mm/filemap.c:2018 __filemap_get_folio include/linux/pagemap.h:761 [inline] grow_dev_folio fs/buffer.c:858 [inline] grow_buffers fs/buffer.c:924 [inline] __getblk_slow fs/buffer.c:942 [inline] bdev_getblk+0x246/0x6a0 fs/buffer.c:1346 __getblk include/linux/buffer_head.h:378 [inline] sb_getblk include/linux/buffer_head.h:384 [inline] __ext4_get_inode_loc+0x571/0x1510 fs/ext4/inode.c:4921 ext4_get_inode_loc+0xbd/0x160 fs/ext4/inode.c:5049 ext4_reserve_inode_write+0x145/0x330 fs/ext4/inode.c:6511 __ext4_mark_inode_dirty+0x18f/0x910 fs/ext4/inode.c:6699 ext4_dirty_inode+0xd9/0x130 fs/ext4/inode.c:6736 __mark_inode_dirty+0x1f3/0x16e0 fs/fs-writeback.c:2744 mark_inode_dirty_sync include/linux/fs.h:2211 [inline] sync_lazytime fs/fs-writeback.c:1776 [inline] sync_lazytime+0x39b/0x5d0 fs/fs-writeback.c:1768 iput.part.0+0x207/0x1050 fs/inode.c:2045 iput+0x35/0x40 fs/inode.c:2029 dentry_unlink_inode+0x284/0x470 fs/dcache.c:479 dentry_kill+0x25d/0xc20 fs/dcache.c:826 shrink_kill fs/dcache.c:1275 [inline] shrink_dentry_list+0x1e8/0x310 fs/dcache.c:1292 prune_dcache_sb+0xea/0x150 fs/dcache.c:1374 super_cache_scan+0x32b/0x550 fs/super.c:225 do_shrink_slab+0x416/0x1200 mm/shrinker.c:445 shrink_slab_memcg mm/shrinker.c:562 [inline] shrink_slab+0xa82/0x12e0 mm/shrinker.c:640 shrink_one+0x398/0x850 mm/vmscan.c:5119 shrink_many mm/vmscan.c:5180 [inline] lru_gen_shrink_node mm/vmscan.c:5258 [inline] shrink_node+0x2b20/0x4320 mm/vmscan.c:6247 shrink_zones mm/vmscan.c:6503 [inline] do_try_to_free_pages+0x33e/0x16d0 mm/vmscan.c:6565 try_to_free_pages+0x2a0/0x740 mm/vmscan.c:6804 __perform_reclaim mm/page_alloc.c:4451 [inline] __alloc_pages_direct_reclaim mm/page_alloc.c:4478 [inline] __alloc_pages_slowpath mm/page_alloc.c:4939 [inline] __alloc_frozen_pages_noprof+0xf8a/0x3300 mm/page_alloc.c:5449 alloc_pages_mpol+0x201/0x550 mm/mempolicy.c:2486 folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2505 vma_alloc_folio_noprof+0xed/0x1d0 mm/mempolicy.c:2540 folio_prealloc mm/memory.c:1289 [inline] wp_page_copy mm/memory.c:4007 [inline] do_wp_page+0xe11/0x45c0 mm/memory.c:4472 handle_pte_fault mm/memory.c:6582 [inline] __handle_mm_fault+0x1cd2/0x2f60 mm/memory.c:6707 handle_mm_fault+0x363/0xa20 mm/memory.c:6876 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_nocheck_4+0x3/0x20 arch/x86/lib/putuser.S:104 Code: d9 0f 01 cb 89 01 31 c9 0f 01 ca c3 cc cc cc cc 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 01 cb <89> 01 31 c9 0f 01 ca e9 01 ed 03 00 90 90 90 90 90 90 90 90 90 90 RSP: 0000:ffffc900245e79a8 EFLAGS: 00050246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000080c6a018 RDX: 0000000000080000 RSI: ffffffff8991ab8d RDI: ffff88804bb08000 RBP: ffffc900245e7d40 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000001 R14: ffffc900245e7d84 R15: 0000000080000000 ____sys_recvmsg+0x3cc/0x670 net/socket.c:2946 ___sys_recvmsg+0x16a/0x1a0 net/socket.c:2975 do_recvmmsg+0x54d/0x740 net/socket.c:3062 __sys_recvmmsg+0x21f/0x270 net/socket.c:3144 __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+0x13a/0x8b0 arch/x86/entry/syscall_32.c:291 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:316 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf709efec Code: Unable to access opcode bytes at 0xf709efc2. RSP: 002b:00000000f548d50c EFLAGS: 00000292 ORIG_RAX: 0000000000000151 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000080002440 RDX: 00000000ffffff67 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: d9 0f (bad) (%rdi) 2: 01 cb add %ecx,%ebx 4: 89 01 mov %eax,(%rcx) 6: 31 c9 xor %ecx,%ecx 8: 0f 01 ca clac b: c3 ret c: cc int3 d: cc int3 e: cc int3 f: cc int3 10: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: 90 nop 23: 90 nop 24: 90 nop 25: 90 nop 26: 90 nop 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 01 ed 03 00 jmp 0x3ed37 36: 90 nop 37: 90 nop 38: 90 nop 39: 90 nop 3a: 90 nop 3b: 90 nop 3c: 90 nop 3d: 90 nop 3e: 90 nop 3f: 90 nop