Skip to contentSkip to conversation

bpf: make bpf_copy_from_user_task() gpl only

PATCH Applied Kenta Tada 2 participants 2 messages Jan 28, 2022 – Jan 31, 2022 BPF

lore
Share & tools
lore

Kenta Tada

author
#0 lore raw

PATCH 1/1 bpf: make bpf_copy_from_user_task() gpl only

access_process_vm() is exported by EXPORT_SYMBOL_GPL().

---
 kernel/bpf/helpers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/bpf/helpers.c +1 -1
index ed2780b76cc1..4e5969fde0b3 100644
@@ -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,
Signature · 1 line
2.32.0
#1 lore raw
This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:

Hello:

This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:

Quoted 6 lines · On Sat, 29 Jan 2022 02:09:06 +0900 you wrote:

access_process_vm() is exported by EXPORT_SYMBOL_GPL().

---
 kernel/bpf/helpers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [bpf-next] bpf: make bpf_copy_from_user_task() gpl only

    https://git.kernel.org/bpf/bpf-next/c/0407a65f356e

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html