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: 580d, last: 100d
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()

[report pending]
  
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 726d 797d 22/28 fixed on 2023/02/24 13:50
upstream WARNING in btf_type_id_size (2) bpf C error 8 545d 576d 23/28 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 OK (1) job log
2023/09/12 16:19 2h43m fix candidate upstream OK (0) job log
2023/06/21 18:31 57m bisect fix linux-6.1.y OK (0) job log 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 (772):
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/09/12 04:50 linux-6.1.y 5ca5b389fddf d94c83d8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/09/11 09:48 linux-6.1.y 5ca5b389fddf 8ab55d0e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/09/10 13:22 linux-6.1.y 5ca5b389fddf 784df80e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/09/10 07:59 linux-6.1.y 5ca5b389fddf 784df80e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/09/09 22:45 linux-6.1.y 5ca5b389fddf 073f8be2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/09/09 21:39 linux-6.1.y 5ca5b389fddf 073f8be2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/09/08 11:53 linux-6.1.y 5ca5b389fddf 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/09/05 20:01 linux-6.1.y 699506173494 464ac2ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/09/05 14:05 linux-6.1.y 699506173494 464ac2ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/09/04 18:35 linux-6.1.y 699506173494 9d47f20a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/09/04 05:41 linux-6.1.y 311d8503ef9f 326f9c5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btf_type_id_size
2024/09/04 05:39 linux-6.1.y 311d8503ef9f 326f9c5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btf_type_id_size
2024/09/03 22:07 linux-6.1.y 311d8503ef9f 326f9c5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/08/28 03:25 linux-6.1.y ee5e09825b81 6c853ff9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/08/22 21:37 linux-6.1.y ee5e09825b81 ca02180f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btf_type_id_size
2024/08/10 19:15 linux-6.1.y 48d525b0e463 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/08/03 12:20 linux-6.1.y 48d525b0e463 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/08/01 10:55 linux-6.1.y c1cec4dad96b 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btf_type_id_size
2024/08/01 05:00 linux-6.1.y c1cec4dad96b 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/07/26 05:36 linux-6.1.y c18e82d3ee44 3f86dfed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/07/23 11:15 linux-6.1.y 9b3f9a5b12dc 708c10c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btf_type_id_size
2024/07/22 18:30 linux-6.1.y 9b3f9a5b12dc df655b64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/07/20 22:45 linux-6.1.y 9b3f9a5b12dc b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btf_type_id_size
2024/07/15 02:52 linux-6.1.y 266ee8e06d5b eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btf_type_id_size
2024/07/15 02:24 linux-6.1.y 266ee8e06d5b eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btf_type_id_size
2024/07/14 15:37 linux-6.1.y 266ee8e06d5b eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in btf_type_id_size
2024/07/09 04:29 linux-6.1.y 7753af06eebf bc23a442 .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 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/08/22 17:09 linux-6.1.y ee5e09825b81 ca02180f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/08/11 00:51 linux-6.1.y 48d525b0e463 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/08/01 11:21 linux-6.1.y c1cec4dad96b 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/07/29 06:11 linux-6.1.y c1cec4dad96b 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/07/21 00:01 linux-6.1.y 9b3f9a5b12dc b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/07/14 10:41 linux-6.1.y 266ee8e06d5b eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btf_type_id_size
2024/07/01 07:00 linux-6.1.y 99e6a620de00 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 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
* Struck through repros no longer work on HEAD.