Currently it's not possible to set bpf_jit_enable = 2 when CONFIG_BPF_JIT_ALWAYS_ON is set, which makes debugging certain problems harder. It looks as if it's safe to allow this, because setting this knob requires root anyway, but I'm not sure about all the security implications, so sending this as an RFC. Signed-off-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx> --- net/core/sysctl_net_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c index eb29e5adc84d..09f1218b5656 100644 --- a/net/core/sysctl_net_core.c +++ b/net/core/sysctl_net_core.c @@ -389,7 +389,7 @@ static struct ctl_table net_core_table[] = { .proc_handler = proc_dointvec_minmax_bpf_enable, # ifdef CONFIG_BPF_JIT_ALWAYS_ON .extra1 = SYSCTL_ONE, - .extra2 = SYSCTL_ONE, + .extra2 = &two, # else .extra1 = SYSCTL_ZERO, .extra2 = &two, -- 2.23.0