]> 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)
commitd3c48cf82f05968ce663fa67e135c20b1030b71c
treecb92644a31a75baf9ff434899a44ffbad0a5d8b3
parent59293198e99180d798097c40a72139a0d0d46dce
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