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: 931d, last: 2d20h

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 1414d 1413d 12/24 fixed on 2018/12/07 08:24
upstream WARNING in bpf_check 3 1533d 1539d 9/24 fixed on 2018/08/07 13:43

Sample crash report:
------------[ cut here ]------------
trace type BPF program uses run-time allocation
WARNING: CPU: 1 PID: 3613 at kernel/bpf/verifier.c:12624 check_map_prog_compatibility kernel/bpf/verifier.c:12624 [inline]
WARNING: CPU: 1 PID: 3613 at kernel/bpf/verifier.c:12624 resolve_pseudo_ldimm64 kernel/bpf/verifier.c:12797 [inline]
WARNING: CPU: 1 PID: 3613 at kernel/bpf/verifier.c:12624 bpf_check+0xb55c/0xc7b0 kernel/bpf/verifier.c:15230
Modules linked in:

CPU: 1 PID: 3613 Comm: syz-executor695 Not tainted 6.0.0-rc4-syzkaller-00137-g506357871c18 #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 a1 83 36 00 e9 c1 5f ff ff e8 57 e5 ea ff 48 c7 c7 e0 6a f4 89 c6 05 de d1 38 0c 01 e8 26 f3 a9 07 <0f> 0b e9 bb 9f ff ff e8 88 83 36 00 e9 ca 62 ff ff e8 2e e5 ea ff
RSP: 0018:ffffc90002f37868 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff888077702800 RCX: 0000000000000000
RDX: ffff88807ddea200 RSI: ffffffff81611e08 RDI: fffff520005e6eff
RBP: ffffc90002f37b10 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: 0000000000000002
R13: ffffc90000c06059 R14: ffffc90000c06058 R15: ffff88802099c000
FS:  0000555556488300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000064a110 CR3: 000000002063a000 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:0x7f298513ece9
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:00007ffddec34f08 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f298513ece9
RDX: 0000000000000080 RSI: 0000000020000080 RDI: 0000000000000005
RBP: 00007f2985102e90 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2985102f20
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
* Struck through repros no longer work on HEAD.
Crashes (1735):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2022/09/09 08:30 upstream 506357871c18 f3027468 .config log report syz C WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/09/04 03:33 upstream d895ec7938c4 28811d0a .config log report syz C WARNING in bpf_check
ci-upstream-kasan-gce-root 2022/08/17 16:41 upstream 7ebfc85e2cd7 4e72d229 .config log report syz C WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/08/07 15:01 upstream 200e340f2196 88e3a122 .config log report syz C WARNING in bpf_check
ci-upstream-kasan-gce-root 2022/06/25 15:27 upstream 6a0a17e6c6d1 a371c43c .config log report syz C WARNING in bpf_check
ci-upstream-kasan-gce-root 2022/06/19 11:34 upstream 354c6e071be9 8f633d84 .config log report syz C WARNING in bpf_check
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-net-this-kasan-gce 2022/08/01 19:17 net 5121db6afb99 fef302b1 .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-net-kasan-gce 2022/08/01 19:42 net-next 3c47fb2f4c4d fef302b1 .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 2022/08/01 00:38 linux-next cb71b93c2dc3 fef302b1 .config log report syz C WARNING in bpf_check
ci-upstream-linux-next-kasan-gce-root 2022/07/28 22:39 linux-next cb71b93c2dc3 fb95c74d .config log report syz C WARNING in bpf_check
ci-upstream-linux-next-kasan-gce-root 2022/07/28 12:07 linux-next cb71b93c2dc3 fb95c74d .config log report syz C WARNING in bpf_check
ci-upstream-linux-next-kasan-gce-root 2022/07/05 16:51 linux-next cb71b93c2dc3 bff65f44 .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-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-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-bpf-next-kasan-gce 2020/03/11 18:26 bpf-next 13fac1d851e0 e7caca8e .config log report syz C
ci-upstream-kasan-gce-selinux-root 2022/09/25 22:52 upstream 105a36f3694e 0042f2b4 .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-root 2022/09/25 21:50 upstream 105a36f3694e 0042f2b4 .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/09/24 02:24 upstream 1707c39ae309 0042f2b4 .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/09/20 13:36 upstream 521a547ced64 7c41a9ba .config log report info WARNING in bpf_check
ci-qemu-upstream 2022/09/17 02:18 upstream 6879c2d3b960 dd9a85ff .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/09/13 03:43 upstream 6504d82f4440 f371ed7e .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/08/31 15:38 upstream dcf8e5633e2e 51e54e30 .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-root 2022/08/30 19:27 upstream dcf8e5633e2e 4a380809 .config log report info WARNING in bpf_check
ci-qemu-upstream 2022/08/30 18:04 upstream dcf8e5633e2e 4a380809 .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/08/28 08:04 upstream 10d4879f9ef0 07177916 .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-root 2022/08/26 23:32 upstream 3e5c673f0d75 e5a303f1 .config log report info WARNING in bpf_check
ci-qemu-upstream 2022/08/21 00:42 upstream f31c32efd57c 26a13b38 .config log report info WARNING in bpf_check
ci-qemu-upstream 2022/08/20 18:39 upstream f31c32efd57c 26a13b38 .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/08/20 09:29 upstream 4c2d0b039c5c 26a13b38 .config log report info WARNING in bpf_check
ci-qemu-upstream 2022/08/19 03:53 upstream 573ae4f13f63 26a13b38 .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-selinux-root 2022/08/14 15:28 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in bpf_check
ci-upstream-kasan-gce-root 2022/08/14 10:44 upstream 7ebfc85e2cd7 8dfcaa3d .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/09/20 13:31 upstream 521a547ced64 7c41a9ba .config log report info WARNING in bpf_check
ci-qemu-upstream-386 2022/08/31 17:26 upstream dcf8e5633e2e 51e54e30 .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/09/23 13:47 net 504c25cb76a9 0042f2b4 .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/09/20 15:34 bpf 83c10cc362d9 7c41a9ba .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/09/20 12:09 net 8ccac4edc8da 7c41a9ba .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/09/18 19:50 bpf 83c10cc362d9 dd9a85ff .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/09/17 00:27 bpf 83c10cc362d9 dd9a85ff .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/09/16 00:01 net 0727a9a5fbc1 dd9a85ff .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/09/12 23:54 bpf a37a32583e28 f371ed7e .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/09/12 23:53 net 64ae13ed4784 f371ed7e .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/09/11 16:04 net 64ae13ed4784 356d8217 .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/09/11 14:43 bpf a37a32583e28 356d8217 .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/09/02 17:19 net e7506d344bf1 25194605 .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/09/01 08:16 bpf 8a7d61bdc2fa b01ec571 .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/08/31 04:21 bpf 2e085ec0e2d7 4a380809 .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/08/31 00:44 bpf 2e085ec0e2d7 4a380809 .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/08/30 13:46 bpf 2e085ec0e2d7 5b44472d .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/08/25 10:12 bpf 0947ae112108 514514f6 .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/08/24 07:12 bpf 0947ae112108 cea8b0f7 .config log report info WARNING in bpf_check
ci-upstream-bpf-kasan-gce 2022/08/20 08:46 bpf 7d6620f107ba 26a13b38 .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/08/15 14:03 net 777885673122 8dfcaa3d .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/08/12 06:31 net 7ebfc85e2cd7 402cd70d .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/08/12 03:43 net 94ce3b64c62d 787ed7e0 .config log report info WARNING in bpf_check
ci-upstream-net-this-kasan-gce 2022/08/12 01:08 net 94ce3b64c62d 787ed7e0 .config log report info WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/09/02 18:31 bpf-next 8cc61b7a6416 25194605 .config log report info WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/09/02 16:54 net-next c3f760ef1287 25194605 .config log report info WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/08/31 12:32 net-next 146ecbac1d32 51e54e30 .config log report info WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/08/30 23:29 bpf-next 6f95de6d7131 4a380809 .config log report info WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/08/30 01:32 net-next f97e971dbdc7 5b44472d .config log report info WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/08/28 04:27 net-next 53a406803ca5 07177916 .config log report info WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/08/25 11:01 bpf-next 7e165d193928 514514f6 .config log report info WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/08/20 11:34 net-next 917edfb98c48 26a13b38 .config log report info WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/08/19 03:44 bpf-next e34cfee65ec8 26a13b38 .config log report info WARNING in bpf_check
ci-upstream-net-kasan-gce 2022/08/14 17:56 net-next 7ebfc85e2cd7 8dfcaa3d .config log report info WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/08/14 15:29 bpf-next ea2babac63d4 8dfcaa3d .config log report info WARNING in bpf_check
ci-upstream-bpf-next-kasan-gce 2022/08/11 18:36 bpf-next ea2babac63d4 787ed7e0 .config log report info WARNING in bpf_check
ci-upstream-linux-next-kasan-gce-root 2022/08/31 14:00 linux-next 7fd22855300e 51e54e30 .config log report info WARNING in bpf_check
ci-upstream-linux-next-kasan-gce-root 2022/08/26 20:52 linux-next 8d0c42c9e807 e5a303f1 .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
* Struck through repros no longer work on HEAD.