OSDN Git Service

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)
commitf4b16fce7a5a1ec8069b1f577476bdc1d2688cd1
treecb92644a31a75baf9ff434899a44ffbad0a5d8b3
parent508dc0648ca8a2d305faee472cea5e0be579014f
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