From ec92c286327d0263cc442d101b9e85f0ba319b91 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Wed, 29 Apr 2020 15:16:49 +0200 Subject: [PATCH] ANDROID: bpf: fix export symbol type In commit ff5bf35998cc ("ANDROID: bpf: validate bpf_func when BPF_JIT is enabled with CFI") a new symbol was exported, but it should have been set as a _GPL symbol. Fix this up by properly. Bug: 145210207 Cc: Sami Tolvanen Signed-off-by: Greg Kroah-Hartman Change-Id: I7239bb8e0ef329cd7eac6afcd06c341b17ea680b --- kernel/bpf/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index fe26be4760da..f72cc0692275 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c @@ -797,7 +797,7 @@ bool __weak arch_bpf_jit_check_func(const struct bpf_prog *prog) { return true; } -EXPORT_SYMBOL(arch_bpf_jit_check_func); +EXPORT_SYMBOL_GPL(arch_bpf_jit_check_func); #endif struct bpf_binary_header *