syzbot


BUG: unable to handle kernel paging request in copy_from_kernel_nofault

Status: auto-obsoleted due to no activity on 2024/10/20 13:25
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+4b8df9cb28a110aba72d@syzkaller.appspotmail.com
First crash: 390d, last: 120d
Fix bisection: fixed by (bisect log) :
commit e8a67fe34b76a49320b33032228a794f40b0316b
Author: Hou Tao <houtao1@huawei.com>
Date: Fri Feb 2 10:39:34 2024 +0000

  x86/mm: Disallow vsyscall page read for copy_from_kernel_nofault()

  
Bug presence (2)
Date Name Commit Repro Result
2024/09/29 lts (merge base) 4878aadf2d15 C Didn't crash
2024/09/29 upstream (ToT) 3efc57369a0c C Didn't crash
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in copy_from_kernel_nofault (2) mm C 2 241d 251d 25/28 fixed on 2024/05/22 23:36
upstream BUG: unable to handle kernel paging request in copy_from_kernel_nofault mm C done 5 287d 386d 25/28 fixed on 2024/03/29 01:33
upstream KASAN: out-of-bounds Read in copy_from_kernel_nofault mm C done 1621 60d 70d 25/28 upstream: reported C repro on 2024/09/30 13:40
linux-5.15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault origin:upstream C done 2 287d 390d 3/3 fixed on 2024/03/28 13:37
linux-6.1 KASAN: stack-out-of-bounds Write in copy_from_kernel_nofault origin:lts-only C unreliable 3 287d 617d 0/3 upstream: reported C repro on 2023/04/02 16:05
android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault origin:upstream missing-backport C done inconclusive 127 173d 390d 0/2 auto-obsoleted due to no activity on 2024/08/28 01:00
upstream KASAN: out-of-bounds Write in copy_from_kernel_nofault mm 1 110d 109d 0/28 closed as invalid on 2024/09/13 11:13
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/09/13 04:14 4h29m bisect fix android13-5.15-lts OK (1) job log
2024/01/14 17:34 47m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
BUG: unable to handle page fault for address: ffffffffff600000
#PF: supervisor read access in kernel mode
#PF: error_code(0x0001) - permissions violation
PGD 6a12067 P4D 6a12067 PUD 6a14067 PMD 6a16067 PTE 8000000006a09165
Oops: 0001 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 372 Comm: syz.0.16 Not tainted 5.15.152-syzkaller-00143-g70e1a731d986 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:copy_from_kernel_nofault+0x86/0x2e0 mm/maccess.c:37
Code: 48 89 55 d0 0f 85 ea 01 00 00 ff 02 bf 07 00 00 00 4c 89 ee e8 8b 92 d6 ff 49 83 fd 07 76 5c 4d 89 fe 49 83 c5 f8 49 83 c7 08 <49> 8b 1c 24 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80
RSP: 0018:ffffc90000b47b10 EFLAGS: 00010292
RAX: 0000000000000002 RBX: 00007ffffffff000 RCX: ffff88810de23b40
RDX: ffff88810de246d0 RSI: 0000000000000008 RDI: 0000000000000007
RBP: ffffc90000b47b48 R08: ffffffff8199b425 R09: ffffed1021bc4769
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffffff600000
R13: 0000000000000000 R14: ffffc90000b47ba8 R15: ffffc90000b47bb0
FS:  00007fab7febb6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff600000 CR3: 000000012613f000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <TASK>
 bpf_probe_read_kernel_common kernel/trace/bpf_trace.c:220 [inline]
 ____bpf_probe_read_compat kernel/trace/bpf_trace.c:284 [inline]
 bpf_probe_read_compat+0x112/0x180 kernel/trace/bpf_trace.c:277
 bpf_prog_baa065642a502c00+0x64/0x720
 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
 __bpf_prog_run include/linux/filter.h:625 [inline]
 bpf_prog_run include/linux/filter.h:632 [inline]
 __bpf_prog_test_run_raw_tp+0xa0/0x1d0 net/bpf/test_run.c:331
 bpf_prog_test_run_raw_tp+0x4cd/0x6c0 net/bpf/test_run.c:375
 bpf_prog_test_run+0x3b0/0x630 kernel/bpf/syscall.c:3348
 __sys_bpf+0x525/0x760 kernel/bpf/syscall.c:4651
 __do_sys_bpf kernel/bpf/syscall.c:4737 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4735 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:4735
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fab8123b9f9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fab7febb038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fab813c9f80 RCX: 00007fab8123b9f9
RDX: 0000000000000050 RSI: 0000000020000680 RDI: 000000000000000a
RBP: 00007fab812a98ee R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fab813c9f80 R15: 00007ffeab9c3a78
 </TASK>
