Re: [PATCH bpf-next] bpf, riscv: Fix stack layout of JITed code on RV32

2020-04-30 Thread Daniel Borkmann
On 4/30/20 4:14 AM, Xi Wang wrote: On Wed, Apr 29, 2020 at 5:51 PM Luke Nelson wrote: This patch fixes issues with stackframe unwinding and alignment in the current stack layout for BPF programs on RV32. In the current layout, RV32 fp points to the JIT scratch registers, rather than to the ca

Re: [PATCH bpf-next] bpf, riscv: Fix stack layout of JITed code on RV32

2020-04-29 Thread Xi Wang
On Wed, Apr 29, 2020 at 5:51 PM Luke Nelson wrote: > > This patch fixes issues with stackframe unwinding and alignment in the > current stack layout for BPF programs on RV32. > > In the current layout, RV32 fp points to the JIT scratch registers, rather > than to the callee-saved registers. This b

[PATCH bpf-next] bpf, riscv: Fix stack layout of JITed code on RV32

2020-04-29 Thread Luke Nelson
This patch fixes issues with stackframe unwinding and alignment in the current stack layout for BPF programs on RV32. In the current layout, RV32 fp points to the JIT scratch registers, rather than to the callee-saved registers. This breaks stackframe unwinding, which expects fp to point just abov