syzbot


WARNING in bpf_check (3)
Status: upstream: reported C repro on 2020/03/12 21:37
Reported-by: syzbot+245129539c27fecf099a@syzkaller.appspotmail.com
First crash: 805d, last: 1d07h

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
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in bpf_check (2) C 9 1288d 1288d 12/22 fixed on 2018/12/07 08:24
upstream WARNING in bpf_check 3 1408d 1414d 9/22 fixed on 2018/08/07 13:43

Sample crash report:
------------[ cut here ]------------
trace type BPF program uses run-time allocation
WARNING: CPU: 0 PID: 3597 at kernel/bpf/verifier.c:11998 check_map_prog_compatibility kernel/bpf/verifier.c:11998 [inline]
WARNING: CPU: 0 PID: 3597 at kernel/bpf/verifier.c:11998 resolve_pseudo_ldimm64 kernel/bpf/verifier.c:12171 [inline]
WARNING: CPU: 0 PID: 3597 at kernel/bpf/verifier.c:11998 bpf_check+0xb1d9/0xbbc0 kernel/bpf/verifier.c:14462
Modules linked in:
CPU: 0 PID: 3597 Comm: syz-executor712 Not tainted 5.18.0-syzkaller-01850-gaa051d36ce4a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:check_map_prog_compatibility kernel/bpf/verifier.c:11998 [inline]
RIP: 0010:resolve_pseudo_ldimm64 kernel/bpf/verifier.c:12171 [inline]
RIP: 0010:bpf_check+0xb1d9/0xbbc0 kernel/bpf/verifier.c:14462
Code: ff ff e8 8a 5a 37 00 8b 95 18 fe ff ff e9 83 cc ff ff e8 6a d3 eb ff 48 c7 c7 20 0e d4 89 c6 05 82 4e 17 0c 01 e8 2d 16 9c 07 <0f> 0b e9 ac c3 ff ff 48 89 cf e8 e8 59 37 00 e9 fe 72 ff ff e8 be
RSP: 0018:ffffc90002eff8a8 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000
RDX: ffff88807f09d880 RSI: ffffffff81604a38 RDI: fffff520005dff07
RBP: ffffc90002effb10 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff815ff40e R11: 0000000000000000 R12: ffff88801da3c000
R13: dffffc0000000000 R14: ffffc90000abe058 R15: 0000000000000002
FS:  0000555556969300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd93a312a70 CR3: 0000000073176000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 bpf_prog_load+0xfb2/0x2250 kernel/bpf/syscall.c:2351
 __sys_bpf+0x674/0x55d0 kernel/bpf/syscall.c:4663
 __do_sys_bpf kernel/bpf/syscall.c:4767 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4765 [inline]
 __x64_sys_bpf+0x75/0xb0 kernel/bpf/syscall.c:4765
 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+0x46/0xb0
RIP: 0033:0x7f844a864d49
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:00007ffeabbe0ef8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f844a864d49
RDX: 0000000000000080 RSI: 0000000020000180 RDI: 0000000000000005
RBP: 00007f844a828ef0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f844a828f80
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2022/01/23 08:20 upstream 40c843218f11 be2c130d .config log report syz C
Crashes (880):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/05/25 07:30 upstream aa051d36ce4a 647c0e27 .config log report syz C WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/08/30 12:22 upstream 90ac80dcd313 be2c130d .config log report syz C WARNING in bpf_check
ci-upstream-kasan-gce 2021/07/22 10:55 upstream 7b6ae471e541 29c3f20f .config log report syz C WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2021/07/02 09:22 upstream e04360a2ea01 658ebc66 .config log report syz C WARNING in bpf_check
ci-upstream-kasan-gce-smack-root 2021/05/27 19:17 upstream d7c5303fbc8a 858ea628 .config log report syz C WARNING in bpf_check
ci-upstream-kasan-gce-root 2021/05/24 08:21 upstream 6ebb6814a1ef 3c7fef33 .config log report syz C WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/04/22 23:38 bpf b02d196c44ea 131df97d .config log report syz C WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/04/22 19:04 net 59f0c2447e25 131df97d .config log report syz C WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/04/12 09:27 net 65745da171e6 af01ee7d .config log report syz C WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/04/12 04:44 bpf 425d239379db af01ee7d .config log report syz C WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/04/09 15:04 bpf 8de8b71b787f e22c3da3 .config log report syz C WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/02/26 11:11 net 328e765c0373 45a13a73 .config log report syz C WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/02/26 09:01 bpf 8940e6b669ca 45a13a73 .config log report syz C WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2021/05/06 14:53 bpf bbd6f0a94813 06c27ff5 .config log report syz C WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/04/22 18:08 bpf-next e8c5e1a0f78f 131df97d .config log report syz C WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/04/22 17:56 net-next f70925bf9940 131df97d .config log report syz C WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/04/12 08:52 net-next 1cb9d3b6185b af01ee7d .config log report syz C WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/04/12 08:17 bpf-next 0f8619929c57 af01ee7d .config log report syz C WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/04/09 15:05 net-next 34ba23b44c66 e22c3da3 .config log report syz C WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/04/09 15:05 bpf-next 34ba23b44c66 e22c3da3 .config log report syz C WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/02/26 17:56 net-next 3e120e458018 45a13a73 .config log report syz C WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/02/26 06:56 bpf-next e5313968c41b 45a13a73 .config log report syz C WARNING in bpf_check
ci-upstream-net-kasan-gce 2021/05/06 19:01 net-next 95aafe911db6 06585184 .config log report syz C WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2021/05/06 14:39 bpf-next 3733bfbbdd28 06c27ff5 .config log report syz C WARNING in bpf_check
ci-upstream-linux-next-kasan-gce-root 2021/08/09 11:15 linux-next 7999516e20bd 6972b106 .config log report syz C WARNING in bpf_check
ci-upstream-linux-next-kasan-gce-root 2021/06/18 16:47 linux-next a1f92694393a aba2b2fb .config log report syz C WARNING in bpf_check
ci-upstream-kasan-gce-root 2020/08/22 18:37 upstream f873db9acd3c 6436ce4b .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/08/22 15:07 upstream f873db9acd3c 6436ce4b .config log report syz C
ci-upstream-kasan-gce-smack-root 2020/08/22 14:44 upstream f873db9acd3c 6436ce4b .config log report syz C
ci-upstream-kasan-gce-root 2020/05/24 18:11 upstream caffb99b6929 bd28eb9d .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/05/24 13:20 upstream 423b8baf18a8 96c92ad3 .config log report syz C
ci-upstream-net-this-kasan-gce 2021/01/11 09:24 net f97844f9c518 2c1f2513 .config log report syz C
ci-upstream-bpf-kasan-gce 2021/01/11 08:02 bpf 286e95eed12e 2c1f2513 .config log report syz C
ci-upstream-net-this-kasan-gce 2020/12/06 11:56 net edd2410b165e f12ba0c5 .config log report syz C
ci-upstream-bpf-kasan-gce 2020/12/06 11:47 bpf 12c8a8ca117f f12ba0c5 .config log report syz C
ci-upstream-net-this-kasan-gce 2020/08/22 14:35 net 4af7b32f84aa 6436ce4b .config log report syz C
ci-upstream-bpf-kasan-gce 2020/08/22 14:35 bpf 4af7b32f84aa 6436ce4b .config log report syz C
ci-upstream-net-kasan-gce 2021/01/11 08:02 net-next 73b7a6047971 2c1f2513 .config log report syz C
ci-upstream-bpf-next-kasan-gce 2021/01/11 08:02 bpf-next e22d7f05e445 2c1f2513 .config log report syz C
ci-upstream-bpf-next-kasan-gce 2020/12/06 12:47 bpf-next 34da87213d3d f12ba0c5 .config log report syz C
ci-upstream-net-kasan-gce 2020/12/06 11:57 net-next 00649542f1ba f12ba0c5 .config log report syz C
ci-upstream-bpf-next-kasan-gce 2020/08/22 14:35 bpf-next 9c0f8cbdc0e9 6436ce4b .config log report syz C
ci-upstream-net-kasan-gce 2020/08/22 14:35 net-next 3478f90cbff4 6436ce4b .config log report syz C
ci-upstream-bpf-next-kasan-gce 2020/03/11 18:26 bpf-next 13fac1d851e0 e7caca8e .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/08/23 22:27 linux-next 494d311a82bb cef5ae68 .config log report syz C
ci-qemu-upstream 2022/05/22 16:09 upstream eaea45fc0e7b 7268fa62 .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/05/17 14:34 upstream 42226c989789 744a39e2 .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/05/15 23:08 upstream bc403203d65a 744a39e2 .config log report info WARNING in bpf_check
ci-qemu-upstream 2022/05/04 07:02 upstream ef8e4d3c2ab1 dc9e5259 .config log report info WARNING in bpf_check
ci-qemu-upstream 2022/05/01 00:10 upstream 57ae8a492116 2df221f6 .config log report info WARNING in bpf_check
ci-qemu-upstream 2022/04/29 03:36 upstream 259b897e5a79 e9076525 .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/04/26 14:56 upstream d615b5416f8a 1fa34c1b .config log report info WARNING in bpf_check
ci-qemu-upstream 2022/04/26 05:36 upstream af2d861d4cd2 152baedd .config log report info WARNING in bpf_check
ci-qemu-upstream 2022/04/26 05:35 upstream af2d861d4cd2 152baedd .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-root 2022/04/20 16:19 upstream 559089e0a93d 160a3f31 .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/04/19 13:36 upstream b2d229d4ddb1 c334415e .config log report info WARNING in bpf_check
ci-qemu-upstream 2022/04/17 05:42 upstream 90ea17a9e27b 8bcc32a6 .config log report info WARNING in bpf_check
ci-qemu-upstream 2022/04/13 00:14 upstream ce522ba9ef7e dacb3f1c .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/04/12 04:17 upstream ce522ba9ef7e af01ee7d .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/04/12 04:05 upstream ce522ba9ef7e af01ee7d .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/03/31 02:58 upstream 787af64d05cd 9d49f3a7 .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-smack-root 2022/02/09 14:02 upstream e6251ab4551f 0b33604d .config log report info WARNING in bpf_check
ci-qemu-upstream-386 2022/05/22 11:43 upstream eaea45fc0e7b 7268fa62 .config log report info WARNING in bpf_check
ci-qemu-upstream-386 2022/05/05 18:56 upstream a7391ad35724 b3f09415 .config log report info WARNING in bpf_check
ci-qemu-upstream-386 2022/04/30 20:48 upstream 57ae8a492116 2df221f6 .config log report info WARNING in bpf_check
ci-qemu-upstream-386 2022/04/28 23:41 upstream 259b897e5a79 e9076525 .config log report info WARNING in bpf_check
ci-qemu-upstream-386 2022/04/21 00:11 upstream 559089e0a93d 160a3f31 .config log report info WARNING in bpf_check
ci-qemu-upstream-386 2022/04/17 06:28 upstream 90ea17a9e27b 8bcc32a6 .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/05/24 05:24 bpf 8c3b8dc5cc9b e7f9308d .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/05/18 12:09 net 23dd4581350d 744a39e2 .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/05/14 04:48 net 9500acc631db 107f6434 .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/05/09 17:24 bpf a0df71948e95 8b277b8e .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/05/09 16:05 bpf a0df71948e95 8b277b8e .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/04/28 21:56 bpf a0df71948e95 e9076525 .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/04/26 04:29 net ba5a4fdd63ae 152baedd .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/04/25 15:48 net c4c89a6ad8e1 c889aef9 .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/04/25 15:42 net c4c89a6ad8e1 c889aef9 .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/04/25 12:00 bpf b02d196c44ea c889aef9 .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/04/24 04:08 net 165e3e17fe8f 131df97d .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/04/20 17:12 bpf 425d239379db 160a3f31 .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/04/19 14:45 net 4cf35a2b627a c334415e .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/04/13 13:06 net 625e8cb8e0e7 faabdb86 .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/03/31 07:37 bpf 0a210af6d0a0 9d49f3a7 .config log report info WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/05/22 04:27 net-next aa5334b1f968 7268fa62 .config log report info WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/05/20 05:44 bpf-next 834650b50ed2 cb1ac2e7 .config log report info WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/05/14 04:20 net-next d9713088158b 107f6434 .config log report info WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/05/09 13:47 bpf-next 20b87e7c29df 8b277b8e .config log report info WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/05/09 11:46 bpf-next 20b87e7c29df 8b277b8e .config log report info WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/04/26 13:12 net-next cc271ab86606 1fa34c1b .config log report info WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/04/26 12:00 bpf-next 367590b7fccc 1fa34c1b .config log report info WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/04/25 14:17 net-next c5794097b269 c889aef9 .config log report info WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/04/20 15:05 net-next 85ef87ba9bc2 160a3f31 .config log report info WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/04/20 10:39 bpf-next 0d7fefebea55 7d7bc738 .config log report info WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/04/12 21:18 net-next 590032a4d213 dacb3f1c .config log report info WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/04/12 05:55 bpf-next 0f8619929c57 af01ee7d .config log report info WARNING in bpf_check
ci-upstream-linux-next-kasan-gce-root 2022/05/22 08:47 linux-next 18ecd30af1a8 7268fa62 .config log report info WARNING in bpf_check
ci-upstream-linux-next-kasan-gce-root 2022/05/14 07:32 linux-next 1e1b28b936ae 107f6434 .config log report info WARNING in bpf_check
ci-upstream-linux-next-kasan-gce-root 2022/04/26 15:50 linux-next 088fb7eff349 1fa34c1b .config log report info WARNING in bpf_check
ci-upstream-linux-next-kasan-gce-root 2022/04/26 06:41 linux-next e7d6987e09a3 152baedd .config log report info WARNING in bpf_check
ci-upstream-linux-next-kasan-gce-root 2022/04/24 04:29 linux-next f1244c81da13 131df97d .config log report info WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2020/03/11 18:06 bpf-next 13fac1d851e0 e7caca8e .config log report