diff options
| author | Florent Revest <[email protected]> | 2021-04-27 13:29:58 +0200 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-04-27 08:04:34 -0700 |
| commit | 38d26d89b31d0766d431471572cc9b007ca19c98 (patch) | |
| tree | 2a4348b2fd79659c65fdade471284cd6108b58ff /arch/mips/include/asm/mach-netlogic/multi-node.h | |
| parent | 927315041828fcbead6d2ace38c6dee5af95e40f (diff) | |
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 <[email protected]>
Signed-off-by: Florent Revest <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'arch/mips/include/asm/mach-netlogic/multi-node.h')
0 files changed, 0 insertions, 0 deletions