summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorKenta Tada <Kenta.Tada@sony.com>2022-01-29 02:09:06 +0900
committerAlexei Starovoitov <ast@kernel.org>2022-01-31 12:44:37 -0800
commit0407a65f356e6d9340ad673907c17e52fade43e3 (patch)
tree84039871a6bbadffe8cb7076c58483b7034de66f /kernel
parent1fc5bdb2b823b6f478b8c466d5f7328f6220f02b (diff)
bpf: make bpf_copy_from_user_task() gpl only
access_process_vm() is exported by EXPORT_SYMBOL_GPL(). Signed-off-by: Kenta Tada <Kenta.Tada@sony.com> Link: https://lore.kernel.org/r/20220128170906.21154-1-Kenta.Tada@sony.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/bpf/helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/helpers.c b/kernel/bpf/helpers.c
index ed2780b76cc1..4e5969fde0b3 100644
--- a/kernel/bpf/helpers.c
+++ b/kernel/bpf/helpers.c
@@ -695,7 +695,7 @@ BPF_CALL_5(bpf_copy_from_user_task, void *, dst, u32, size,
const struct bpf_func_proto bpf_copy_from_user_task_proto = {
.func = bpf_copy_from_user_task,
- .gpl_only = false,
+ .gpl_only = true,
.ret_type = RET_INTEGER,
.arg1_type = ARG_PTR_TO_UNINIT_MEM,
.arg2_type = ARG_CONST_SIZE_OR_ZERO,