------------[ 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.3.1677/12096 WARNING: mm/page_alloc.c:4816 at __alloc_frozen_pages_noprof+0x1eac/0x3300 mm/page_alloc.c:5449, CPU#2: syz.3.1677/12096 Modules linked in: CPU: 2 UID: 0 PID: 12096 Comm: syz.3.1677 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 56 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:ffffc90006efd7b8 EFLAGS: 00010202 RAX: ffff888071c84b00 RBX: 0000000000000000 RCX: 1ffff1100fffad29 RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff88803fffd938 RBP: ffff888071c84b2c R08: 0000000000008000 R09: 0000000000000001 R10: 0000000000000002 R11: 0000000000000000 R12: 0000000000048c40 R13: ffff88803fffb900 R14: 0000000000000000 R15: 1ffff92000ddfb11 FS: 0000000000000000(0000) GS:ffff888096b60000(0063) knlGS:00000000f53d0b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f71c8740 CR3: 000000006090e000 CR4: 0000000000352ef0 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/0x1320 mm/filemap.c:2018 __filemap_get_folio include/linux/pagemap.h:761 [inline] ext4_mb_load_buddy_gfp+0x70d/0x1b20 fs/ext4/mballoc.c:1732 ext4_discard_preallocations+0x584/0x10c0 fs/ext4/mballoc.c:5686 ext4_clear_inode+0x6e/0x280 fs/ext4/super.c:1547 ext4_evict_inode+0x1de/0x17d0 fs/ext4/inode.c:333 evict+0x3c2/0xad0 fs/inode.c:822 dispose_list+0x117/0x1e0 fs/inode.c:864 prune_icache_sb+0xea/0x150 fs/inode.c:1011 super_cache_scan+0x3ac/0x5c0 fs/super.c:240 do_shrink_slab+0x416/0x1200 mm/shrinker.c:443 shrink_slab_memcg mm/shrinker.c:560 [inline] shrink_slab+0xa82/0x12e0 mm/shrinker.c:638 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 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:1005 [inline] filemap_create_folio mm/filemap.c:2630 [inline] filemap_get_pages+0x88c/0x2080 mm/filemap.c:2720 filemap_read+0x3b5/0x10a0 mm/filemap.c:2824 generic_file_read_iter+0x344/0x450 mm/filemap.c:3016 __kernel_read+0x397/0xad0 fs/read_write.c:532 integrity_kernel_read+0x7e/0xb0 security/integrity/iint.c:28 ima_calc_file_hash_tfm+0x25e/0x350 security/integrity/ima/ima_crypto.c:222 ima_calc_file_hash+0x1e3/0x380 security/integrity/ima/ima_crypto.c:280 ima_collect_measurement+0x94f/0xb30 security/integrity/ima/ima_api.c:300 process_measurement+0xdfe/0x2350 security/integrity/ima/ima_main.c:425 ima_file_check+0xcc/0x120 security/integrity/ima/ima_main.c:685 security_file_post_open+0xc4/0x210 security/security.c:2755 do_open fs/namei.c:4839 [inline] path_openat+0x5cd/0x2440 fs/namei.c:5000 do_file_open+0x20e/0x430 fs/namei.c:5029 do_sys_openat2+0x10f/0x1e0 fs/open.c:1417 do_sys_open fs/open.c:1423 [inline] __do_compat_sys_openat fs/open.c:1485 [inline] __se_compat_sys_openat fs/open.c:1483 [inline] __ia32_compat_sys_openat+0x12d/0x210 fs/open.c:1483 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:0xf7ff2fec 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:00000000f53d050c EFLAGS: 00000292 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00000000ffffff9c RCX: 0000000080000180 RDX: 0000000000088882 RSI: 0000000000000000 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: 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