diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2020-06-09 06:34:37 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-06-09 18:39:15 +0200 |
commit | 19c8d8ac63d39578483db0b82107c172d8edfb07 (patch) | |
tree | e26e0819136938ad4733986ad9908c062def2a61 /kernel/kprobes.c | |
parent | bpf: handle the compat string in bpf_trace_copy_string better (diff) | |
download | linux-19c8d8ac63d39578483db0b82107c172d8edfb07.tar.xz linux-19c8d8ac63d39578483db0b82107c172d8edfb07.zip |
bpf:bpf_seq_printf(): handle potentially unsafe format string better
User the proper helper for kernel or userspace addresses based on
TASK_SIZE instead of the dangerous strncpy_from_unsafe function.
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/kprobes.c')
0 files changed, 0 insertions, 0 deletions