diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index 6ef6746a7871b..0e093658fbb0a 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c @@ -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