syzbot


BUG: unable to handle kernel paging request in bpf_probe_read_compat_str

Status: auto-obsoleted due to no activity on 2024/07/01 19:05
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+239f12e20785af44332c@syzkaller.appspotmail.com
First crash: 258d, last: 229d
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: BUG: unable to handle kernel paging request in bpf_probe_read_compat_str (log)
Repro: C syz .config
  
Fix bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] BUG: unable to handle kernel paging request in bpf_probe_read_compat_str 1 (2) 2024/02/02 19:40
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: unable to handle kernel paging request in bpf_probe_read_compat_str missing-backport C done 2 64d 258d 0/2 upstream: reported C repro on 2024/01/23 03:08
android-6-1 BUG: unable to handle kernel paging request in bpf_probe_read_compat_str missing-backport origin:upstream C error error 3 93d 258d 0/2 upstream: reported C repro on 2024/01/22 23:16
linux-5.15 BUG: unable to handle kernel paging request in bpf_probe_read_compat_str origin:upstream missing-backport C done 1 213d 258d 0/3 upstream: reported C repro on 2024/01/22 23:41
linux-6.1 BUG: unable to handle kernel paging request in bpf_probe_read_compat_str origin:upstream missing-backport C done 1 213d 258d 0/3 upstream: reported C repro on 2024/01/23 14:36
Last patch testing requests (7)
Created Duration User Patch Repo Result
2024/07/01 18:39 24m retest repro net-next OK log
2024/05/01 11:32 29m retest repro net OK log
2024/04/21 01:07 21m retest repro net-next error
2024/03/05 20:27 31m retest repro bpf-next OK log
2024/03/05 19:16 31m retest repro bpf OK log
2024/02/20 18:38 33m retest repro net report log
2024/02/06 17:55 17m retest repro net-next 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 cf7b067 P4D cf7b067 PUD cf7d067 PMD cfa0067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5064 Comm: syz-executor402 Not tainted 6.7.0-syzkaller-12262-g736b5545d39c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:strncpy_from_kernel_nofault+0xc4/0x270 mm/maccess.c:91
Code: 83 85 6c 17 00 00 01 48 8b 2c 24 eb 18 e8 84 76 ce ff 4c 89 f6 4c 89 ef e8 89 71 ce ff 4d 39 f5 7d 5c 4c 89 fb e8 6c 76 ce ff <44> 8a 65 00 e8 63 76 ce ff 48 89 d8 48 89 da 48 b9 00 00 00 00 00
RSP: 0018:ffffc90003bef990 EFLAGS: 00010093
RAX: 0000000000000000 RBX: ffffc90003befa00 RCX: ffffffff81b9aaa2
RDX: ffff888028cad940 RSI: ffffffff81b9ab14 RDI: ffff888028caf0ac
RBP: ffffffffff600000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000008
R13: ffffffffff600000 R14: 0000000000000008 R15: ffffffffff600000
FS:  0000555555644380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff600000 CR3: 000000007cfc9000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bpf_probe_read_kernel_str_common kernel/trace/bpf_trace.c:266 [inline]
 ____bpf_probe_read_compat_str kernel/trace/bpf_trace.c:314 [inline]
 bpf_probe_read_compat_str+0x12f/0x170 kernel/trace/bpf_trace.c:307
 bpf_prog_f17ebaf3f5f7baf8+0x42/0x44
 bpf_dispatcher_nop_func include/linux/bpf.h:1231 [inline]
 __bpf_prog_run include/linux/filter.h:651 [inline]
 bpf_prog_run include/linux/filter.h:658 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2381 [inline]
 bpf_trace_run4+0x173/0x450 kernel/trace/bpf_trace.c:2422
 __bpf_trace_sched_switch+0x13e/0x180 include/trace/events/sched.h:222
 trace_sched_switch include/trace/events/sched.h:222 [inline]
 __schedule+0x2235/0x5c00 kernel/sched/core.c:6724
 __schedule_loop kernel/sched/core.c:6802 [inline]
 schedule+0xe9/0x270 kernel/sched/core.c:6817
 ptrace_stop.part.0+0x44d/0x950 kernel/signal.c:2344
 ptrace_stop kernel/signal.c:2246 [inline]
 ptrace_do_notify+0x226/0x2d0 kernel/signal.c:2381
 ptrace_notify+0xc8/0x130 kernel/signal.c:2393
 ptrace_report_syscall include/linux/ptrace.h:411 [inline]
 ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
 syscall_exit_work kernel/entry/common.c:167 [inline]
 syscall_exit_to_user_mode_prepare+0x126/0x230 kernel/entry/common.c:194
 __syscall_exit_to_user_mode_work kernel/entry/common.c:199 [inline]
 syscall_exit_to_user_mode+0x11/0x2b0 kernel/entry/common.c:212
 do_syscall_64+0xe0/0x250 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fb9bcd97b39
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:00007fff24e74fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: 0000000000000004 RBX: 0000000000000000 RCX: 00007fb9bcd97b39
RDX: 0000000000000010 RSI: 0000000020000280 RDI: 0000000000000011
RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000006
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000003a28
R13: 431bde82d7b634db R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
CR2: ffffffffff600000
---[ end trace 0000000000000000 ]---
RIP: 0010:strncpy_from_kernel_nofault+0xc4/0x270 mm/maccess.c:91
Code: 83 85 6c 17 00 00 01 48 8b 2c 24 eb 18 e8 84 76 ce ff 4c 89 f6 4c 89 ef e8 89 71 ce ff 4d 39 f5 7d 5c 4c 89 fb e8 6c 76 ce ff <44> 8a 65 00 e8 63 76 ce ff 48 89 d8 48 89 da 48 b9 00 00 00 00 00
RSP: 0018:ffffc90003bef990 EFLAGS: 00010093

