aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/nsproxy.c
diff options
context:
space:
mode:
authorFlorent Revest <revest@chromium.org>2021-04-27 13:29:58 +0200
committerAlexei Starovoitov <ast@kernel.org>2021-04-27 08:04:34 -0700
commit38d26d89b31d0766d431471572cc9b007ca19c98 (patch)
tree2a4348b2fd79659c65fdade471284cd6108b58ff /kernel/nsproxy.c
parentMerge branch 'CO-RE relocation selftests fixes' (diff)
downloadlinux-dev-38d26d89b31d0766d431471572cc9b007ca19c98.tar.xz
linux-dev-38d26d89b31d0766d431471572cc9b007ca19c98.zip
bpf: Lock bpf_trace_printk's tmp buf before it is written to
bpf_trace_printk uses a shared static buffer to hold strings before they are printed. A recent refactoring moved the locking of that buffer after it gets filled by mistake. Fixes: d9c9e4db186a ("bpf: Factorize bpf_trace_printk and bpf_seq_printf") Reported-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Florent Revest <revest@chromium.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20210427112958.773132-1-revest@chromium.org
Diffstat (limited to 'kernel/nsproxy.c')
0 files changed, 0 insertions, 0 deletions