syzbot


general protection fault in iter_file_splice_write

Status: upstream: reported C repro on 2024/05/20 08:06
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+d2125fcb6aa8c4276fd2@syzkaller.appspotmail.com
First crash: 144d, last: 14m
Cause bisection: introduced by (bisect log) :
commit 2df86547b23dabcd02ab000a24ed7813606c269f
Author: David Howells <dhowells@redhat.com>
Date: Fri Mar 8 12:36:05 2024 +0000

  netfs: Cut over to using new writeback code

Crash: BUG: unable to handle kernel NULL pointer dereference in iter_file_splice_write (log)
Repro: C syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] [fs?] general protection fault in iter_file_splice_write 8 (24) 2024/08/11 22:43
[syzbot] Monthly fs report (Jul 2024) 0 (1) 2024/07/18 07:59
[PATCH] netfs: if extracting pages from user iterator fails return 0 1 (1) 2024/05/24 05:35
Last patch testing requests (14)
Created Duration User Patch Repo Result
2024/05/24 03:51 24m lizhi.xu@windriver.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 33e02dc69afb OK log
2024/05/24 02:07 23m lizhi.xu@windriver.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 33e02dc69afb OK log
2024/05/24 01:30 20m lizhi.xu@windriver.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 33e02dc69afb OK log
2024/05/24 00:52 22m lizhi.xu@windriver.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 33e02dc69afb OK log
2024/05/23 14:13 23m eadavis@qq.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 33e02dc69afb OK log
2024/05/23 12:33 24m eadavis@qq.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 33e02dc69afb OK log
2024/05/23 09:23 11m lizhi.xu@windriver.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 33e02dc69afb error
2024/05/23 08:33 23m lizhi.xu@windriver.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 33e02dc69afb OK log
2024/05/22 14:05 23m eadavis@qq.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 33e02dc69afb error
2024/05/22 13:30 23m eadavis@qq.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 33e02dc69afb OK log
2024/05/22 12:49 23m eadavis@qq.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 33e02dc69afb OK log
2024/05/22 11:30 24m eadavis@qq.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 33e02dc69afb OK log
2024/05/22 10:37 18m eadavis@qq.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 33e02dc69afb report log
2024/05/22 05:22 22m eadavis@qq.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 33e02dc69afb OK log

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 UID: 0 PID: 5236 Comm: syz-executor242 Not tainted 6.11.0-rc2-syzkaller-00257-g5189dafa4cf9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:pipe_buf_release include/linux/pipe_fs_i.h:219 [inline]
RIP: 0010:iter_file_splice_write+0xdd0/0x14e0 fs/splice.c:759
Code: 00 00 00 fc ff df 41 80 3c 06 00 49 89 c6 74 08 4c 89 ff e8 72 4e e0 ff 49 c7 07 00 00 00 00 48 83 c3 08 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 61 4d e0 ff 48 8b 44 24 10 48 8b
RSP: 0018:ffffc900034bf780 EFLAGS: 00010212
RAX: 0000000000000001 RBX: 0000000000000008 RCX: 0000000000000005
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 7ffffffffffffffa
RBP: ffffc900034bfa10 R08: ffffffff821a7060 R09: 1ffffd40003befd6
R10: dffffc0000000000 R11: fffff940003befd7 R12: 7ffffffffffffffa
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff888023787038
FS:  0000555576942380(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f92ab2d7890 CR3: 0000000024258000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 do_splice_from fs/splice.c:941 [inline]
 direct_splice_actor+0x120/0x220 fs/splice.c:1164
 splice_direct_to_actor+0x590/0xc90 fs/splice.c:1108
 do_splice_direct_actor fs/splice.c:1207 [inline]
 do_splice_direct+0x28c/0x3e0 fs/splice.c:1233
 do_sendfile+0x56d/0xe20 fs/read_write.c:1295
 __do_sys_sendfile64 fs/read_write.c:1362 [inline]
 __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1348
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f92ab2b8ef9
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:00007ffde2e02008 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f92ab2b8ef9
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006
RBP: 00007f92ab30204e R08: 0000000000000006 R09: 0000000000000006
R10: 000000007ffff000 R11: 0000000000000246 R12: 00007ffde2e0201c
R13: 431bde82d7b634db 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+0xdd0/0x14e0 fs/splice.c:759
Code: 00 00 00 fc ff df 41 80 3c 06 00 49 89 c6 74 08 4c 89 ff e8 72 4e e0 ff 49 c7 07 00 00 00 00 48 83 c3 08 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 61 4d e0 ff 48 8b 44 24 10 48 8b
RSP: 0018:ffffc900034bf780 EFLAGS: 00010212
RAX: 0000000000000001 RBX: 0000000000000008 RCX: 0000000000000005
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 7ffffffffffffffa
RBP: ffffc900034bfa10 R08: ffffffff821a7060 R09: 1ffffd40003befd6
R10: dffffc0000000000 R11: fffff940003befd7 R12: 7ffffffffffffffa
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff888023787038
FS:  0000555576942380(0000) GS:ffff8880b9200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f92ab2d7890 CR3: 0000000024258000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess), 6 bytes skipped:
   0:	41 80 3c 06 00       	cmpb   $0x0,(%r14,%rax,1)
   5:	49 89 c6             	mov    %rax,%r14
   8:	74 08                	je     0x12
   a:	4c 89 ff             	mov    %r15,%rdi
   d:	e8 72 4e e0 ff       	call   0xffe04e84
  12:	49 c7 07 00 00 00 00 	movq   $0x0,(%r15)
  19:	48 83 c3 08          	add    $0x8,%rbx
  1d:	48 89 d8             	mov    %rbx,%rax
  20:	48 c1 e8 03          	shr    $0x3,%rax
