|
@@ -740,7 +740,7 @@ void bpf_int_jit_compile(struct bpf_prog *prog)
|
|
if (bpf_jit_enable > 1)
|
|
if (bpf_jit_enable > 1)
|
|
bpf_jit_dump(prog->len, image_size, 2, ctx.image);
|
|
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);
|
|
set_memory_ro((unsigned long)header, header->pages);
|
|
prog->bpf_func = (void *)ctx.image;
|
|
prog->bpf_func = (void *)ctx.image;
|