From: Nikolay.Borisov@arm.com (Nikolay Borisov)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH 0/3] Make kexec work with CONFIG_DEBUG_RODATA enabled
Date: Wed, 9 Apr 2014 17:50:35 +0100 [thread overview]
Message-ID: <1397062238-10515-1-git-send-email-Nikolay.Borisov@arm.com> (raw)
This patch makes kexec work on a kernel that has its .text section set to read
only. The main reason of doing it is because there is a patch in the making
(http://lists.infradead.org/pipermail/linux-arm-kernel/2014-April/244779.html)
which aims to make it possible to flag the kernel's code section as read-only,
rendering kexec inoperable.
The first patch does the actual functional changes while the 2nd one is
optionail and is only to be used in case you have already applied the aforementioned
CONFIG_DEBUG_RODATA patch
Patch 3 is also optional and tries to make the assembly code a bit more "sane"
by introducing a .struct to describe the parameters for the kernel relocation
stub.
Those patches have been tested on linux 3.14 on THUMB-2/non-THUMB-2 host
kernels.
Nikolay Borisov (3):
ARM: kexec: Make kexec work with read-only kernel .text section
ARM: Kconfig: remove dependence of CONFIG_DEBUG_RODATA on !kexec
ARM: kexec: Use .struct to describe relocate_new_kernel parameter
layout
arch/arm/kernel/machine_kexec.c | 54 ++++++++++++++++++++++++++++-----------
arch/arm/kernel/relocate_kernel.S | 47 +++++++++++++++++-----------------
arch/arm/mm/Kconfig | 2 +-
3 files changed, 63 insertions(+), 40 deletions(-)
--
1.8.1.5
next reply other threads:[~2014-04-09 16:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-09 16:50 Nikolay Borisov [this message]
2014-04-09 16:50 ` [RFC PATCH 1/3] ARM: kexec: Make kexec work with read-only kernel .text section Nikolay Borisov
2014-04-09 18:13 ` Kees Cook
2014-04-22 0:16 ` Kees Cook
2014-04-09 16:50 ` [RFC PATCH 2/3] ARM: Kconfig: remove dependence of CONFIG_DEBUG_RODATA on !kexec Nikolay Borisov
2014-04-09 18:14 ` Kees Cook
2014-04-09 16:50 ` [RFC PATCH 3/3] ARM: kexec: Use .struct to describe relocate_new_kernel parameter layout Nikolay Borisov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1397062238-10515-1-git-send-email-Nikolay.Borisov@arm.com \
--to=nikolay.borisov@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).