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 committed Jul 11, 2018
1 parent 0fe1490 commit 8f5e49b
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 @@ -352,7 +352,7 @@ struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off,
#ifdef CONFIG_BPF_JIT
/* All BPF JIT sysctl knobs here. */
int bpf_jit_enable __read_mostly = IS_BUILTIN(CONFIG_BPF_JIT_ALWAYS_ON);
int bpf_jit_harden __read_mostly;
int bpf_jit_harden __read_mostly = 2;
int bpf_jit_kallsyms __read_mostly;

static __always_inline void
Expand Down

0 comments on commit 8f5e49b

Please sign in to comment.