public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] s390: disable postinit-readonly for now
@ 2016-03-10 17:31 Kees Cook
  2016-03-12 11:15 ` Heiko Carstens
  2016-03-16 19:47 ` Christian Borntraeger
  0 siblings, 2 replies; 5+ messages in thread
From: Kees Cook @ 2016-03-10 17:31 UTC (permalink / raw)
  To: Heiko Carstens
  Cc: Martin Schwidefsky, Christian Borntraeger, linux-kernel,
	linux-s390, kernel-hardening

This is a temporary fix to let lkdtm run again on s390, though it'll
still fail the ro_after_init tests. Until rodata and ro_after_init
sections can be split on s390, disable special handling of ro_after_init.

Signed-off-by: Kees Cook <keescook@chromium.org>
---
for -next ...
---
 arch/s390/include/asm/cache.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/s390/include/asm/cache.h b/arch/s390/include/asm/cache.h
index 4d7ccac5fd1d..22da3b34c655 100644
--- a/arch/s390/include/asm/cache.h
+++ b/arch/s390/include/asm/cache.h
@@ -15,4 +15,7 @@
 
 #define __read_mostly __attribute__((__section__(".data..read_mostly")))
 
+/* Read-only memory is marked before mark_rodata_ro() is called. */
+#define __ro_after_init __read_mostly
+
 #endif
-- 
2.6.3


-- 
Kees Cook
Chrome OS & Brillo Security

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-21 19:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-10 17:31 [PATCH] s390: disable postinit-readonly for now Kees Cook
2016-03-12 11:15 ` Heiko Carstens
2016-03-16 19:47 ` Christian Borntraeger
2016-03-17  8:49   ` Heiko Carstens
2016-03-21 19:33     ` Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox