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 26, 2018
1 parent f64bcf1 commit 4a2d438
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 @@ -302,7 +302,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 4a2d438

Please sign in to comment.