Re: kthread: consolidate kthread exit paths to prevent use-after-free

Greg KH
2026-03-18T11:53:39Z

On Wed, Mar 18, 2026 at 01:58:12AM +0800, Wentao Guan wrote:
> Hello,
>
> I want you know that need backport ("bpf: drop kthread_exit from noreturn_deny"),
> which commit 7fe44c4388146bdbb3c5932d81a26d9fa0fd3ec9 upstream,
> or will met "WARN: resolve_btfids: unresolved symbol kthread_exit" to cause build fail,
> I test v6.18.19-rc1 with the patch build ok for me.
>
> BRs
> Wentao Guan
>
> Log:
> AR drivers/gpu/built-in.a
> AR drivers/built-in.a
> AR built-in.a
> AR vmlinux.a
> LD vmlinux.o
> GEN .vmlinux.objs
> MODPOST Module.symvers
> CC .vmlinux.export.o
> UPD include/generated/utsversion.h
> CC init/version-timestamp.o
> KSYMS .tmp_vmlinux0.kallsyms.S
> AS .tmp_vmlinux0.kallsyms.o
> LD .tmp_vmlinux1
> BTF .tmp_vmlinux1.btf.o
> NM .tmp_vmlinux1.syms
> KSYMS .tmp_vmlinux1.kallsyms.S
> AS .tmp_vmlinux1.kallsyms.o
> LD .tmp_vmlinux2
> NM .tmp_vmlinux2.syms
> KSYMS .tmp_vmlinux2.kallsyms.S
> AS .tmp_vmlinux2.kallsyms.o
> LD vmlinux.unstripped
> BTFIDS vmlinux.unstripped
> WARN: resolve_btfids: unresolved symbol kthread_exit

Thanks, I've now queued this up.

greg k-h