On Thu, Apr 9, 2026 at 6:08 PM Miroslav Benes <[email protected]> wrote: > > > Can we add something like ALLOW_LIVEPATCH_ERROR_INJECTION() to allow > > error injection on functions defined inside a livepatch? > > No. > > I am sorry but you always seem to find band aids to your set up and how > you deal with live patches internally. While I can see that something like > a hybrid mode might be useful to people if done right (and we are not > there yet), the combination of it with bpf overrides or anything like that > is not something I would like to see in upstream.
The upstream kernel already allows for combining BPF and livepatch to override functions. Song’s patch offers a great reference for implementing this without changing the kernel: https://lore.kernel.org/bpf/[email protected]/ -- Regards Yafang