* 24:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  29:	74 08                	je     0x33
  2b:	48 89 df             	mov    %rbx,%rdi
  2e:	e8 61 4d e0 ff       	call   0xffe04d94
  33:	48 8b 44 24 10       	mov    0x10(%rsp),%rax
  38:	48                   	rex.W
  39:	8b                   	.byte 0x8b

Crashes (1271):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/11 09:31 upstream 5189dafa4cf9 6f4edef4 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in iter_file_splice_write
2024/05/16 08:21 upstream 33e02dc69afb ef5d53ed .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/10/08 04:23 upstream 87d6aab2389e 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in iter_file_splice_write
2024/10/07 00:55 upstream 2a130b7e1fcd d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in iter_file_splice_write
2024/10/05 10:24 upstream 27cc6fdf7201 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in iter_file_splice_write
2024/10/04 21:05 upstream 360c1f1f24c6 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in iter_file_splice_write
2024/10/04 19:01 upstream 0c559323bbaa d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in iter_file_splice_write
2024/10/04 03:23 upstream 0c559323bbaa d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in iter_file_splice_write
2024/10/03 13:20 upstream 7ec462100ef9 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in iter_file_splice_write
2024/10/03 01:12 upstream f23aa4c0761a a4c7fd36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in iter_file_splice_write
2024/10/02 16:35 upstream e32cde8d2bd7 a4c7fd36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in iter_file_splice_write
2024/10/01 16:46 upstream e32cde8d2bd7 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in iter_file_splice_write
2024/10/01 06:19 upstream e32cde8d2bd7 bbd4e0a4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in iter_file_splice_write
2024/09/28 20:33 upstream 3efc57369a0c ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in iter_file_splice_write
2024/09/28 06:42 upstream ad46e8f95e93 440b26ec .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in iter_file_splice_write
2024/09/27 20:13 upstream e477dba5442c 2b1784d6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in iter_file_splice_write
2024/09/27 06:39 upstream 075dbe9f6e3c 9314348a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in iter_file_splice_write
2024/09/26 01:56 upstream aa486552a110 349a68c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in iter_file_splice_write
2024/09/25 23:43 upstream aa486552a110 349a68c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in iter_file_splice_write
2024/09/25 08:02 upstream a430d95c5efa 349a68c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in iter_file_splice_write
2024/09/24 23:30 upstream 97d8894b6f4c 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in iter_file_splice_write
2024/09/24 14:23 upstream abf2050f51fd 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in iter_file_splice_write
2024/09/24 07:20 upstream abf2050f51fd 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in iter_file_splice_write
2024/09/24 04:42 upstream abf2050f51fd 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in iter_file_splice_write
2024/10/08 06:38 upstream 87d6aab2389e 402f1df0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in iter_file_splice_write
2024/10/06 07:48 upstream fc20a3e57247 d7906eff .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in iter_file_splice_write
2024/10/05 04:36 upstream 27cc6fdf7201 d7906eff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/10/04 20:13 upstream 0c559323bbaa d7906eff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/10/04 15:16 upstream 0c559323bbaa d7906eff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/10/04 04:47 upstream 3840cbe24cf0 d7906eff .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in iter_file_splice_write
2024/10/03 00:08 upstream f23aa4c0761a a4c7fd36 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/10/02 21:39 upstream f23aa4c0761a 83a2f15f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/10/02 14:09 upstream e32cde8d2bd7 83a2f15f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/10/01 10:12 upstream e32cde8d2bd7 bbd4e0a4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/09/30 08:11 upstream 9852d85ec9d4 ba29ff75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/09/29 01:53 upstream 3efc57369a0c ba29ff75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/09/28 18:04 upstream ad46e8f95e93 ba29ff75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/09/28 14:12 upstream ad46e8f95e93 ba29ff75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/09/28 02:42 upstream e477dba5442c 440b26ec .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in iter_file_splice_write
2024/09/27 19:05 upstream e477dba5442c 2b1784d6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/09/27 07:05 upstream 075dbe9f6e3c 9314348a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/10/04 17:57 upstream 0c559323bbaa d7906eff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in iter_file_splice_write
2024/10/01 00:11 upstream e32cde8d2bd7 bbd4e0a4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in iter_file_splice_write
2024/09/30 13:03 upstream 9852d85ec9d4 179f4029 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in iter_file_splice_write
2024/09/29 23:17 upstream e7ed34365879 ba29ff75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in iter_file_splice_write
2024/09/29 19:30 upstream e7ed34365879 ba29ff75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in iter_file_splice_write
2024/09/29 10:43 upstream 3efc57369a0c ba29ff75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in iter_file_splice_write
2024/09/28 10:22 upstream e477dba5442c 440b26ec .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in iter_file_splice_write
2024/09/28 05:37 upstream e477dba5442c 440b26ec .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in iter_file_splice_write
2024/09/27 23:50 upstream e477dba5442c 440b26ec .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in iter_file_splice_write
2024/09/27 00:09 upstream 075dbe9f6e3c 9314348a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in iter_file_splice_write
2024/09/26 21:46 upstream 11a299a7933e 9314348a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in iter_file_splice_write
2024/10/03 07:15 linux-next c02d24a5af66 a4c7fd36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iter_file_splice_write
2024/10/02 08:09 linux-next fe2173353674 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iter_file_splice_write
2024/09/27 17:26 linux-next 40e0c9d414f5 2b1784d6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iter_file_splice_write
2024/09/26 08:04 linux-next 92fc9636d147 0d19f247 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iter_file_splice_write
2024/09/24 08:53 linux-next 4d0326b60bb7 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in iter_file_splice_write
* Struck through repros no longer work on HEAD.