syzbot


WARNING in bpf_get_stack_raw_tp

Status: upstream: reported C repro on 2024/08/19 13:02
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+0ccbce2f3e87c167eccb@syzkaller.appspotmail.com
First crash: 54d, last: 5h04m
Fix commit to backport (bisect log) :
tree: upstream
commit 7d6be67cfdd4a53cea7147313ca13c531e3a470f
Author: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Date: Fri Jun 21 01:08:41 2024 +0000

  mm: mmap_lock: replace get_memcg_path_buf() with on-stack buffer

  
Bug presence (2)
Date Name Commit Repro Result
2024/08/19 linux-5.15.y (ToT) fa93fa65db6e C [report] WARNING in bpf_get_stack_raw_tp
2024/08/19 upstream (ToT) 47ac09b91bef C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in bpf_get_stack_raw_tp 4 11d 41d 0/3 upstream: reported on 2024/09/01 10:26
upstream WARNING in bpf_get_stack_raw_tp bpf trace C error 32 3d10h 47d 0/28 upstream: reported C repro on 2024/08/26 12:52
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/09/03 20:20 9h21m fix candidate upstream OK (1) job log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3570 at kernel/trace/bpf_trace.c:1411 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1483 [inline]
WARNING: CPU: 0 PID: 3570 at kernel/trace/bpf_trace.c:1411 bpf_get_stack_raw_tp+0x1d3/0x220 kernel/trace/bpf_trace.c:1480
Modules linked in:
CPU: 0 PID: 3570 Comm: syz-executor355 Not tainted 5.15.167-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:get_bpf_raw_tp_regs kernel/trace/bpf_trace.c:1411 [inline]
RIP: 0010:____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1483 [inline]
RIP: 0010:bpf_get_stack_raw_tp+0x1d3/0x220 kernel/trace/bpf_trace.c:1480
Code: f1 45 31 c0 e8 4e 96 14 00 65 ff 0d 7f e5 78 7e 4c 63 e8 4c 89 e8 48 83 c4 18 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 ad 02 f6 ff <0f> 0b 65 ff 0d 5c e5 78 7e 49 c7 c5 f0 ff ff ff eb d7 e8 96 02 f6
RSP: 0000:ffffc90002576bf0 EFLAGS: 00010293
RAX: ffffffff818a57c3 RBX: 0000000000000003 RCX: ffff88801a5b5940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000fffffffc
RBP: ffffc90002576c30 R08: ffffffff818a5683 R09: fffffbfff20e2419
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90002576c48
R13: 0000000000000000 R14: 0000000000000900 R15: ffff8880b9033b30
FS:  0000555569fc5380(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3f9a9d4ce8 CR3: 000000007184d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 bpf_prog_ec3b2eefa702d8d3+0x3a/0x84
 bpf_dispatcher_nop_func include/linux/bpf.h:790 [inline]
 __bpf_prog_run include/linux/filter.h:628 [inline]
 bpf_prog_run include/linux/filter.h:635 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline]
 bpf_trace_run4+0x1ea/0x390 kernel/trace/bpf_trace.c:1919
 trace_mmap_lock_acquire_returned include/trace/events/mmap_lock.h:44 [inline]
 __mmap_lock_do_trace_acquire_returned+0x24d/0x2c0 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+0x612/0x930 kernel/bpf/stackmap.c:185
 __bpf_get_stack+0x495/0x570 kernel/bpf/stackmap.c:496
 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1490 [inline]
 bpf_get_stack_raw_tp+0x1b2/0x220 kernel/trace/bpf_trace.c:1480
 bpf_prog_ec3b2eefa702d8d3+0x3a/0x84
 bpf_dispatcher_nop_func include/linux/bpf.h:790 [inline]
 __bpf_prog_run include/linux/filter.h:628 [inline]
 bpf_prog_run include/linux/filter.h:635 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline]
 bpf_trace_run4+0x1ea/0x390 kernel/trace/bpf_trace.c:1919
 trace_mmap_lock_acquire_returned include/trace/events/mmap_lock.h:44 [inline]
 __mmap_lock_do_trace_acquire_returned+0x24d/0x2c0 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+0x612/0x930 kernel/bpf/stackmap.c:185
 __bpf_get_stack+0x495/0x570 kernel/bpf/stackmap.c:496
 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1490 [inline]
 bpf_get_stack_raw_tp+0x1b2/0x220 kernel/trace/bpf_trace.c:1480
 bpf_prog_ec3b2eefa702d8d3+0x3a/0x84
 bpf_dispatcher_nop_func include/linux/bpf.h:790 [inline]
 __bpf_prog_run include/linux/filter.h:628 [inline]
 bpf_prog_run include/linux/filter.h:635 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline]
 bpf_trace_run4+0x1ea/0x390 kernel/trace/bpf_trace.c:1919
 trace_mmap_lock_acquire_returned include/trace/events/mmap_lock.h:44 [inline]
 __mmap_lock_do_trace_acquire_returned+0x24d/0x2c0 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+0x612/0x930 kernel/bpf/stackmap.c:185
 __bpf_get_stack+0x495/0x570 kernel/bpf/stackmap.c:496
 ____bpf_get_stack_raw_tp kernel/trace/bpf_trace.c:1490 [inline]
 bpf_get_stack_raw_tp+0x1b2/0x220 kernel/trace/bpf_trace.c:1480
 bpf_prog_ec3b2eefa702d8d3+0x3a/0x84
 bpf_dispatcher_nop_func include/linux/bpf.h:790 [inline]
 __bpf_prog_run include/linux/filter.h:628 [inline]
 bpf_prog_run include/linux/filter.h:635 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline]
 bpf_trace_run4+0x1ea/0x390 kernel/trace/bpf_trace.c:1919
 trace_mmap_lock_acquire_returned include/trace/events/mmap_lock.h:44 [inline]
 __mmap_lock_do_trace_acquire_returned+0x24d/0x2c0 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]
 do_user_addr_fault arch/x86/mm/fault.c:1298 [inline]
 handle_page_fault arch/x86/mm/fault.c:1445 [inline]
 exc_page_fault+0x564/0x700 arch/x86/mm/fault.c:1501
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:568
RIP: 0033:0x7f3f9a931100
Code: 41 54 55 48 89 f5 53 89 fb 48 83 ec 18 48 83 3d ed 0e 0a 00 00 89 54 24 0c 74 08 84 c9 0f 85 09 02 00 00 31 c0 ba 01 00 00 00 <f0> 0f b1 15 e0 3b 0a 00 0f 85 0f 02 00 00 4c 8d 25 d3 3b 0a 00 4c
RSP: 002b:00007ffea2809f90 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000000001 RSI: 00007f3f9a9d2118 RDI: 0000000000000000
RBP: 00007f3f9a9d2118 R08: 0000000000000006 R09: 0000000000000006
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (341):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/15 21:18 linux-5.15.y 3a5928702e71 08d8a733 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/15 19:40 linux-5.15.y 3a5928702e71 08d8a733 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/15 16:41 linux-5.15.y 3a5928702e71 08d8a733 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/15 14:52 linux-5.15.y 3a5928702e71 08d8a733 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/14 01:17 linux-5.15.y 3a5928702e71 b58f933c .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/13 23:21 linux-5.15.y 3a5928702e71 b58f933c .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/13 21:39 linux-5.15.y 3a5928702e71 b58f933c .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/13 20:29 linux-5.15.y 3a5928702e71 b58f933c .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/07 13:22 linux-5.15.y 14e468424d3e 9750182a .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/08/19 15:45 linux-5.15.y fa93fa65db6e 9f0ab3fb .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/08/19 14:28 linux-5.15.y fa93fa65db6e 9f0ab3fb .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/13 04:38 linux-5.15.y 3a5928702e71 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/10/13 04:38 linux-5.15.y 3a5928702e71 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/10/12 17:58 linux-5.15.y 3a5928702e71 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/11 18:40 linux-5.15.y 3a5928702e71 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/10/11 14:17 linux-5.15.y 3a5928702e71 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/10 20:41 linux-5.15.y 3a5928702e71 8fbfc0c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/10 06:33 linux-5.15.y 3a5928702e71 0278d004 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/09 11:12 linux-5.15.y 3a5928702e71 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/10/09 00:34 linux-5.15.y 3a5928702e71 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/07 19:12 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/10/07 14:56 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/07 00:20 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/06 13:13 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/06 10:52 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/10/06 08:29 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/10/05 18:55 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/05 14:40 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/10/05 13:12 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/05 11:47 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/10/04 20:17 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/04 19:48 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/10/04 16:41 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/10/02 15:46 linux-5.15.y 3a5928702e71 02f9582a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/02 06:18 linux-5.15.y 3a5928702e71 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/10/01 22:43 linux-5.15.y 3a5928702e71 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/30 10:23 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/30 05:45 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/30 04:17 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/09/30 03:39 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/09/30 00:33 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/09/29 22:12 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/29 02:30 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/29 01:13 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/09/28 19:43 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/28 15:02 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/26 13:36 linux-5.15.y 3a5928702e71 0d19f247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/25 18:39 linux-5.15.y 3a5928702e71 349a68c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/09/25 01:40 linux-5.15.y 3a5928702e71 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/09/25 01:37 linux-5.15.y 3a5928702e71 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/09/24 17:53 linux-5.15.y 3a5928702e71 5643e0e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/24 11:17 linux-5.15.y 3a5928702e71 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
2024/09/24 10:12 linux-5.15.y 3a5928702e71 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/09/24 06:08 linux-5.15.y 3a5928702e71 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in bpf_get_stack_raw_tp
2024/08/19 13:02 linux-5.15.y fa93fa65db6e 9f0ab3fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf WARNING in bpf_get_stack_raw_tp
* Struck through repros no longer work on HEAD.