We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aaba39 commit 90d1f14Copy full SHA for 90d1f14
include/linux/compiler_types.h
@@ -278,6 +278,17 @@ struct ftrace_likely_data {
278
# define __no_kcsan
279
#endif
280
281
+#ifdef __SANITIZE_MEMORY__
282
+/*
283
+ * Similarly to KASAN and KCSAN, KMSAN loses function attributes of inlined
284
+ * functions, therefore disabling KMSAN checks also requires disabling inlining.
285
+ *
286
+ * __no_sanitize_or_inline effectively prevents KMSAN from reporting errors
287
+ * within the function and marks all its outputs as initialized.
288
+ */
289
+# define __no_sanitize_or_inline __no_kmsan_checks notrace __maybe_unused
290
+#endif
291
+
292
#ifndef __no_sanitize_or_inline
293
#define __no_sanitize_or_inline __always_inline
294
0 commit comments