On Thu, Jan 19, 2023 at 9:02 AM Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> wrote: > > On Thu, 19 Jan 2023 at 19:43, Jiri Olsa <jolsa@xxxxxxxxxx> wrote: > > > > We take the BTF reference before we register dtors and we need > > to put it back when it's done. > > > > We probably won't se a problem with kernel BTF, but module BTF > > would stay loaded (because of the extra ref) even when its module > > is removed. > > > > Cc: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> > > Fixes: 5ce937d613a4 ("bpf: Populate pairs of btf_id and destructor kfunc in btf") > > Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx> > > --- > > Thanks for the fix. > Acked-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> Jiri, lore and patchwork didn't receive this patch. Only Kumar's reply is in lore. Please resend.