Skip to content

RISC-V: Parse DT for Zkr to seed KASLR

Jesse Taube linux-riscv lkml llvm 3 versions – Applied

Status from this message: This series was applied to riscv/linux.git (for-next)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 1 replyApplied 4/4
  2. v34 patches 6 repliesSuperseded
  3. v23 patches 7 repliesSuperseded

V1 -> V2 from the cover letter

- Add RISC-V: pi: Force hidden visibility for all symbol references
- Add RISC-V: pi: Add kernel/pi/pi.h
- Rewrite archrandom_early.c to parse DT over checking the csr

Patches in v4 All 4 applied

#Subject and filesSizeRepliesApplied
1/4RISC-V: pi: Force hidden visibility for all symbol referencesarch/riscv/kernel/pi/Makefile+1 -00 repliesApplied
2/4RISC-V: lib: Add pi aliases for string functionsarch/riscv/lib/memset.S arch/riscv/lib/strcmp.S arch/riscv/lib/strncmp.S+4 -00 repliesApplied
3/4RISC-V: pi: Add kernel/pi/pi.harch/riscv/kernel/pi/cmdline_early.c arch/riscv/kernel/pi/fdt_early.c arch/riscv/kernel/pi/pi.h+20 -140 repliesApplied
4/4RISC-V: Use Zkr to seed KASLR base addressarch/riscv/kernel/pi/Makefile arch/riscv/kernel/pi/archrandom_early.c arch/riscv/kernel/pi/fdt_early.c +2 more+199 -21 replyApplied

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchAlexandre GhitiCharlie JenkinsZong LiConor Dooley
1/4R-b
2/4R-b R-b
3/4R-b
4/4R-b R-b T-b R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/4] RISC-V: Parse DT for Zkr to seed KASLR

Add functions to pi/fdt_early.c to help parse the FDT to check if the isa string has the Zkr extension. Then use the Zkr extension to seed the KASLR base address.

The first two patches fix the visibility of symbols.

V1 -> V2:
- Add RISC-V: pi: Force hidden visibility for all symbol references
- Add RISC-V: pi: Add kernel/pi/pi.h
- Rewrite archrandom_early.c to parse DT over checking the csr
V2 -> V3:
- Add RISC-V: lib: Add pi aliases for string functions
- Rewrite isa_string_contains in third patch

Jesse Taube (4):
RISC-V: pi: Force hidden visibility for all symbol references
RISC-V: lib: Add pi aliases for string functions
RISC-V: pi: Add kernel/pi/pi.h
RISC-V: Use Zkr to seed KASLR base address

 arch/riscv/kernel/pi/Makefile           |   4 +-
 arch/riscv/kernel/pi/archrandom_early.c |  30 +++++
 arch/riscv/kernel/pi/cmdline_early.c    |  10 +-
 arch/riscv/kernel/pi/fdt_early.c        | 167 +++++++++++++++++++++++-
 arch/riscv/kernel/pi/pi.h               |  20 +++
 arch/riscv/lib/memset.S                 |   2 +
 arch/riscv/lib/strcmp.S                 |   1 +
 arch/riscv/lib/strncmp.S                |   1 +
 arch/riscv/mm/init.c                    |   5 +-
 9 files changed, 224 insertions(+), 16 deletions(-)
 create mode 100644 arch/riscv/kernel/pi/archrandom_early.c
 create mode 100644 arch/riscv/kernel/pi/pi.h
Signature · 1 line
2.45.2