page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x6 pfn:0x4468c memcg:ffff888012cf4280 flags: 0x4fff00000000001(locked|node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000001 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000006 0000000000000000 00000001ffffffff ffff888012cf4280 page dumped because: VM_BUG_ON_FOLIO(folio_order(folio) < mapping_min_folio_order(mapping)) page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x152c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 5335, tgid 5331 (syz.0.0), ts 94152001765, free_ts 94127782177 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1859 prep_new_page mm/page_alloc.c:1867 [inline] get_page_from_freelist+0x21fa/0x2270 mm/page_alloc.c:3946 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5304 alloc_pages_mpol+0x212/0x380 mm/mempolicy.c:2490 alloc_frozen_pages_noprof mm/mempolicy.c:2561 [inline] alloc_pages_noprof+0xac/0x2a0 mm/mempolicy.c:2581 folio_alloc_noprof+0x1e/0x30 mm/mempolicy.c:2591 filemap_alloc_folio_noprof+0x111/0x470 mm/filemap.c:1013 ractl_alloc_folio mm/readahead.c:200 [inline] ra_alloc_folio mm/readahead.c:463 [inline] page_cache_ra_order+0x569/0xee0 mm/readahead.c:535 do_sync_mmap_readahead+0x75e/0x990 mm/filemap.c:3428 filemap_fault+0x7d9/0x13b0 mm/filemap.c:3582 __do_fault+0x138/0x2a0 mm/memory.c:5425 do_read_fault mm/memory.c:5860 [inline] do_fault mm/memory.c:5994 [inline] do_pte_missing+0x2215/0x34b0 mm/memory.c:4566 handle_pte_fault mm/memory.c:6379 [inline] __handle_mm_fault mm/memory.c:6517 [inline] handle_mm_fault+0x1b36/0x3080 mm/memory.c:6686 do_user_addr_fault+0x744/0x1340 arch/x86/mm/fault.c:1394 handle_page_fault arch/x86/mm/fault.c:1483 [inline] exc_page_fault+0x6a/0xc0 arch/x86/mm/fault.c:1536 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 page last free pid 5333 tgid 5331 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1406 [inline] free_unref_folios+0xd84/0x14a0 mm/page_alloc.c:3011 folios_put_refs+0x9e9/0xb30 mm/swap.c:1057 folio_batch_release include/linux/folio_batch.h:101 [inline] truncate_inode_pages_range+0x3ca/0xd80 mm/truncate.c:408 kill_bdev block/bdev.c:91 [inline] set_blocksize+0x2ce/0x440 block/bdev.c:207 blkdev_bszset+0x1b2/0x230 block/ioctl.c:640 blkdev_ioctl+0x2c7/0x740 block/ioctl.c:779 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:859! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5335 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:__filemap_add_folio+0x11ee/0x1360 mm/filemap.c:858 Code: ff 4c 89 f7 48 c7 c6 60 0c f8 8b e8 ec a2 20 ff 90 0f 0b e8 34 a8 bf ff 48 8b 7c 24 08 48 c7 c6 20 01 f8 8b e8 d3 a2 20 ff 90 <0f> 0b e8 1b a8 bf ff 4c 89 f7 48 c7 c6 60 0c f8 8b e8 bc a2 20 ff RSP: 0018:ffffc9000f687280 EFLAGS: 00010246 RAX: b75e078b79de1400 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000007 RSI: ffffffff8e230467 RDI: 00000000ffffffff RBP: ffffc9000f687400 R08: ffffffff9057b737 R09: 1ffffffff20af6e6 R10: dffffc0000000000 R11: fffffbfff20af6e7 R12: dffffc0000000000 R13: ffff8880325908c0 R14: 0000000000000004 R15: ffff8880325909d8 FS: 00007fdb3567a6c0(0000) GS:ffff88808c543000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb76586b218 CR3: 0000000012fa1000 CR4: 0000000000352ef0 Call Trace: filemap_add_folio+0x25e/0x530 mm/filemap.c:966 ra_alloc_folio mm/readahead.c:470 [inline] page_cache_ra_order+0x6d1/0xee0 mm/readahead.c:535 do_sync_mmap_readahead+0x75e/0x990 mm/filemap.c:3428 filemap_fault+0x7d9/0x13b0 mm/filemap.c:3582 __do_fault+0x138/0x2a0 mm/memory.c:5425 do_read_fault mm/memory.c:5860 [inline] do_fault mm/memory.c:5994 [inline] do_pte_missing+0x2215/0x34b0 mm/memory.c:4566 handle_pte_fault mm/memory.c:6379 [inline] __handle_mm_fault mm/memory.c:6517 [inline] handle_mm_fault+0x1b36/0x3080 mm/memory.c:6686 do_user_addr_fault+0x744/0x1340 arch/x86/mm/fault.c:1394 handle_page_fault arch/x86/mm/fault.c:1483 [inline] exc_page_fault+0x6a/0xc0 arch/x86/mm/fault.c:1536 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0010:__get_user_4+0x14/0x30 arch/x86/lib/getuser.S:88 Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 ba 00 f0 ff ff ff 7f 00 00 48 39 d0 48 0f 47 c2 0f 01 cb <8b> 10 31 c0 0f 01 ca e9 50 5c 04 00 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000f687ca8 EFLAGS: 00050287 RAX: 0000200000000044 RBX: ffffc9000f687da0 RCX: 0000000000000046 RDX: 00007ffffffff000 RSI: ffffffff8e4b597e RDI: ffffffff8c4bed80 RBP: ffffc9000f687ee0 R08: ffffffff821d9aaf R09: 0000000000000000 R10: 0000000000000000 R11: ffff8880124a5cf8 R12: 1ffff92001ed0fb0 R13: 0000200000000044 R14: ffffc9000f687da0 R15: 0000200000000040 perf_copy_attr+0x45/0x860 kernel/events/core.c:13592 __do_sys_perf_event_open kernel/events/core.c:13905 [inline] __se_sys_perf_event_open+0x107/0x1d40 kernel/events/core.c:13883 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdb3479df99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fdb35679fe8 EFLAGS: 00000246 ORIG_RAX: 000000000000012a RAX: ffffffffffffffda RBX: 00007fdb34a26180 RCX: 00007fdb3479df99 RDX: 0000000800000000 RSI: 0000000000000000 RDI: 0000200000000040 RBP: 00007fdb34834ec4 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000 R13: 00007fdb34a26218 R14: 00007fdb34a26180 R15: 00007ffc44bb1538 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_add_folio+0x11ee/0x1360 mm/filemap.c:858 Code: ff 4c 89 f7 48 c7 c6 60 0c f8 8b e8 ec a2 20 ff 90 0f 0b e8 34 a8 bf ff 48 8b 7c 24 08 48 c7 c6 20 01 f8 8b e8 d3 a2 20 ff 90 <0f> 0b e8 1b a8 bf ff 4c 89 f7 48 c7 c6 60 0c f8 8b e8 bc a2 20 ff RSP: 0018:ffffc9000f687280 EFLAGS: 00010246 RAX: b75e078b79de1400 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000007 RSI: ffffffff8e230467 RDI: 00000000ffffffff RBP: ffffc9000f687400 R08: ffffffff9057b737 R09: 1ffffffff20af6e6 R10: dffffc0000000000 R11: fffffbfff20af6e7 R12: dffffc0000000000 R13: ffff8880325908c0 R14: 0000000000000004 R15: ffff8880325909d8 FS: 00007fdb3567a6c0(0000) GS:ffff88808c543000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdb355556a0 CR3: 0000000012fa1000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 90 nop 1: 90 nop 2: 90 nop 3: 90 nop 4: 90 nop 5: 90 nop 6: 90 nop 7: 90 nop 8: 90 nop 9: 90 nop a: 90 nop b: 90 nop c: 90 nop 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: 48 ba 00 f0 ff ff ff movabs $0x7ffffffff000,%rdx 1d: 7f 00 00 20: 48 39 d0 cmp %rdx,%rax 23: 48 0f 47 c2 cmova %rdx,%rax 27: 0f 01 cb stac * 2a: 8b 10 mov (%rax),%edx <-- trapping instruction 2c: 31 c0 xor %eax,%eax 2e: 0f 01 ca clac 31: e9 50 5c 04 00 jmp 0x45c86 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