reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] free_unref_folios+0xa61/0x16b0 mm/page_alloc.c:2952 folios_put_refs+0x56f/0x740 mm/swap.c:997 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:554 blkdev_ioctl+0x44e/0x6d0 block/ioctl.c:688 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl fs/ioctl.c:584 [inline] __x64_sys_ioctl+0x18b/0x210 fs/ioctl.c:584 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: 0 UID: 0 PID: 10345 Comm: syz.3.1240 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:__filemap_add_folio+0xf5b/0x11e0 mm/filemap.c:867 Code: 7a c8 ff 48 c7 c6 e0 23 b9 8b 4c 89 ef e8 9d 28 11 00 90 0f 0b e8 95 7a c8 ff 48 c7 c6 40 24 b9 8b 4c 89 ef e8 86 28 11 00 90 <0f> 0b e8 7e 7a c8 ff 90 0f 0b 90 e9 f2 fb ff ff e8 70 7a c8 ff 48 RSP: 0018:ffffc9000fe77810 EFLAGS: 00010246 RAX: 0000000000080000 RBX: 0000000000000000 RCX: ffffc9000ec03000 RDX: 0000000000080000 RSI: ffffffff81f316ba RDI: ffff88802d372884 RBP: 0000000000112cc0 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff90ab4097 R11: 0000000000000001 R12: 0000000000000004 R13: ffffea0001381fc0 R14: 0000000000000000 R15: 000000000002c920 FS: 00007fd9fbf846c0(0000) GS:ffff8881246bc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31f22ff8 CR3: 000000005c387000 CR4: 00000000003526f0 Call Trace: filemap_add_folio+0x10e/0x220 mm/filemap.c:969 ra_alloc_folio mm/readahead.c:448 [inline] page_cache_ra_order+0x5a7/0xd70 mm/readahead.c:506 do_sync_mmap_readahead mm/filemap.c:3304 [inline] filemap_fault+0x152e/0x2930 mm/filemap.c:3445 __do_fault+0x10d/0x490 mm/memory.c:5152 do_read_fault mm/memory.c:5573 [inline] do_fault mm/memory.c:5707 [inline] do_pte_missing+0xf50/0x3ba0 mm/memory.c:4234 handle_pte_fault mm/memory.c:6052 [inline] __handle_mm_fault+0x152a/0x2a50 mm/memory.c:6195 handle_mm_fault+0x589/0xd10 mm/memory.c:6364 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:0x7fd9fb060780 Code: b6 ec 18 00 31 c0 e8 7f da fe ff 48 8d 54 24 60 89 df 31 c0 be 03 55 08 40 e8 3c e0 12 00 41 89 c6 e9 9e fe ff ff 0f 1f 40 00 <48> 8b 4c 06 f8 4c 89 cf 49 89 4c 01 f8 8d 48 ff c1 e9 03 f3 48 a5 RSP: 002b:00007fd9fbf81f70 EFLAGS: 00010216 RAX: 0000000000000012 RBX: 000000000000000b RCX: 0000000000000012 RDX: 0000000000000100 RSI: 0000200000000040 RDI: 00007fd9fb1ef2e0 RBP: 00007fd9fbf82fe0 R08: 0000000000000080 R09: 00007fd9fbf81fd8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000080085502 R13: 0000000800000000 R14: 0000000000000012 R15: 00007fd9fb21d391 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_add_folio+0xf5b/0x11e0 mm/filemap.c:867 Code: 7a c8 ff 48 c7 c6 e0 23 b9 8b 4c 89 ef e8 9d 28 11 00 90 0f 0b e8 95 7a c8 ff 48 c7 c6 40 24 b9 8b 4c 89 ef e8 86 28 11 00 90 <0f> 0b e8 7e 7a c8 ff 90 0f 0b 90 e9 f2 fb ff ff e8 70 7a c8 ff 48 RSP: 0018:ffffc9000fe77810 EFLAGS: 00010246 RAX: 0000000000080000 RBX: 0000000000000000 RCX: ffffc9000ec03000 RDX: 0000000000080000 RSI: ffffffff81f316ba RDI: ffff88802d372884 RBP: 0000000000112cc0 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff90ab4097 R11: 0000000000000001 R12: 0000000000000004 R13: ffffea0001381fc0 R14: 0000000000000000 R15: 000000000002c920 FS: 00007fd9fbf846c0(0000) GS:ffff8881246bc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31f22ff8 CR3: 000000005c387000 CR4: 00000000003526f0