syzbot


general protection fault in iter_file_splice_write

Status: premoderation: reported C repro on 2025/07/31 01:55
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+2cd923b9702c214e6a09@syzkaller.appspotmail.com
First crash: 13d, last: 13d
Bug presence (2)
Date Name Commit Repro Result
2025/08/01 lts (merge base) 259f4977409c C [report] general protection fault in iter_file_splice_write
2025/08/01 upstream (ToT) cbbf0a759ff9 C [report] general protection fault in iter_file_splice_write
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in iter_file_splice_write fs 2 C done 2804 1d18h 450d 0/29 upstream: reported C repro on 2024/05/20 08:06

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 UID: 0 PID: 311 Comm: syz-executor377 Not tainted 6.12.38-syzkaller-gcab1c944469e #0 734e319b388da58a33232d9455bc96d2bb27a3d9
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:pipe_buf_release include/linux/pipe_fs_i.h:219 [inline]
RIP: 0010:iter_file_splice_write+0xa44/0x1100 fs/splice.c:759
Code: 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 d1 d5 e6 ff 49 8b 1e 49 c7 06 00 00 00 00 48 83 c3 08 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 ad d5 e6 ff 4c 8b 1b 48 8b 3c 24
RSP: 0018:ffffc900011bf820 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: ffff888103fb0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 7ffffffffffffffa
RBP: ffffc900011bfa40 R08: ffffea00047df037 R09: 1ffffd40008fbe06
R10: dffffc0000000000 R11: fffff940008fbe07 R12: dffffc0000000000
R13: 7ffffffffffffffa R14: ffff8881076b9038 R15: ffff8881076b9028
FS:  000055557154d380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0f7acda0e0 CR3: 0000000105b42000 CR4: 00000000003526b0
Call Trace:
 <TASK>
 do_splice_from fs/splice.c:941 [inline]
 direct_splice_actor+0x276/0x4b0 fs/splice.c:1164
 splice_direct_to_actor+0x4fe/0xbc0 fs/splice.c:1108
 do_splice_direct_actor fs/splice.c:1207 [inline]
 do_splice_direct+0x182/0x270 fs/splice.c:1233
 do_sendfile+0x5c8/0xfb0 fs/read_write.c:1400
 __do_sys_sendfile64 fs/read_write.c:1467 [inline]
 __se_sys_sendfile64 fs/read_write.c:1453 [inline]
 __x64_sys_sendfile64+0x193/0x1f0 fs/read_write.c:1453
 x64_sys_call+0xa26/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:41
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x58/0xf0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f0f7ac62ef9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc64de0868 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 0000200000000140 RCX: 00007f0f7ac62ef9
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006
RBP: 0030656c69662f2e R08: 0000000000000006 R09: 0000000000000006
R10: 000000007ffff000 R11: 0000000000000246 R12: 0000200000000180
R13: 00007f0f7acac04e R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:pipe_buf_release include/linux/pipe_fs_i.h:219 [inline]
RIP: 0010:iter_file_splice_write+0xa44/0x1100 fs/splice.c:759
Code: 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 d1 d5 e6 ff 49 8b 1e 49 c7 06 00 00 00 00 48 83 c3 08 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 ad d5 e6 ff 4c 8b 1b 48 8b 3c 24
RSP: 0018:ffffc900011bf820 EFLAGS: 00010202
RAX: 0000000000000001 RBX: 0000000000000008 RCX: ffff888103fb0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 7ffffffffffffffa
RBP: ffffc900011bfa40 R08: ffffea00047df037 R09: 1ffffd40008fbe06
R10: dffffc0000000000 R11: fffff940008fbe07 R12: dffffc0000000000
R13: 7ffffffffffffffa R14: ffff8881076b9038 R15: ffff8881076b9028
FS:  000055557154d380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0f7acda0e0 CR3: 0000000105b42000 CR4: 00000000003526b0
----------------
Code disassembly (best guess):
   0:	89 f0                	mov    %esi,%eax
   2:	48 c1 e8 03          	shr    $0x3,%rax
   6:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1)
   b:	74 08                	je     0x15
   d:	4c 89 f7             	mov    %r14,%rdi
  10:	e8 d1 d5 e6 ff       	call   0xffe6d5e6
  15:	49 8b 1e             	mov    (%r14),%rbx
  18:	49 c7 06 00 00 00 00 	movq   $0x0,(%r14)
  1f:	48 83 c3 08          	add    $0x8,%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 ad d5 e6 ff       	call   0xffe6d5e6
  39:	4c 8b 1b             	mov    (%rbx),%r11
  3c:	48 8b 3c 24          	mov    (%rsp),%rdi

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/31 05:22 android16-6.12 cab1c944469e f8f2b4da .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in iter_file_splice_write
2025/07/31 04:34 android16-6.12 cab1c944469e f8f2b4da .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in iter_file_splice_write
2025/07/31 03:46 android16-6.12 cab1c944469e f8f2b4da .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in iter_file_splice_write
2025/07/31 02:56 android16-6.12 cab1c944469e f8f2b4da .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in iter_file_splice_write
2025/07/31 10:57 android16-6.12 cab1c944469e f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in iter_file_splice_write
2025/07/31 01:54 android16-6.12 cab1c944469e f8f2b4da .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in iter_file_splice_write
* Struck through repros no longer work on HEAD.