]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, arm64: start flushing icache range from header
authorDaniel Borkmann <daniel@iogearbox.net>
Sat, 14 Nov 2015 00:16:18 +0000 (01:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Nov 2015 19:41:30 +0000 (14:41 -0500)
commitda843cebec3f3bccc53da2409735d96d6ca849ce
treece5cba420f360ac90831883ff7deba5b0093bfe8
parent804866defb4f87aa5ea490523b7276bb19d25ee1
bpf, arm64: start flushing icache range from header

While recently going over ARM64's BPF code, I noticed that the icache
range we're flushing should start at header already and not at ctx.image.

Reason is that after 3aba6f9dd5f9 ("net: bpf: arm64: address randomize
and write protect JIT code"), we also want to make sure to flush the
random-sized trap in front of the start of the actual program (analogous
to x86). No operational differences from user side.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Zi Shen Lim <zlim.lnx@gmail.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm64/net/bpf_jit_comp.c