lkml.org 
[lkml]   [2022]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC PATCH v2 15/21] objtool: Don't warn about __cfi_ preambles falling through
    On Fri, May 13, 2022 at 01:21:53PM -0700, Sami Tolvanen wrote:
    > The __cfi_ preambles contain valid instructions, which embed KCFI
    > type information in the following format:
    >
    > __cfi_function:
    > int3
    > int3
    > mov <id>, %eax
    > int3
    > int3
    > function:
    > ...
    >
    > While the preambles are STT_FUNC and contain valid instructions,
    > they are not executed and always fall through. Skip the warning for
    > them.
    >
    > Signed-off-by: Sami Tolvanen <samitolvanen@google.com>

    Reviewed-by: Kees Cook <keescook@chromium.org>

    --
    Kees Cook

    \
     
     \ /
      Last update: 2022-05-14 23:58    [W:2.914 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site