[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210901233757.2571878-1-keescook@chromium.org>
Date: Wed, 1 Sep 2021 16:37:53 -0700
From: Kees Cook <keescook@...omium.org>
To: Josh Poimboeuf <jpoimboe@...hat.com>
Cc: Kees Cook <keescook@...omium.org>, Arnd Bergmann <arnd@...db.de>,
"Peter Zijlstra (Intel)" <peterz@...radead.org>,
Jessica Yu <jeyu@...nel.org>,
Heiko Carstens <hca@...ux.ibm.com>,
Vasily Gorbik <gor@...ux.ibm.com>,
Christian Borntraeger <borntraeger@...ibm.com>,
Alexander Egorenkov <egorenar@...ux.ibm.com>,
Sven Schnelle <svens@...ux.ibm.com>,
Ilya Leoshkevich <iii@...ux.ibm.com>,
"Steven Rostedt (VMware)" <rostedt@...dmis.org>,
Ingo Molnar <mingo@...nel.org>,
Sami Tolvanen <samitolvanen@...gle.com>,
linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
linux-s390@...r.kernel.org, linux-hardening@...r.kernel.org
Subject: [PATCH 0/4] Fix ro_after_init vs static_call
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
Powered by blists - more mailing lists