Oops: general protection fault, probably for non-canonical address 0xdffffc0000000023: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f] CPU: 0 UID: 0 PID: 7250 Comm: syz.4.370 Not tainted 6.13.0-syzkaller-08265-g9c5968db9e62 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:folioq_folio_order include/linux/folio_queue.h:297 [inline] RIP: 0010:folioq_folio_size include/linux/folio_queue.h:311 [inline] RIP: 0010:iov_iter_folioq_revert lib/iov_iter.c:599 [inline] RIP: 0010:iov_iter_revert+0x2da/0x590 lib/iov_iter.c:644 Code: 20 00 74 08 4c 89 ef e8 94 c0 44 fd 4d 8b 6d 00 41 bf 1e 00 00 00 bd 1e 00 00 00 49 8d ac 2d 00 01 00 00 48 89 e8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 75 40 0f b6 6d 00 bf 40 00 00 00 89 ee e8 6d RSP: 0018:ffffc9001bdd7350 EFLAGS: 00010203 RAX: 0000000000000023 RBX: 0000000000001000 RCX: ffff888020fe9e00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 000000000000011e R08: ffffffff84dea995 R09: ffffffff84dea824 R10: 0000000000000004 R11: ffff888020fe9e00 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000001 R15: 000000000000001e FS: 0000555568c21500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000c380 CR3: 000000003211e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: p9_client_write+0x444/0x7a0 net/9p/client.c:1669 v9fs_issue_write+0xf0/0x1d0 fs/9p/vfs_addr.c:59 netfs_do_issue_write fs/netfs/write_issue.c:239 [inline] netfs_issue_write fs/netfs/write_issue.c:268 [inline] netfs_advance_write+0x97c/0xbd0 fs/netfs/write_issue.c:309 netfs_write_folio+0x104c/0x1c30 fs/netfs/write_issue.c:497 netfs_writepages+0x710/0x9e0 fs/netfs/write_issue.c:593 do_writepages+0x35f/0x880 mm/page-writeback.c:2687 filemap_fdatawrite_wbc mm/filemap.c:389 [inline] __filemap_fdatawrite_range mm/filemap.c:422 [inline] __filemap_fdatawrite mm/filemap.c:428 [inline] filemap_fdatawrite+0x1f3/0x2a0 mm/filemap.c:433 v9fs_dir_release+0x151/0x560 fs/9p/vfs_dir.c:219 __fput+0x3e9/0x9f0 fs/file_table.c:450 task_work_run+0x24f/0x310 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f156678cda9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffe5d665c8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00000000000361c6 RCX: 00007f156678cda9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f15669a7ba0 R08: 0000000000000001 R09: 00007fffe5d668cf R10: 00007f1566600000 R11: 0000000000000246 R12: 0000000000036b50 R13: 00007f15669a5fa0 R14: 0000000000000032 R15: ffffffffffffffff Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folioq_folio_order include/linux/folio_queue.h:297 [inline] RIP: 0010:folioq_folio_size include/linux/folio_queue.h:311 [inline] RIP: 0010:iov_iter_folioq_revert lib/iov_iter.c:599 [inline] RIP: 0010:iov_iter_revert+0x2da/0x590 lib/iov_iter.c:644 Code: 20 00 74 08 4c 89 ef e8 94 c0 44 fd 4d 8b 6d 00 41 bf 1e 00 00 00 bd 1e 00 00 00 49 8d ac 2d 00 01 00 00 48 89 e8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 75 40 0f b6 6d 00 bf 40 00 00 00 89 ee e8 6d RSP: 0018:ffffc9001bdd7350 EFLAGS: 00010203 RAX: 0000000000000023 RBX: 0000000000001000 RCX: ffff888020fe9e00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 000000000000011e R08: ffffffff84dea995 R09: ffffffff84dea824 R10: 0000000000000004 R11: ffff888020fe9e00 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000001 R15: 000000000000001e FS: 0000555568c21500(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007feede98df98 CR3: 000000003211e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 20 00 and %al,(%rax) 2: 74 08 je 0xc 4: 4c 89 ef mov %r13,%rdi 7: e8 94 c0 44 fd call 0xfd44c0a0 c: 4d 8b 6d 00 mov 0x0(%r13),%r13 10: 41 bf 1e 00 00 00 mov $0x1e,%r15d 16: bd 1e 00 00 00 mov $0x1e,%ebp 1b: 49 8d ac 2d 00 01 00 lea 0x100(%r13,%rbp,1),%rbp 22: 00 23: 48 89 e8 mov %rbp,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 75 40 jne 0x73 33: 0f b6 6d 00 movzbl 0x0(%rbp),%ebp 37: bf 40 00 00 00 mov $0x40,%edi 3c: 89 ee mov %ebp,%esi 3e: e8 .byte 0xe8 3f: 6d insl (%dx),%es:(%rdi)