Thread (16 messages) flat view 16 messages, 3 authors, 2022-02-04

Re: [PATCH 4/4 v5] fortify: Add Clang support

From: Kees Cook <hidden>
Date: 2022-02-04 00:28:06
Also in: linux-hardening, lkml, llvm

On Thu, Feb 03, 2022 at 02:13:33PM -0800, Nick Desaulniers wrote:
On Tue, Feb 1, 2022 at 4:30 PM Kees Cook [off-list ref] wrote:
quoted
diff --git a/include/linux/fortify-string.h b/include/linux/fortify-string.h
index c45159dbdaa1..5482536d3197 100644
--- a/include/linux/fortify-string.h
+++ b/include/linux/fortify-string.h
@@ -2,7 +2,9 @@
 #ifndef _LINUX_FORTIFY_STRING_H_
 #define _LINUX_FORTIFY_STRING_H_

-#define __FORTIFY_INLINE extern __always_inline __attribute__((gnu_inline))
+#include <linux/const.h>
+
+#define __FORTIFY_INLINE extern __always_inline __attribute__((gnu_inline)) __overloadable
Sorry, I just noticed this line (already) uses a mix of open coding
__attribute__ and not. Would you mind also please changing the open
coded gnu_inline to simply __gnu_inline to make the entire line
consistent?
Ah yeah, thanks. Fixed.

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