powerpc/bpf: Use bctrl for making function calls
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Wed, 9 Jun 2021 09:00:24 +0000 (14:30 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 Jun 2021 04:47:19 +0000 (14:47 +1000)
commit20ccb004bad659c186f9091015a956da220d615d
tree2dcdd9f24d6fb630a15eb3161f73faf9905608fc
parentb8ee3e6d6c5eec7e66de82449382f1a206db2046
powerpc/bpf: Use bctrl for making function calls

blrl corrupts the link stack. Instead use bctrl when making function
calls from BPF programs.

Reported-by: Anton Blanchard <anton@ozlabs.org>
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/20210609090024.1446800-1-naveen.n.rao@linux.vnet.ibm.com
arch/powerpc/net/bpf_jit_comp32.c
arch/powerpc/net/bpf_jit_comp64.c