]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc64/bpf: Support exceptions
authorAbhishek Dubey <adubey@linux.ibm.com>
Sat, 24 Jan 2026 07:52:22 +0000 (13:22 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Thu, 29 Jan 2026 03:36:01 +0000 (09:06 +0530)
commitc169930292f7f31a6e500803e6c5ffbb9d5e6e4b
tree164fa02e86a00bab25dd0d516dbf2d37e32f411b
parentb1c24f089bcf23faa23397dfb5e05f82a8c6cf56
powerpc64/bpf: Support exceptions

The modified prologue/epilogue generation code now
enables exception-callback to use the stack frame of
the program marked as exception boundary, where callee
saved registers are stored.

As per ppc64 ABIv2 documentation[1], r14-r31 are callee
saved registers. BPF programs on ppc64 already saves
r26-r31 registers. Saving the remaining set of callee
saved registers(r14-r25) is handled in the next patch.

[1] https://ftp.rtems.org/pub/rtems/people/sebh/ABI64BitOpenPOWERv1.1_16July2015_pub.pdf

Signed-off-by: Abhishek Dubey <adubey@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260124075223.6033-6-adubey@linux.ibm.com
arch/powerpc/net/bpf_jit.h
arch/powerpc/net/bpf_jit_comp.c
arch/powerpc/net/bpf_jit_comp64.c