syzbot


WARNING in bpf_verifier_vlog

Status: upstream: reported C repro on 2022/09/09 04:19
Reported-by: syzbot+8b2a08dfbd25fd933d75@syzkaller.appspotmail.com
First crash: 85d, last: 14d

Cause bisection: failed (bisect log)

Fix bisection: failed (bisect log)
Patch testing requests:
Created Duration User Patch Repo Result
2022/09/16 22:09 16m yepeilin.cs@gmail.com patch bpf-next OK log
2022/09/16 21:41 0m yepeilin.cs@gmail.com patch upstream error
2022/09/16 21:39 0m yepeilin.cs@gmail.com patch upstream error
2022/09/14 01:19 16m yepeilin.cs@gmail.com patch upstream OK log

Sample crash report:
------------[ cut here ]------------
verifier log line truncated - local buffer too short
WARNING: CPU: 1 PID: 3607 at kernel/bpf/verifier.c:302 bpf_verifier_vlog+0x2cd/0x3e0 kernel/bpf/verifier.c:301
Modules linked in:
CPU: 1 PID: 3607 Comm: syz-executor147 Not tainted 6.1.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:bpf_verifier_vlog+0x2cd/0x3e0 kernel/bpf/verifier.c:301
Code: 4b a7 ac 08 e8 44 33 f0 ff 0f 0b e9 0c ff ff ff e8 38 33 f0 ff c6 05 1c 9f 79 0c 01 48 c7 c7 40 b1 b4 8a 31 c0 e8 03 35 b7 ff <0f> 0b e9 8d fd ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 98 fd
RSP: 0018:ffffc90003b4f8a0 EFLAGS: 00010246
RAX: 212a70dd49d12c00 RBX: ffffc90003b4f940 RCX: ffff88801dca0000
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffffff8ab68760 R08: ffffffff816cfd9d R09: fffff52000769e8d
R10: fffff52000769e8d R11: 1ffff92000769e8c R12: ffff88801fc83210
R13: 00000000000003ff R14: ffff88801fc83214 R15: ffff88801fc83210
FS:  0000555556c3e300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020100000 CR3: 000000001d846000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __btf_verifier_log+0xd1/0x120 kernel/bpf/btf.c:1376
 __btf_verifier_log_type+0x46e/0x790 kernel/bpf/btf.c:1413
 btf_func_proto_check_meta+0xb9/0x150
 btf_check_meta kernel/bpf/btf.c:4593 [inline]
 btf_check_all_metas+0x3b2/0xb00 kernel/bpf/btf.c:4617
 btf_parse_type_sec+0x144/0x1980 kernel/bpf/btf.c:4753
 btf_parse kernel/bpf/btf.c:5031 [inline]
 btf_new_fd+0x4ae/0x7b0 kernel/bpf/btf.c:6897
 __sys_bpf+0x4d3/0x6d0 kernel/bpf/syscall.c:5010
 __do_sys_bpf kernel/bpf/syscall.c:5069 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5067 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5067
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd8edd7ec29
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdd5ef6b88 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fd8edd7ec29
RDX: 0000000000000020 RSI: 0000000020000240 RDI: 0000000000000012
RBP: 00007fd8edd42dd0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd8edd42e60
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/11/14 19:20 upstream 094226ad94f4 943f4cb8 .config log report syz C WARNING in bpf_verifier_vlog
ci-upstream-kasan-gce-root 2022/09/05 07:43 upstream 7e18e42e4b28 28811d0a .config log report syz C WARNING in bpf_verifier_vlog
ci-upstream-net-this-kasan-gce 2022/09/05 04:10 net c90714017cb3 28811d0a .config log report syz C WARNING in bpf_verifier_vlog
ci-upstream-linux-next-kasan-gce-root 2022/10/17 00:36 linux-next aaa11ce2ffc8 67cb024c .config log report syz C WARNING in bpf_verifier_vlog
ci-upstream-gce-arm64 2022/09/05 12:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 85413d1e802e 922294ab .config log report syz C WARNING in bpf_verifier_vlog
* Struck through repros no longer work on HEAD.