syzbot


general protection fault in bpf_check

Status: upstream: reported C repro on 2024/08/03 23:17
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+225be590aa1914e41862@syzkaller.appspotmail.com
First crash: 48d, last: 5d23h
Bug presence (2)
Date Name Commit Repro Result
2024/08/04 lts (merge base) b95c01af2113 C [report] general protection fault in bpf_check
2024/08/04 upstream (ToT) defaf1a2113a C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in bpf_check (2) bpf C done done 7 158d 169d 0/27 auto-obsoleted due to no activity on 2024/07/11 21:05
upstream general protection fault in bpf_check bpf 3 2496d 2501d 3/27 fixed on 2017/11/28 03:36

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 333 Comm: syz-executor385 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:do_misc_fixups kernel/bpf/verifier.c:13283 [inline]
RIP: 0010:bpf_check+0x9514/0x12bf0 kernel/bpf/verifier.c:14072
Code: 24 70 80 3c 08 00 74 08 4c 89 ef e8 a6 af 30 00 49 8b 75 00 89 df 41 ff d6 48 89 c3 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 7e af 30 00 48 8b 1b 48 85 db 0f 84
RSP: 0018:ffffc90000a67500 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 00000000fffffff3 RDI: 0000000000000000
RBP: ffffc90000a67bd0 R08: ffffffff817c09ad R09: 0000000000000003
R10: fffff5200014cd6c R11: dffffc0000000001 R12: 1ffff92000015a13
R13: ffff888123018008 R14: ffffffff817bc3d0 R15: ffffc900000ad09c
FS:  0000555556398380(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555563a16f8 CR3: 000000011cda2000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bpf_prog_load+0x12ac/0x1b50 kernel/bpf/syscall.c:2333
 __sys_bpf+0x4bc/0x760 kernel/bpf/syscall.c:4633
 __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:0x7f4f5c4ca9b9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 18 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:00007ffeda28be78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f4f5c4ca9b9
RDX: 0000000000000090 RSI: 00000000200000c0 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffeda28bed0 R14: 00007ffeda28beb0 R15: 0000000000000004
 </TASK>
Modules linked in:
---[ end trace 4ce3db1c73ef2ca5 ]---
RIP: 0010:do_misc_fixups kernel/bpf/verifier.c:13283 [inline]
RIP: 0010:bpf_check+0x9514/0x12bf0 kernel/bpf/verifier.c:14072
Code: 24 70 80 3c 08 00 74 08 4c 89 ef e8 a6 af 30 00 49 8b 75 00 89 df 41 ff d6 48 89 c3 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 7e af 30 00 48 8b 1b 48 85 db 0f 84
RSP: 0018:ffffc90000a67500 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 00000000fffffff3 RDI: 0000000000000000
RBP: ffffc90000a67bd0 R08: ffffffff817c09ad R09: 0000000000000003
R10: fffff5200014cd6c R11: dffffc0000000001 R12: 1ffff92000015a13
R13: ffff888123018008 R14: ffffffff817bc3d0 R15: ffffc900000ad09c
FS:  0000555556398380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4f5c49909e CR3: 000000011cda2000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	24 70                	and    $0x70,%al
   2:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1)
   6:	74 08                	je     0x10
   8:	4c 89 ef             	mov    %r13,%rdi
   b:	e8 a6 af 30 00       	call   0x30afb6
  10:	49 8b 75 00          	mov    0x0(%r13),%rsi
  14:	89 df                	mov    %ebx,%edi
  16:	41 ff d6             	call   *%r14
  19:	48 89 c3             	mov    %rax,%rbx
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	48 89 df             	mov    %rbx,%rdi
  33:	e8 7e af 30 00       	call   0x30afb6
  38:	48 8b 1b             	mov    (%rbx),%rbx
  3b:	48 85 db             	test   %rbx,%rbx
  3e:	0f                   	.byte 0xf
  3f:	84                   	.byte 0x84

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/03 23:05 android13-5.15-lts 70e1a731d986 1786a2a8 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in bpf_check
2024/09/02 04:35 android13-5.15-lts 29d153aabd54 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in bpf_check
2024/08/30 17:36 android13-5.15-lts 29d153aabd54 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in bpf_check
2024/08/27 12:57 android13-5.15-lts 29d153aabd54 9aee4e0b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in bpf_check
2024/08/16 11:45 android13-5.15-lts 88e96b82205f e1c76ab2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in bpf_check
2024/08/16 04:19 android13-5.15-lts 88e96b82205f e4bacdaf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in bpf_check
2024/08/08 22:36 android13-5.15-lts 70e1a731d986 61405512 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in bpf_check
2024/08/08 16:12 android13-5.15-lts 70e1a731d986 61405512 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in bpf_check
2024/08/03 22:18 android13-5.15-lts 70e1a731d986 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in bpf_check
2024/07/30 14:35 android13-5.15-lts d0a6506ecafd 5187fc86 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in bpf_check
2024/07/21 15:51 android13-5.15-lts db06c48ab67e b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in bpf_check
* Struck through repros no longer work on HEAD.