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: 81 Comm: kworker/u8:4 Not tainted 6.14.0-rc7-syzkaller-00186-gd07de43e3f05 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Workqueue: events_unbound netfs_write_collection_worker
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 14 54 3a 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 5d
RSP: 0018:ffffc9000153f630 EFLAGS: 00010203
RAX: 0000000000000023 RBX: ffffc9000153f7c0 RCX: ffff88801cf23c00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 000000000000011e R08: ffffffff84ec4395 R09: ffffffff84ec4224
R10: 0000000000000004 R11: ffff88801cf23c00 R12: dffffc0000000000
R13: 0000000000000000 R14: 000000000000006d R15: 000000000000001e
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055d90e621600 CR3: 0000000065672000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 netfs_retry_write_stream fs/netfs/write_retry.c:44 [inline]
 netfs_retry_writes+0x17db/0x19b0 fs/netfs/write_retry.c:231
 netfs_collect_write_results fs/netfs/write_collect.c:352 [inline]
 netfs_write_collection_worker+0x2f90/0x3bc0 fs/netfs/write_collect.c:374
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xabe/0x18e0 kernel/workqueue.c:3319
 worker_thread+0x870/0xd30 kernel/workqueue.c:3400
 kthread+0x7a9/0x920 kernel/kthread.c:464
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
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 14 54 3a 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 5d
RSP: 0018:ffffc9000153f630 EFLAGS: 00010203
RAX: 0000000000000023 RBX: ffffc9000153f7c0 RCX: ffff88801cf23c00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 000000000000011e R08: ffffffff84ec4395 R09: ffffffff84ec4224
R10: 0000000000000004 R11: ffff88801cf23c00 R12: dffffc0000000000
R13: 0000000000000000 R14: 000000000000006d R15: 000000000000001e
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055d90e622680 CR3: 000000007bd56000 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 14 54 3a fd       	call   0xfd3a5420
   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:	5d                   	pop    %rbp