Re: [PATCH v3 08/16] lkdtm: Use an opaque type for lkdtm_rodata_do_nothing

From: Kees Cook
Date: Tue Sep 14 2021 - 15:32:06 EST


On Tue, Sep 14, 2021 at 12:10:37PM -0700, Sami Tolvanen wrote:
> Use an opaque type for lkdtm_rodata_do_nothing to stop the compiler
> from generating a CFI jump table entry that jumps to .rodata.
>
> Signed-off-by: Sami Tolvanen <samitolvanen@xxxxxxxxxx>

Acked-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook