mbox series

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

Message ID 20240709173937.510084-1-jesse@rivosinc.com (mailing list archive)
Headers show
Series RISC-V: Parse DT for Zkr to seed KASLR | expand

Message

Jesse Taube July 9, 2024, 5:39 p.m. UTC
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

Comments

patchwork-bot+linux-riscv@kernel.org Aug. 14, 2024, 2:10 p.m. UTC | #1
Hello:

This series was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer@rivosinc.com>:

On Tue,  9 Jul 2024 13:39:33 -0400 you wrote:
> 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
> 
> [...]

Here is the summary with links:
  - [v4,1/4] RISC-V: pi: Force hidden visibility for all symbol references
    https://git.kernel.org/riscv/c/14c3ec67236b
  - [v4,2/4] RISC-V: lib: Add pi aliases for string functions
    https://git.kernel.org/riscv/c/d57e19fcbf3f
  - [v4,3/4] RISC-V: pi: Add kernel/pi/pi.h
    https://git.kernel.org/riscv/c/b3311827155a
  - [v4,4/4] RISC-V: Use Zkr to seed KASLR base address
    https://git.kernel.org/riscv/c/945302df3de1

You are awesome, thank you!