mirror_ubuntu-kernels/arch/powerpc/net
Naveen N. Rao 43d636f8b4 powerpc64/bpf elfv1: Do not load TOC before calling functions
BPF helpers always reside in core kernel and all BPF programs use the
kernel TOC. As such, there is no need to load the TOC before calling
helpers or other BPF functions. Drop code to do the same.

Add a check to ensure we don't proceed if this assumption ever changes
in future.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a3cd3da4d24d95d845cd10382b1af083600c9074.1644834730.git.naveen.n.rao@linux.vnet.ibm.com
2022-03-08 00:04:58 +11:00
..
bpf_jit64.h powerpc64/bpf: Use r12 for constant blinding 2022-03-08 00:04:57 +11:00
bpf_jit_comp32.c powerpc64/bpf elfv1: Do not load TOC before calling functions 2022-03-08 00:04:58 +11:00
bpf_jit_comp64.c powerpc64/bpf elfv1: Do not load TOC before calling functions 2022-03-08 00:04:58 +11:00
bpf_jit_comp.c powerpc64/bpf elfv1: Do not load TOC before calling functions 2022-03-08 00:04:58 +11:00
bpf_jit.h powerpc64/bpf elfv1: Do not load TOC before calling functions 2022-03-08 00:04:58 +11:00
Makefile powerpc/bpf: Implement extended BPF on PPC32 2021-04-03 21:22:21 +11:00