------------[ 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.1518/11694 WARNING: mm/page_alloc.c:4824 at __alloc_frozen_pages_noprof+0x1e0b/0x31e0 mm/page_alloc.c:5510, CPU#1: syz.2.1518/11694 Modules linked in: CPU: 1 UID: 0 PID: 11694 Comm: syz.2.1518 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 43 7c 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:ffffc90005525838 EFLAGS: 00010202 RAX: ffff888000bb2580 RBX: 0000000000000000 RCX: 1ffff1100fffad69 RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff888000bb25ac RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000002dc9 R10: ffff88807ffd7217 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff9cca2064 R15: 0000000000048c40 FS: 0000000000000000(0000) GS:ffff888095379000(0063) knlGS:00000000f53fcb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00007f5b9a8b45e8 CR3: 000000006eb8c000 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/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: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 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:1003 [inline] filemap_create_folio mm/filemap.c:2659 [inline] filemap_get_pages+0x8c0/0x2040 mm/filemap.c:2749 filemap_read+0x3b0/0x10a0 mm/filemap.c:2853 generic_file_read_iter+0x344/0x450 mm/filemap.c:3045 __kernel_read+0x397/0xac0 fs/read_write.c:512 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+0x952/0xb30 security/integrity/ima/ima_api.c:300 process_measurement+0xe04/0x2360 security/integrity/ima/ima_main.c:425 ima_file_check+0xc8/0x120 security/integrity/ima/ima_main.c:686 security_file_post_open+0xc4/0x210 security/security.c:2777 do_open fs/namei.c:4853 [inline] path_openat+0x5d0/0x23f0 fs/namei.c:5016 do_file_open+0x20e/0x430 fs/namei.c:5045 do_sys_openat2+0x163/0x1d0 fs/open.c:1443 do_sys_open fs/open.c:1449 [inline] __do_compat_sys_openat fs/open.c:1511 [inline] __se_compat_sys_openat fs/open.c:1509 [inline] __ia32_compat_sys_openat+0x12d/0x210 fs/open.c:1509 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:00000000f53fc50c EFLAGS: 00000292 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00000000ffffff9c RCX: 0000000080002380 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