Thread (27 messages) 27 messages, 5 authors, 16d ago

Re: [PATCH bpf-next v3 6/9] bpf: keep module BTF until the vmlinux BTF is available

flat view

From: Jay Wang <hidden>
Date: 2026-10-01 23:52:31
Also in: bpf

Right, fixed in v4 (patch 8/12, where the deferred reader is added):
https://lore.kernel.org/bpf/20261001225214.12351-1-wanjay@amazon.com/ (local)

A dead entry now keeps its raw data only if its sysfs file serves it
as is (sysfs_bin_attr_simple_read); for a .BTF.base module, whose reader
fails with -ENODEV once the entry is gone and never touches the data, or
without a sysfs file, the data is freed with the rest.  Tested with a
.BTF.base module whose .BTF is corrupted, loaded before the vmlinux BTF:
its file fails with -ENODEV after the parse failure, rmmod is clean, and
kmemleak reports nothing; the same module without .BTF.base keeps
serving its raw bytes.

Jay
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help