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: 1 UID: 0 PID: 20585 Comm: syz.6.3215 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/10/2026 RIP: 0010:__filemap_add_folio+0x11ee/0x1360 mm/filemap.c:858 Code: ff 4c 89 f7 48 c7 c6 20 f5 f7 8b e8 3c fc 22 ff 90 0f 0b e8 a4 4f c1 ff 48 8b 7c 24 08 48 c7 c6 e0 e9 f7 8b e8 23 fc 22 ff 90 <0f> 0b e8 8b 4f c1 ff 4c 89 f7 48 c7 c6 20 f5 f7 8b e8 0c fc 22 ff RSP: 0018:ffffc90006c2f180 EFLAGS: 00010246 RAX: c2ee56101a8bd400 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000007 RSI: ffffffff8e22949e RDI: 00000000ffffffff RBP: ffffc90006c2f300 R08: ffffffff90576cf7 R09: 1ffffffff20aed9e R10: dffffc0000000000 R11: fffffbfff20aed9f R12: dffffc0000000000 R13: ffff888023967bc0 R14: 0000000000000002 R15: ffff888023967cd8 FS: 00007f2039df66c0(0000) GS:ffff88812505a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f184d958060 CR3: 0000000053e84000 CR4: 0000000000350ef0 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_shared_fault mm/memory.c:5924 [inline] do_fault mm/memory.c:5998 [inline] do_pte_missing+0x684/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:copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] RIP: 0010:raw_copy_to_user arch/x86/include/asm/uaccess_64.h:147 [inline] RIP: 0010:_inline_copy_to_user include/linux/uaccess.h:202 [inline] RIP: 0010:_copy_to_user+0x85/0xb0 lib/usercopy.c:24 Code: e8 90 c7 f3 fc 4d 39 fc 72 3d 4d 39 ec 77 38 e8 21 c5 f3 fc 4c 89 f7 89 de e8 17 4c 61 fd 0f 01 cb 4c 89 ff 48 89 d9 4c 89 f6 a4 0f 1f 00 48 89 cb 0f 01 ca 48 89 d8 5b 41 5c 41 5d 41 5e 41 RSP: 0018:ffffc90006c2fbb0 EFLAGS: 00050256 RAX: ffffffff84d2ac01 RBX: 0000000000000008 RCX: 0000000000000008 RDX: 0000000000000000 RSI: ffffc90006c2fc20 RDI: 000020000001e000 RBP: ffffc90006c2fc90 R08: ffffc90006c2fc27 R09: 1ffff92000d85f84 R10: dffffc0000000000 R11: fffff52000d85f85 R12: 000020000001e008 R13: 00007ffffffff000 R14: ffffc90006c2fc20 R15: 000020000001e000 copy_to_user include/linux/uaccess.h:230 [inline] msr_read+0x161/0x230 arch/x86/kernel/msr.c:69 vfs_read+0x213/0xa80 fs/read_write.c:572 ksys_read+0x150/0x270 fs/read_write.c:716 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:0x7f203bb9de59 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:00007f2039df6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f203be25fa0 RCX: 00007f203bb9de59 RDX: 0000000000018ff8 RSI: 0000200000019300 RDI: 0000000000000005 RBP: 00007f203bc33e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f203be26038 R14: 00007f203be25fa0 R15: 00007ffd317f6118 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 20 f5 f7 8b e8 3c fc 22 ff 90 0f 0b e8 a4 4f c1 ff 48 8b 7c 24 08 48 c7 c6 e0 e9 f7 8b e8 23 fc 22 ff 90 <0f> 0b e8 8b 4f c1 ff 4c 89 f7 48 c7 c6 20 f5 f7 8b e8 0c fc 22 ff RSP: 0018:ffffc90006c2f180 EFLAGS: 00010246 RAX: c2ee56101a8bd400 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000007 RSI: ffffffff8e22949e RDI: 00000000ffffffff RBP: ffffc90006c2f300 R08: ffffffff90576cf7 R09: 1ffffffff20aed9e R10: dffffc0000000000 R11: fffffbfff20aed9f R12: dffffc0000000000 R13: ffff888023967bc0 R14: 0000000000000002 R15: ffff888023967cd8 FS: 00007f2039df66c0(0000) GS:ffff88812505a000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f44f5a4cc2b CR3: 0000000053e84000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: e8 90 c7 f3 fc call 0xfcf3c795 5: 4d 39 fc cmp %r15,%r12 8: 72 3d jb 0x47 a: 4d 39 ec cmp %r13,%r12 d: 77 38 ja 0x47 f: e8 21 c5 f3 fc call 0xfcf3c535 14: 4c 89 f7 mov %r14,%rdi 17: 89 de mov %ebx,%esi 19: e8 17 4c 61 fd call 0xfd614c35 1e: 0f 01 cb stac 21: 4c 89 ff mov %r15,%rdi 24: 48 89 d9 mov %rbx,%rcx 27: 4c 89 f6 mov %r14,%rsi * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: 0f 1f 00 nopl (%rax) 2f: 48 89 cb mov %rcx,%rbx 32: 0f 01 ca clac 35: 48 89 d8 mov %rbx,%rax 38: 5b pop %rbx 39: 41 5c pop %r12 3b: 41 5d pop %r13 3d: 41 5e pop %r14 3f: 41 rex.B