page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x23 pfn:0x4c379 memcg:ffff88801bed0d00 flags: 0x4fff00000000001(locked|node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000001 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000023 0000000000000000 00000001ffffffff ffff88801bed0d00 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 5327, tgid 5327 (syz.0.0), ts 87624546794, free_ts 87624147120 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x240/0x2a0 mm/page_alloc.c:1850 prep_new_page mm/page_alloc.c:1858 [inline] get_page_from_freelist+0x2365/0x2440 mm/page_alloc.c:3884 __alloc_frozen_pages_noprof+0x181/0x370 mm/page_alloc.c:5183 alloc_pages_mpol+0x232/0x4a0 mm/mempolicy.c:2416 alloc_frozen_pages_noprof mm/mempolicy.c:2487 [inline] alloc_pages_noprof+0xa9/0x190 mm/mempolicy.c:2507 folio_alloc_noprof+0x1e/0x30 mm/mempolicy.c:2517 filemap_alloc_folio_noprof+0xdf/0x470 mm/filemap.c:1020 ractl_alloc_folio mm/readahead.c:189 [inline] ra_alloc_folio mm/readahead.c:446 [inline] page_cache_ra_order+0x55b/0xe70 mm/readahead.c:512 do_sync_mmap_readahead+0x25e/0x7a0 mm/filemap.c:-1 filemap_fault+0x6b9/0x12b0 mm/filemap.c:3489 __do_fault+0x138/0x390 mm/memory.c:5280 do_shared_fault mm/memory.c:5762 [inline] do_fault mm/memory.c:5836 [inline] do_pte_missing mm/memory.c:4361 [inline] handle_pte_fault mm/memory.c:6177 [inline] __handle_mm_fault+0x1847/0x5400 mm/memory.c:6318 handle_mm_fault+0x40a/0x8e0 mm/memory.c:6487 do_user_addr_fault+0xa7c/0x1380 arch/x86/mm/fault.c:1336 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x82/0x100 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 page last free pid 5328 tgid 5327 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] free_unref_folios+0xdb3/0x14f0 mm/page_alloc.c:2963 folios_put_refs+0x584/0x670 mm/swap.c:1002 folio_batch_release include/linux/pagevec.h:101 [inline] truncate_inode_pages_range+0x346/0xda0 mm/truncate.c:383 kill_bdev block/bdev.c:91 [inline] set_blocksize+0x32a/0x500 block/bdev.c:207 blkdev_bszset+0x1ac/0x220 block/ioctl.c:554 blkdev_ioctl+0x437/0x6d0 block/ioctl.c:688 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+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:871! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5327 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~bpo12+1 04/01/2014 RIP: 0010:__filemap_add_folio+0x11ad/0x12f0 mm/filemap.c:870 Code: 8b c6 ff 4c 89 e7 48 c7 c6 00 75 74 8b e8 7b 63 2e ff 90 0f 0b e8 03 8b c6 ff 4c 89 e7 48 c7 c6 e0 6b 74 8b e8 64 63 2e ff 90 <0f> 0b e8 ec 8a c6 ff 4c 89 e7 48 c7 c6 00 75 74 8b e8 4d 63 2e ff RSP: 0018:ffffc9000d1d7680 EFLAGS: 00010246 RAX: ffeec572a6a07200 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000007 RSI: ffffffff8d7100d2 RDI: 00000000ffffffff RBP: ffffc9000d1d77e8 R08: ffffffff8f7cfb77 R09: 1ffffffff1ef9f6e R10: dffffc0000000000 R11: fffffbfff1ef9f6f R12: ffffea000130de40 R13: dffffc0000000000 R14: ffffea000130de48 R15: 0000000000000002 FS: 000055556474d500(0000) GS:ffff88808d732000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe5edcc6ad0 CR3: 0000000041026000 CR4: 0000000000352ef0 Call Trace: filemap_add_folio+0x26d/0x540 mm/filemap.c:978 ra_alloc_folio mm/readahead.c:453 [inline] page_cache_ra_order+0x6bc/0xe70 mm/readahead.c:512 do_sync_mmap_readahead+0x25e/0x7a0 mm/filemap.c:-1 filemap_fault+0x6b9/0x12b0 mm/filemap.c:3489 __do_fault+0x138/0x390 mm/memory.c:5280 do_shared_fault mm/memory.c:5762 [inline] do_fault mm/memory.c:5836 [inline] do_pte_missing mm/memory.c:4361 [inline] handle_pte_fault mm/memory.c:6177 [inline] __handle_mm_fault+0x1847/0x5400 mm/memory.c:6318 handle_mm_fault+0x40a/0x8e0 mm/memory.c:6487 do_user_addr_fault+0xa7c/0x1380 arch/x86/mm/fault.c:1336 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x82/0x100 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 RIP: 0033:0x7f9bc76654b9 Code: ff ff ff 01 64 48 8b 04 25 00 00 00 00 48 8d b8 c8 fe ff ff e8 68 59 0c 00 85 c0 75 10 48 8b 44 24 68 48 8b b4 24 98 00 00 00 <48> 89 30 64 f0 83 2c 25 90 ff ff ff 01 48 8b 84 24 80 00 00 00 48 RSP: 002b:00007fff79e782e0 EFLAGS: 00010246 RAX: 00002000000002c0 RBX: 0000000000000002 RCX: ffffffffffffe8ff RDX: 299369d50ed7e820 RSI: 0000200000001700 RDI: 000055556474d3c8 RBP: 0000000000000002 R08: 00007f9bc75ff02c R09: 000000000000005c R10: 0000000000000000 R11: 0000000000000001 R12: 00007f9bc79e618c R13: 00007f9bc79e6180 R14: fffffffffffffffe R15: 0000000000000005 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_add_folio+0x11ad/0x12f0 mm/filemap.c:870 Code: 8b c6 ff 4c 89 e7 48 c7 c6 00 75 74 8b e8 7b 63 2e ff 90 0f 0b e8 03 8b c6 ff 4c 89 e7 48 c7 c6 e0 6b 74 8b e8 64 63 2e ff 90 <0f> 0b e8 ec 8a c6 ff 4c 89 e7 48 c7 c6 00 75 74 8b e8 4d 63 2e ff RSP: 0018:ffffc9000d1d7680 EFLAGS: 00010246 RAX: ffeec572a6a07200 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000007 RSI: ffffffff8d7100d2 RDI: 00000000ffffffff RBP: ffffc9000d1d77e8 R08: ffffffff8f7cfb77 R09: 1ffffffff1ef9f6e R10: dffffc0000000000 R11: fffffbfff1ef9f6f R12: ffffea000130de40 R13: dffffc0000000000 R14: ffffea000130de48 R15: 0000000000000002 FS: 000055556474d500(0000) GS:ffff88808d732000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe5edcc6ad0 CR3: 0000000041026000 CR4: 0000000000352ef0