On Wed, Feb 26, 2020 at 5:06 AM Jiri Olsa <jolsa@xxxxxxxxxx> wrote: > > When bpf_prog is removed from kallsyms it's on the way > out to be removed, so we don't care about lnode state. > > However the bpf_ksym_del will be used also by bpf_trampoline > and bpf_dispatcher objects, which stay allocated even when > they are not in kallsyms list, hence the lnode re-init. > > The list_del_rcu commentary states that we need to call > synchronize_rcu, before we can change/re-init the list_head > pointers. > > Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx> Acked-by: Song Liu <songliubraving@xxxxxx>