syzbot


WARNING in btf_type_id_size

Status: upstream: reported C repro on 2023/05/21 01:39
Bug presence: origin:lts-only
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+d5c448218035ab1c9d28@syzkaller.appspotmail.com
First crash: 401d, last: 1d18h
Fix commit to backport (bisect log) :
tree: upstream
commit e6c2f594ed961273479505b42040782820190305
Author: Yonghong Song <yhs@fb.com>
Date: Tue May 30 20:50:29 2023 +0000

  bpf: Silence a warning in btf_type_id_size()

  
Fix bisection: the issue occurs on the latest tested release (bisect log)
Crash: WARNING in btf_type_id_size (log)
Repro: C syz .config
  
Bug presence (2)
Date Name Commit Repro Result
2023/10/16 linux-6.1.y (ToT) adc4d740ad9e C [report] WARNING in btf_type_id_size
2023/10/16 upstream (ToT) 58720809f527 C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in btf_type_id_size bpf C done 10 546d 617d 22/27 fixed on 2023/02/24 13:50
upstream WARNING in btf_type_id_size (2) bpf C error 8 366d 397d 23/27 fixed on 2023/09/28 17:51
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2023/10/17 21:00 3h45m fix candidate upstream job log (1)
2023/09/12 16:19 2h43m fix candidate upstream job log (0)
2023/06/21 18:31 57m bisect fix linux-6.1.y job log (0) log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3541 at kernel/bpf/btf.c:1943 btf_type_id_size+0x904/0x990
Modules linked in:
CPU: 1 PID: 3541 Comm: syz-executor128 Not tainted 6.1.74-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:btf_type_id_size+0x904/0x990 kernel/bpf/btf.c:1942
Code: e5 3a 00 e9 d1 fa ff ff 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c 03 fb ff ff 48 89 ef e8 66 e5 3a 00 e9 f6 fa ff ff e8 ac 92 e3 ff <0f> 0b 45 31 f6 e9 f1 fa ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f
RSP: 0018:ffffc900039bfbc0 EFLAGS: 00010293
RAX: ffffffff81a6e014 RBX: 0000000011000000 RCX: ffff888013ba8000
RDX: 0000000000000000 RSI: 0000000011000000 RDI: 000000000e000000
RBP: 0000000000000009 R08: ffffffff81a6db42 R09: ffffffff81a6da5e
R10: 0000000000000005 R11: ffff888013ba8000 R12: ffff888028d63000
R13: dffffc0000000000 R14: ffff888028a2fb18 R15: 0000000000000001
FS:  0000555555a44380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 0000000028551000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 map_check_btf+0x134/0xb90 kernel/bpf/syscall.c:996
 map_create+0x7bc/0xd20 kernel/bpf/syscall.c:1145
 __sys_bpf+0x2d3/0x6c0 kernel/bpf/syscall.c:4950
 __do_sys_bpf kernel/bpf/syscall.c:5072 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5070 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5070
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fe367cea4a9
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:00007ffc7734e298 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007ffc7734e468 RCX: 00007fe367cea4a9
RDX: 0000000000000048 RSI: 00000000200000c0 RDI: 0000000000000000
RBP: 00007fe367d5d610 R08: 0000000000000000 R09: 00007ffc7734e468
R10: 00007fe367d25b23 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc7734e458 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (690):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/25 12:01 linux-6.1.y 8fd7f4462453 1e153dc8 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2023/10/16 06:36 linux-6.1.y adc4d740ad9e f757a323 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2023/10/16 06:16 linux-6.1.y adc4d740ad9e f757a323 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2023/10/16 05:58 linux-6.1.y adc4d740ad9e f757a323 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/03/06 05:57 linux-6.1.y a3eb3a74aa8c f39a7eed .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/03/06 05:28 linux-6.1.y a3eb3a74aa8c f39a7eed .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/01/25 11:41 linux-6.1.y 8fd7f4462453 1e153dc8 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2023/05/21 01:38 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2023/06/23 01:30 linux-6.1.y e84a4e368abe 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btf_type_id_size
2023/05/21 20:09 linux-6.1.y fa74641fb6b9 4bce1a3e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/06/23 08:41 linux-6.1.y eb44d83053d6 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/06/22 10:08 linux-6.1.y eb44d83053d6 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btf_type_id_size
2024/06/22 05:21 linux-6.1.y eb44d83053d6 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btf_type_id_size
2024/06/06 16:16 linux-6.1.y 88690811da69 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/06/05 18:04 linux-6.1.y 88690811da69 5aa1a7c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/05/14 20:23 linux-6.1.y 909ba1f1b414 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/05/04 12:26 linux-6.1.y 909ba1f1b414 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/05/03 11:44 linux-6.1.y 909ba1f1b414 dd26401e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/05/01 11:40 linux-6.1.y dcbc050cb0d3 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btf_type_id_size
2024/04/25 23:32 linux-6.1.y 6741e066ec76 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/04/24 18:17 linux-6.1.y 6741e066ec76 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/06/23 04:45 linux-6.1.y eb44d83053d6 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/06/22 11:44 linux-6.1.y eb44d83053d6 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/06/22 03:06 linux-6.1.y eb44d83053d6 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/06/20 20:16 linux-6.1.y eb44d83053d6 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/06/20 18:50 linux-6.1.y eb44d83053d6 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/05/14 14:41 linux-6.1.y 909ba1f1b414 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/05/07 20:11 linux-6.1.y 909ba1f1b414 cb2dcc0e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/05/02 23:40 linux-6.1.y 909ba1f1b414 ddfc15a1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/05/02 19:59 linux-6.1.y 909ba1f1b414 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/05/02 18:28 linux-6.1.y 909ba1f1b414 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/05/02 08:26 linux-6.1.y dcbc050cb0d3 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/05/02 08:18 linux-6.1.y dcbc050cb0d3 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/05/01 03:54 linux-6.1.y dcbc050cb0d3 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/05/01 01:34 linux-6.1.y dcbc050cb0d3 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/30 15:40 linux-6.1.y dcbc050cb0d3 3ce4924c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/30 13:56 linux-6.1.y dcbc050cb0d3 3ce4924c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/29 21:14 linux-6.1.y dcbc050cb0d3 f10afd69 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/29 14:25 linux-6.1.y dcbc050cb0d3 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/29 11:11 linux-6.1.y f2295faba5e8 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/29 09:39 linux-6.1.y f2295faba5e8 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/29 09:39 linux-6.1.y f2295faba5e8 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/28 20:37 linux-6.1.y f2295faba5e8 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/27 20:02 linux-6.1.y f2295faba5e8 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/27 16:53 linux-6.1.y f2295faba5e8 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/27 05:28 linux-6.1.y 6741e066ec76 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/26 15:11 linux-6.1.y 6741e066ec76 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/26 12:41 linux-6.1.y 6741e066ec76 059e9963 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/26 11:00 linux-6.1.y 6741e066ec76 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/26 04:26 linux-6.1.y 6741e066ec76 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/25 08:32 linux-6.1.y 6741e066ec76 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/24 16:44 linux-6.1.y 6741e066ec76 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/24 09:44 linux-6.1.y 6741e066ec76 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/23 11:16 linux-6.1.y 6741e066ec76 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/23 08:38 linux-6.1.y 6741e066ec76 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/22 18:10 linux-6.1.y 6741e066ec76 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/04/22 13:26 linux-6.1.y 6741e066ec76 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
* Struck through repros no longer work on HEAD.