|
@@ -1844,7 +1844,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
|
|
|
/* there are 2 passes here */
|
|
/* there are 2 passes here */
|
|
|
bpf_jit_dump(prog->len, image_size, 2, ctx.target);
|
|
bpf_jit_dump(prog->len, image_size, 2, ctx.target);
|
|
|
|
|
|
|
|
- set_memory_ro((unsigned long)header, header->pages);
|
|
|
|
|
|
|
+ bpf_jit_binary_lock_ro(header);
|
|
|
prog->bpf_func = (void *)ctx.target;
|
|
prog->bpf_func = (void *)ctx.target;
|
|
|
prog->jited = 1;
|
|
prog->jited = 1;
|
|
|
prog->jited_len = image_size;
|
|
prog->jited_len = image_size;
|