folio_batch_release include/linux/folio_batch.h:106 [inline] truncate_inode_pages_range+0x42a/0xc10 mm/truncate.c:452 kill_bdev block/bdev.c:90 [inline] set_blocksize+0x2ce/0x440 block/bdev.c:206 blkdev_bszset+0x1b2/0x230 block/ioctl.c:641 blkdev_ioctl+0x2c7/0x740 block/ioctl.c:780 vfs_ioctl fs/ioctl.c:52 [inline] __do_sys_ioctl fs/ioctl.c:604 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:590 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:860! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 7662 Comm: syz.5.411 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 RIP: 0010:__filemap_add_folio+0x1236/0x13c0 mm/filemap.c:859 Code: 2a b1 ff 4c 89 ef 48 c7 c6 80 a4 59 8c e8 e2 9b 0f ff 90 0f 0b e8 ca 2a b1 ff 4c 89 ef 48 c7 c6 40 99 59 8c e8 cb 9b 0f ff 90 <0f> 0b e8 b3 2a b1 ff 4c 89 ef 48 c7 c6 80 a4 59 8c e8 b4 9b 0f ff RSP: 0018:ffffc90005357140 EFLAGS: 00010246 RAX: 5b950e7f57d60000 RBX: 0000000000000000 RCX: 0000000000000046 RDX: ffffc90004541000 RSI: ffffffff8ecc033a RDI: ffff88801f7f1f40 RBP: ffffc900053572b0 R08: ffffffff9034d1ab R09: 1ffffffff2069a35 R10: dffffc0000000000 R11: fffffbfff2069a36 R12: ffff8880250bfcd8 R13: ffffea00013bc600 R14: 0000000000000002 R15: dffffc0000000000 FS: 00007f824b1d86c0(0000) GS:ffff8881230fd000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000000040 CR3: 000000005b510000 CR4: 00000000003526f0 Call Trace: filemap_add_folio+0x251/0x4e0 mm/filemap.c:972 ra_alloc_folio mm/readahead.c:470 [inline] page_cache_ra_order+0x686/0xe70 mm/readahead.c:535 do_sync_mmap_readahead+0x74b/0x960 mm/filemap.c:3469 filemap_fault+0x73d/0x12c0 mm/filemap.c:3623 __do_fault+0x139/0x410 mm/memory.c:5717 do_read_fault mm/memory.c:6193 [inline] do_fault mm/memory.c:6327 [inline] do_pte_missing+0x21db/0x34d0 mm/memory.c:4803 handle_pte_fault mm/memory.c:6746 [inline] __handle_mm_fault mm/memory.c:6898 [inline] handle_mm_fault+0x1807/0x2f80 mm/memory.c:7065 do_user_addr_fault+0x7f6/0x1480 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:rep_movs_alternative+0xf/0xa0 arch/x86/lib/copy_user_64.S:46 Code: c4 10 c3 cc cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 83 f9 40 73 44 83 f9 08 73 25 85 c9 74 0f <8a> 06 88 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 cc cc cc cc 66 2e RSP: 0018:ffffc90005357b58 EFLAGS: 00050202 RAX: 00007ffffffff001 RBX: 0000000000000004 RCX: 0000000000000004 RDX: 0000000000000001 RSI: 0000200000000040 RDI: ffffc90005357be0 RBP: ffffc90005357d50 R08: ffffc90005357be3 R09: 1ffff92000a6af7c R10: dffffc0000000000 R11: fffff52000a6af7d R12: ffffc90005357be0 R13: 0000000000000004 R14: ffffc90005357be0 R15: 0000200000000040 copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:141 [inline] _inline_copy_from_user include/linux/uaccess.h:185 [inline] _copy_from_user+0x7a/0xb0 lib/usercopy.c:18 copy_from_user include/linux/uaccess.h:222 [inline] copy_from_sockptr_offset include/linux/sockptr.h:48 [inline] copy_from_sockptr include/linux/sockptr.h:61 [inline] sock_setbindtodevice net/core/sock.c:690 [inline] sk_setsockopt+0x252/0x3100 net/core/sock.c:1185 udp_lib_setsockopt+0xbc/0x6b0 net/ipv4/udp.c:2945 udp_setsockopt+0x67/0xb0 net/ipv4/udp.c:3041 do_sock_setsockopt+0x17c/0x1b0 net/socket.c:2399 __sys_setsockopt net/socket.c:2424 [inline] __do_sys_setsockopt net/socket.c:2430 [inline] __se_sys_setsockopt net/socket.c:2427 [inline] __x64_sys_setsockopt+0x13d/0x1b0 net/socket.c:2427 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x00007f824a3a9559 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:00007f824b1d8028 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f824a625fa0 RCX: 00007f824a3a9559 RDX: 0000000000000019 RSI: 0000000000000001 RDI: 000000000000000a RBP: 00007f824a438136 R08: 0000000000000004 R09: 0000000000000000 R10: 0000200000000040 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f824a626038 R14: 00007f824a625fa0 R15: 00007ffd33a0d568 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_add_folio+0x1236/0x13c0 mm/filemap.c:859 Code: 2a b1 ff 4c 89 ef 48 c7 c6 80 a4 59 8c e8 e2 9b 0f ff 90 0f 0b e8 ca 2a b1 ff 4c 89 ef 48 c7 c6 40 99 59 8c e8 cb 9b 0f ff 90 <0f> 0b e8 b3 2a b1 ff 4c 89 ef 48 c7 c6 80 a4 59 8c e8 b4 9b 0f ff RSP: 0018:ffffc90005357140 EFLAGS: 00010246 RAX: 5b950e7f57d60000 RBX: 0000000000000000 RCX: 0000000000000046 RDX: ffffc90004541000 RSI: ffffffff8ecc033a RDI: ffff88801f7f1f40 RBP: ffffc900053572b0 R08: ffffffff9034d1ab R09: 1ffffffff2069a35 R10: dffffc0000000000 R11: fffffbfff2069a36 R12: ffff8880250bfcd8 R13: ffffea00013bc600 R14: 0000000000000002 R15: dffffc0000000000 FS: 00007f824b1d86c0(0000) GS:ffff8881231fd000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9016b57e20 CR3: 000000005b510000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000002157 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 10 c3 adc %al,%bl 2: cc int3 3: cc int3 4: cc int3 5: cc int3 6: cc int3 7: cc int3 8: cc int3 9: cc int3 a: 90 nop b: 90 nop c: 90 nop d: 90 nop e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 48 83 f9 40 cmp $0x40,%rcx 1e: 73 44 jae 0x64 20: 83 f9 08 cmp $0x8,%ecx 23: 73 25 jae 0x4a 25: 85 c9 test %ecx,%ecx 27: 74 0f je 0x38 * 29: 8a 06 mov (%rsi),%al <-- trapping instruction 2b: 88 07 mov %al,(%rdi) 2d: 48 ff c7 inc %rdi 30: 48 ff c6 inc %rsi 33: 48 ff c9 dec %rcx 36: 75 f1 jne 0x29 38: c3 ret 39: cc int3 3a: cc int3 3b: cc int3 3c: cc int3 3d: 66 data16 3e: 2e cs