Re: [PATCH v1 07/10] lkdtm: Force do_nothing() out of line

From: Kees Cook
Date: Wed Oct 13 2021 - 03:02:51 EST


On Mon, Oct 11, 2021 at 05:25:34PM +0200, Christophe Leroy wrote:
> LKDTM tests display that the run do_nothing() at a given
> address, but in reality do_nothing() is inlined into the
> caller.
>
> Force it out of line so that it really runs text at the
> displayed address.
>
> Signed-off-by: Christophe Leroy <christophe.leroy@xxxxxxxxxx>

Acked-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook