]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: bpf: fix buffer pointer
authorZi Shen Lim <zlim.lnx@gmail.com>
Wed, 18 Nov 2015 08:56:02 +0000 (00:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Nov 2015 03:38:11 +0000 (22:38 -0500)
commit1183d3c6b675a1daec52d91fa86cc005bbdaa2b9
treecb92644a31a75baf9ff434899a44ffbad0a5d8b3
parent0a620b82ed7f8d53896f2568c29872293450bcca
arm64: bpf: fix buffer pointer

During code review, I noticed we were passing a bad buffer pointer
to bpf_load_pointer helper function called by jitted code.

Point to the buffer allocated by JIT, so we don't silently corrupt
other parts of the stack.

Signed-off-by: Zi Shen Lim <zlim.lnx@gmail.com>
Acked-by: Yang Shi <yang.shi@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm64/net/bpf_jit_comp.c