syzbot


BUG: unable to handle kernel paging request in copy_from_kernel_nofault

Status: auto-obsoleted due to no activity on 2024/08/28 01:00
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+e36cc99ff19fda92910d@syzkaller.appspotmail.com
First crash: 372d, last: 155d
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 (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 223d 233d 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 268d 367d 25/28 fixed on 2024/03/29 01:33
upstream KASAN: out-of-bounds Read in copy_from_kernel_nofault mm C done 1621 42d 52d 1/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 268d 371d 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 268d 599d 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 missing-backport C done 231 102d 372d 0/2 auto-obsoleted due to no activity on 2024/10/20 13:25
upstream KASAN: out-of-bounds Write in copy_from_kernel_nofault mm 1 92d 91d 0/28 closed as invalid on 2024/09/13 11:13
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/07/03 07:43 22m retest repro android14-6.1 OK log
2024/07/03 07:43 19m retest repro android14-6.1 OK log
2024/07/03 07:43 20m retest repro android14-6.1 OK log
2024/07/03 07:43 21m retest repro android14-6.1 OK log
2024/07/03 07:43 15m retest repro android14-6.1 OK 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 6e12067 P4D 6e12067 
PUD 6e14067 PMD 6e16067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 301 Comm: syz-executor155 Not tainted 6.1.78-syzkaller-00164-gac9706483e98 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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 ab 39 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:ffffc90000fa74b0 EFLAGS: 00010257
RAX: 0000000000000000 RBX: 00007ffffffff000 RCX: ffff88810974a880
RDX: ffff88810974b420 RSI: 0000000000000008 RDI: 0000000000000007
RBP: ffffc90000fa74e8 R08: ffffffff81a33e95 R09: ffffed10212e9511
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffffff600000
R13: 0000000000000000 R14: ffffc90000fa7548 R15: ffffc90000fa7550
FS:  0000555555e3b380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff600000 CR3: 00000001213eb000 CR4: 00000000003506b0
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_compat kernel/trace/bpf_trace.c:294 [inline]
 bpf_probe_read_compat+0x112/0x180 kernel/trace/bpf_trace.c:287
 bpf_prog_baa065642a502c00+0x64/0x68
 bpf_dispatcher_nop_func include/linux/bpf.h:987 [inline]
 __bpf_prog_run include/linux/filter.h:600 [inline]
 bpf_prog_run include/linux/filter.h:607 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2275 [inline]
 bpf_trace_run6+0x1ea/0x350 kernel/trace/bpf_trace.c:2318
 __bpf_trace_ext4_ext_remove_space_done+0x4c/0x60 include/trace/events/ext4.h:2089
 __traceiter_ext4_ext_remove_space_done+0x94/0xf0 include/trace/events/ext4.h:2089
 trace_ext4_ext_remove_space_done include/trace/events/ext4.h:2089 [inline]
 ext4_ext_remove_space+0x4d4e/0x4f50 fs/ext4/extents.c:3032
 ext4_ext_truncate+0x1f4/0x320 fs/ext4/extents.c:4417
 ext4_truncate+0x96c/0xfb0 fs/ext4/inode.c:4279
 ext4_evict_inode+0xd41/0x1550 fs/ext4/inode.c:286
 evict+0x2a3/0x630 fs/inode.c:666
 iput_final fs/inode.c:1791 [inline]
 iput+0x642/0x870 fs/inode.c:1817
 d_delete_notify include/linux/fsnotify.h:284 [inline]
 vfs_rmdir+0x3c2/0x500 fs/namei.c:4205
 do_rmdir+0x3ab/0x630 fs/namei.c:4253
 __do_sys_rmdir fs/namei.c:4272 [inline]
 __se_sys_rmdir fs/namei.c:4270 [inline]
 __x64_sys_rmdir+0x49/0x50 fs/namei.c:4270
 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:0x7f0cb6fb6eb7
Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 54 00 00 00 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:00007ffedf5d12b8 EFLAGS: 00000207 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0cb6fb6eb7
RDX: fffffffffffff000 RSI: 0000000000000000 RDI: 00007ffedf5d23e0
RBP: 0000000000000065 R08: 0000555555e3c73b R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000207 R12: 00007ffedf5d23e0
R13: 0000555555e3c6c0 R14: 00007ffedf5d23e0 R15: 0000000000000002
 </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 ab 39 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:ffffc90000fa74b0 EFLAGS: 00010257
RAX: 0000000000000000 RBX: 00007ffffffff000 RCX: ffff88810974a880
RDX: ffff88810974b420 RSI: 0000000000000008 RDI: 0000000000000007
RBP: ffffc90000fa74e8 R08: ffffffff81a33e95 R09: ffffed10212e9511
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffffff600000
R13: 0000000000000000 R14: ffffc90000fa7548 R15: ffffc90000fa7550
FS:  0000555555e3b380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff600000 CR3: 00000001213eb000 CR4: 00000000003506b0
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 ab 39 d2 ff       	call   0xffd239c4
  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 (127):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/08 03:07 android14-6.1 ac9706483e98 82c05ab8 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/02/29 23:33 android14-6.1 30edcedb44a8 352ab904 .config strace log report syz C 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 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 ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/06/19 00:50 android14-6.1 12709c5c1ed2 639d6cdf .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/06/13 16:31 android14-6.1 7c734edeaafd a9616ff5 .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/06/10 22:37 android14-6.1 ac9706483e98 048c640a .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/06/10 22:37 android14-6.1 ac9706483e98 048c640a .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/06/09 11:06 android14-6.1 ac9706483e98 82c05ab8 .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/06/07 03:15 android14-6.1 bfacfd198eca 121701b6 .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/06/05 15:52 android14-6.1 3c19f7015ee3 5aa1a7c9 .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/06/05 14:24 android14-6.1 3c19f7015ee3 5aa1a7c9 .config console log report info ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/06/04 05:59 android14-6.1 c36abc6d4212 a1feae05 .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/23 18:34 android14-6.1 0a5aada71cc9 4c2072ee .config console log report info ci2-android-6-1-perf BUG: unable to handle kernel paging request in copy_from_kernel_nofault
2024/05/21 11:08 android14-6.1 34a15d350726 4c0d3ee3 .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/20 06:51 android14-6.1 bd552fcbbd0f c0f1611a .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/18 05:48 android14-6.1 51c421385e7a c0f1611a .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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.