Skip to content

Commit

Permalink
s390: disable postinit-readonly for now
Browse files Browse the repository at this point in the history
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>
Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Kees Cook authored and Martin Schwidefsky committed Mar 17, 2016
1 parent 59a9ed5 commit df9ceff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/s390/include/asm/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit df9ceff

Please sign in to comment.