Skip to content

s390/vdso: getrandom() vdso implementation

Heiko Carstens linux-crypto linux-s390 lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7s390/facility: Disable compile time optimization for decompressor codearch/s390/include/asm/facility.h+4 -20 replies
2/7s390/alternatives: Remove ALT_FACILITY_EARLYarch/s390/include/asm/alternative.h arch/s390/kernel/entry.S+2 -60 replies
3/7s390/facility: Let test_facility() generate static branch if possiblearch/s390/include/asm/facility.h+29 -80 replies
4/7s390/module: Provide find_section() helperarch/s390/include/asm/module.h+14 -00 replies
5/7s390/vdso: Allow alternatives in vdso codearch/s390/kernel/vdso.c arch/s390/kernel/vdso64/vdso64.lds.S+23 -00 replies
6/7s390/vdso: Move vdso symbol handling to separate header filearch/s390/include/asm/vdso-symbols.h arch/s390/include/asm/vdso.h arch/s390/kernel/compat_signal.c +1 more+19 -140 replies
7/7s390/vdso: Wire up getrandom() vdso implementationarch/s390/Kconfig arch/s390/include/asm/fpu-insn-asm.h arch/s390/include/asm/vdso/getrandom.h +9 more+290 -915 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchSven SchnelleHarald FreudenbergerHeiko Carstens
1/7R-b
2/7
3/7
4/7
5/7
6/7
7/7R-b Co-authored-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/7] s390/vdso: getrandom() vdso implementation

Hi Jason,

quite late but finally the s390 vdso getrandom implementation which applies on top of your random git tree.

As a prerequisite this requires some changes to s390 core code to allow alternatives in vdso code. It is fine when all of this gets routed via your tree.

Please note that the first patch of this series is already in linux-next [1], but given that it is so small it seems to be the easiest to apply it also on your tree; but I'm sure somebody will complain :)

Thanks,
Heiko

[1] 0147addc4fb7 ("s390/facility: Disable compile time optimization for decompressor code")

Heiko Carstens (7):
s390/facility: Disable compile time optimization for decompressor code s390/alternatives: Remove ALT_FACILITY_EARLY s390/facility: Let test_facility() generate static branch if possible s390/module: Provide find_section() helper
s390/vdso: Allow alternatives in vdso code
s390/vdso: Move vdso symbol handling to separate header file s390/vdso: Wire up getrandom() vdso implementation

 arch/s390/Kconfig                           |   1 +
 arch/s390/include/asm/alternative.h         |   6 +-
 arch/s390/include/asm/facility.h            |  37 +++-
 arch/s390/include/asm/fpu-insn-asm.h        |  22 +++
 arch/s390/include/asm/module.h              |  14 ++
 arch/s390/include/asm/vdso-symbols.h        |  17 ++
 arch/s390/include/asm/vdso.h                |  12 --
 arch/s390/include/asm/vdso/getrandom.h      |  40 +++++
 arch/s390/include/asm/vdso/vsyscall.h       |  15 ++
 arch/s390/kernel/compat_signal.c            |   2 +-
 arch/s390/kernel/entry.S                    |   2 +-
 arch/s390/kernel/signal.c                   |   2 +-
 arch/s390/kernel/vdso.c                     |  26 ++-
 arch/s390/kernel/vdso64/Makefile            |   9 +-
 arch/s390/kernel/vdso64/vdso.h              |   1 +
 arch/s390/kernel/vdso64/vdso64.lds.S        |   7 +
 arch/s390/kernel/vdso64/vgetrandom-chacha.S | 184 ++++++++++++++++++++
 arch/s390/kernel/vdso64/vgetrandom.c        |  14 ++
 tools/arch/s390/vdso                        |   1 +
 tools/testing/selftests/vDSO/Makefile       |   2 +-
 20 files changed, 378 insertions(+), 36 deletions(-)
 create mode 100644 arch/s390/include/asm/vdso-symbols.h
 create mode 100644 arch/s390/include/asm/vdso/getrandom.h
 create mode 100644 arch/s390/kernel/vdso64/vgetrandom-chacha.S
 create mode 100644 arch/s390/kernel/vdso64/vgetrandom.c
 create mode 120000 tools/arch/s390/vdso
Signature · 1 line
2.43.0