Skip to content

bpf: set default value for bpf_jit_harden

Jiri Olsa requested to merge jolsa1/centos-stream-9:bpf/harden into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2028734

Upstream: RHEL only. The patch for configuring boot-time value for these options has been proposed [1] and rejected upstream.

[1] https://lkml.org/lkml/2018/5/23/449

Set default values for net.bpf_jit_harden sysctl.

  • net.bpf_jit_harden is set to 1: it's a compromise between the fact that by default we do not have unprivileged BPF enabled (and there's little reason for enforcing constant blinding for root programs by default, considering performance tradeoffs), and providing some sane default for users that still want unprivileged BPF (and enable it via the boot option),

Signed-off-by: Jiri Olsa jolsa@redhat.com

Edited by Jiri Olsa

Merge request reports