syzbot


KMSAN: uninit-value in __seccomp_filter

Status: closed as invalid on 2020/05/28 10:53
Subsystems: bpf
[Documentation on labels]
First crash: 1428d, last: 1428d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in __seccomp_filter (2) bpf C 29 1375d 1377d 0/26 closed as invalid on 2020/07/22 14:22

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in __seccomp_filter+0x1099/0x26f0 kernel/seccomp.c:821
CPU: 0 PID: 10564 Comm: syz-executor.2 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
 __seccomp_filter+0x1099/0x26f0 kernel/seccomp.c:821
 __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:0x45f86a
Code: 25 18 00 00 00 00 74 01 f0 48 0f b1 3d ff a5 84 00 48 39 c2 75 da f3 c3 0f 1f 84 00 00 00 00 00 48 63 ff b8 e4 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 f3 c3 0f 1f 40 00 48 c7 c2 d4 ff ff ff f7
RSP: 002b:00007f33b68e0c58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e4
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000045f86a
RDX: 000000000003ffff RSI: 00007f33b68e0c60 RDI: 0000000000000001
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000023180 R14: 00000000004d57f8 R15: 00007f33b68e16d4

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 (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/27 22:19 https://github.com/google/kmsan.git master 8b611d82b66b ec153193 .config console log report ci-upstream-kmsan-gce
2020/05/27 22:58 https://github.com/google/kmsan.git master 8b611d82b66b ec153193 .config console log report ci-upstream-kmsan-gce-386
* Struck through repros no longer work on HEAD.