Re: [RFC PATCH 0/4] trace, livepatch: Allow kprobe return overriding for livepatched functions

From: Miroslav Benes

Date: Thu Apr 09 2026 - 06:13:36 EST


> 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.

Miroslav