syzbot


WARNING in bpf_get_stack_raw_tp

Status: upstream: reported C repro on 2024/09/01 10:26
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+40432b66a5b71fa92989@syzkaller.appspotmail.com
First crash: 67d, last: 3d01h
Bug presence (1)
Date Name Commit Repro Result
2024/10/26 upstream (ToT) 850925a8133c C [report] WARNING in bpf_get_stack_raw_tp
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in bpf_get_stack_raw_tp origin:lts-only C done 409 9h30m 80d 0/3 upstream: reported C repro on 2024/08/19 13:02
upstream WARNING in bpf_get_stack_raw_tp bpf trace C error 41 7d09h 73d 0/28 upstream: reported C repro on 2024/08/26 12:52

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4372 at kernel/trace/bpf_trace.c:1797 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1870 [inline]
WARNING: CPU: 0 PID: 4372 at kernel/trace/bpf_trace.c:1797 bpf_get_stack_raw_tp+0x1d3/0x220 kernel/trace/bpf_trace.c:1867
Modules linked in:
CPU: 0 PID: 4372 Comm: syz-executor142 Not tainted 6.1.115-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:get_bpf_raw_tp_regs kernel/trace/bpf_trace.c:1797 [inline]
RIP: 0010:____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1870 [inline]
RIP: 0010:bpf_get_stack_raw_tp+0x1d3/0x220 kernel/trace/bpf_trace.c:1867
Code: f1 45 31 c0 e8 7e b9 17 00 65 ff 0d 37 5b 6e 7e 4c 63 e8 4c 89 e8 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 bd ae f5 ff <0f> 0b 65 ff 0d 14 5b 6e 7e 49 c7 c5 f0 ff ff ff eb d7 e8 a6 ae f5
RSP: 0018:ffffc90003c2e610 EFLAGS: 00010293
RAX: ffffffff8194e493 RBX: 0000000000000003 RCX: ffff88807e6f3b80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000fffffffc
RBP: ffffc90003c2e650 R08: ffffffff8194e353 R09: fffffbfff224604d
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90003c2e668
R13: 0000000000000000 R14: 0000000000000900 R15: ffff8880b8e33db8
FS:  0000555565be9380(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000007434e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bpf_prog_ec3b2eefa702d8d3+0x3a/0x3e
 bpf_dispatcher_nop_func include/linux/bpf.h:989 [inline]
 __bpf_prog_run include/linux/filter.h:603 [inline]
 bpf_prog_run include/linux/filter.h:610 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2271 [inline]
 bpf_trace_run4+0x253/0x470 kernel/trace/bpf_trace.c:2312
 __traceiter_mmap_lock_acquire_returned+0x8c/0xe0 include/trace/events/mmap_lock.h:52
 trace_mmap_lock_acquire_returned include/trace/events/mmap_lock.h:52 [inline]
 __mmap_lock_do_trace_acquire_returned+0x2c0/0x360 mm/mmap_lock.c:102
 __mmap_lock_trace_acquire_returned include/linux/mmap_lock.h:36 [inline]
 mmap_read_trylock include/linux/mmap_lock.h:137 [inline]
 stack_map_get_build_id_offset+0x99e/0x9c0 kernel/bpf/stackmap.c:144
 __bpf_get_stack+0x495/0x570 kernel/bpf/stackmap.c:452
 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1877 [inline]
 bpf_get_stack_raw_tp+0x1b2/0x220 kernel/trace/bpf_trace.c:1867
 bpf_prog_ec3b2eefa702d8d3+0x3a/0x3e
 bpf_dispatcher_nop_func include/linux/bpf.h:989 [inline]
 __bpf_prog_run include/linux/filter.h:603 [inline]
 bpf_prog_run include/linux/filter.h:610 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2271 [inline]
 bpf_trace_run4+0x253/0x470 kernel/trace/bpf_trace.c:2312
 __traceiter_mmap_lock_acquire_returned+0x8c/0xe0 include/trace/events/mmap_lock.h:52
 trace_mmap_lock_acquire_returned include/trace/events/mmap_lock.h:52 [inline]
 __mmap_lock_do_trace_acquire_returned+0x2c0/0x360 mm/mmap_lock.c:102
 __mmap_lock_trace_acquire_returned include/linux/mmap_lock.h:36 [inline]
 mmap_read_trylock include/linux/mmap_lock.h:137 [inline]
 stack_map_get_build_id_offset+0x99e/0x9c0 kernel/bpf/stackmap.c:144
 __bpf_get_stack+0x495/0x570 kernel/bpf/stackmap.c:452
 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1877 [inline]
 bpf_get_stack_raw_tp+0x1b2/0x220 kernel/trace/bpf_trace.c:1867
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/04 11:37 linux-6.1.y 7c15117f9468 f00eed24 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/24 03:50 linux-6.1.y 7ec6f9fa3d97 15fa2979 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/01 17:03 linux-6.1.y aa4cd140bba5 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/01 11:47 linux-6.1.y 311d8503ef9f 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/01 11:06 linux-6.1.y 311d8503ef9f 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/01 10:26 linux-6.1.y 311d8503ef9f 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in bpf_get_stack_raw_tp
* Struck through repros no longer work on HEAD.