fortify: Update compile-time tests for Clang 14
authorKees Cook <keescook@chromium.org>
Sun, 30 Jan 2022 17:59:29 +0000 (09:59 -0800)
committerKees Cook <keescook@chromium.org>
Mon, 14 Feb 2022 00:50:06 +0000 (16:50 -0800)
commit818ab43fc56ad978cbb7c0ffdc9a332fd2f23a23
tree0f5992f2ee3463b2b3f348cf9177345d8a258207
parent28e77cc1c0686621a4d416f599cee5ab369daa0a
fortify: Update compile-time tests for Clang 14

Clang 14 introduces support for compiletime_assert(). Update the
compile-time warning regex to catch Clang's variant of the warning text
in preparation for Clang supporting CONFIG_FORTIFY_SOURCE.

Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: linux-hardening@vger.kernel.org
Cc: llvm@lists.linux.dev
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/lkml/YfbtQKtpyAM1hHiC@dev-arch.archlinux-ax161
Signed-off-by: Kees Cook <keescook@chromium.org>
scripts/test_fortify.sh