linux-hardening.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Fix ro_after_init vs static_call
@ 2021-09-01 23:37 Kees Cook
  2021-09-01 23:37 ` [PATCH 1/4] vmlinux.lds.h: Use regular *RODATA and *RO_AFTER_INIT_DATA suffixes Kees Cook
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Kees Cook @ 2021-09-01 23:37 UTC (permalink / raw)
  To: Josh Poimboeuf
  Cc: Kees Cook, Arnd Bergmann, Peter Zijlstra (Intel),
	Jessica Yu, Heiko Carstens, Vasily Gorbik, Christian Borntraeger,
	Alexander Egorenkov, Sven Schnelle, Ilya Leoshkevich,
	Steven Rostedt (VMware),
	Ingo Molnar, Sami Tolvanen, linux-kernel, linux-arch, linux-s390,
	linux-hardening

Hi,

It seems the .static_call_sites section was not being marked as
ro-after-init in modules. Adjust the macro names, add comments, refactor
the module section list, and fix .static_call_sites.

Thanks!

-Kees

Kees Cook (4):
  vmlinux.lds.h: Use regular *RODATA and *RO_AFTER_INIT_DATA suffixes
  vmlinux.lds.h: Split .static_call_sites from .static_call_tramp_key
  module: Use a list of strings for ro_after_init sections
  module: Include .static_call_sites in module ro_after_init

 arch/s390/kernel/vmlinux.lds.S    |  2 +-
 include/asm-generic/vmlinux.lds.h | 22 +++++++++++++++-------
 kernel/module.c                   | 29 +++++++++++++++++------------
 3 files changed, 33 insertions(+), 20 deletions(-)

-- 
2.30.2


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

end of thread, other threads:[~2021-09-04 14:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-01 23:37 [PATCH 0/4] Fix ro_after_init vs static_call Kees Cook
2021-09-01 23:37 ` [PATCH 1/4] vmlinux.lds.h: Use regular *RODATA and *RO_AFTER_INIT_DATA suffixes Kees Cook
2021-09-03  5:55   ` Josh Poimboeuf
2021-09-03  8:17   ` Heiko Carstens
2021-09-01 23:37 ` [PATCH 2/4] vmlinux.lds.h: Split .static_call_sites from .static_call_tramp_key Kees Cook
2021-09-03  5:55   ` Josh Poimboeuf
2021-09-01 23:37 ` [PATCH 3/4] module: Use a list of strings for ro_after_init sections Kees Cook
2021-09-03  6:49   ` Josh Poimboeuf
2021-09-03 16:38     ` Kees Cook
2021-09-04  4:09       ` Josh Poimboeuf
2021-09-04 14:40         ` Kees Cook
2021-09-01 23:37 ` [PATCH 4/4] module: Include .static_call_sites in module ro_after_init Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).