syzbot


WARNING in btf_type_id_size (2)

Status: fixed on 2023/09/28 17:51
Subsystems: bpf
[Documentation on labels]
Reported-by: syzbot+958967f249155967d42a@syzkaller.appspotmail.com
Fix commit: e6c2f594ed96 bpf: Silence a warning in btf_type_id_size()
First crash: 328d, last: 293d
Discussions (5)
Title Replies (including bot) Last reply
[PATCH AUTOSEL 6.3 07/22] bpf: Silence a warning in btf_type_id_size() 1 (1) 2023/07/09 15:13
[PATCH AUTOSEL 6.4 10/26] bpf: Silence a warning in btf_type_id_size() 1 (1) 2023/07/09 15:12
[PATCH bpf-next v2 1/2] bpf: Silence a warning in btf_type_id_size() 2 (2) 2023/05/30 22:40
[PATCH bpf-next 1/2] bpf: Silence a warning in btf_type_id_size() 1 (1) 2023/05/27 22:31
[syzbot] [bpf?] WARNING in btf_type_id_size (2) 0 (1) 2023/05/24 19:44
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in btf_type_id_size missing-backport origin:lts-only C done 536 46m 328d 0/3 upstream: reported C repro on 2023/05/21 01:39
upstream WARNING in btf_type_id_size bpf C done 10 473d 544d 22/26 fixed on 2023/02/24 13:50
Cause bisection attempts (1)
Created Duration User Patch Repo Result
2023/05/21 00:52 12h04m bisect bpf error job log (0)
marked invalid by web-security-scanner@google.com

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5000 at kernel/bpf/btf.c:1984 btf_type_id_size+0x2d9/0x9d0 kernel/bpf/btf.c:1984
Modules linked in:
CPU: 0 PID: 5000 Comm: syz-executor273 Not tainted 6.4.0-rc7-syzkaller-00226-ga92b7d26c743 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:btf_type_id_size+0x2d9/0x9d0 kernel/bpf/btf.c:1984
Code: ef e8 2b 56 e2 ff 41 83 ff 0b 77 28 f6 44 24 10 18 75 3f e8 b9 59 e2 ff 44 89 fe bf 0e 00 00 00 e8 cc 55 e2 ff e8 a7 59 e2 ff <0f> 0b 45 31 f6 e9 98 02 00 00 41 83 ff 12 74 18 e8 92 59 e2 ff 44
RSP: 0018:ffffc90003a6fb68 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff88802bbb9dc0 RSI: ffffffff81a1efb9 RDI: 0000000000000005
RBP: ffff88802bbe4c00 R08: 0000000000000005 R09: 000000000000000e
R10: 0000000000000011 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000011 R14: ffff88802a484198 R15: 0000000000000011
FS:  0000555557076300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a637b68a18 CR3: 000000007ad6d000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 map_check_btf kernel/bpf/syscall.c:1024 [inline]
 map_create+0x1157/0x1860 kernel/bpf/syscall.c:1198
 __sys_bpf+0x142e/0x5400 kernel/bpf/syscall.c:5054
 __do_sys_bpf kernel/bpf/syscall.c:5176 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5174 [inline]
 __x64_sys_bpf+0x79/0xc0 kernel/bpf/syscall.c:5174
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f7ffff4dd09
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:00007ffc83e524a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7ffff4dd09
RDX: 0000000000000048 RSI: 0000000020000180 RDI: 0000000000000000
RBP: 00007f7ffff11eb0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7ffff11f40
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/24 23:37 upstream a92b7d26c743 09ffe269 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in btf_type_id_size
2023/06/18 15:50 upstream 1b29d271614a f3921d4d .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in btf_type_id_size
2023/05/20 20:21 bpf 0613d8ca9ab3 4bce1a3e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in btf_type_id_size
2023/05/20 20:17 net 67caf26d769e 4bce1a3e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in btf_type_id_size
2023/05/20 21:11 bpf-next 18f558876ff0 4bce1a3e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in btf_type_id_size
2023/05/20 19:52 net-next dcbe4ea1985d 4bce1a3e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in btf_type_id_size
2023/05/20 20:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f1fcbaa18b28 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in btf_type_id_size
2023/05/20 19:33 net-next dcbe4ea1985d 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in btf_type_id_size
* Struck through repros no longer work on HEAD.