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: 692d, last: now
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 855d 1018d 22/28 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 OK (1) job log

Sample crash report:
------------[ cut here ]------------
trace type BPF program uses run-time allocation
WARNING: CPU: 0 PID: 4163 at kernel/bpf/verifier.c:11729 check_map_prog_compatibility+0x720/0x8c0 kernel/bpf/verifier.c:11729
Modules linked in:
CPU: 0 PID: 4163 Comm: syz-executor401 Not tainted 5.15.176-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:check_map_prog_compatibility+0x720/0x8c0 kernel/bpf/verifier.c:11729
Code: ed e9 ec fc ff ff e8 3f b8 ee ff 31 ed e9 e0 fc ff ff e8 33 b8 ee ff c6 05 c6 03 65 0c 01 48 c7 c7 a0 3a b1 8a e8 70 52 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:ffffc90002e6f348 EFLAGS: 00010246
RAX: 8faeda3a76481800 RBX: 0000000000000011 RCX: ffff888026295940
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffff88807c3c5828 R08: ffffffff8166aa6c R09: ffffed10171c67a8
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc900010a6038
R13: ffff88807c3c5800 R14: ffff888079854000 R15: dffffc0000000000
FS:  0000555581a3f380(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555581a3fca8 CR3: 000000002ad43000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 resolve_pseudo_ldimm64+0x682/0x1240 kernel/bpf/verifier.c:11898
 bpf_check+0x433a/0x12d40 kernel/bpf/verifier.c:14104
 bpf_prog_load+0x12b3/0x1b60 kernel/bpf/syscall.c:2353
 __sys_bpf+0x343/0x670 kernel/bpf/syscall.c:4656
 __do_sys_bpf kernel/bpf/syscall.c:4760 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4758 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4758
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fb214ec5eb9
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:00007ffe8fb8f978 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb214ec5eb9
RDX: 0000000000000094 RSI: 00000000200000c0 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000006
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (10802):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/22 13:26 linux-5.15.y 4735586da88e da72ac06 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/05 04:39 linux-5.15.y 91786f140358 f3558dbf .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/12/26 19:36 linux-5.15.y 91786f140358 d3ccff63 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/28 09:32 linux-5.15.y 0a51d2d4527b 5df23865 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/10/04 14:29 linux-5.15.y 3a5928702e71 d7906eff .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/10/04 13:25 linux-5.15.y 3a5928702e71 d7906eff .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/10/04 12:23 linux-5.15.y 3a5928702e71 d7906eff .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/08/11 21:26 linux-5.15.y 7e89efd3ae1c 6f4edef4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/06/20 21:19 linux-5.15.y 4878aadf2d15 dac2aa43 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/06/09 00:07 linux-5.15.y c61bd26ae81a 82c05ab8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/05/19 05:29 linux-5.15.y 83655231580b c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/05/19 03:49 linux-5.15.y 83655231580b c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/03/28 23:46 linux-5.15.y 9465fef4ae35 e91187ee .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/03/12 05:26 linux-5.15.y 574362648507 6ee49f2e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
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/10/20 03:11 linux-5.15.y 584a40a22cb9 cd6fc0a3 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/10/18 13:32 linux-5.15.y 584a40a22cb9 666f77ed .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/28 02:43 linux-5.15.y 003148680b79 18070896 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/28 02:00 linux-5.15.y 003148680b79 18070896 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/27 16:53 linux-5.15.y 003148680b79 d99a33ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/27 15:36 linux-5.15.y 003148680b79 d99a33ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/27 13:19 linux-5.15.y 003148680b79 d99a33ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/27 05:49 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/27 04:56 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/27 03:28 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/27 03:28 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/27 02:02 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/26 19:13 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/26 17:39 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/26 13:13 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/26 10:13 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/26 10:13 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/26 06:13 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/26 02:04 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/26 01:02 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/25 23:47 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/25 19:07 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/25 13:08 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/25 13:03 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/25 08:59 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/25 07:54 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/24 23:17 linux-5.15.y 003148680b79 1293872d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/24 21:58 linux-5.15.y 003148680b79 1293872d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/24 21:46 linux-5.15.y 003148680b79 1293872d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/24 20:33 linux-5.15.y 003148680b79 1293872d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/24 19:21 linux-5.15.y 003148680b79 1293872d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/24 18:30 linux-5.15.y 003148680b79 1293872d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/24 13:57 linux-5.15.y 003148680b79 521b0ce3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/24 11:14 linux-5.15.y 003148680b79 521b0ce3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/24 01:04 linux-5.15.y 003148680b79 521b0ce3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/24 00:44 linux-5.15.y 003148680b79 521b0ce3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/23 21:33 linux-5.15.y 003148680b79 521b0ce3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/23 14:44 linux-5.15.y 4735586da88e a44b0418 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/23 11:55 linux-5.15.y 4735586da88e a44b0418 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/23 11:11 linux-5.15.y 4735586da88e a44b0418 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/23 08:24 linux-5.15.y 4735586da88e a44b0418 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/23 04:41 linux-5.15.y 4735586da88e a44b0418 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2025/01/23 02:29 linux-5.15.y 4735586da88e a44b0418 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/22 22:24 linux-5.15.y 4735586da88e a44b0418 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2025/01/22 21:02 linux-5.15.y 4735586da88e a44b0418 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan 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.