diff options
| author | Florent Revest <[email protected]> | 2021-04-27 11:29:58 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-04-27 15:04:34 +0000 |
| commit | 38d26d89b31d0766d431471572cc9b007ca19c98 (patch) | |
| tree | 2a4348b2fd79659c65fdade471284cd6108b58ff /net/bluetooth/hci_request.c | |
| parent | Merge branch 'CO-RE relocation selftests fixes' (diff) | |
| download | kernel-38d26d89b31d0766d431471572cc9b007ca19c98.tar.gz kernel-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 <[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 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions
