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: 624d, last: 2h07m
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 787d 950d 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: 1 PID: 3571 at kernel/bpf/verifier.c:11726 check_map_prog_compatibility+0x720/0x8c0 kernel/bpf/verifier.c:11726
Modules linked in:
CPU: 1 PID: 3571 Comm: syz-executor364 Not tainted 5.15.167-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:check_map_prog_compatibility+0x720/0x8c0 kernel/bpf/verifier.c:11726
Code: ed e9 ec fc ff ff e8 6f c0 ee ff 31 ed e9 e0 fc ff ff e8 63 c0 ee ff c6 05 29 2e 44 0c 01 48 c7 c7 40 38 91 8a e8 30 6a 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:ffffc90002e77348 EFLAGS: 00010246
RAX: 448cc62aade97f00 RBX: 0000000000000011 RCX: ffff888028489dc0
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffff888073e10828 R08: ffffffff81668a3c R09: fffff520005ceda9
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90000e26038
R13: ffff888073e10800 R14: ffff88801afec000 R15: dffffc0000000000
FS:  000055557c527380(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f100e9520d0 CR3: 000000007d292000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 resolve_pseudo_ldimm64+0x682/0x1240 kernel/bpf/verifier.c:11895
 bpf_check+0x4341/0x12d00 kernel/bpf/verifier.c:14101
 bpf_prog_load+0x12b3/0x1b60 kernel/bpf/syscall.c:2353
 __sys_bpf+0x343/0x670 kernel/bpf/syscall.c:4651
 __do_sys_bpf kernel/bpf/syscall.c:4755 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4753 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4753
 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:0x7f100e8daf39
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:00007fff9392b468 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f100e8daf39
RDX: 0000000000000090 RSI: 00000000200000c0 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000006
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (8856):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
2024/11/21 12:29 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/21 09:01 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/21 07:54 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/21 07:54 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/21 04:08 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/20 22:26 linux-5.15.y 0a51d2d4527b 4fca1650 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/20 21:02 linux-5.15.y 0a51d2d4527b 4fca1650 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/20 20:37 linux-5.15.y 0a51d2d4527b 4fca1650 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/20 19:29 linux-5.15.y 0a51d2d4527b 4fca1650 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/20 15:45 linux-5.15.y 0a51d2d4527b 4fca1650 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/20 15:38 linux-5.15.y 0a51d2d4527b 4fca1650 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/20 09:27 linux-5.15.y 0a51d2d4527b 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/20 03:47 linux-5.15.y 0a51d2d4527b 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/20 00:58 linux-5.15.y 0a51d2d4527b 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/19 23:47 linux-5.15.y 0a51d2d4527b 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/19 21:20 linux-5.15.y 0a51d2d4527b 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 19:53 linux-5.15.y 0a51d2d4527b 7d02db5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 16:25 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 15:43 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 14:41 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 13:42 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 12:36 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 12:05 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 11:02 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 09:49 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 09:32 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 07:59 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 07:53 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 06:41 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 05:40 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 05:26 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 04:25 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 03:17 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/19 02:26 linux-5.15.y 0a51d2d4527b 571351cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in check_map_prog_compatibility
2024/11/18 20:16 linux-5.15.y 0a51d2d4527b e7bb5d6e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/18 08:56 linux-5.15.y 0a51d2d4527b cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/18 04:02 linux-5.15.y 0a51d2d4527b cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/18 04:02 linux-5.15.y 0a51d2d4527b cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/18 02:17 linux-5.15.y 0a51d2d4527b cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/18 01:10 linux-5.15.y 0a51d2d4527b cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/17 14:05 linux-5.15.y d98fd109f827 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/17 14:05 linux-5.15.y d98fd109f827 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/17 10:54 linux-5.15.y d98fd109f827 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/17 07:48 linux-5.15.y d98fd109f827 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in check_map_prog_compatibility
2024/11/17 04:33 linux-5.15.y d98fd109f827 cfe3a04a .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.