syzbot


WARNING in check_map_prog_compatibility

Status: upstream: reported C repro on 2023/03/07 20:33
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+3d7af5d2cc62b29ab2ed@syzkaller.appspotmail.com
First crash: 361d, last: 3h19m
Fix commit to backport (bisect log) :
tree: upstream
commit 96da3f7d489d11b43e7c1af90d876b9a2492cca8
Author: Alexei Starovoitov <ast@kernel.org>
Date: Fri Sep 2 21:10:54 2022 +0000

  bpf: Remove tracing program restriction on map types

  
Bug presence (2)
Date Name Commit Repro Result
2023/05/02 linux-5.15.y (ToT) 8a7f2a5c5aa1 C [report] WARNING in check_map_prog_compatibility
2023/05/02 upstream (ToT) 865fdb08197e C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in check_map_prog_compatibility bpf C inconclusive done 128 524d 687d 22/26 fixed on 2023/02/24 13:50
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/08/14 03:15 5h38m fix candidate upstream job log (1)

Sample crash report:
------------[ cut here ]------------
trace type BPF program uses run-time allocation
WARNING: CPU: 0 PID: 3499 at kernel/bpf/verifier.c:11674 check_map_prog_compatibility+0x720/0x8c0 kernel/bpf/verifier.c:11674
Modules linked in:
CPU: 0 PID: 3499 Comm: syz-executor572 Not tainted 5.15.147-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:check_map_prog_compatibility+0x720/0x8c0 kernel/bpf/verifier.c:11674
Code: ed e9 ec fc ff ff e8 cf cf ee ff 31 ed e9 e0 fc ff ff e8 c3 cf ee ff c6 05 ae f1 3e 0c 01 48 c7 c7 e0 1b 91 8a e8 20 82 ba ff <0f> 0b e9 4a fb ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 4f f9 ff
RSP: 0018:ffffc90002547348 EFLAGS: 00010246
RAX: 25afbf32eb01e400 RBX: 0000000000000005 RCX: ffff88807bc93b80
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffff8880765c9028 R08: ffffffff81665dbc R09: ffffed1017344f24
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000d5e038
R13: ffff8880765c9000 R14: ffff888078b0c000 R15: dffffc0000000000
FS:  0000555555cfc380(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000564e511aa000 CR3: 000000007a440000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 resolve_pseudo_ldimm64+0x671/0x1240 kernel/bpf/verifier.c:11844
 bpf_check+0x4341/0x12d00 kernel/bpf/verifier.c:14046
 bpf_prog_load+0x12b3/0x1b60 kernel/bpf/syscall.c:2325
 __sys_bpf+0x343/0x670 kernel/bpf/syscall.c:4614
 __do_sys_bpf kernel/bpf/syscall.c:4718 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4716 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4716
 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:0x7f1e0d39f529
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe2e12acb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007ffe2e12ae88 RCX: 00007f1e0d39f529
RDX: 0000000000000022 RSI: 0000000020000440 RDI: 0000000000000005
RBP: 00007f1e0d412610 R08: 0000000000000000 R09: 00007ffe2e12ae88
R10: 0000000000000072 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffe2e12ae78 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (491):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/21 05:21 linux-5.15.y ddcaf4999061 9bd8dcda .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2023/12/02 14:59 linux-5.15.y a78d278e01b1 f819d6f7 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2023/03/09 05:47 linux-5.15.y d9b4a0c83a2d 4fc6d98d .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2023/08/24 13:08 linux-5.15.y f6f7927ac664 4d7ae7ab .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2023/08/24 12:31 linux-5.15.y f6f7927ac664 4d7ae7ab .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2023/07/19 18:32 linux-5.15.y d54cfc420586 022df2bb .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2023/07/12 04:01 linux-5.15.y d54cfc420586 2f19aa4f .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2023/06/16 12:36 linux-5.15.y 471e639e59d1 f3921d4d .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2023/03/08 01:26 linux-5.15.y d9b4a0c83a2d d7ea8bc4 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/03/03 13:50 linux-5.15.y 80efc6265290 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/03/01 18:06 linux-5.15.y 80efc6265290 83acf9e0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/03/01 15:05 linux-5.15.y 80efc6265290 83acf9e0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/02/29 05:44 linux-5.15.y 458ce51d0356 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/29 04:48 linux-5.15.y 458ce51d0356 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/28 07:33 linux-5.15.y 458ce51d0356 d367cbe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/02/28 05:54 linux-5.15.y 458ce51d0356 d367cbe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/26 18:34 linux-5.15.y 458ce51d0356 da36a36b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/02/22 21:01 linux-5.15.y 6139f2a02fe0 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/02/22 18:19 linux-5.15.y 6139f2a02fe0 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/02/22 14:43 linux-5.15.y 6139f2a02fe0 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/22 13:13 linux-5.15.y 6139f2a02fe0 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/18 22:25 linux-5.15.y 6139f2a02fe0 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/14 11:11 linux-5.15.y 6139f2a02fe0 d902085f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/14 07:43 linux-5.15.y 6139f2a02fe0 d902085f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/02/13 20:07 linux-5.15.y 6139f2a02fe0 e66542d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/13 16:35 linux-5.15.y 6139f2a02fe0 e66542d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/13 14:50 linux-5.15.y 6139f2a02fe0 e66542d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/02/13 12:54 linux-5.15.y 6139f2a02fe0 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/11 11:36 linux-5.15.y 6139f2a02fe0 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/02/11 10:34 linux-5.15.y 6139f2a02fe0 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/09 19:02 linux-5.15.y 6139f2a02fe0 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/02/08 22:20 linux-5.15.y 6139f2a02fe0 7f07e9b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/08 18:39 linux-5.15.y 6139f2a02fe0 7f07e9b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/02/07 08:51 linux-5.15.y 6139f2a02fe0 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/06 01:50 linux-5.15.y 6139f2a02fe0 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/05 23:19 linux-5.15.y 6139f2a02fe0 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/05 19:15 linux-5.15.y 6139f2a02fe0 e23e8c20 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/02 13:47 linux-5.15.y 6139f2a02fe0 d61103fc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/02/02 06:25 linux-5.15.y 6139f2a02fe0 d61103fc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/01/30 09:44 linux-5.15.y 6139f2a02fe0 991a98f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/01/29 12:36 linux-5.15.y 6139f2a02fe0 991a98f4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/01/28 19:56 linux-5.15.y 6139f2a02fe0 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/01/28 14:18 linux-5.15.y 6139f2a02fe0 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/01/28 12:40 linux-5.15.y 6139f2a02fe0 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/01/28 02:55 linux-5.15.y 6139f2a02fe0 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/01/27 13:19 linux-5.15.y 6139f2a02fe0 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/01/26 20:34 linux-5.15.y 6139f2a02fe0 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/01/24 21:00 linux-5.15.y ddcaf4999061 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/01/23 23:18 linux-5.15.y ddcaf4999061 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/01/23 21:23 linux-5.15.y ddcaf4999061 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/01/23 16:02 linux-5.15.y ddcaf4999061 1c0ecc51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/01/23 10:07 linux-5.15.y ddcaf4999061 1c0ecc51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2023/03/07 20:33 linux-5.15.y d9b4a0c83a2d d7ea8bc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
* Struck through repros no longer work on HEAD.