From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, alex.bennee@linaro.org, laurent@vivier.eu
Subject: [PATCH v9 0/5] linux-user: User support for AArch64 BTI
Date: Wed, 20 May 2020 10:27:55 -0700 [thread overview]
Message-ID: <20200520172800.8499-1-richard.henderson@linaro.org> (raw)
The kernel ABI for this is (finally) close to being merged:
https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git/log/?h=for-next/bti-user
I've made a couple of tweaks from v8:
(1) Only map the interpreter or a static executable with BTI.
The interpreter is responsible for handling the pages of
a dynamic executable. This is a behaviour change in the
kernel ABI since the last time I audited the code.
(2) Rely on the recently released gcc 10 for building the test case.
Thanks to Alex for helping me get a docker setup for that.
Based-on: <20200519185645.3915-1-richard.henderson@linaro.org>
("linux-user: mmap/mprotect prot values")
Based-on: An unpublished version of stsquad's testing/next
So for avoidance of doubt, the complete tree may be found at
https://github.com/rth7680/qemu/tree/tgt-arm-bti
r~
Richard Henderson (5):
linux-user/aarch64: Reset btype for signals
linux-user: Set PAGE_TARGET_1 for TARGET_PROT_BTI
include/elf: Add defines related to GNU property notes for AArch64
linux-user: Parse NT_GNU_PROPERTY_TYPE_0 notes
tests/tcg/aarch64: Add bti smoke test
include/elf.h | 22 +++++
include/exec/cpu-all.h | 2 +
linux-user/qemu.h | 4 +
linux-user/syscall_defs.h | 4 +
linux-user/aarch64/signal.c | 10 ++-
linux-user/elfload.c | 143 ++++++++++++++++++++++--------
linux-user/mmap.c | 16 ++++
target/arm/translate-a64.c | 6 +-
tests/tcg/aarch64/bti-1.c | 62 +++++++++++++
tests/tcg/aarch64/bti-crt.inc.c | 51 +++++++++++
tests/tcg/aarch64/Makefile.target | 7 ++
tests/tcg/configure.sh | 4 +
12 files changed, 291 insertions(+), 40 deletions(-)
create mode 100644 tests/tcg/aarch64/bti-1.c
create mode 100644 tests/tcg/aarch64/bti-crt.inc.c
--
2.20.1
next reply other threads:[~2020-05-20 17:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-20 17:27 Richard Henderson [this message]
2020-05-20 17:27 ` [PATCH v9 1/5] linux-user/aarch64: Reset btype for signals Richard Henderson
2020-07-06 11:02 ` Peter Maydell
2020-05-20 17:27 ` [PATCH v9 2/5] linux-user: Set PAGE_TARGET_1 for TARGET_PROT_BTI Richard Henderson
2020-07-06 11:09 ` Peter Maydell
2020-05-20 17:27 ` [PATCH v9 3/5] include/elf: Add defines related to GNU property notes for AArch64 Richard Henderson
2020-05-20 17:27 ` [PATCH v9 4/5] linux-user: Parse NT_GNU_PROPERTY_TYPE_0 notes Richard Henderson
2020-07-06 11:26 ` Peter Maydell
2020-05-20 17:28 ` [PATCH v9 5/5] tests/tcg/aarch64: Add bti smoke test Richard Henderson
2020-07-06 11:15 ` Peter Maydell
2020-06-27 18:39 ` [PATCH v9 0/5] linux-user: User support for AArch64 BTI Richard Henderson
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=20200520172800.8499-1-richard.henderson@linaro.org \
--to=richard.henderson@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=laurent@vivier.eu \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.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).