input: syz1 as /devices/virtual/input/input236 ------------[ cut here ]------------ current->flags & PF_MEMALLOC WARNING: mm/page_alloc.c:4837 at __alloc_pages_slowpath mm/page_alloc.c:4837 [inline], CPU#0: syz.1.3136/19941 WARNING: mm/page_alloc.c:4837 at __alloc_frozen_pages_noprof+0x1e0b/0x31e0 mm/page_alloc.c:5523, CPU#0: syz.1.3136/19941 Modules linked in: CPU: 0 UID: 0 PID: 19941 Comm: syz.1.3136 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:4837 [inline] RIP: 0010:__alloc_frozen_pages_noprof+0x1e0b/0x31e0 mm/page_alloc.c:5523 Code: 38 d0 7c 08 84 d2 0f 85 56 13 00 00 65 48 8b 05 03 7b 42 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:ffffc9000feae188 EFLAGS: 00010202 RAX: ffff888025048000 RBX: 0000000000000000 RCX: 1ffff1100fffad69 RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff88802504802c RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000003133 R10: ffff88807ffd7217 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff9ccb60a4 R15: 0000000000048c40 FS: 0000000000000000(0000) GS:ffff888095265000(0063) knlGS:00000000f541db40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f74812f0 CR3: 00000000559f0000 CR4: 0000000000352ef0 Call Trace: alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2520 alloc_pages_noprof mm/mempolicy.c:2611 [inline] folio_alloc_noprof+0x22/0x250 mm/mempolicy.c:2621 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/0x1170 mm/filemap.c:2047 __filemap_get_folio include/linux/pagemap.h:758 [inline] ext4_mb_load_buddy_gfp+0x708/0x1b10 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:4461 [inline] __alloc_pages_direct_reclaim mm/page_alloc.c:4484 [inline] __alloc_pages_slowpath mm/page_alloc.c:4980 [inline] __alloc_frozen_pages_noprof+0x1057/0x31e0 mm/page_alloc.c:5523 alloc_pages_mpol+0x201/0x560 mm/mempolicy.c:2520 folio_alloc_mpol_noprof+0x36/0x260 mm/mempolicy.c:2539 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:2792 shmem_fault+0x1fb/0xa30 mm/shmem.c:2986 __do_fault+0x10b/0x440 mm/memory.c:5691 do_read_fault mm/memory.c:6136 [inline] do_fault+0xade/0x1780 mm/memory.c:6270 do_pte_missing mm/memory.c:4797 [inline] handle_pte_fault mm/memory.c:6689 [inline] __handle_mm_fault+0x1858/0x2f40 mm/memory.c:6841 handle_mm_fault+0x363/0xa30 mm/memory.c:7008 faultin_page mm/gup.c:1140 [inline] __get_user_pages+0x7ca/0x1d60 mm/gup.c:1442 populate_vma_page_range+0x2bb/0x450 mm/gup.c:1878 __mm_populate+0x107/0x3a0 mm/gup.c:1981 mm_populate include/linux/mm.h:4513 [inline] vm_mmap_pgoff+0x44a/0x490 mm/util.c:586 ksys_mmap_pgoff+0xe4/0x610 mm/mmap.c:619 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:79 [inline] __do_fast_syscall_32+0x14d/0x8e0 arch/x86/entry/syscall_32.c:286 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:311 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf702efbc 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:00000000f541d50c EFLAGS: 00000292 ORIG_RAX: 00000000000000c0 RAX: ffffffffffffffda RBX: 0000000080000000 RCX: 0000000000b36000 RDX: 0000000000000003 RSI: 0000000000008031 RDI: 00000000ffffffff RBP: 0000000000000000 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