Skip to content

Commit

Permalink
enable BPF JIT hardening by default
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Jul 5, 2023
1 parent 28f5390 commit 65f68fd
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 @@ -337,7 +337,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;
long bpf_jit_limit __read_mostly;
long bpf_jit_limit_max __read_mostly;
Expand Down

0 comments on commit 65f68fd

Please sign in to comment.