syzbot


WARNING in check_map_prog_compatibility
Status: upstream: reported C repro on 2022/04/15 21:55
Reported-by: syzbot+e3f8d4df1e1981a97abb@syzkaller.appspotmail.com
First crash: 45d, last: 15h00m

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in bpf_check (log)
Repro: C syz .config

Sample crash report:
------------[ cut here ]------------
trace type BPF program uses run-time allocation
WARNING: CPU: 0 PID: 3596 at kernel/bpf/verifier.c:11998 check_map_prog_compatibility+0x76b/0x920 kernel/bpf/verifier.c:11998
Modules linked in:
CPU: 0 PID: 3596 Comm: syz-executor252 Not tainted 5.18.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:check_map_prog_compatibility+0x76b/0x920 kernel/bpf/verifier.c:11998
Code: c7 fc ff ff e8 86 4f ee ff 31 db e9 bb fc ff ff e8 7a 4f ee ff c6 05 b2 40 35 0c 01 48 c7 c7 a0 3b 74 8a 31 c0 e8 85 e4 b7 ff <0f> 0b e9 23 fb ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c c0 f8 ff
RSP: 0018:ffffc90003aaf1e8 EFLAGS: 00010246
RAX: c7d869b5def1f000 RBX: 0000000000000001 RCX: ffff88801d293a00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffff88801f6ea030 R08: ffffffff816acc92 R09: ffffed1017384f24
R10: ffffed1017384f24 R11: 1ffff11017384f23 R12: ffff88801f6ea000
R13: dffffc0000000000 R14: ffff88807c438000 R15: 0000000000000011
FS:  00005555566d0300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056023649dd90 CR3: 0000000024387000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 resolve_pseudo_ldimm64+0x67f/0x1270 kernel/bpf/verifier.c:12171
 bpf_check+0x2606/0x13ab0 kernel/bpf/verifier.c:14462
 bpf_prog_load+0x1288/0x1b80 kernel/bpf/syscall.c:2351
 __sys_bpf+0x373/0x660 kernel/bpf/syscall.c:4663
 __do_sys_bpf kernel/bpf/syscall.c:4767 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4765 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4765
 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+0x44/0xae
RIP: 0033:0x7f86914c6239
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:00007ffcd0a865f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f86914c6239
RDX: 0000000000000080 RSI: 00000000200004c0 RDI: 0000000000000005
RBP: 00007f869148a220 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000072 R11: 0000000000000246 R12: 00007f869148a2b0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (28):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/04/12 04:16 upstream ce522ba9ef7e af01ee7d .config log report syz C WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/05/27 05:03 upstream babf0bb978e3 3037caa9 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/05/27 04:52 upstream babf0bb978e3 3037caa9 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/05/17 14:33 upstream 42226c989789 744a39e2 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/05/15 23:21 upstream bc403203d65a 744a39e2 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/05/14 04:58 upstream ec7f49619d8e 107f6434 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/05/14 04:49 upstream ec7f49619d8e 107f6434 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/05/14 04:49 upstream ec7f49619d8e 107f6434 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/05/14 04:49 upstream ec7f49619d8e 107f6434 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/05/14 04:24 upstream ec7f49619d8e 107f6434 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/28 22:12 upstream 259b897e5a79 e9076525 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/28 22:12 upstream 259b897e5a79 e9076525 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/28 22:06 upstream 259b897e5a79 e9076525 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/26 14:16 upstream d615b5416f8a 1fa34c1b .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/26 12:29 upstream d615b5416f8a 1fa34c1b .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/25 12:06 upstream af2d861d4cd2 c889aef9 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/25 12:04 upstream af2d861d4cd2 c889aef9 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/24 04:28 upstream 45ab9400e73f 131df97d .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/24 04:23 upstream 45ab9400e73f 131df97d .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/20 16:23 upstream 559089e0a93d 160a3f31 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/20 16:23 upstream 559089e0a93d 160a3f31 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/19 14:30 upstream b2d229d4ddb1 c334415e .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/17 05:41 upstream 90ea17a9e27b 8bcc32a6 .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/12 21:30 upstream ce522ba9ef7e dacb3f1c .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/12 04:17 upstream ce522ba9ef7e af01ee7d .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/12 04:17 upstream ce522ba9ef7e af01ee7d .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/12 04:07 upstream ce522ba9ef7e af01ee7d .config log report info WARNING in check_map_prog_compatibility
ci-upstream-kasan-gce-smack-root 2022/04/12 04:05 upstream ce522ba9ef7e af01ee7d .config log report info WARNING in check_map_prog_compatibility