]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit83d6df1c441dea7ba90bf805458627c84fb518f5
tree8f39ef257eb47c668f0f4643856aa48e109f9bed
parent2424d3e5ab72e7b538b1fc7730a9f8e9aeea4f5a
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