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: 188d, last: 8h14m
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 (4)
Title Replies (including bot) Last reply
[PATCH] fix: general protection fault in iter_file_splice_write 4 (4) 2024/11/04 17:12
[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 (1723):
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/11/08 15:12 upstream 906bd684e4b1 d40c056e .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/05 14:27 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/10/24 15:39 upstream c2ee9f594da8 c08e46d6 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in iter_file_splice_write
2024/10/22 20:32 upstream c2ee9f594da8 a573a9f4 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream 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/11/20 11:06 upstream a5c93bfec0be 7d02db5a .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/11/19 21:20 upstream 158f238aa69d 571351cb .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/11/19 16:32 upstream 158f238aa69d 571351cb .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/11/19 15:10 upstream c6d64479d609 571351cb .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/11/18 12:48 upstream adc218676eef 571351cb .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/11/17 20:24 upstream f66d6acccbc0 cfe3a04a .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/11/17 04:06 upstream 4a5df3796467 cfe3a04a .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/11/16 08:50 upstream f868cd251776 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in iter_file_splice_write
2024/11/16 03:36 upstream f868cd251776 cfe3a04a .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/11/15 17:59 upstream cfaaa7d010d1 f6ede3a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in iter_file_splice_write
2024/11/15 15:56 upstream cfaaa7d010d1 f6ede3a3 .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/11/15 13:40 upstream cfaaa7d010d1 f6ede3a3 .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/11/15 04:37 upstream cfaaa7d010d1 f6ede3a3 .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/11/14 21:52 upstream 0a9b9d17f3a7 77f3eeb7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in iter_file_splice_write
2024/11/20 22:24 upstream 8f7c8b88bda4 4fca1650 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/20 20:55 upstream 8f7c8b88bda4 4fca1650 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/20 19:49 upstream 8f7c8b88bda4 4fca1650 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/20 19:45 upstream 8f7c8b88bda4 4fca1650 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/20 16:23 upstream bf9aa14fc523 4fca1650 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/20 15:04 upstream bf9aa14fc523 4fca1650 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/20 09:39 upstream bf9aa14fc523 7d02db5a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/20 08:26 upstream bf9aa14fc523 7d02db5a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/20 02:37 upstream 158f238aa69d 7d02db5a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/20 00:14 upstream 158f238aa69d 7d02db5a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/19 18:28 upstream 158f238aa69d 7d02db5a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/19 18:22 upstream 158f238aa69d 7d02db5a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/19 10:05 upstream 9fb2cfa4635a 571351cb .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/19 08:46 upstream 9fb2cfa4635a 571351cb .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/19 03:41 upstream 9fb2cfa4635a 571351cb .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/18 21:48 upstream adc218676eef e7bb5d6e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/18 17:44 upstream adc218676eef e7bb5d6e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/18 14:29 upstream adc218676eef e7bb5d6e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/18 00:57 upstream f66d6acccbc0 cfe3a04a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in iter_file_splice_write
2024/11/17 23:51 upstream f66d6acccbc0 cfe3a04a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/17 22:24 upstream f66d6acccbc0 cfe3a04a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/15 00:49 upstream cfaaa7d010d1 f6ede3a3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/14 20:21 upstream cfaaa7d010d1 77f3eeb7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/14 18:23 upstream 0a9b9d17f3a7 77f3eeb7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/14 15:23 upstream 0a9b9d17f3a7 77f3eeb7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/14 15:23 upstream 0a9b9d17f3a7 77f3eeb7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/14 12:43 upstream 0a9b9d17f3a7 77f3eeb7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in iter_file_splice_write
2024/11/20 06:21 upstream bf9aa14fc523 7d02db5a .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/11/18 23:08 upstream 9fb2cfa4635a 571351cb .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/11/18 20:01 upstream adc218676eef e7bb5d6e .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/11/18 18:59 upstream adc218676eef e7bb5d6e .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/11/18 11:13 upstream adc218676eef e7bb5d6e .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/11/18 09:46 upstream adc218676eef cfe3a04a .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/11/16 02:00 upstream f868cd251776 cfe3a04a .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/11/15 21:07 upstream f868cd251776 eeafb645 .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/11/14 13:56 upstream 0a9b9d17f3a7 77f3eeb7 .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/11/11 20:30 linux-next 929beafbe7ac 97fe5517 .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.