Re: [PATCH v5 02/15] objtool: Add ASM_STACK_FRAME_NON_STANDARD

From: Kees Cook
Date: Wed Oct 13 2021 - 15:00:03 EST


On Wed, Oct 13, 2021 at 11:16:45AM -0700, Sami Tolvanen wrote:
> To use the STACK_FRAME_NON_STANDARD macro for a static symbol
> defined in inline assembly, we need a C declaration that implies
> global visibility. This type mismatch confuses the compiler with
> CONFIG_CFI_CLANG. This change adds an inline assembly version of
> the macro to avoid the issue.
>
> Signed-off-by: Sami Tolvanen <samitolvanen@xxxxxxxxxx>

Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook