Skip to content

Commit

Permalink
enable BPF JIT hardening by default (if available)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthraxx authored and thestinger committed May 16, 2018
1 parent e2bae47 commit 90cbde9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/bpf/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ void __weak bpf_jit_free(struct bpf_prog *fp)
bpf_prog_unlock_free(fp);
}

int bpf_jit_harden __read_mostly;
int bpf_jit_harden __read_mostly = 2;

static int bpf_jit_blind_insn(const struct bpf_insn *from,
const struct bpf_insn *aux,
Expand Down

0 comments on commit 90cbde9

Please sign in to comment.