loop0: detected capacity change from 0 to 65536 XFS (loop0): Mounting V5 Filesystem 9b7348e5-2fa0-41a5-9526-c53a678b01f3 XFS (loop0): Ending clean mount netlink: 205504 bytes leftover after parsing attributes in process `syz.0.0'. page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x1f pfn:0x43db9 memcg:ffff888040793580 flags: 0x4fff00000000001(locked|node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000001 0000000000000000 dead000000000122 0000000000000000 raw: 000000000000001f 0000000000000000 00000001ffffffff ffff888040793580 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 5334 (syz.0.0), ts 106228412256, free_ts 106227482064 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x22d/0x280 mm/page_alloc.c:1853 prep_new_page mm/page_alloc.c:1861 [inline] get_page_from_freelist+0x2593/0x2610 mm/page_alloc.c:3941 __alloc_frozen_pages_noprof+0x18d/0x380 mm/page_alloc.c:5221 alloc_pages_mpol+0x235/0x490 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:1014 ractl_alloc_folio mm/readahead.c:189 [inline] ra_alloc_folio mm/readahead.c:449 [inline] page_cache_ra_order+0x548/0xe80 mm/readahead.c:515 filemap_get_pages+0x4c0/0x1ef0 mm/filemap.c:2696 filemap_splice_read+0x5cd/0xd10 mm/filemap.c:3085 do_splice_read fs/splice.c:980 [inline] splice_direct_to_actor+0x478/0xc70 fs/splice.c:1084 do_splice_direct_actor fs/splice.c:1202 [inline] do_splice_direct+0x195/0x290 fs/splice.c:1228 do_sendfile+0x535/0x7d0 fs/read_write.c:1372 __do_sys_sendfile64 fs/read_write.c:1433 [inline] __se_sys_sendfile64+0x144/0x1a0 fs/read_write.c:1419 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 page last free pid 5336 tgid 5334 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1397 [inline] free_unref_folios+0xd9f/0x14c0 mm/page_alloc.c:2999 folios_put_refs+0x9ff/0xb40 mm/swap.c:1008 folio_batch_release include/linux/folio_batch.h:101 [inline] truncate_inode_pages_range+0x3dd/0xe30 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:860! 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+0x11bc/0x1330 mm/filemap.c:859 Code: 87 c1 ff 4c 89 e7 48 c7 c6 e0 ce d7 8b e8 bc ce 23 ff 90 0f 0b e8 f4 86 c1 ff 4c 89 e7 48 c7 c6 e0 c2 d7 8b e8 a5 ce 23 ff 90 <0f> 0b e8 dd 86 c1 ff 4c 89 e7 48 c7 c6 e0 ce d7 8b e8 8e ce 23 ff RSP: 0018:ffffc900079bf280 EFLAGS: 00010246 RAX: 1cdeb56e38949e00 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000007 RSI: ffffffff8dfa8d97 RDI: 00000000ffffffff RBP: ffffc900079bf400 R08: ffffffff90304df7 R09: 1ffffffff20609be R10: dffffc0000000000 R11: fffffbfff20609bf R12: ffffea00010f6e40 R13: dffffc0000000000 R14: ffffea00010f6e48 R15: 0000000000000004 FS: 00007fe5e62b66c0(0000) GS:ffff88808c891000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001038 CR3: 00000000430ef000 CR4: 0000000000352ef0 Call Trace: filemap_add_folio+0x264/0x530 mm/filemap.c:967 ra_alloc_folio mm/readahead.c:456 [inline] page_cache_ra_order+0x6a9/0xe80 mm/readahead.c:515 filemap_get_pages+0x4c0/0x1ef0 mm/filemap.c:2696 filemap_splice_read+0x5cd/0xd10 mm/filemap.c:3085 do_splice_read fs/splice.c:980 [inline] splice_direct_to_actor+0x478/0xc70 fs/splice.c:1084 do_splice_direct_actor fs/splice.c:1202 [inline] do_splice_direct+0x195/0x290 fs/splice.c:1228 do_sendfile+0x535/0x7d0 fs/read_write.c:1372 __do_sys_sendfile64 fs/read_write.c:1433 [inline] __se_sys_sendfile64+0x144/0x1a0 fs/read_write.c:1419 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:0x7fe5e539ce59 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:00007fe5e62b5fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fe5e5615fa0 RCX: 00007fe5e539ce59 RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000006 RBP: 00007fe5e5432d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020fffe82 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe5e5616038 R14: 00007fe5e5615fa0 R15: 00007ffca118f9b8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_add_folio+0x11bc/0x1330 mm/filemap.c:859 Code: 87 c1 ff 4c 89 e7 48 c7 c6 e0 ce d7 8b e8 bc ce 23 ff 90 0f 0b e8 f4 86 c1 ff 4c 89 e7 48 c7 c6 e0 c2 d7 8b e8 a5 ce 23 ff 90 <0f> 0b e8 dd 86 c1 ff 4c 89 e7 48 c7 c6 e0 ce d7 8b e8 8e ce 23 ff RSP: 0018:ffffc900079bf280 EFLAGS: 00010246 RAX: 1cdeb56e38949e00 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000007 RSI: ffffffff8dfa8d97 RDI: 00000000ffffffff RBP: ffffc900079bf400 R08: ffffffff90304df7 R09: 1ffffffff20609be R10: dffffc0000000000 R11: fffffbfff20609bf R12: ffffea00010f6e40 R13: dffffc0000000000 R14: ffffea00010f6e48 R15: 0000000000000004 FS: 00007fe5e62b66c0(0000) GS:ffff88808c891000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000010038 CR3: 00000000430ef000 CR4: 0000000000352ef0