Skip to content

random/arm64: enable RANDOM_TRUST_CPU for arm64

Mark Rutland linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4random: split primary/secondary crng init pathsdrivers/char/random.c+22 -120 replies
2/4random: add arch_get_random_*long_early()drivers/char/random.c include/linux/random.h+41 -10 replies
3/4arm64: add credited/trusted RNG supportarch/arm64/include/asm/archrandom.h+14 -00 replies
4/4random: Make RANDOM_TRUST_CPU depend on ARCH_RANDOMdrivers/char/Kconfig+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] random/arm64: enable RANDOM_TRUST_CPU for arm64

On arm64 systems some CPUs may have RNG instructions while others do not, and consequently we cannot generally enable the use of RNG instructions until all CPUs have been booted (as otherwise we'd have problems with preemption, etc). This prevents us from seeding the primary CRNG using the RNG, as this occurs before secondary CPUs are onlined.

These patches rework the core CRNG intialization code so that the arch code can (optionally) distinguish boot-time usage from runtime usage of the arch_get_random_*() functions. This allows arm64 to use the boot CPU's RNG to seed the primary CRNG, regardless of whether secondary CPUs support the RNG instructions. Other architectures should see no functional change as a result of this patches.

Thanks,
Mark.

Mark Rutland (3):
random: split primary/secondary crng init paths
random: add arch_get_random_*long_early()
arm64: add credited/trusted RNG support

Richard Henderson (1):
random: Make RANDOM_TRUST_CPU depend on ARCH_RANDOM

 arch/arm64/include/asm/archrandom.h | 14 ++++++++++
 drivers/char/Kconfig                |  2 +-
 drivers/char/random.c               | 52 ++++++++++++++++++++++++++++---------
 include/linux/random.h              | 22 ++++++++++++++++
 4 files changed, 77 insertions(+), 13 deletions(-)
Signature · 7 lines
2.11.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel