Oops: general protection fault, probably for non-canonical address 0xdffffc0000000023: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f] CPU: 0 UID: 0 PID: 3007 Comm: kworker/u4:10 Not tainted 6.15.0-rc4-syzkaller-00291-g2a239ffbebb5 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: events_unbound netfs_write_collection_worker RIP: 0010:folioq_folio_order include/linux/folio_queue.h:291 [inline] RIP: 0010:folioq_folio_size include/linux/folio_queue.h:305 [inline] RIP: 0010:iov_iter_folioq_revert lib/iov_iter.c:599 [inline] RIP: 0010:iov_iter_revert+0x2ec/0x5f0 lib/iov_iter.c:644 Code: 74 08 4c 89 e7 e8 d4 dd 6a fd 4d 8b 24 24 41 bd 1e 00 00 00 bd 1e 00 00 00 4c 01 e5 48 81 c5 00 01 00 00 48 89 e8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 75 65 0f b6 6d 00 bf 40 00 00 00 89 ee e8 cb RSP: 0018:ffffc9000d827730 EFLAGS: 00010203 RAX: 0000000000000023 RBX: ffffc9000d8278c0 RCX: ffff88803ef14880 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 000000000000011e R08: ffff88803ef14880 R09: 0000000000000004 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000 R13: 000000000000001e R14: dffffc0000000000 R15: ffffc9000d8278c0 FS: 0000000000000000(0000) GS:ffff88808d6cb000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f089d784538 CR3: 0000000042510000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: netfs_retry_write_stream fs/netfs/write_retry.c:44 [inline] netfs_retry_writes+0x1645/0x1840 fs/netfs/write_retry.c:231 netfs_collect_write_results fs/netfs/write_collect.c:352 [inline] netfs_write_collection_worker+0x2007/0x2bd0 fs/netfs/write_collect.c:374 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xadb/0x17a0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x70e/0x8a0 kernel/kthread.c:464 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folioq_folio_order include/linux/folio_queue.h:291 [inline] RIP: 0010:folioq_folio_size include/linux/folio_queue.h:305 [inline] RIP: 0010:iov_iter_folioq_revert lib/iov_iter.c:599 [inline] RIP: 0010:iov_iter_revert+0x2ec/0x5f0 lib/iov_iter.c:644 Code: 74 08 4c 89 e7 e8 d4 dd 6a fd 4d 8b 24 24 41 bd 1e 00 00 00 bd 1e 00 00 00 4c 01 e5 48 81 c5 00 01 00 00 48 89 e8 48 c1 e8 03 <42> 0f b6 04 30 84 c0 75 65 0f b6 6d 00 bf 40 00 00 00 89 ee e8 cb RSP: 0018:ffffc9000d827730 EFLAGS: 00010203 RAX: 0000000000000023 RBX: ffffc9000d8278c0 RCX: ffff88803ef14880 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 000000000000011e R08: ffff88803ef14880 R09: 0000000000000004 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000 R13: 000000000000001e R14: dffffc0000000000 R15: ffffc9000d8278c0 FS: 0000000000000000(0000) GS:ffff88808d6cb000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f089d784538 CR3: 0000000042510000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 74 08 je 0xa 2: 4c 89 e7 mov %r12,%rdi 5: e8 d4 dd 6a fd call 0xfd6addde a: 4d 8b 24 24 mov (%r12),%r12 e: 41 bd 1e 00 00 00 mov $0x1e,%r13d 14: bd 1e 00 00 00 mov $0x1e,%ebp 19: 4c 01 e5 add %r12,%rbp 1c: 48 81 c5 00 01 00 00 add $0x100,%rbp 23: 48 89 e8 mov %rbp,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 75 65 jne 0x98 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: cb lret