diff options
Diffstat (limited to 'kernel/bpf/core.c')
| -rw-r--r-- | kernel/bpf/core.c | 7 | 
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index af6b738cf435..973a20d49749 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c @@ -222,8 +222,6 @@ struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size,  	u32 pages, delta;  	int ret; -	BUG_ON(fp_old == NULL); -  	size = round_up(size, PAGE_SIZE);  	pages = size / PAGE_SIZE;  	if (pages <= fp_old->pages) @@ -520,9 +518,9 @@ void bpf_prog_kallsyms_del_all(struct bpf_prog *fp)  #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_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_kallsyms __read_mostly;  long bpf_jit_limit   __read_mostly;  static __always_inline void @@ -2139,6 +2137,7 @@ const struct bpf_func_proto bpf_map_pop_elem_proto __weak;  const struct bpf_func_proto bpf_map_peek_elem_proto __weak;  const struct bpf_func_proto bpf_spin_lock_proto __weak;  const struct bpf_func_proto bpf_spin_unlock_proto __weak; +const struct bpf_func_proto bpf_jiffies64_proto __weak;  const struct bpf_func_proto bpf_get_prandom_u32_proto __weak;  const struct bpf_func_proto bpf_get_smp_processor_id_proto __weak;  |