handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x5c/0xb0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 page last free pid 13211 tgid 13210 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1248 [inline] free_unref_folios+0xa65/0x1800 mm/page_alloc.c:2763 folios_put_refs+0x56f/0x740 mm/swap.c:992 folio_batch_release include/linux/pagevec.h:101 [inline] truncate_inode_pages_range+0x311/0xe50 mm/truncate.c:383 kill_bdev block/bdev.c:91 [inline] set_blocksize+0x2b8/0x500 block/bdev.c:207 blkdev_bszset+0x19b/0x240 block/ioctl.c:553 blkdev_ioctl+0x44e/0x6d0 block/ioctl.c:687 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x18b/0x210 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:867! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 1 UID: 0 PID: 13210 Comm: syz.0.1966 Not tainted 6.16.0-rc3-syzkaller-00072-gee88bddf7f2f #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:__filemap_add_folio+0xf53/0x11d0 mm/filemap.c:867 Code: cf c7 ff 48 c7 c6 c0 1e b9 8b 4c 89 ef e8 65 13 11 00 90 0f 0b e8 8d cf c7 ff 48 c7 c6 20 1f b9 8b 4c 89 ef e8 4e 13 11 00 90 <0f> 0b e8 76 cf c7 ff 90 0f 0b 90 e9 f2 fb ff ff e8 68 cf c7 ff 48 RSP: 0018:ffffc900033078b0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000 RDX: ffff88802be32440 RSI: ffffffff81f450f2 RDI: ffff88802be32884 RBP: 0000000000112cc0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff90a81257 R11: 0000000000000001 R12: 0000000000000004 R13: ffffea0000a73d00 R14: 0000000000000000 R15: 0000000000000002 FS: 0000555569cc0500(0000) GS:ffff888124852000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000004000 CR3: 0000000028763000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: filemap_add_folio+0x10e/0x220 mm/filemap.c:969 ra_alloc_folio mm/readahead.c:448 [inline] page_cache_ra_order+0x586/0xd00 mm/readahead.c:509 do_sync_mmap_readahead mm/filemap.c:3271 [inline] filemap_fault+0x1465/0x26c0 mm/filemap.c:3412 __do_fault+0x10d/0x490 mm/memory.c:5169 do_shared_fault mm/memory.c:5654 [inline] do_fault mm/memory.c:5728 [inline] do_pte_missing mm/memory.c:4251 [inline] handle_pte_fault mm/memory.c:6069 [inline] __handle_mm_fault+0x374c/0x5490 mm/memory.c:6212 handle_mm_fault+0x589/0xd10 mm/memory.c:6381 do_user_addr_fault+0x60c/0x1370 arch/x86/mm/fault.c:1336 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x5c/0xb0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x7f37d5d57e08 Code: 66 89 74 17 02 88 0f c3 c5 fa 6f 06 c5 fa 6f 4c 16 f0 c5 fa 7f 07 c5 fa 7f 4c 17 f0 c3 0f 1f 44 00 00 48 8b 4c 16 f8 48 8b 36 <48> 89 37 48 89 4c 17 f8 c3 62 e1 fe 28 6f 54 16 ff 62 e1 fe 28 6f RSP: 002b:00007ffed006cbf8 EFLAGS: 00010202 RAX: 00002000000001c0 RBX: 0000000000000004 RCX: 0072736d2f232f75 RDX: 000000000000000f RSI: 7570632f7665642f RDI: 00002000000001c0 RBP: 00007f37d5fb7ba0 R08: 00007f37d5c00000 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000009 R12: 00007f37d5fb5fac R13: 00007ffed006ccf0 R14: fffffffffffffffe R15: 00007ffed006cd10 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_add_folio+0xf53/0x11d0 mm/filemap.c:867 Code: cf c7 ff 48 c7 c6 c0 1e b9 8b 4c 89 ef e8 65 13 11 00 90 0f 0b e8 8d cf c7 ff 48 c7 c6 20 1f b9 8b 4c 89 ef e8 4e 13 11 00 90 <0f> 0b e8 76 cf c7 ff 90 0f 0b 90 e9 f2 fb ff ff e8 68 cf c7 ff 48 RSP: 0018:ffffc900033078b0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000 RDX: ffff88802be32440 RSI: ffffffff81f450f2 RDI: ffff88802be32884 RBP: 0000000000112cc0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff90a81257 R11: 0000000000000001 R12: 0000000000000004 R13: ffffea0000a73d00 R14: 0000000000000000 R15: 0000000000000002 FS: 0000555569cc0500(0000) GS:ffff888124852000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000004000 CR3: 0000000028763000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400