RAX: 0000000000000000 RBX: ffffc90003befa00 RCX: ffffffff81b9aaa2
RDX: ffff888028cad940 RSI: ffffffff81b9ab14 RDI: ffff888028caf0ac
RBP: ffffffffff600000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000008
R13: ffffffffff600000 R14: 0000000000000008 R15: ffffffffff600000
FS:  0000555555644380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff600000 CR3: 000000007cfc9000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	83 85 6c 17 00 00 01 	addl   $0x1,0x176c(%rbp)
   7:	48 8b 2c 24          	mov    (%rsp),%rbp
   b:	eb 18                	jmp    0x25
   d:	e8 84 76 ce ff       	call   0xffce7696
  12:	4c 89 f6             	mov    %r14,%rsi
  15:	4c 89 ef             	mov    %r13,%rdi
  18:	e8 89 71 ce ff       	call   0xffce71a6
  1d:	4d 39 f5             	cmp    %r14,%r13
  20:	7d 5c                	jge    0x7e
  22:	4c 89 fb             	mov    %r15,%rbx
  25:	e8 6c 76 ce ff       	call   0xffce7696
* 2a:	44 8a 65 00          	mov    0x0(%rbp),%r12b <-- trapping instruction
  2e:	e8 63 76 ce ff       	call   0xffce7696
  33:	48 89 d8             	mov    %rbx,%rax
  36:	48 89 da             	mov    %rbx,%rdx
  39:	48                   	rex.W
  3a:	b9 00 00 00 00       	mov    $0x0,%ecx

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/23 07:27 bpf 736b5545d39c 1c0ecc51 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce BUG: unable to handle kernel paging request in bpf_probe_read_compat_str
2024/01/23 01:06 net dbc153fd3c14 1c0ecc51 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce BUG: unable to handle kernel paging request in bpf_probe_read_compat_str
2024/01/23 01:00 bpf-next 9d1a26e7e43c 1c0ecc51 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce BUG: unable to handle kernel paging request in bpf_probe_read_compat_str
2024/01/23 00:22 net-next 736b5545d39c 1c0ecc51 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce BUG: unable to handle kernel paging request in bpf_probe_read_compat_str
* Struck through repros no longer work on HEAD.