syzbot


WARNING in bpf_check (3)

Status: fixed on 2023/02/24 13:50
Reported-by: syzbot+245129539c27fecf099a@syzkaller.appspotmail.com
Fix commit: 34dd3bad1a6f bpf: Relax the requirement to use preallocated hash maps in tracing progs.
First crash: 1730d, last: 796d
Cause bisection: introduced by (bisect log) :
commit 94dacdbd5d2dfa2cffd308f128d78c99f855f5be
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Mon Feb 24 14:01:32 2020 +0000

  bpf: Tighten the requirements for preallocated hash maps

Crash: WARNING in bpf_check (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 34dd3bad1a6f1dc7d18ee8dd53f1d31bffd2aee8
Author: Alexei Starovoitov <ast@kernel.org>
Date: Fri Sep 2 21:10:47 2022 +0000

  bpf: Relax the requirement to use preallocated hash maps in tracing progs.

  
Discussions (1)
Title Replies (including bot) Last reply
WARNING in bpf_check (3) 1 (3) 2022/11/08 22:53
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in bpf_check (2) bpf C 9 2213d 2213d 11/28 fixed on 2018/12/07 08:24
upstream WARNING in bpf_check bpf 3 2332d 2339d 8/28 fixed on 2018/08/07 13:43
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2022/11/07 07:08 3h39m bisect fix upstream OK (1) job log
2022/01/23 08:00 20m bisect fix upstream OK (0) job log log

Sample crash report:
------------[ cut here ]------------
trace type BPF program uses run-time allocation
WARNING: CPU: 1 PID: 3614 at kernel/bpf/verifier.c:12624 check_map_prog_compatibility kernel/bpf/verifier.c:12624 [inline]
WARNING: CPU: 1 PID: 3614 at kernel/bpf/verifier.c:12624 resolve_pseudo_ldimm64 kernel/bpf/verifier.c:12797 [inline]
WARNING: CPU: 1 PID: 3614 at kernel/bpf/verifier.c:12624 bpf_check+0xb55c/0xc7b0 kernel/bpf/verifier.c:15230
Modules linked in:
CPU: 1 PID: 3614 Comm: syz-executor356 Not tainted 6.0.0-rc3-syzkaller-00299-gd895ec7938c4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:check_map_prog_compatibility kernel/bpf/verifier.c:12624 [inline]
RIP: 0010:resolve_pseudo_ldimm64 kernel/bpf/verifier.c:12797 [inline]
RIP: 0010:bpf_check+0xb55c/0xc7b0 kernel/bpf/verifier.c:15230
Code: e9 72 a0 ff ff 4c 89 ef e8 41 85 36 00 e9 c1 5f ff ff e8 57 e5 ea ff 48 c7 c7 60 6a f4 89 c6 05 9e a3 38 0c 01 e8 01 c3 a9 07 <0f> 0b e9 bb 9f ff ff e8 28 85 36 00 e9 ca 62 ff ff e8 2e e5 ea ff
RSP: 0018:ffffc90002f77868 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff888074a87800 RCX: 0000000000000000
RDX: ffff88802618e200 RSI: ffffffff81611e08 RDI: fffff520005eeeff
RBP: ffffc90002f77b10 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: 0000000000000002
R13: ffffc90000376059 R14: ffffc90000376058 R15: ffff88807e9b4000
FS:  00005555566ea300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000564bc425a108 CR3: 0000000074a54000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bpf_prog_load+0x13cb/0x2220 kernel/bpf/syscall.c:2595
 __sys_bpf+0x1e7e/0x6130 kernel/bpf/syscall.c:4953
 __do_sys_bpf kernel/bpf/syscall.c:5057 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5055 [inline]
 __x64_sys_bpf+0x75/0xb0 kernel/bpf/syscall.c:5055
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f91ab646d59
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:00007ffeaee7e798 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f91ab646d59
RDX: 0000000000000080 RSI: 00000000200004c0 RDI: 0000000000000005
RBP: 00007f91ab60af00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000072 R11: 0000000000000246 R12: 00007f91ab60af90
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (1736):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/04 03:33 upstream d895ec7938c4 28811d0a .config strace log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-selinux-root WARNING in bpf_check
2022/08/17 16:41 upstream 7ebfc85e2cd7 4e72d229 .config strace log report syz C ci-upstream-kasan-gce-root WARNING in bpf_check
2022/08/07 15:01 upstream 200e340f2196 88e3a122 .config strace log report syz C ci-upstream-kasan-gce-selinux-root WARNING in bpf_check
2022/06/25 15:27 upstream 6a0a17e6c6d1 a371c43c .config strace log report syz C ci-upstream-kasan-gce-root WARNING in bpf_check
2022/06/19 11:34 upstream 354c6e071be9 8f633d84 .config strace log report syz C ci-upstream-kasan-gce-root WARNING in bpf_check
2022/05/25 07:30 upstream aa051d36ce4a 647c0e27 .config strace log report syz C ci-upstream-kasan-gce-root WARNING in bpf_check
2021/08/30 12:22 upstream 90ac80dcd313 be2c130d .config console log report syz C ci-upstream-kasan-gce-selinux-root WARNING in bpf_check
2021/07/22 10:55 upstream 7b6ae471e541 29c3f20f .config console log report syz C ci-upstream-kasan-gce WARNING in bpf_check
2021/07/02 09:22 upstream e04360a2ea01 658ebc66 .config console log report syz C ci-upstream-kasan-gce-selinux-root WARNING in bpf_check
2021/05/27 19:17 upstream d7c5303fbc8a 858ea628 .config console log report syz C ci-upstream-kasan-gce-smack-root WARNING in bpf_check
2021/05/24 08:21 upstream 6ebb6814a1ef 3c7fef33 .config console log report syz C ci-upstream-kasan-gce-root WARNING in bpf_check
2022/08/01 19:17 net-old 5121db6afb99 fef302b1 .config strace log report syz C ci-upstream-net-this-kasan-gce WARNING in bpf_check
2022/04/22 23:38 bpf b02d196c44ea 131df97d .config console log report syz C ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/04/22 19:04 net-old 59f0c2447e25 131df97d .config console log report syz C ci-upstream-net-this-kasan-gce WARNING in bpf_check
2022/04/12 09:27 net-old 65745da171e6 af01ee7d .config console log report syz C ci-upstream-net-this-kasan-gce WARNING in bpf_check
2022/04/12 04:44 bpf 425d239379db af01ee7d .config console log report syz C ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/04/09 15:04 bpf 8de8b71b787f e22c3da3 .config console log report syz C ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/02/26 11:11 net-old 328e765c0373 45a13a73 .config console log report syz C ci-upstream-net-this-kasan-gce WARNING in bpf_check
2022/02/26 09:01 bpf 8940e6b669ca 45a13a73 .config console log report syz C ci-upstream-bpf-kasan-gce WARNING in bpf_check
2021/05/06 14:53 bpf bbd6f0a94813 06c27ff5 .config console log report syz C ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/08/01 19:42 net-next-old 3c47fb2f4c4d fef302b1 .config strace log report syz C ci-upstream-net-kasan-gce WARNING in bpf_check
2022/04/22 18:08 bpf-next e8c5e1a0f78f 131df97d .config console log report syz C ci-upstream-bpf-next-kasan-gce WARNING in bpf_check
2022/04/22 17:56 net-next-old f70925bf9940 131df97d .config console log report syz C ci-upstream-net-kasan-gce WARNING in bpf_check
2022/04/12 08:52 net-next-old 1cb9d3b6185b af01ee7d .config console log report syz C ci-upstream-net-kasan-gce WARNING in bpf_check
2022/04/12 08:17 bpf-next 0f8619929c57 af01ee7d .config console log report syz C ci-upstream-bpf-next-kasan-gce WARNING in bpf_check
2022/04/09 15:05 net-next-old 34ba23b44c66 e22c3da3 .config console log report syz C ci-upstream-net-kasan-gce WARNING in bpf_check
2022/04/09 15:05 bpf-next 34ba23b44c66 e22c3da3 .config console log report syz C ci-upstream-bpf-next-kasan-gce WARNING in bpf_check
2022/02/26 17:56 net-next-old 3e120e458018 45a13a73 .config console log report syz C ci-upstream-net-kasan-gce WARNING in bpf_check
2022/02/26 06:56 bpf-next e5313968c41b 45a13a73 .config console log report syz C ci-upstream-bpf-next-kasan-gce WARNING in bpf_check
2021/05/06 19:01 net-next-old 95aafe911db6 06585184 .config console log report syz C ci-upstream-net-kasan-gce WARNING in bpf_check
2021/05/06 14:39 bpf-next 3733bfbbdd28 06c27ff5 .config console log report syz C ci-upstream-bpf-next-kasan-gce WARNING in bpf_check
2022/08/01 00:38 linux-next cb71b93c2dc3 fef302b1 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in bpf_check
2022/07/28 22:39 linux-next cb71b93c2dc3 fb95c74d .config strace log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in bpf_check
2022/07/28 12:07 linux-next cb71b93c2dc3 fb95c74d .config strace log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in bpf_check
2022/07/05 16:51 linux-next cb71b93c2dc3 bff65f44 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in bpf_check
2021/08/09 11:15 linux-next 7999516e20bd 6972b106 .config console log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in bpf_check
2021/06/18 16:47 linux-next a1f92694393a aba2b2fb .config console log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in bpf_check
2021/01/11 09:24 net-old f97844f9c518 2c1f2513 .config console log report syz C ci-upstream-net-this-kasan-gce
2021/01/11 08:02 bpf 286e95eed12e 2c1f2513 .config console log report syz C ci-upstream-bpf-kasan-gce
2021/01/11 08:02 net-next-old 73b7a6047971 2c1f2513 .config console log report syz C ci-upstream-net-kasan-gce
2021/01/11 08:02 bpf-next e22d7f05e445 2c1f2513 .config console log report syz C ci-upstream-bpf-next-kasan-gce
2020/12/06 12:47 bpf-next 34da87213d3d f12ba0c5 .config console log report syz C ci-upstream-bpf-next-kasan-gce
2020/03/11 18:26 bpf-next 13fac1d851e0 e7caca8e .config console log report syz C ci-upstream-bpf-next-kasan-gce
2022/09/09 08:30 upstream 506357871c18 f3027468 .config strace log report syz C ci-upstream-kasan-gce-selinux-root WARNING in bpf_check
2022/09/25 22:52 upstream 105a36f3694e 0042f2b4 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in bpf_check
2022/09/25 21:50 upstream 105a36f3694e 0042f2b4 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root WARNING in bpf_check
2022/09/24 02:24 upstream 1707c39ae309 0042f2b4 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-selinux-root WARNING in bpf_check
2022/09/20 13:36 upstream 521a547ced64 7c41a9ba .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in bpf_check
2022/09/17 02:18 upstream 6879c2d3b960 dd9a85ff .config console log report info ci-qemu-upstream WARNING in bpf_check
2022/09/13 03:43 upstream 6504d82f4440 f371ed7e .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in bpf_check
2022/08/31 15:38 upstream dcf8e5633e2e 51e54e30 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in bpf_check
2022/08/30 19:27 upstream dcf8e5633e2e 4a380809 .config console log report info ci-upstream-kasan-gce-root WARNING in bpf_check
2022/08/30 18:04 upstream dcf8e5633e2e 4a380809 .config console log report info ci-qemu-upstream WARNING in bpf_check
2022/08/28 08:04 upstream 10d4879f9ef0 07177916 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in bpf_check
2022/08/26 23:32 upstream 3e5c673f0d75 e5a303f1 .config console log report info ci-upstream-kasan-gce-root WARNING in bpf_check
2022/08/21 00:42 upstream f31c32efd57c 26a13b38 .config console log report info ci-qemu-upstream WARNING in bpf_check
2022/08/20 18:39 upstream f31c32efd57c 26a13b38 .config console log report info ci-qemu-upstream WARNING in bpf_check
2022/08/20 09:29 upstream 4c2d0b039c5c 26a13b38 .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in bpf_check
2022/08/19 03:53 upstream 573ae4f13f63 26a13b38 .config console log report info ci-qemu-upstream WARNING in bpf_check
2022/08/14 15:28 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in bpf_check
2022/08/14 10:44 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info ci-upstream-kasan-gce-root WARNING in bpf_check
2022/02/09 14:02 upstream e6251ab4551f 0b33604d .config console log report info ci-upstream-kasan-gce-smack-root WARNING in bpf_check
2022/09/20 13:31 upstream 521a547ced64 7c41a9ba .config console log report info ci-qemu-upstream-386 WARNING in bpf_check
2022/08/31 17:26 upstream dcf8e5633e2e 51e54e30 .config console log report info ci-qemu-upstream-386 WARNING in bpf_check
2022/10/02 06:24 net-old ae3ed15da588 feb56351 .config console log report info [disk image] [vmlinux] ci-upstream-net-this-kasan-gce WARNING in bpf_check
2022/09/23 13:47 net-old 504c25cb76a9 0042f2b4 .config console log report info ci-upstream-net-this-kasan-gce WARNING in bpf_check
2022/09/20 15:34 bpf 83c10cc362d9 7c41a9ba .config console log report info ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/09/20 12:09 net-old 8ccac4edc8da 7c41a9ba .config console log report info ci-upstream-net-this-kasan-gce WARNING in bpf_check
2022/09/18 19:50 bpf 83c10cc362d9 dd9a85ff .config console log report info ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/09/17 00:27 bpf 83c10cc362d9 dd9a85ff .config console log report info ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/09/16 00:01 net-old 0727a9a5fbc1 dd9a85ff .config console log report info [disk image] [vmlinux] ci-upstream-net-this-kasan-gce WARNING in bpf_check
2022/09/12 23:54 bpf a37a32583e28 f371ed7e .config console log report info ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/09/12 23:53 net-old 64ae13ed4784 f371ed7e .config console log report info ci-upstream-net-this-kasan-gce WARNING in bpf_check
2022/09/11 16:04 net-old 64ae13ed4784 356d8217 .config console log report info [disk image] [vmlinux] ci-upstream-net-this-kasan-gce WARNING in bpf_check
2022/09/11 14:43 bpf a37a32583e28 356d8217 .config console log report info ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/09/02 17:19 net-old e7506d344bf1 25194605 .config console log report info ci-upstream-net-this-kasan-gce WARNING in bpf_check
2022/09/01 08:16 bpf 8a7d61bdc2fa b01ec571 .config console log report info ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/08/31 04:21 bpf 2e085ec0e2d7 4a380809 .config console log report info ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/08/31 00:44 bpf 2e085ec0e2d7 4a380809 .config console log report info ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/08/30 13:46 bpf 2e085ec0e2d7 5b44472d .config console log report info ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/08/25 10:12 bpf 0947ae112108 514514f6 .config console log report info ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/08/24 07:12 bpf 0947ae112108 cea8b0f7 .config console log report info ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/08/20 08:46 bpf 7d6620f107ba 26a13b38 .config console log report info ci-upstream-bpf-kasan-gce WARNING in bpf_check
2022/08/15 14:03 net-old 777885673122 8dfcaa3d .config console log report info ci-upstream-net-this-kasan-gce WARNING in bpf_check
2022/08/12 06:31 net-old 7ebfc85e2cd7 402cd70d .config console log report info ci-upstream-net-this-kasan-gce WARNING in bpf_check
2022/08/12 03:43 net-old 94ce3b64c62d 787ed7e0 .config console log report info ci-upstream-net-this-kasan-gce WARNING in bpf_check
2022/08/12 01:08 net-old 94ce3b64c62d 787ed7e0 .config console log report info ci-upstream-net-this-kasan-gce WARNING in bpf_check
2022/09/02 18:31 bpf-next 8cc61b7a6416 25194605 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in bpf_check
2022/09/02 16:54 net-next-old c3f760ef1287 25194605 .config console log report info ci-upstream-net-kasan-gce WARNING in bpf_check
2022/08/31 12:32 net-next-old 146ecbac1d32 51e54e30 .config console log report info ci-upstream-net-kasan-gce WARNING in bpf_check
2022/08/30 23:29 bpf-next 6f95de6d7131 4a380809 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in bpf_check
2022/08/30 01:32 net-next-old f97e971dbdc7 5b44472d .config console log report info ci-upstream-net-kasan-gce WARNING in bpf_check
2022/08/28 04:27 net-next-old 53a406803ca5 07177916 .config console log report info ci-upstream-net-kasan-gce WARNING in bpf_check
2022/08/25 11:01 bpf-next 7e165d193928 514514f6 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in bpf_check
2022/08/20 11:34 net-next-old 917edfb98c48 26a13b38 .config console log report info ci-upstream-net-kasan-gce WARNING in bpf_check
2022/08/19 03:44 bpf-next e34cfee65ec8 26a13b38 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in bpf_check
2022/08/14 17:56 net-next-old 7ebfc85e2cd7 8dfcaa3d .config console log report info ci-upstream-net-kasan-gce WARNING in bpf_check
2022/08/14 15:29 bpf-next ea2babac63d4 8dfcaa3d .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in bpf_check
2022/08/11 18:36 bpf-next ea2babac63d4 787ed7e0 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in bpf_check
2022/08/31 14:00 linux-next 7fd22855300e 51e54e30 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in bpf_check
2022/08/26 20:52 linux-next 8d0c42c9e807 e5a303f1 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in bpf_check
2020/03/11 18:06 bpf-next 13fac1d851e0 e7caca8e .config console log report ci-upstream-bpf-next-kasan-gce
* Struck through repros no longer work on HEAD.