syzbot


WARNING in bpf_get_stack_raw_tp

Status: upstream: reported C repro on 2024/08/26 12:52
Subsystems: bpf trace
[Documentation on labels]
Reported-by: syzbot+ce35de20ed6652f60652@syzkaller.appspotmail.com
First crash: 49d, last: 2d19h
Cause bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] Monthly trace report (Oct 2024) 2 (3) 2024/10/11 19:16
[syzbot] Monthly trace report (Sep 2024) 2 (3) 2024/09/10 00:22
[syzbot] [bpf?] [trace?] WARNING in bpf_get_stack_raw_tp 0 (1) 2024/08/26 12:52
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 339 1h14m 54d 0/3 upstream: reported C repro on 2024/08/19 13:02
linux-6.1 WARNING in bpf_get_stack_raw_tp 4 11d 41d 0/3 upstream: reported on 2024/09/01 10:26

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5225 at kernel/trace/bpf_trace.c:1829 get_bpf_raw_tp_regs kernel/trace/bpf_trace.c:1829 [inline]
WARNING: CPU: 1 PID: 5225 at kernel/trace/bpf_trace.c:1829 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1902 [inline]
WARNING: CPU: 1 PID: 5225 at kernel/trace/bpf_trace.c:1829 bpf_get_stack_raw_tp+0x1c9/0x240 kernel/trace/bpf_trace.c:1899
Modules linked in:
CPU: 1 UID: 0 PID: 5225 Comm: strace-static-x Not tainted 6.12.0-rc1-syzkaller-00173-g08c8acc9d8f3 #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:1829 [inline]
RIP: 0010:____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1902 [inline]
RIP: 0010:bpf_get_stack_raw_tp+0x1c9/0x240 kernel/trace/bpf_trace.c:1899
Code: dd 73 1f 00 65 ff 0d 96 db 62 7e 4c 63 f0 4c 89 f0 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc e8 f8 52 f4 ff 90 <0f> 0b 90 65 ff 0d 6d db 62 7e 49 c7 c6 f0 ff ff ff eb d1 44 89 e9
RSP: 0018:ffffc9000377e570 EFLAGS: 00010293
RAX: ffffffff81a088b8 RBX: 0000000000000003 RCX: ffff888020bc9e00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000fffffffc
RBP: ffffc9000377e5b0 R08: ffffffff81a08787 R09: 1ffffffff2858b00
R10: dffffc0000000000 R11: ffffffffa0002194 R12: ffff8880b8736238
R13: 0000000000000900 R14: 0000000000000000 R15: ffffc9000377e5c8
FS:  000000000adcf3c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0684f0c130 CR3: 00000000283a0000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bpf_prog_ec3b2eefa702d8d3+0x43/0x47
 bpf_dispatcher_nop_func include/linux/bpf.h:1257 [inline]
 __bpf_prog_run include/linux/filter.h:701 [inline]
 bpf_prog_run include/linux/filter.h:708 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2318 [inline]
 bpf_trace_run4+0x334/0x590 kernel/trace/bpf_trace.c:2361
 __traceiter_mmap_lock_acquire_returned+0x93/0xf0 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+0x286/0x2f0 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:164 [inline]
 stack_map_get_build_id_offset+0x84d/0x870 kernel/bpf/stackmap.c:157
 __bpf_get_stack+0x8da/0xad0 kernel/bpf/stackmap.c:483
 ____bpf_get_stack kernel/bpf/stackmap.c:499 [inline]
 bpf_get_stack+0x33/0x50 kernel/bpf/stackmap.c:496
 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1909 [inline]
 bpf_get_stack_raw_tp+0x1a3/0x240 kernel/trace/bpf_trace.c:1899
 bpf_prog_ec3b2eefa702d8d3+0x43/0x47
 bpf_dispatcher_nop_func include/linux/bpf.h:1257 [inline]
 __bpf_prog_run include/linux/filter.h:701 [inline]
 bpf_prog_run include/linux/filter.h:708 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2318 [inline]
 bpf_trace_run4+0x334/0x590 kernel/trace/bpf_trace.c:2361
 __traceiter_mmap_lock_acquire_returned+0x93/0xf0 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+0x286/0x2f0 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:164 [inline]
 stack_map_get_build_id_offset+0x84d/0x870 kernel/bpf/stackmap.c:157
 __bpf_get_stack+0x8da/0xad0 kernel/bpf/stackmap.c:483
 ____bpf_get_stack kernel/bpf/stackmap.c:499 [inline]
 bpf_get_stack+0x33/0x50 kernel/bpf/stackmap.c:496
 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1909 [inline]
 bpf_get_stack_raw_tp+0x1a3/0x240 kernel/trace/bpf_trace.c:1899
 bpf_prog_ec3b2eefa702d8d3+0x43/0x47
 bpf_dispatcher_nop_func include/linux/bpf.h:1257 [inline]
 __bpf_prog_run include/linux/filter.h:701 [inline]
 bpf_prog_run include/linux/filter.h:708 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2318 [inline]
 bpf_trace_run4+0x334/0x590 kernel/trace/bpf_trace.c:2361
 __traceiter_mmap_lock_acquire_returned+0x93/0xf0 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+0x286/0x2f0 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:164 [inline]
 stack_map_get_build_id_offset+0x84d/0x870 kernel/bpf/stackmap.c:157
 __bpf_get_stack+0x8da/0xad0 kernel/bpf/stackmap.c:483
 ____bpf_get_stack kernel/bpf/stackmap.c:499 [inline]
 bpf_get_stack+0x33/0x50 kernel/bpf/stackmap.c:496
 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1909 [inline]
 bpf_get_stack_raw_tp+0x1a3/0x240 kernel/trace/bpf_trace.c:1899
 bpf_prog_ec3b2eefa702d8d3+0x43/0x47
 bpf_dispatcher_nop_func include/linux/bpf.h:1257 [inline]
 __bpf_prog_run include/linux/filter.h:701 [inline]
 bpf_prog_run include/linux/filter.h:708 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2318 [inline]
 bpf_trace_run4+0x334/0x590 kernel/trace/bpf_trace.c:2361
 __traceiter_mmap_lock_acquire_returned+0x93/0xf0 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+0x286/0x2f0 mm/mmap_lock.c:102
 __mmap_lock_trace_acquire_returned include/linux/mmap_lock.h:36 [inline]
 mmap_read_lock include/linux/mmap_lock.h:145 [inline]
 process_vm_rw_single_vec mm/process_vm_access.c:105 [inline]
 process_vm_rw_core mm/process_vm_access.c:216 [inline]
 process_vm_rw+0xa46/0xcf0 mm/process_vm_access.c:284
 __do_sys_process_vm_readv mm/process_vm_access.c:296 [inline]
 __se_sys_process_vm_readv mm/process_vm_access.c:292 [inline]
 __x64_sys_process_vm_readv+0xe0/0x100 mm/process_vm_access.c:292
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x4eacda
Code: 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 38 12 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 36 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 a8 ff ff ff f7
RSP: 002b:00007ffc7796dc18 EFLAGS: 00000246 ORIG_RAX: 0000000000000136
RAX: ffffffffffffffda RBX: 00007f0684edb000 RCX: 00000000004eacda
RDX: 0000000000000001 RSI: 00007ffc7796dc40 RDI: 0000000000001477
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 00007ffc7796dc50 R11: 0000000000000246 R12: 00007f0684edb022
R13: 00007ffc7796dd00 R14: 0000000000001000 R15: 0000000000000fde
 </TASK>

