bpf, arm64: start flushing icache range from header
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / net / bpf_jit_comp.c
index ac8b548ce4939fa949a9d2473bf580f383e296e2..64a8bc12f4a2e0de0334040bee748bad57a0a75b 100644 (file)
@@ -740,7 +740,7 @@ void bpf_int_jit_compile(struct bpf_prog *prog)
        if (bpf_jit_enable > 1)
                bpf_jit_dump(prog->len, image_size, 2, ctx.image);
 
-       bpf_flush_icache(ctx.image, ctx.image + ctx.idx);
+       bpf_flush_icache(header, ctx.image + ctx.idx);
 
        set_memory_ro((unsigned long)header, header->pages);
        prog->bpf_func = (void *)ctx.image;