projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fc5bdb
)
bpf: make bpf_copy_from_user_task() gpl only
author
Kenta Tada
<Kenta.Tada@sony.com>
Fri, 28 Jan 2022 17:09:06 +0000
(
02:09
+0900)
committer
Alexei Starovoitov
<ast@kernel.org>
Mon, 31 Jan 2022 20:44:37 +0000
(12:44 -0800)
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>
kernel/bpf/helpers.c
patch
|
blob
|
history
diff --git
a/kernel/bpf/helpers.c
b/kernel/bpf/helpers.c
index ed2780b76cc1950aee1c24426b36646d85d70685..4e5969fde0b39e49afe9625f71aa822dcf6acfc4 100644
(file)
--- 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 =
fals
e,
+ .gpl_only =
tru
e,
.ret_type = RET_INTEGER,
.arg1_type = ARG_PTR_TO_UNINIT_MEM,
.arg2_type = ARG_CONST_SIZE_OR_ZERO,