syzbot


BUG: unable to handle kernel paging request in copy_from_kernel_nofault

Status: upstream: reported C repro on 2023/11/15 17:20
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+e36cc99ff19fda92910d@syzkaller.appspotmail.com
First crash: 184d, last: 4d06h
Cause bisection: introduced by (bisect log) :
commit ca247283781d754216395a41c5e8be8ec79a5f1c
Author: Andy Lutomirski <luto@kernel.org>
Date: Wed Feb 10 02:33:45 2021 +0000

  x86/fault: Don't run fixups for SMAP violations

Crash: no output from test machine (log)
Repro: C syz .config
  
Fix bisection: the issue occurs on the latest tested release (bisect log)
  
Bug presence (4)
Date Name Commit Repro Result
2024/03/30 android14-6.1 (ToT) 5b8114ec3c92 C [report] BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2023/11/15 lts (merge base) 52a953d0934b C [report] BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2023/11/15 upstream (ToT) c42d9eeef8e5 C [report] BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/03/30 upstream (ToT) 486291a0e624 C Didn't crash
Similar bugs (5)
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 35d 45d 25/26 upstream: reported C repro on 2024/04/02 05:19
upstream BUG: unable to handle kernel paging request in copy_from_kernel_nofault mm C done 5 81d 180d 26/26 fixed on 2024/03/29 01:33
linux-5.15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault origin:upstream C done 2 81d 184d 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 81d 411d 0/3 upstream: reported C repro on 2023/04/02 16:05
android-5-15 BUG: unable to handle kernel paging request in copy_from_kernel_nofault origin:upstream missing-backport C 87 4d06h 184d 0/2 upstream: reported C repro on 2023/11/15 17:36
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/03/29 07:32 17m retest repro android14-6.1 report log
2024/03/29 07:32 13m retest repro android14-6.1 report log
2024/03/15 01:02 5m retest repro android14-6.1 report log
2024/02/08 21:08 7m retest repro android14-6.1 report log

