Re: [PATCH 1/3] jump_label: Add annotations for validating noinstr usage

From: Josh Poimboeuf
Date: Fri Nov 22 2024 - 20:54:17 EST


On Fri, Nov 22, 2024 at 05:52:20PM -0800, Josh Poimboeuf wrote:
> Deferring a code patching IPI is unsafe if the patched code is in a
> noinstr region. In that case the text poke code must trigger an
> immediate IPI to all CPUs, which can rudely interrupt an isolated NO_HZ
> CPU running in userspace.
>
> Some noinstr static branches may really need to be patched at runtime,
> despite the resulting disruption. Add DEFINE_STATIC_KEY_*_NOINSTR()
> variants for those. They don't do anything special yet; that will come
> later.
>
> Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>

Oops, $SUBJECT should probably be changed to something like:

jump_label: Add DEFINE_STATIC_KEY_*_NOINSTR()

--
Josh