Modules linked in:
CR2: ffffffffff600000
---[ end trace 5f5681e568c8598a ]---
RIP: 0010:copy_from_kernel_nofault+0x86/0x2e0 mm/maccess.c:37
Code: 48 89 55 d0 0f 85 ea 01 00 00 ff 02 bf 07 00 00 00 4c 89 ee e8 8b 92 d6 ff 49 83 fd 07 76 5c 4d 89 fe 49 83 c5 f8 49 83 c7 08 <49> 8b 1c 24 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80
RSP: 0018:ffffc90000b47b10 EFLAGS: 00010292
RAX: 0000000000000002 RBX: 00007ffffffff000 RCX: ffff88810de23b40
RDX: ffff88810de246d0 RSI: 0000000000000008 RDI: 0000000000000007
RBP: ffffc90000b47b48 R08: ffffffff8199b425 R09: ffffed1021bc4769
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffffff600000
R13: 0000000000000000 R14: ffffc90000b47ba8 R15: ffffc90000b47bb0
FS:  00007fab7febb6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff600000 CR3: 000000012613f000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
----------------
Code disassembly (best guess):
   0:	48 89 55 d0          	mov    %rdx,-0x30(%rbp)
   4:	0f 85 ea 01 00 00    	jne    0x1f4
   a:	ff 02                	incl   (%rdx)
   c:	bf 07 00 00 00       	mov    $0x7,%edi
  11:	4c 89 ee             	mov    %r13,%rsi
  14:	e8 8b 92 d6 ff       	call   0xffd692a4
  19:	49 83 fd 07          	cmp    $0x7,%r13
  1d:	76 5c                	jbe    0x7b
  1f:	4d 89 fe             	mov    %r15,%r14
  22:	49 83 c5 f8          	add    $0xfffffffffffffff8,%r13
  26:	49 83 c7 08          	add    $0x8,%r15
* 2a:	49 8b 1c 24          	mov    (%r12),%rbx <-- trapping instruction
  2e:	4c 89 f0             	mov    %r14,%rax
  31:	48 c1 e8 03          	shr    $0x3,%rax
  35:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  3c:	fc ff df
  3f:	80                   	.byte 0x80

Crashes (231):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/11 13:03 android13-5.15-lts 70e1a731d986 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/08/10 12:12 android13-5.15-lts 70e1a731d986 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/08/09 14:12 android13-5.15-lts 70e1a731d986 a83d9288 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/08/09 14:11 android13-5.15-lts 70e1a731d986 a83d9288 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/08/09 03:21 android13-5.15-lts 70e1a731d986 61405512 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/08/08 19:30 android13-5.15-lts 70e1a731d986 61405512 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/22 16:10 android13-5.15-lts 5356d2f17edf df655b64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/22 13:13 android13-5.15-lts 5356d2f17edf df655b64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/22 12:10 android13-5.15-lts 5356d2f17edf df655b64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/20 01:05 android13-5.15-lts db06c48ab67e 890ce4f3 .config console log report info ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/19 17:09 android13-5.15-lts db06c48ab67e 890ce4f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/19 12:40 android13-5.15-lts db06c48ab67e ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/19 11:10 android13-5.15-lts db06c48ab67e ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/19 07:50 android13-5.15-lts db06c48ab67e ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/17 09:27 android13-5.15-lts db06c48ab67e 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/16 22:58 android13-5.15-lts db06c48ab67e b66b37bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/16 06:10 android13-5.15-lts db06c48ab67e e8709b21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/16 05:58 android13-5.15-lts db06c48ab67e e8709b21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/13 09:34 android13-5.15-lts db06c48ab67e eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/12 21:58 android13-5.15-lts db06c48ab67e eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/11 02:05 android13-5.15-lts db06c48ab67e 6f7fa383 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/10 01:37 android13-5.15-lts db06c48ab67e 79d68ada .config console log report info ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/09 01:21 android13-5.15-lts db06c48ab67e bc23a442 .config console log report info ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/08 22:00 android13-5.15-lts db06c48ab67e cde64f7d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/08 16:19 android13-5.15-lts db06c48ab67e cde64f7d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/08 08:08 android13-5.15-lts 9044d25b8ff5 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/07 23:49 android13-5.15-lts 9044d25b8ff5 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/07 05:32 android13-5.15-lts 9044d25b8ff5 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/07 05:29 android13-5.15-lts 9044d25b8ff5 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/06 09:10 android13-5.15-lts 9044d25b8ff5 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/05 03:23 android13-5.15-lts 9044d25b8ff5 3f2748a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/04 15:21 android13-5.15-lts 9044d25b8ff5 3f2748a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/03 20:27 android13-5.15-lts 9044d25b8ff5 f76a75f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/03 19:20 android13-5.15-lts 9044d25b8ff5 f76a75f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/07/01 14:59 android13-5.15-lts 9044d25b8ff5 b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/06/19 00:58 android13-5.15-lts 85445b5a2107 639d6cdf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/06/19 00:58 android13-5.15-lts 85445b5a2107 639d6cdf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/06/13 16:06 android13-5.15-lts 79bd336c7a94 a9616ff5 .config console log report info ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/06/10 22:46 android13-5.15-lts 79bd336c7a94 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/06/09 11:07 android13-5.15-lts 79bd336c7a94 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/06/08 06:15 android13-5.15-lts 79bd336c7a94 82c05ab8 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/06/07 03:15 android13-5.15-lts 79bd336c7a94 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/06/05 15:47 android13-5.15-lts 79bd336c7a94 5aa1a7c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/06/05 14:25 android13-5.15-lts 79bd336c7a94 5aa1a7c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/06/04 05:58 android13-5.15-lts 79bd336c7a94 a1feae05 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/06/04 05:57 android13-5.15-lts 79bd336c7a94 a1feae05 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/02/29 21:52 android13-5.15-lts 993bed180178 352ab904 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/02/26 20:22 android13-5.15-lts 993bed180178 da36a36b .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2023/11/16 02:07 android13-5.15-lts 61cfd264993d cb976f63 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2023/11/15 17:35 android13-5.15-lts 61cfd264993d cb976f63 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
* Struck through repros no longer work on HEAD.