[PATCH bpf-next 2/3] riscv, bpf: Add support for BPF exceptions

Varun R Mallya varunrmallya at gmail.com
Sat Jun 27 23:37:39 PDT 2026


On Sun, Jun 21, 2026 at 03:32:32PM +0000, bot+bpf-ci at kernel.org wrote:
> 
> This isn't a bug, but could the kcfi preamble, fentry-nops loop, and
> TCC-init instruction be emitted once before the exception_boundary /
> exception_cb branch instead of being duplicated? The same three-part
> sequence appears again below in the non-exception path, and the two copies
> must stay byte-for-byte identical since the tail-call epilogue skip offset
> depends on this fixed layout.

Making this part common in the next version. Sensible change I missed.
- Varun



More information about the linux-riscv mailing list