summaryrefslogtreecommitdiffstats
path: root/kernel/extable.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2020-01-23 17:15:06 +0100
committerAlexei Starovoitov <ast@kernel.org>2020-01-25 07:12:40 -0800
commit84ad7a7ab69f112c0c4b878c9be91b950a1fb1f8 (patch)
treeeb5de4f71b8c7f558e487755fe753f99cbe2f205 /kernel/extable.c
parent35b9211c0a2427e8f39e534f442f43804fc8d5ca (diff)
downloadlinux-stable-84ad7a7ab69f112c0c4b878c9be91b950a1fb1f8.tar.gz
linux-stable-84ad7a7ab69f112c0c4b878c9be91b950a1fb1f8.tar.bz2
linux-stable-84ad7a7ab69f112c0c4b878c9be91b950a1fb1f8.zip
bpf: Allow BTF ctx access for string pointers
When accessing the context we allow access to arguments with scalar type and pointer to struct. But we deny access for pointer to scalar type, which is the case for many functions. Alexei suggested to take conservative approach and allow currently only string pointer access, which is the case for most functions now: Adding check if the pointer is to string type and allow access to it. Suggested-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200123161508.915203-2-jolsa@kernel.org
Diffstat (limited to 'kernel/extable.c')
0 files changed, 0 insertions, 0 deletions