arm64: bpf: fix JIT frame pointer setup
authorYang Shi <yang.shi@linaro.org>
Thu, 12 Nov 2015 21:57:00 +0000 (13:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Nov 2015 19:38:42 +0000 (14:38 -0500)
commit0fcd593b943bfcc21ad84d3321422401de071d8a
tree8f39ef257eb47c668f0f4643856aa48e109f9bed
parent7729b053814ac91af340f5055970afc87d7fee21
arm64: bpf: fix JIT frame pointer setup

BPF fp should point to the top of the BPF prog stack. The original
implementation made it point to the bottom incorrectly.
Move A64_SP to fp before reserve BPF prog stack space.

CC: Zi Shen Lim <zlim.lnx@gmail.com>
CC: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Yang Shi <yang.shi@linaro.org>
Reviewed-by: Zi Shen Lim <zlim.lnx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm64/net/bpf_jit_comp.c
This page took 0.027169 seconds and 5 git commands to generate.