syzbot


WARNING: suspicious RCU usage in get_callchain_entry

Status: upstream: reported C repro on 2024/04/30 10:49
Subsystems: perf
[Documentation on labels]
Reported-by: syzbot+72a43cdb78469f7fbad1@syzkaller.appspotmail.com
First crash: 49d, last: 1d14h
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [perf?] WARNING: suspicious RCU usage in get_callchain_entry 0 (1) 2024/04/30 10:49
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING: suspicious RCU usage in get_callchain_entry C 3 1d15h 1d17h 0/3 upstream: reported C repro on 2024/06/13 11:30
linux-6.1 WARNING: suspicious RCU usage in get_callchain_entry origin:upstream C 59 2d23h 49d 0/3 upstream: reported C repro on 2024/04/26 10:45

Sample crash report:
=============================
WARNING: suspicious RCU usage
6.9.0-rc5-syzkaller-00159-gc942a0cd3603 #0 Not tainted
-----------------------------
kernel/events/callchain.c:161 suspicious rcu_dereference_check() usage!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
1 lock held by syz-executor305/5180:
 #0: ffffffff8d7b04c0 (rcu_read_lock_trace){....}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline]
 #0: ffffffff8d7b04c0 (rcu_read_lock_trace){....}-{0:0}, at: rcu_read_lock_trace include/linux/rcupdate_trace.h:57 [inline]
 #0: ffffffff8d7b04c0 (rcu_read_lock_trace){....}-{0:0}, at: bpf_prog_test_run_syscall+0x345/0x770 net/bpf/test_run.c:1508

