linux-stable/arch/powerpc/net
Naveen N. Rao 0ffdbce6f4 powerpc/bpf: Handle large branch ranges with BPF_EXIT
In some scenarios, it is possible that the program epilogue is outside
the branch range for a BPF_EXIT instruction. Instead of rejecting such
programs, emit epilogue as an alternate exit point from the program.
Track the location of the same so that subsequent exits can take either
of the two paths.

Reported-by: Jordan Niethe <jniethe5@gmail.com>
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/33aa2e92645a92712be23b18035a2c6dcb92ff8d.1644834730.git.naveen.n.rao@linux.vnet.ibm.com
2022-03-08 00:04:57 +11:00
..
bpf_jit.h powerpc/bpf: Handle large branch ranges with BPF_EXIT 2022-03-08 00:04:57 +11:00
bpf_jit64.h powerpc/bpf: Emit stf barrier instruction sequences for BPF_NOSPEC 2021-10-07 19:52:58 +11:00
bpf_jit_comp.c powerpc/bpf: Handle large branch ranges with BPF_EXIT 2022-03-08 00:04:57 +11:00
bpf_jit_comp32.c powerpc/bpf: Handle large branch ranges with BPF_EXIT 2022-03-08 00:04:57 +11:00
bpf_jit_comp64.c powerpc/bpf: Handle large branch ranges with BPF_EXIT 2022-03-08 00:04:57 +11:00
Makefile powerpc/bpf: Implement extended BPF on PPC32 2021-04-03 21:22:21 +11:00