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 Apr 4, 2020
1 parent 1a3e0c2 commit 82e3844
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 @@ -520,7 +520,7 @@ void bpf_prog_kallsyms_del_all(struct bpf_prog *fp)
/* All BPF JIT sysctl knobs here. */
int bpf_jit_enable __read_mostly = IS_BUILTIN(CONFIG_BPF_JIT_DEFAULT_ON);
int bpf_jit_kallsyms __read_mostly = IS_BUILTIN(CONFIG_BPF_JIT_DEFAULT_ON);
int bpf_jit_harden __read_mostly;
int bpf_jit_harden __read_mostly = 2;
long bpf_jit_limit __read_mostly;

static __always_inline void
Expand Down

0 comments on commit 82e3844

Please sign in to comment.