[GIT PULL] RISC-V Fixes for 6.9-rc3

Palmer Dabbelt palmer at rivosinc.com
Fri Apr 5 10:29:24 PDT 2024


The following changes since commit 4cece764965020c22cff7665b18a012006359095:

  Linux 6.9-rc1 (2024-03-24 14:10:05 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git tags/riscv-for-linus-6.9-rc3

for you to fetch changes up to d14fa1fcf69db9d070e75f1c4425211fa619dfc8:

  riscv: process: Fix kernel gp leakage (2024-04-04 12:35:05 -0700)

----------------------------------------------------------------
RISC-V Fixes for 6.9-rc3

* A fix for an __{get,put}_kernel_nofault to avoid an uninitialized
  value causing spurious failures.
* compat_vdso.so.dbg is now installed to the standard install location.
* A fix to avoid initializing PERF_SAMPLE_BRANCH_*-related events, as
  they aren't supported and will just later fail.
* A fix to make AT_VECTOR_SIZE_ARCH correct now that we're providing
  AT_MINSIGSTKSZ.
* pgprot_nx() is now implemented, which fixes vmap W^X protection.
* A fix for the vector save/restore code, which at least manifests as
  corrupted vector state when a signal is taken.
* A fix for a race condition in instruction patching.
* A fix to avoid leaking the kernel-mode GP to userspace, which is a
  kernel pointer leak that can be used to defeat KASLR in various ways.
* A handful of smaller fixes to build warnings, an overzealous printk,
  and some missing tracing annotations.

----------------------------------------------------------------
Alexandre Ghiti (2):
      riscv: Fix warning by declaring arch_cpu_idle() as noinstr
      riscv: Disable preemption when using patch_map()

Andreas Schwab (1):
      riscv: use KERN_INFO in do_trap

Björn Töpel (1):
      riscv: Fix vector state restore in rt_sigreturn()

Jisheng Zhang (1):
      riscv: mm: implement pgprot_nx

Masahiro Yamada (2):
      riscv: compat_vdso: install compat_vdso.so.dbg to /lib/modules/*/vdso/
      riscv: compat_vdso: align VDSOAS build log

Pu Lehui (1):
      drivers/perf: riscv: Disable PERF_SAMPLE_BRANCH_* while not supported

Sami Tolvanen (1):
      riscv: Mark __se_sys_* functions __used

Samuel Holland (2):
      riscv: mm: Fix prototype to avoid discarding const
      riscv: Fix spurious errors from __get/put_kernel_nofault

Stefan O'Rear (1):
      riscv: process: Fix kernel gp leakage

Victor Isaev (1):
      RISC-V: Update AT_VECTOR_SIZE_ARCH for new AT_MINSIGSTKSZ

Vladimir Isaev (1):
      riscv: hwprobe: do not produce frtace relocation

 arch/riscv/Makefile                      |  2 +-
 arch/riscv/include/asm/pgtable.h         |  6 ++++++
 arch/riscv/include/asm/syscall_wrapper.h |  3 ++-
 arch/riscv/include/asm/uaccess.h         |  4 ++--
 arch/riscv/include/uapi/asm/auxvec.h     |  2 +-
 arch/riscv/kernel/compat_vdso/Makefile   |  2 +-
 arch/riscv/kernel/patch.c                |  8 ++++++++
 arch/riscv/kernel/process.c              |  5 +----
 arch/riscv/kernel/signal.c               | 15 ++++++++-------
 arch/riscv/kernel/traps.c                |  2 +-
 arch/riscv/kernel/vdso/Makefile          |  1 +
 arch/riscv/mm/tlbflush.c                 |  4 ++--
 drivers/perf/riscv_pmu.c                 |  4 ++++
 13 files changed, 38 insertions(+), 20 deletions(-)



More information about the linux-riscv mailing list