Re: [PATCH v2 1/5] jump_label: Provide CONFIG-driven build state defaults

From: Peter Zijlstra
Date: Tue Mar 24 2020 - 18:06:58 EST


On Tue, Mar 24, 2020 at 01:32:27PM -0700, Kees Cook wrote:
> Choosing the initial state of static branches changes the assembly
> layout (if the condition is expected to be likely, inline, or unlikely,
> out of line via a jump). A few places in the kernel use (or could be
> using) a CONFIG to choose the default state, so provide the
> infrastructure to do this and convert the existing cases (init_on_alloc
> and init_on_free) to the new macros.
>
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>

Cute,

Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>