]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btf: Support kernel parsing of BTF with layout info
authorAlan Maguire <alan.maguire@oracle.com>
Thu, 26 Mar 2026 14:54:42 +0000 (14:54 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 26 Mar 2026 20:53:56 +0000 (13:53 -0700)
commit626e88c070eef03412f3e2ce109013e797657784
tree3bd118d3891f7b62d9d1e85e5a501c0051ab86ee
parent081677d03d8b8aea528cd8f14f4767c641457e2d
btf: Support kernel parsing of BTF with layout info

Validate layout if present, but because the kernel must be
strict in what it accepts, reject BTF with unsupported kinds,
even if they are in the layout information.

Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20260326145444.2076244-8-alan.maguire@oracle.com
kernel/bpf/btf.c