Searched hist:"02088 d9b392f605c892894b46aa8c83e3abd0115" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/arm/net/ |
H A D | bpf_jit_32.c | diff 02088d9b392f605c892894b46aa8c83e3abd0115 Sat Jan 13 16:38:18 CST 2018 Russell King <rmk+kernel@armlinux.org.uk> ARM: net: bpf: fix register saving
When an eBPF program tail-calls another eBPF program, it enters it after the prologue to avoid having complex stack manipulations. This can lead to kernel oopses, and similar.
Resolve this by always using a fixed stack layout, a CPU register frame pointer, and using this when reloading registers before returning.
Fixes: 39c13c204bb1 ("arm: eBPF JIT compiler") Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
|