Skip to content

Commit 2db4dcd

Browse files
anthraxxthestinger
authored andcommitted
enable BPF JIT hardening by default (if available)
1 parent d9f63e4 commit 2db4dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/bpf/core.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ void __weak bpf_jit_free(struct bpf_prog *fp)
539539
bpf_prog_unlock_free(fp);
540540
}
541541

542-
int bpf_jit_harden __read_mostly;
542+
int bpf_jit_harden __read_mostly = 2;
543543

544544
static int bpf_jit_blind_insn(const struct bpf_insn *from,
545545
const struct bpf_insn *aux,

0 commit comments

Comments
 (0)