Sample crash report:
BUG: unable to handle page fault for address: ffffffffff600000
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 6c12067 P4D 6c12067 PUD 6c14067 PMD 6c16067 
PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 296 Comm: syz-executor603 Not tainted 6.1.68-syzkaller-00046-g30edcedb44a8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:copy_from_kernel_nofault+0x86/0x2d0 mm/maccess.c:36
Code: 48 89 55 d0 0f 85 de 01 00 00 ff 02 bf 07 00 00 00 4c 89 ee e8 fb 46 d2 ff 49 83 fd 07 76 58 4d 89 fe 49 83 c7 08 49 83 c5 f8 <49> 8b 1c 24 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80
RSP: 0018:ffffc90000e27890 EFLAGS: 00010257
RAX: 0000000000000000 RBX: 0000000000000008 RCX: ffff888121a46540
RDX: ffff888121a470e0 RSI: 0000000000000008 RDI: 0000000000000007
RBP: ffffc90000e278c8 R08: ffffffff81a31b85 R09: ffffffff818e9ebc
R10: 0000000000000005 R11: ffff888121a46540 R12: ffffffffff600000
R13: 0000000000000000 R14: ffffc90000e27908 R15: ffffc90000e27910
FS:  00005555559ce380(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff600000 CR3: 000000011ba90000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bpf_probe_read_kernel_common kernel/trace/bpf_trace.c:230 [inline]
 ____bpf_probe_read_kernel kernel/trace/bpf_trace.c:239 [inline]
 bpf_probe_read_kernel+0x2a/0x70 kernel/trace/bpf_trace.c:236
 bpf_prog_3aa1bfad0585af26+0x5b/0x5d
 bpf_dispatcher_nop_func include/linux/bpf.h:982 [inline]
 __bpf_prog_run include/linux/filter.h:600 [inline]
 bpf_prog_run include/linux/filter.h:607 [inline]
 bpf_test_run+0x4ab/0xa40 net/bpf/test_run.c:402
 bpf_prog_test_run_skb+0xaf1/0x13a0 net/bpf/test_run.c:1180
 bpf_prog_test_run+0x3b0/0x630 kernel/bpf/syscall.c:3635
 __sys_bpf+0x59f/0x7f0 kernel/bpf/syscall.c:4990
 __do_sys_bpf kernel/bpf/syscall.c:5076 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5074 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5074
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa983308769
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc7da1f6f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007ffc7da1f8c8 RCX: 00007fa983308769
RDX: 000000000000004c RSI: 0000000020000240 RDI: 000000000000000a
RBP: 00007fa98337b610 R08: 0000000000000000 R09: 00007ffc7da1f8c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc7da1f8b8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
CR2: ffffffffff600000
---[ end trace 0000000000000000 ]---
RIP: 0010:copy_from_kernel_nofault+0x86/0x2d0 mm/maccess.c:36
Code: 48 89 55 d0 0f 85 de 01 00 00 ff 02 bf 07 00 00 00 4c 89 ee e8 fb 46 d2 ff 49 83 fd 07 76 58 4d 89 fe 49 83 c7 08 49 83 c5 f8 <49> 8b 1c 24 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80
RSP: 0018:ffffc90000e27890 EFLAGS: 00010257
RAX: 0000000000000000 RBX: 0000000000000008 RCX: ffff888121a46540
RDX: ffff888121a470e0 RSI: 0000000000000008 RDI: 0000000000000007
RBP: ffffc90000e278c8 R08: ffffffff81a31b85 R09: ffffffff818e9ebc
R10: 0000000000000005 R11: ffff888121a46540 R12: ffffffffff600000
R13: 0000000000000000 R14: ffffc90000e27908 R15: ffffc90000e27910
FS:  00005555559ce380(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff600000 CR3: 000000011ba90000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	48 89 55 d0          	mov    %rdx,-0x30(%rbp)
   4:	0f 85 de 01 00 00    	jne    0x1e8
   a:	ff 02                	incl   (%rdx)
   c:	bf 07 00 00 00       	mov    $0x7,%edi
  11:	4c 89 ee             	mov    %r13,%rsi
  14:	e8 fb 46 d2 ff       	call   0xffd24714
  19:	49 83 fd 07          	cmp    $0x7,%r13
  1d:	76 58                	jbe    0x77
  1f:	4d 89 fe             	mov    %r15,%r14
  22:	49 83 c7 08          	add    $0x8,%r15
  26:	49 83 c5 f8          	add    $0xfffffffffffffff8,%r13
* 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 (88):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/29 23:33 android14-6.1 30edcedb44a8 352ab904 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/02/26 19:55 android14-6.1 c622e98ddc8e da36a36b .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2023/11/16 20:50 android14-6.1 825c17428a47 cb976f63 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2023/11/15 17:13 android14-6.1 c47043d65f0a cb976f63 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/05/13 22:19 android14-6.1 4d55129aea65 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/05/13 19:32 android14-6.1 4d55129aea65 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/05/12 23:02 android14-6.1 4d55129aea65 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/05/12 18:34 android14-6.1 4d55129aea65 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/05/09 16:09 android14-6.1 cf685d2b0273 05079661 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/05/04 02:27 android14-6.1 1794308d463f 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/05/01 18:55 android14-6.1 1d37bc9913cc 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/29 15:46 android14-6.1 08cc4037cf32 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/29 09:00 android14-6.1 08cc4037cf32 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/27 18:56 android14-6.1 fa87a072a7fc 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/27 03:57 android14-6.1 fa87a072a7fc 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/26 03:13 android14-6.1 fa87a072a7fc 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/24 18:41 android14-6.1 d0c6724b0f6f 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/23 12:58 android14-6.1 3dfddcb9c277 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/23 09:33 android14-6.1 3dfddcb9c277 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/23 08:09 android14-6.1 3dfddcb9c277 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/23 02:09 android14-6.1 503add184388 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/22 23:58 android14-6.1 503add184388 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/22 23:55 android14-6.1 503add184388 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/21 23:45 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/21 16:44 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/21 14:03 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/20 21:20 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/20 14:32 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/19 23:10 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/18 22:34 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/18 21:19 android14-6.1 dcb09569bbff af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/18 18:40 android14-6.1 692e3553d2e9 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/18 12:46 android14-6.1 692e3553d2e9 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/18 12:43 android14-6.1 692e3553d2e9 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/17 18:39 android14-6.1 141ebdcb283b acc528cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/17 18:32 android14-6.1 141ebdcb283b acc528cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/17 13:58 android14-6.1 089d1b8f6daf 18f6e127 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/17 00:42 android14-6.1 089d1b8f6daf 18f6e127 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/16 23:35 android14-6.1 089d1b8f6daf 18f6e127 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/16 22:35 android14-6.1 77fec6cefe26 18f6e127 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/16 22:31 android14-6.1 77fec6cefe26 18f6e127 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/14 04:40 android14-6.1 cfa154389a65 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/14 03:38 android14-6.1 cfa154389a65 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/12 15:03 android14-6.1 354782156070 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/12 05:45 android14-6.1 354782156070 27de0a5c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/12 03:37 android14-6.1 ca4095789fda 27de0a5c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/12 02:40 android14-6.1 ca4095789fda 27de0a5c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/11 20:31 android14-6.1 ca4095789fda 95ed9ece .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/11 20:26 android14-6.1 ca4095789fda 95ed9ece .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/04/11 19:25 android14-6.1 ca4095789fda 95ed9ece .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2023/11/15 11:10 android14-6.1 c47043d65f0a cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
* Struck through repros no longer work on HEAD.