From: Mark Brown <broonie@kernel.org>
To: Will Deacon <will@kernel.org>, Catalin Marinas <catalin.marinas@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
Mark Brown <broonie@kernel.org>,
Richard Henderson <richard.henderson@linaro.org>,
linux-arm-kernel@lists.infradead.org,
Ard Biesheuvel <ard.biesheuvel@linaro.org>
Subject: [PATCH v11 0/2] ARMv8.5-RNG support
Date: Fri, 17 Jan 2020 15:26:40 +0000 [thread overview]
Message-ID: <20200117152642.4905-1-broonie@kernel.org> (raw)
This series is based on Richard Henderson's previous v7, it addresses
review comments from that version by dropping the boot time RNG
support and adds a new change that uses the v8.5-RNG extension to
seed KASLR when ARCH_RANDOM is enabled. The boot time support
will be re-added later, there are awkward potential interactons
with CPU feature enumeration which need a bit more thought.
v11:
- Add a hwcap for v8.5-RNG.
- Drop the addition of data to the pool, it's of questionable
value and we need to go back and get the addition of actual
entropy working anyway.
v10:
- Spell out that we're adding data not entropy from setup_arch() in
the commit message for patch 2.
v9:
- Make another static inline helper for early feature checks.
- Add init annotations.
- Use xor to add RNDR output to seed for KASLR.
Mark Brown (1):
arm64: Use v8.5-RNG entropy for KASLR seed
Richard Henderson (1):
arm64: Implement archrandom.h for ARMv8.5-RNG
Documentation/arm64/cpu-feature-registers.rst | 2 +
Documentation/arm64/elf_hwcaps.rst | 4 ++
arch/arm64/Kconfig | 12 ++++
arch/arm64/include/asm/archrandom.h | 67 +++++++++++++++++++
arch/arm64/include/asm/cpucaps.h | 3 +-
arch/arm64/include/asm/hwcap.h | 1 +
arch/arm64/include/asm/sysreg.h | 4 ++
arch/arm64/include/uapi/asm/hwcap.h | 1 +
arch/arm64/kernel/cpufeature.c | 14 ++++
arch/arm64/kernel/kaslr.c | 11 +++
10 files changed, 118 insertions(+), 1 deletion(-)
create mode 100644 arch/arm64/include/asm/archrandom.h
--
2.20.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2020-01-17 15:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-17 15:26 Mark Brown [this message]
2020-01-17 15:26 ` [PATCH v11 1/2] arm64: Implement archrandom.h for ARMv8.5-RNG Mark Brown
2020-01-17 15:26 ` [PATCH v11 2/2] arm64: Use v8.5-RNG entropy for KASLR seed Mark Brown
2020-01-17 16:17 ` [PATCH v11 0/2] ARMv8.5-RNG support Will Deacon
2020-01-17 16:43 ` Will Deacon
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=20200117152642.4905-1-broonie@kernel.org \
--to=broonie@kernel.org \
--cc=ard.biesheuvel@linaro.org \
--cc=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=richard.henderson@linaro.org \
--cc=will@kernel.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).