Re: [PATCHv5 bpf-next 04/28] bpf: Use mutex lock pool for bpf trampolines

Jiri Olsa <[email protected]>
Newsgroups dev.linux.lists.sashiko,org.kernel.vger.bpf
Message-ID <aetS-OVaIz9XbZBP@krava>
On Tue, Apr 21, 2026 at 10:55:08AM +0200, Jiri Olsa wrote:

SNIP

> > 
> > Regarding the pool initialization, the new trampoline_locks array is
> > initialized in init_trampolines(), which runs as a late_initcall.
> > 
> > Since the static array resides in the bss section and is only zero-initialized
> > before this phase, what happens if early boot BPF components (like early BPF
> > LSM policies) try to attach or modify a trampoline before late_initcall?

hum, I don't see how this could happen.. anyway we init other trampoline
tables in here, so if it's wrong, it's already broken

jirka
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.