| From: |
| Kees Cook <keescook-AT-chromium.org> |
| To: |
| Kees Cook <keescook-AT-chromium.org> |
| Subject: |
| [PATCH v6 0/4] fortify: Add Clang support |
| Date: |
| Thu, 03 Feb 2022 09:33:03 -0800 |
| Message-ID: |
| <20220203173307.1033257-1-keescook@chromium.org> |
| Cc: |
| Miguel Ojeda <ojeda-AT-kernel.org>, Nick Desaulniers <ndesaulniers-AT-google.com>, Nathan Chancellor <nathan-AT-kernel.org>, George Burgess IV <gbiv-AT-google.com>, linux-kernel-AT-vger.kernel.org, llvm-AT-lists.linux.dev, linux-hardening-AT-vger.kernel.org |
| Archive-link: |
| Article |
Hi,
This has been updated from feedback on the v5 series. Builds correctly with Clang 12.0.1
too now. :)
Thanks!
v1: https://lore.kernel.org/linux-hardening/20210727205855.41...
v2: https://lore.kernel.org/linux-hardening/20210818060533.35...
v3: https://lore.kernel.org/linux-hardening/20211213223331.13...
v4: https://lore.kernel.org/linux-hardening/20220130182204.42...
v5: https://lore.kernel.org/linux-hardening/20220202003033.70...
v6:
- clean up comments in attributes (ojeda)
- moved const into pass_object_size macro
- adjusted Clang version to 12.0.1 (ndesaulniers)
- cleaned up Clang comments (ndesaulniers)
Kees Cook (4):
Compiler Attributes: Add __pass_object_size for Clang
Compiler Attributes: Add __overloadable for Clang
Compiler Attributes: Add __diagnose_as for Clang
fortify: Add Clang support
include/linux/compiler_attributes.h | 39 +++++++++++++++++++
include/linux/fortify-string.h | 58 +++++++++++++++++++++--------
security/Kconfig | 3 +-
3 files changed, 83 insertions(+), 17 deletions(-)
--
2.30.2