Skip to content

riscv: Increase mmap_rnd_bits_max on Sv48/57

Sami Tolvanen linux-mm linux-riscv lkml llvm 1 version 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

  1. v1 Latest2 patches 11 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm: Change mmap_rnd_bits_max to __ro_after_initinclude/linux/mm.h mm/mmap.c+2 -21 replyApplied
2/2riscv: mm: Update mmap_rnd_bits_maxarch/riscv/mm/init.c+6 -07 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKees CookPalmer Dabbelt
SeriesR-b A-b
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] riscv: Increase mmap_rnd_bits_max on Sv48/57

Hi all,

We noticed that 64-bit RISC-V kernels limit mmap_rnd_bits to 24 even if the hardware supports a larger virtual address space size [1]. These two patches allow mmap_rnd_bits_max to be changed during init, and bumps up the maximum randomness if we end up setting up 4/5-level paging at boot.

Sami

[1] https://github.com/google/android-riscv64/issues/1

Sami Tolvanen (2):
mm: Change mmap_rnd_bits_max to __ro_after_init
riscv: mm: Update mmap_rnd_bits_max

 arch/riscv/mm/init.c | 6 ++++++
 include/linux/mm.h   | 2 +-
 mm/mmap.c            | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

base-commit: 6465e260f48790807eef06b583b38ca9789b6072

Signature · 1 line
2.42.0.582.g8ccd20d70d-goog