Crashes (32):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/09 13:32 net 08c8acc9d8f3 402f1df0 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/21 14:24 bpf b831f83e40a2 6f888b75 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/21 09:12 bpf b831f83e40a2 6f888b75 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/19 23:15 bpf b831f83e40a2 6f888b75 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/19 20:02 bpf b831f83e40a2 6f888b75 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/16 21:33 bpf b831f83e40a2 49cf0773 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/08/24 10:20 bpf 872cf28b8df9 d7d32352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/08/24 08:59 bpf 872cf28b8df9 d7d32352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/08/24 07:38 bpf 872cf28b8df9 d7d32352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/08/24 06:13 bpf 872cf28b8df9 d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/08/24 04:53 bpf 872cf28b8df9 d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/10/09 23:24 bpf-next 5bf1557e3d6a 0278d004 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/10/09 16:28 bpf-next 5bf1557e3d6a 402f1df0 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/10/09 02:44 bpf-next 31dd994c031a 402f1df0 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/10/07 19:08 bpf-next a5da3d65681f d7906eff .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/10/07 15:24 bpf-next a5da3d65681f d7906eff .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/10/07 13:11 bpf-next a5da3d65681f d7906eff .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/10/07 12:12 bpf-next a5da3d65681f d7906eff .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/10/04 19:32 bpf-next a5da3d65681f d7906eff .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/30 20:31 bpf-next 93eeaab4563c bbd4e0a4 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/30 07:40 bpf-next 93eeaab4563c ba29ff75 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/08 19:38 net-next d5c4546062fd 9750182a .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/28 14:01 linux-next 40e0c9d414f5 440b26ec .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in bpf_get_stack_raw_tp
2024/09/04 17:26 bpf b408473ea01b 9d47f20a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/04 17:25 bpf b408473ea01b 9d47f20a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/04 17:24 bpf b408473ea01b 9d47f20a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/04 17:24 bpf b408473ea01b 9d47f20a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/04 17:24 bpf b408473ea01b 9d47f20a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/04 17:22 bpf b408473ea01b 9d47f20a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/04 17:22 bpf b408473ea01b 9d47f20a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/09/04 17:22 bpf b408473ea01b 9d47f20a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
2024/08/24 03:30 bpf 872cf28b8df9 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in bpf_get_stack_raw_tp
* Struck through repros no longer work on HEAD.