syzbot


KMSAN: uninit-value in ___bpf_prog_run

Status: closed as invalid on 2020/05/28 10:23
Subsystems: bpf
[Documentation on labels]
First crash: 1374d, last: 1373d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in ___bpf_prog_run (3) bpf C 5 684d 686d 22/26 fixed on 2023/02/24 13:50
upstream KMSAN: uninit-value in ___bpf_prog_run (2) bpf C 587 1319d 1322d 0/26 closed as invalid on 2020/07/22 14:22
upstream KMSAN: uninit-value in ___bpf_prog_run (4) bpf C 92 1d15h 65d 0/26 upstream: reported C repro on 2023/12/26 15:59

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in ___bpf_prog_run+0x9194/0x97a0 kernel/bpf/core.c:1587
CPU: 1 PID: 8804 Comm: syz-executor151 Not tainted 5.7.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1c9/0x220 lib/dump_stack.c:118
 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:121
 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215
 ___bpf_prog_run+0x9194/0x97a0 kernel/bpf/core.c:1587
 __bpf_prog_run32+0x101/0x170 kernel/bpf/core.c:1681
 bpf_dispatcher_nop_func include/linux/bpf.h:545 [inline]
 bpf_prog_run_pin_on_cpu include/linux/filter.h:599 [inline]
 seccomp_run_filters kernel/seccomp.c:272 [inline]
 __seccomp_filter+0x59e/0x26f0 kernel/seccomp.c:817
 __secure_computing+0x1fa/0x380 kernel/seccomp.c:950
 syscall_trace_enter+0x6eb/0xf60 arch/x86/entry/common.c:119
 do_syscall_64+0x57/0x160 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x43ee48
Code: 00 00 be 3c 00 00 00 eb 19 66 0f 1f 84 00 00 00 00 00 48 89 d7 89 f0 0f 05 48 3d 00 f0 ff ff 77 21 f4 48 89 d7 44 89 c0 0f 05 <48> 3d 00 f0 ff ff 76 e0 f7 d8 64 41 89 01 eb d8 0f 1f 84 00 00 00
RSP: 002b:00007ffce3c3a868 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ee48
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004be648 R08: 00000000000000e7 R09: ffffffffffffffd0
R10: 00000000ffffffff R11: 0000000000000246 R12: 0000000000000001
R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:310
 __msan_chain_origin+0x50/0x90 mm/kmsan/kmsan_instr.c:165
 ___bpf_prog_run+0x6c64/0x97a0 kernel/bpf/core.c:1391
 __bpf_prog_run32+0x101/0x170 kernel/bpf/core.c:1681
 bpf_dispatcher_nop_func include/linux/bpf.h:545 [inline]
 bpf_prog_run_pin_on_cpu include/linux/filter.h:599 [inline]
 seccomp_run_filters kernel/seccomp.c:272 [inline]
 __seccomp_filter+0x59e/0x26f0 kernel/seccomp.c:817
 __secure_computing+0x1fa/0x380 kernel/seccomp.c:950
 syscall_trace_enter+0x6eb/0xf60 arch/x86/entry/common.c:119
 do_syscall_64+0x57/0x160 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Local variable ----regs@__bpf_prog_run32 created at:
 __bpf_prog_run32+0x87/0x170 kernel/bpf/core.c:1681
 __bpf_prog_run32+0x87/0x170 kernel/bpf/core.c:1681
=====================================================

Crashes (75):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/27 07:18 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report syz C ci-upstream-kmsan-gce
2020/05/27 22:10 https://github.com/google/kmsan.git master 8b611d82b66b ec153193 .config console log report ci-upstream-kmsan-gce
2020/05/27 17:41 https://github.com/google/kmsan.git master 8b611d82b66b ec153193 .config console log report ci-upstream-kmsan-gce
2020/05/27 14:49 https://github.com/google/kmsan.git master 8b611d82b66b ec153193 .config console log report ci-upstream-kmsan-gce
2020/05/27 10:50 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/27 08:21 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/27 06:38 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/27 05:15 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 23:03 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 22:35 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 22:26 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 22:21 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 22:00 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 21:56 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 21:54 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 21:49 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 21:46 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 21:41 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 21:37 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 21:31 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 21:25 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 21:16 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 20:53 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 20:53 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 20:28 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 20:22 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 20:18 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 19:58 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 19:44 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 19:41 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 19:37 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 19:26 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/26 19:16 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce
2020/05/27 20:29 https://github.com/google/kmsan.git master 8b611d82b66b ec153193 .config console log report ci-upstream-kmsan-gce-386
2020/05/27 19:22 https://github.com/google/kmsan.git master 8b611d82b66b ec153193 .config console log report ci-upstream-kmsan-gce-386
2020/05/27 17:51 https://github.com/google/kmsan.git master 8b611d82b66b ec153193 .config console log report ci-upstream-kmsan-gce-386
2020/05/27 16:39 https://github.com/google/kmsan.git master 8b611d82b66b ec153193 .config console log report ci-upstream-kmsan-gce-386
2020/05/27 03:07 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 23:24 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 23:16 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 23:16 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 22:48 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 22:47 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 22:24 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 22:17 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 21:46 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 21:34 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 21:23 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 21:23 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 21:10 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 20:46 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 19:54 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 19:47 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
2020/05/26 19:27 https://github.com/google/kmsan.git master 94bc4cd0c2f0 9072c126 .config console log report ci-upstream-kmsan-gce-386
* Struck through repros no longer work on HEAD.