stack backtrace:
CPU: 3 PID: 5180 Comm: syz-executor305 Not tainted 6.9.0-rc5-syzkaller-00159-gc942a0cd3603 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:114
 lockdep_rcu_suspicious+0x20b/0x3b0 kernel/locking/lockdep.c:6712
 get_callchain_entry+0x274/0x3f0 kernel/events/callchain.c:161
 get_perf_callchain+0xdc/0x5a0 kernel/events/callchain.c:187
 __bpf_get_stack+0x4d9/0x700 kernel/bpf/stackmap.c:435
 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1985 [inline]
 bpf_get_stack_raw_tp+0x124/0x160 kernel/trace/bpf_trace.c:1975
 ___bpf_prog_run+0x3e51/0xabd0 kernel/bpf/core.c:1997
 __bpf_prog_run32+0xc1/0x100 kernel/bpf/core.c:2236
 bpf_dispatcher_nop_func include/linux/bpf.h:1234 [inline]
 __bpf_prog_run include/linux/filter.h:657 [inline]
 bpf_prog_run include/linux/filter.h:664 [inline]
 bpf_prog_run_pin_on_cpu include/linux/filter.h:681 [inline]
 bpf_prog_test_run_syscall+0x3ae/0x770 net/bpf/test_run.c:1509
 bpf_prog_test_run kernel/bpf/syscall.c:4269 [inline]
 __sys_bpf+0xd56/0x4b40 kernel/bpf/syscall.c:5678
 __do_sys_bpf kernel/bpf/syscall.c:5767 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5765 [inline]
 __x64_sys_bpf+0x78/0xc0 kernel/bpf/syscall.c:5765
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f54610dc669
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:00007fff4b9fae08 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fff4b9fafd8 RCX: 00007f54610dc669
RDX: 000000000000000c RSI: 00000000200004c0 RDI: 000000000000000a
RBP: 00007f546114f610 R08: 00007fff4b9fafd8 R09: 00007fff4b9fafd8
R10: 00007fff4b9fafd8 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fff4b9fafc8 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (1183):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/26 11:17 upstream c942a0cd3603 3f914d6b .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: suspicious RCU usage in get_callchain_entry
2024/06/05 04:34 net a535d5943237 e1e2c66e .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/14 00:17 net c9f9df3f6347 fdb4c10c .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/11 02:51 bpf 3e9bc0472b91 9026e142 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/06 19:23 net a26ff37e624d c035c6de .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/06 18:50 net a26ff37e624d c035c6de .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/06 18:27 net a26ff37e624d c035c6de .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/06 18:08 net a26ff37e624d c035c6de .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/02 13:00 bpf 3e9bc0472b91 3ba885bc .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/04/27 19:01 bpf b2ff42c6d3ab 07b455f9 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/04/27 18:41 bpf b2ff42c6d3ab 07b455f9 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/04/27 18:18 bpf b2ff42c6d3ab 07b455f9 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/04/27 17:59 bpf b2ff42c6d3ab 07b455f9 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/31 15:40 bpf-next fbe3e8473f39 34889ee3 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/24 08:09 bpf-next 6f130e4d4a5f 8f98448e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/19 08:39 bpf-next 6f130e4d4a5f c0f1611a .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/19 07:49 bpf-next 6f130e4d4a5f c0f1611a .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/19 07:02 bpf-next 6f130e4d4a5f c0f1611a .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/19 06:42 bpf-next 6f130e4d4a5f c0f1611a .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/06/03 16:59 upstream c3f38fa61af7 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: suspicious RCU usage in get_callchain_entry
2024/06/03 13:08 upstream c3f38fa61af7 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING: suspicious RCU usage in get_callchain_entry
2024/05/19 14:39 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING: suspicious RCU usage in get_callchain_entry
2024/05/19 14:34 upstream 0450d2083be6 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: suspicious RCU usage in get_callchain_entry
2024/05/15 00:31 upstream 4b95dc87362a fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING: suspicious RCU usage in get_callchain_entry
2024/05/14 21:26 upstream a5131c3fdf26 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING: suspicious RCU usage in get_callchain_entry
2024/05/03 12:41 upstream f03359bca01b 375d4445 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING: suspicious RCU usage in get_callchain_entry
2024/06/13 14:09 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: suspicious RCU usage in get_callchain_entry
2024/06/03 12:06 upstream c3f38fa61af7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: suspicious RCU usage in get_callchain_entry
2024/05/22 13:30 upstream 29c73fc794c8 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: suspicious RCU usage in get_callchain_entry
2024/05/04 09:17 upstream 7367539ad4b0 610f2a54 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: suspicious RCU usage in get_callchain_entry
2024/05/03 08:39 upstream f03359bca01b ddfc15a1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: suspicious RCU usage in get_callchain_entry
2024/05/03 08:13 upstream f03359bca01b ddfc15a1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: suspicious RCU usage in get_callchain_entry
2024/05/14 21:26 upstream 6bfd2d442af5 fdb4c10c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: suspicious RCU usage in get_callchain_entry
2024/05/08 14:11 upstream dccb07f2914c 9473be88 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: suspicious RCU usage in get_callchain_entry
2024/05/03 06:22 upstream f03359bca01b ddfc15a1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: suspicious RCU usage in get_callchain_entry
2024/06/13 12:44 bpf 36534d3c5453 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/06/11 05:56 bpf 93792130a938 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/22 09:41 bpf 4b377b4868ef 1014eca7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/20 18:20 bpf 4b377b4868ef c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/13 08:58 net 1164057b3c00 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/11 00:48 bpf 3e9bc0472b91 f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/10 03:21 bpf 3e9bc0472b91 de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/09 12:54 bpf 3e9bc0472b91 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/08 14:06 bpf 3e9bc0472b91 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/07 01:41 bpf 3e9bc0472b91 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/06 23:12 bpf 3e9bc0472b91 c035c6de .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/06/13 10:53 bpf-next 4ff5747158f3 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/06/03 05:17 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/06/03 02:00 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/06/02 19:27 bpf-next 531876c80004 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/29 00:31 bpf-next d9cbd8343b01 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/24 12:07 bpf-next 6f130e4d4a5f 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/23 14:12 bpf-next 6f130e4d4a5f 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/20 20:06 bpf-next 6f130e4d4a5f c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/19 20:47 bpf-next 6f130e4d4a5f c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/19 18:48 bpf-next 6f130e4d4a5f c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/19 01:35 bpf-next 6f130e4d4a5f c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/18 22:27 bpf-next 6f130e4d4a5f c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/17 11:26 bpf-next 83eea61776c9 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/15 08:02 bpf-next 5c1672705a1a fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/12 11:41 bpf-next fcd1ed89a043 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/11 09:10 net-next b9d5f5711dd8 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/10 01:22 net-next 628bc3e5a1be de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/07 21:42 net-next 7824463aaea9 cb2dcc0e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/05 08:19 net-next 173e7622ccb3 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/04 07:18 net-next 5829614a7b3b 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/03 12:26 net-next a17ef9e6c2c1 375d4445 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/05/03 11:24 bpf-next a9e7715ce8b3 375d4445 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING: suspicious RCU usage in get_callchain_entry
2024/06/03 14:30 linux-next 861a3cb5a2a8 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: suspicious RCU usage in get_callchain_entry
2024/05/22 09:39 linux-next 124cfbcd6d18 1014eca7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING: suspicious RCU usage in get_callchain_entry
* Struck through repros no longer work on HEAD.