Skip to content
Commit 1efb6ee3 authored by Martynas Pumputis's avatar Martynas Pumputis Committed by Daniel Borkmann
Browse files

bpf: fix check of allowed specifiers in bpf_trace_printk

A format string consisting of "%p" or "%s" followed by an invalid
specifier (e.g. "%p%\n" or "%s%") could pass the check which
would make format_decode (lib/vsprintf.c) to warn.

Fixes: 9c959c86

 ("tracing: Allow BPF programs to call bpf_trace_printk()")
Reported-by: default avatar <syzbot+1ec5c5ec949c4adaa0c4@syzkaller.appspotmail.com>
Signed-off-by: default avatarMartynas Pumputis <m@lambda.lt>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 813961de
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment