Skip to contentSkip to conversation

sparse-doesnt-support-struct-randomization.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 22, 2018

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: sparse doesn't support struct randomization
has been removed from the -mm tree. Its filename was
sparse-doesnt-support-struct-randomization.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Matthew Wilcox <[email protected]>
Subject: sparse doesn't support struct randomization

Without this patch, I drown in a sea of unknown attribute warnings

---

 include/linux/compiler-gcc.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/compiler-gcc.h renamed from include/linux/compiler-gcc.h~sparse-doesnt-support-struct-randomization +1 -1
diff -puN include/linux/compiler-gcc.h~sparse-doesnt-support-struct-randomization include/linux/compiler-gcc.h
@@ -219,7 +219,7 @@
 /* Mark a function definition as prohibited from being cloned. */
 #define __noclone	__attribute__((__noclone__, __optimize__("no-tracer")))
 
-#ifdef RANDSTRUCT_PLUGIN
+#if defined(RANDSTRUCT_PLUGIN) && !defined(__CHECKER__)
 #define __randomize_layout __attribute__((randomize_layout))
 #define __no_randomize_layout __attribute__((no_randomize_layout))
 #endif

_

Patches currently in -mm which might be from [email protected] are

mm-align-struct-page-more-aesthetically.patch mm-de-indent-struct-page.patch mm-remove-misleading-alignment-claims.patch mm-improve-comment-on-page-mapping.patch mm-introduce-_slub_counter_t.patch mm-store-compound_dtor-compound_order-as-bytes.patch mm-store-compound_dtor-compound_order-as-bytes-fix.patch mm-document-how-to-use-struct-page.patch mm-remove-reference-to-pg_buddy.patch