syzbot


WARNING in bpf_map_lookup_percpu_elem

Status: upstream: reported C repro on 2024/04/29 20:22
Subsystems: bpf
[Documentation on labels]
Reported-by: syzbot+dce5aae19ae4d6399986@syzkaller.appspotmail.com
First crash: 231d, last: 1d15h
Cause bisection: introduced by (bisect log) :
commit 07343110b293456d30393e89b86c4dee1ac051c8
Author: Feng Zhou <zhoufeng.zf@bytedance.com>
Date: Wed May 11 09:38:53 2022 +0000

  bpf: add bpf_map_lookup_percpu_elem for percpu map

Crash: WARNING in bpf_map_lookup_percpu_elem (log)
Repro: C syz .config
  
Discussions (5)
Title Replies (including bot) Last reply
[syzbot] Monthly bpf report (Aug 2024) 0 (1) 2024/08/14 12:43
[syzbot] Monthly bpf report (Jul 2024) 0 (1) 2024/07/15 11:52
[syzbot] Monthly bpf report (Jun 2024) 0 (1) 2024/06/12 22:41
[syzbot] Monthly bpf report (May 2024) 0 (1) 2024/05/12 18:21
[syzbot] [bpf?] WARNING in bpf_map_lookup_percpu_elem 0 (1) 2024/04/29 20:22
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/09/12 18:24 23m retest repro upstream OK log
2024/09/12 18:24 23m retest repro upstream OK log
2024/09/12 18:24 42m retest repro upstream OK log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2024/12/11 16:04 1h23m bisect fix upstream OK (0) job log log
2024/11/01 11:46 1h53m bisect fix upstream OK (0) job log log
2024/10/01 04:06 2h46m bisect fix upstream OK (0) job log log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 17507 at kernel/bpf/helpers.c:132 ____bpf_map_lookup_percpu_elem kernel/bpf/helpers.c:132 [inline]
WARNING: CPU: 1 PID: 17507 at kernel/bpf/helpers.c:132 bpf_map_lookup_percpu_elem+0xa8/0xc0 kernel/bpf/helpers.c:130
Modules linked in:
CPU: 1 UID: 0 PID: 17507 Comm: syz.4.2897 Not tainted 6.11.0-rc5-syzkaller-00079-g928f79a188aa #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:____bpf_map_lookup_percpu_elem kernel/bpf/helpers.c:132 [inline]
RIP: 0010:bpf_map_lookup_percpu_elem+0xa8/0xc0 kernel/bpf/helpers.c:130
Code: 41 5c 41 5d ff e0 cc 66 90 e8 84 1d e5 ff e8 0f 82 ca ff 31 ff 41 89 c4 89 c6 e8 b3 1f e5 ff 45 85 e4 75 8c e8 69 1d e5 ff 90 <0f> 0b 90 eb 81 48 89 df e8 ab 4a 42 00 eb 93 e8 a4 4a 42 00 eb ae
RSP: 0018:ffffc900033b7a80 EFLAGS: 00010283
RAX: 0000000000001d29 RBX: ffff8880575e5000 RCX: ffffc9000e3fe000
RDX: 0000000000040000 RSI: ffffffff81a558a7 RDI: 0000000000000005
RBP: 0000000000000008 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffffc900033b7b38 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f61af5f36c0(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2f4639 CR3: 000000007de8c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ___bpf_prog_run+0x3e51/0xabd0 kernel/bpf/core.c:2010
 __bpf_prog_run32+0xc1/0x100 kernel/bpf/core.c:2251
 bpf_dispatcher_nop_func include/linux/bpf.h:1243 [inline]
 __bpf_prog_run include/linux/filter.h:682 [inline]
 bpf_prog_run include/linux/filter.h:698 [inline]
 bpf_prog_run_pin_on_cpu include/linux/filter.h:715 [inline]
 bpf_prog_test_run_syscall+0x5b7/0x770 net/bpf/test_run.c:1559
 bpf_prog_test_run kernel/bpf/syscall.c:4313 [inline]
 __sys_bpf+0x10d2/0x4a00 kernel/bpf/syscall.c:5728
 __do_sys_bpf kernel/bpf/syscall.c:5817 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5815 [inline]
 __x64_sys_bpf+0x78/0xc0 kernel/bpf/syscall.c:5815
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f61ae779ef9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f61af5f3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f61ae915f80 RCX: 00007f61ae779ef9
RDX: 0000000000000010 RSI: 0000000020000740 RDI: 000000000000000a
RBP: 00007f61ae7e793e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f61ae915f80 R15: 00007ffd0d2ade18
 </TASK>

Crashes (2116):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/29 12:33 upstream 928f79a188aa ef3de9e8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/29 11:25 upstream 928f79a188aa ef3de9e8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/28 17:00 upstream 86987d84b968 940f38c1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/28 04:30 upstream 3ec3f5fc4a91 6c853ff9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/27 15:58 upstream 3e9bff3bbe13 9aee4e0b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/27 01:57 upstream 5be63fc19fca 9aee4e0b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/25 14:06 upstream 48fb4b3d9b43 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/25 07:43 upstream 48fb4b3d9b43 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/25 07:33 upstream 48fb4b3d9b43 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/24 16:32 upstream d2bafcf224f3 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/24 02:40 upstream 3d5f968a177d d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/23 22:44 upstream 3d5f968a177d d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/23 11:05 upstream aa0743a22936 ce8a9099 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/23 01:06 upstream 872cf28b8df9 295a4b50 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/23 01:01 upstream 872cf28b8df9 295a4b50 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/22 21:07 upstream 872cf28b8df9 295a4b50 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/22 07:28 upstream 872cf28b8df9 ca02180f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/21 19:23 upstream b311c1b497e5 db5852f9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/21 04:56 upstream 521b1e7f4cf0 9f0ab3fb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/20 20:28 upstream 6e4436539ae1 9f0ab3fb .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/04 13:04 upstream defaf1a2113a 1786a2a8 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/04 12:01 upstream defaf1a2113a 1786a2a8 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/04/26 05:25 upstream e33c4963bf53 8bdc0f22 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in bpf_map_lookup_percpu_elem
2024/08/29 15:35 upstream d5d547aa7b51 9bd464fc .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/29 09:33 upstream 928f79a188aa ef3de9e8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/29 07:47 upstream 928f79a188aa ef3de9e8 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/28 11:32 upstream 86987d84b968 6c853ff9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/28 10:54 upstream 86987d84b968 6c853ff9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/28 00:43 upstream 3ec3f5fc4a91 a1a7b2f0 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/27 10:52 upstream 3e9bff3bbe13 9aee4e0b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/27 03:52 upstream 5be63fc19fca 9aee4e0b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/27 01:32 upstream 5be63fc19fca 9aee4e0b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/26 03:49 upstream 5be63fc19fca d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/25 09:27 upstream 780bdc1ba776 d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/24 19:41 upstream d2bafcf224f3 d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/23 21:24 upstream 3d5f968a177d d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/23 21:23 upstream 3d5f968a177d d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/23 20:23 upstream 3d5f968a177d d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/23 16:47 upstream 3d5f968a177d d7d32352 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/23 09:54 upstream aa0743a22936 ce8a9099 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/23 05:07 upstream aa0743a22936 ce8a9099 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/22 04:22 upstream 872cf28b8df9 ca02180f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/21 18:04 upstream b311c1b497e5 db5852f9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/21 14:01 upstream b311c1b497e5 db5852f9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/21 01:31 upstream 521b1e7f4cf0 9f0ab3fb .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/21 01:30 upstream 521b1e7f4cf0 9f0ab3fb .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/20 22:33 upstream 521b1e7f4cf0 9f0ab3fb .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
2024/08/20 21:33 upstream 521b1e7f4cf0 9f0ab3fb .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in bpf_map_lookup_percpu_elem
* Struck through repros no longer work on HEAD.