From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: konrad@kernel.org, xen-devel@lists.xenproject.org,
ross.lagerwall@citrix.com, sstabellini@kernel.org,
julien.grall@arm.com
Subject: [PATCH v5] Livepatch for ARM 64 and 32.
Date: Wed, 21 Sep 2016 13:32:18 -0400 [thread overview]
Message-ID: <1474479154-20991-1-git-send-email-konrad.wilk@oracle.com> (raw)
Hey!
Since v4:[https://lists.xen.org/archives/html/xen-devel/2016-09/msg01734.html]
- Added Acks/Reviewed-by
- Reworked "arm: poison initmem when it is freed." and
"xen/arm32: Add an helper to invalidate all instruction caches"
- Moved "livepatch: x86, ARM, alternative: Expose FEATURE_LIVEPATCH" to
be in front of "livepatch: tests: Make them compile under ARM64"
- Fixed up code as suggested by reviewers.
v3: [https://lists.xen.org/archives/html/xen-devel/2016-09/msg01127.html]
- Addressed Jan's comment (most are renaming)
- Addressed Julien's and Jan's idea of HAS_ALTERNATIVE
- Addressed Julien's review comments of "arm: poison initmem when it is freed."
v2: [http://www.gossamer-threads.com/lists/xen/devel/444461?page=last]
- Addressed the two outstanding concerns: CPU bit feature to test alternative
test-case, and errata #843419 on some Cortex-A53
- Dealt with comments from Jan, Julien and Andrew.
- Fixed (offlist) with Julien ARM32 not branching properly.
- Committed some of the patches that had been reviewed/Acked.
v1 (and RFC):
[https://lists.xen.org/archives/html/xen-devel/2016-08/msg01835.html]
- Acted on most all comments.
- Added ARM 32 support.
The patches are based on: [PATCH v7] Livepatch fixes and features for v4.8.
https://lists.xen.org/archives/html/xen-devel/2016-09/msg02305.html
And the git tree is:
git://xenbits.xen.org/people/konradwilk/xen.git livepatch.v4.8.v7
These patches enable livepatching to work on ARM64 and ARM32. They have
been tested on multi-CPU environments (Foundation Model, 4CPU for ARM64;
and ARM CubieTruck for ARM32).
The state of the patches is as follow:
Legend:
r - Reviewed
a - Acked
arm64: s/ALTERNATIVE/HAS_ALTERNATIVE/
a arm/x86/common: Add HAS_[ALTERNATIVE|EX_TABLE]
r livepatch: Reject payloads with .alternative or .ex_table if support is not built-in.
arm: poison initmem when it is freed.
a livepatch: Initial ARM64 support.
livepatch: ARM/x86: Check displacement of old_addr and new_addr
r livepatch: ARM 32|64: Ignore mapping symbols: $[d,a,x]
livepatch/arm/x86: Check payload for for unwelcomed symbols.
a livepatch: Move test-cases to their own sub-directory in test.
livepatch: x86, ARM, alternative: Expose FEATURE_LIVEPATCH
livepatch: tests: Make them compile under ARM64
xen/arm32: Add an helper to invalidate all instruction caches
ar bug/x86/arm: Align bug_frames sections.
a livepatch: Initial ARM32 support.
a livepatch, arm[32|64]: Share arch_livepatch_revert
livepatch: arm[32,64],x86: NOP test-case
Please review!
Konrad Rzeszutek Wilk (16):
arm64: s/ALTERNATIVE/HAS_ALTERNATIVE/
arm/x86/common: Add HAS_[ALTERNATIVE|EX_TABLE]
livepatch: Reject payloads with .alternative or .ex_table if support is not built-in.
arm: poison initmem when it is freed.
livepatch: Initial ARM64 support.
livepatch: ARM/x86: Check displacement of old_addr and new_addr
livepatch: ARM 32|64: Ignore mapping symbols: $[d,a,x]
livepatch/arm/x86: Check payload for for unwelcomed symbols.
livepatch: Move test-cases to their own sub-directory in test.
livepatch: x86, ARM, alternative: Expose FEATURE_LIVEPATCH
livepatch: tests: Make them compile under ARM64
xen/arm32: Add an helper to invalidate all instruction caches
bug/x86/arm: Align bug_frames sections.
livepatch: Initial ARM32 support.
livepatch, arm[32|64]: Share arch_livepatch_revert
livepatch: arm[32,64],x86: NOP test-case
.gitignore | 8 +-
MAINTAINERS | 2 +
docs/misc/livepatch.markdown | 17 +-
xen/Makefile | 5 +-
xen/arch/arm/Kconfig | 7 +-
xen/arch/arm/Makefile | 18 +-
xen/arch/arm/arm32/Makefile | 1 +
xen/arch/arm/arm32/livepatch.c | 298 +++++++++++++++++
xen/arch/arm/arm64/Makefile | 1 +
xen/arch/arm/arm64/livepatch.c | 481 ++++++++++++++++++++++++++++
xen/arch/arm/domain.c | 6 +
xen/arch/arm/livepatch.c | 159 +++++++--
xen/arch/arm/mm.c | 15 +-
xen/arch/arm/traps.c | 6 +
xen/arch/arm/xen.lds.S | 8 +-
xen/arch/x86/Kconfig | 2 +
xen/arch/x86/Makefile | 5 -
xen/arch/x86/livepatch.c | 14 +
xen/arch/x86/test/Makefile | 85 -----
xen/arch/x86/test/xen_bye_world.c | 34 --
xen/arch/x86/test/xen_bye_world_func.c | 22 --
xen/arch/x86/test/xen_hello_world.c | 67 ----
xen/arch/x86/test/xen_hello_world_func.c | 39 ---
xen/arch/x86/test/xen_replace_world.c | 33 --
xen/arch/x86/test/xen_replace_world_func.c | 22 --
xen/arch/x86/xen.lds.S | 1 -
xen/common/Kconfig | 8 +-
xen/common/livepatch.c | 20 +-
xen/common/livepatch_elf.c | 7 +
xen/include/asm-arm/alternative.h | 4 +-
xen/include/asm-arm/arm32/page.h | 16 +
xen/include/asm-arm/bug.h | 1 +
xen/include/asm-arm/config.h | 5 +
xen/include/asm-arm/cpuerrata.h | 4 +-
xen/include/asm-arm/cpufeature.h | 3 +-
xen/include/asm-arm/livepatch.h | 39 +++
xen/include/asm-x86/bug.h | 1 +
xen/include/asm-x86/livepatch.h | 4 +
xen/include/xen/elfstructs.h | 79 ++++-
xen/include/xen/livepatch.h | 21 +-
xen/include/xen/types.h | 9 +
xen/test/Makefile | 7 +
xen/test/livepatch/Makefile | 109 +++++++
xen/test/livepatch/xen_bye_world.c | 34 ++
xen/test/livepatch/xen_bye_world_func.c | 22 ++
xen/test/livepatch/xen_hello_world.c | 67 ++++
xen/test/livepatch/xen_hello_world_func.c | 47 +++
xen/test/livepatch/xen_nop.c | 49 +++
xen/test/livepatch/xen_replace_world.c | 33 ++
xen/test/livepatch/xen_replace_world_func.c | 22 ++
50 files changed, 1610 insertions(+), 357 deletions(-)
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next reply other threads:[~2016-09-21 17:32 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-21 17:32 Konrad Rzeszutek Wilk [this message]
2016-09-21 17:32 ` [PATCH v5 01/16] arm64: s/ALTERNATIVE/HAS_ALTERNATIVE/ Konrad Rzeszutek Wilk
2016-09-22 12:21 ` Julien Grall
2016-09-21 17:32 ` [PATCH v5 02/16] arm/x86/common: Add HAS_[ALTERNATIVE|EX_TABLE] Konrad Rzeszutek Wilk
2016-09-22 12:23 ` Julien Grall
2016-09-22 15:30 ` Ross Lagerwall
2016-09-21 17:32 ` [PATCH v5 03/16] livepatch: Reject payloads with .alternative or .ex_table if support is not built-in Konrad Rzeszutek Wilk
2016-09-23 12:47 ` Ross Lagerwall
2016-09-21 17:32 ` [PATCH v5 04/16] arm: poison initmem when it is freed Konrad Rzeszutek Wilk
2016-09-22 12:28 ` Julien Grall
2016-09-21 17:32 ` [PATCH v5 05/16] livepatch: Initial ARM64 support Konrad Rzeszutek Wilk
2016-09-22 12:49 ` Julien Grall
2016-09-23 13:38 ` Ross Lagerwall
2016-09-23 15:44 ` Konrad Rzeszutek Wilk
2016-09-27 16:42 ` Julien Grall
2016-09-21 17:32 ` [PATCH v5 06/16] livepatch: ARM/x86: Check displacement of old_addr and new_addr Konrad Rzeszutek Wilk
2016-09-22 12:55 ` Julien Grall
2016-09-23 14:36 ` Ross Lagerwall
2016-09-23 15:37 ` Konrad Rzeszutek Wilk
2016-09-23 15:59 ` Konrad Rzeszutek Wilk
2016-09-28 10:21 ` Ross Lagerwall
2016-09-21 17:32 ` [PATCH v5 07/16] livepatch: ARM 32|64: Ignore mapping symbols: $[d, a, x] Konrad Rzeszutek Wilk
2016-09-22 12:56 ` Julien Grall
2016-09-23 14:44 ` Ross Lagerwall
2016-09-23 16:13 ` Konrad Rzeszutek Wilk
2016-09-21 17:32 ` [PATCH v5 08/16] livepatch/arm/x86: Check payload for for unwelcomed symbols Konrad Rzeszutek Wilk
2016-09-22 13:00 ` Julien Grall
2016-09-23 1:29 ` Konrad Rzeszutek Wilk
2016-09-27 8:49 ` Ross Lagerwall
2016-09-23 14:49 ` Ross Lagerwall
2016-09-23 16:15 ` Konrad Rzeszutek Wilk
2016-09-21 17:32 ` [PATCH v5 09/16] livepatch: Move test-cases to their own sub-directory in test Konrad Rzeszutek Wilk
2016-09-22 13:01 ` Julien Grall
2016-09-23 14:51 ` Ross Lagerwall
2016-09-21 17:32 ` [PATCH v5 10/16] livepatch: x86, ARM, alternative: Expose FEATURE_LIVEPATCH Konrad Rzeszutek Wilk
2016-09-22 13:03 ` Julien Grall
2016-09-27 9:49 ` Ross Lagerwall
2016-09-21 17:32 ` [PATCH v5 11/16] livepatch: tests: Make them compile under ARM64 Konrad Rzeszutek Wilk
2016-09-22 13:10 ` Julien Grall
2016-09-22 19:26 ` Konrad Rzeszutek Wilk
2016-09-23 1:33 ` Konrad Rzeszutek Wilk
2016-09-23 9:50 ` Julien Grall
2016-09-27 9:49 ` Ross Lagerwall
2016-09-21 17:32 ` [PATCH v5 12/16] xen/arm32: Add an helper to invalidate all instruction caches Konrad Rzeszutek Wilk
2016-09-22 13:17 ` Julien Grall
2016-09-21 17:32 ` [PATCH v5 13/16] bug/x86/arm: Align bug_frames sections Konrad Rzeszutek Wilk
2016-09-21 17:32 ` [PATCH v5 14/16] livepatch: Initial ARM32 support Konrad Rzeszutek Wilk
2016-09-27 16:39 ` Julien Grall
2016-09-27 17:50 ` Konrad Rzeszutek Wilk
2016-09-27 23:13 ` Julien Grall
2016-09-21 17:32 ` [PATCH v5 15/16] livepatch, arm[32|64]: Share arch_livepatch_revert Konrad Rzeszutek Wilk
2016-09-23 14:59 ` Ross Lagerwall
2016-09-23 16:15 ` Konrad Rzeszutek Wilk
2016-09-21 17:32 ` [PATCH v5 16/16] livepatch: arm[32, 64], x86: NOP test-case Konrad Rzeszutek Wilk
2016-09-22 13:23 ` Julien Grall
2016-09-23 1:35 ` Konrad Rzeszutek Wilk
2016-09-23 9:53 ` Julien Grall
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=1474479154-20991-1-git-send-email-konrad.wilk@oracle.com \
--to=konrad.wilk@oracle.com \
--cc=julien.grall@arm.com \
--cc=konrad@kernel.org \
--cc=ross.lagerwall@citrix.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.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).