OSDN Git Service

ANDROID: bpf: fix export symbol type
authorGreg Kroah-Hartman <gregkh@google.com>
Wed, 29 Apr 2020 13:16:49 +0000 (15:16 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 29 Apr 2020 17:16:15 +0000 (19:16 +0200)
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 <samitolvanen@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I7239bb8e0ef329cd7eac6afcd06c341b17ea680b

kernel/bpf/core.c

index afee05e..bdfb74d 100644 (file)
@@ -626,7 +626,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 *