--- a/kernel/trace/bpf_trace.c +++ b/kernel/trace/bpf_trace.c @@ -2393,12 +2393,21 @@ void __bpf_trace_run(struct      cant_sleep(); --- a/kernel/tracepoint.c +++ b/kernel/tracepoint.c @@ -298,6 +308,8 @@ static enum tp_func_state nr_func_state(const {      if (!tp_funcs)            return TP_FUNC_0; +     if (!tp_funcs[0].func) +           return TP_FUNC_0;      if (!tp_funcs[1].func)            return TP_FUNC_1;      if (!tp_funcs[2].func)