Thread (50 messages) 50 messages, 6 authors, 2021-10-07

Re: [PATCH v4 04/15] cfi: Add DEFINE_CFI_IMMEDIATE_RETURN_STUB

From: Sami Tolvanen <samitolvanen@google.com>
Date: 2021-10-01 20:07:39
Also in: linux-hardening, lkml

On Thu, Sep 30, 2021 at 11:50 AM Nick Desaulniers
[off-list ref] wrote:
On Thu, Sep 30, 2021 at 11:05 AM Sami Tolvanen [off-list ref] wrote:
quoted
This change introduces the DEFINE_CFI_IMMEDIATE_RETURN_STUB macro,
which defines a stub function that immediately returns and when
defined in the core kernel, always passes indirect call checking
with CONFIG_CFI_CLANG. Note that this macro should only be used when
a stub cannot be called using the correct function type.
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>

Seems like the only use is in patch 5/15. Probably could be squashed...
I would prefer to keep these separate, but if everyone thinks that's
unnecessary, I'm happy to combine them.

Sami
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help