]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf, btf: Enforce destructor kfunc type with CFI
authorSami Tolvanen <samitolvanen@google.com>
Sat, 10 Jan 2026 08:25:53 +0000 (08:25 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 13 Jan 2026 02:53:57 +0000 (18:53 -0800)
commit99fde4d0626176d03cea35c64a063df73816e64d
tree3c65cba3d151290533ab4213a03c3e8a90335ad6
parentba7f1024a1024f219a18c40b4ab2d7d900fd2d15
bpf, btf: Enforce destructor kfunc type with CFI

Ensure that registered destructor kfuncs have the same type
as btf_dtor_kfunc_t to avoid a kernel panic on systems with
CONFIG_CFI enabled.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20260110082548.113748-10-samitolvanen@google.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/btf.c