]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, arm: start flushing icache range from header
authorDaniel Borkmann <daniel@iogearbox.net>
Sat, 14 Nov 2015 00:26:53 +0000 (01:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Nov 2015 19:40:49 +0000 (14:40 -0500)
commit0ba92e20b229628d0895e10501ebabc4f8065eca
treec709914711a5168ae566eded4ca7faba0ac68210
parent96e5d563b49f615af3a376fd47f189a4cc51ee75
bpf, arm: start flushing icache range from header

During review I noticed that the icache range we're flushing should
start at header already and not at ctx.image.

Reason is that after 3e9588df24cb ("net: bpf: arm: 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>
Tested-by: Nicolas Schichan <nschichan@freebox.fr>
Cc: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm/net/bpf_jit_32.c