[GIT PULL] RISC-V updates for v7.2-rc3

Paul Walmsley pjw at kernel.org
Sun Jul 12 10:35:34 PDT 2026


Linus,

Please pull these RISC-V updates for v7.2-rc3.  From a maintenance point 
of view, the most notable change involves the rseq kselftest common 
Makefile (as it is not RISC-V-specific).  The basic approach in the patch 
appears similar to one used in the KVM and S390 selftests (grep for 
LINUX_TOOL_ARCH_INCLUDE and SUBARCH), and the rseq kselftests pass a quick 
build test on x86 after this patch is applied.

thanks,

- Paul

The following changes since commit 8cdeaa50eae8dad34885515f62559ee83e7e8dda:

  Linux 7.2-rc2 (2026-07-05 14:44:06 -1000)

are available in the Git repository at:

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

for you to fetch changes up to 58a37e7317b06665e21609a2f867a9962e9e2919:

  selftests/riscv: ptrace: Fix memory leak of regset_data in vector tests (2026-07-10 09:32:35 -0600)

----------------------------------------------------------------
RISC-V updates for v7.2-rc3

- Avoid a null pointer deference in machine_kexec_prepare() that the
  IMA subsystem can trigger

- Bypass libc in part of the ptrace_v_not_enabled kselftest to avoid
  noise from child atfork handlers that libc might run

- Include Kconfig support for UltraRISC SoCs, already referenced by
  some device drivers; and enable it in our defconfig

- Fix the build of the rseq kselftest for RISC-V by borrowing a
  technique from the KVM and S390 kselftests that includes
  arch-specific header files from tools/arch/<arch>/include

- Fix some memory leaks in the RISC-V vector ptrace kselftests

- Clean up some DT bindings and hwprobe documentation

----------------------------------------------------------------
Andrew Jones (2):
      selftests: riscv: Bypass libc in inactive vector ptrace test
      riscv: hwprobe.rst: Make indentation consistent

Guodong Xu (2):
      dt-bindings: riscv: sort multi-letter Z extensions alphanumerically
      riscv: hwprobe.rst: Document EXT_ZICFISS and EXT_ZICFILP

Hui Wang (1):
      selftests/rseq: Fix a building error for riscv arch

Jia Wang (2):
      riscv: add UltraRISC SoC family Kconfig support
      riscv: defconfig: enable ARCH_ULTRARISC

Tao Liu (1):
      riscv: Prevent NULL pointer dereference in machine_kexec_prepare()

Wang Yan (1):
      selftests/riscv: ptrace: Fix memory leak of regset_data in vector tests

 Documentation/arch/riscv/hwprobe.rst               | 204 +++++++++++----------
 .../devicetree/bindings/riscv/extensions.yaml      | 184 +++++++++----------
 arch/riscv/Kconfig.socs                            |   6 +
 arch/riscv/configs/defconfig                       |   1 +
 arch/riscv/kernel/machine_kexec.c                  |   3 +
 .../selftests/riscv/vector/validate_v_ptrace.c     |  15 +-
 tools/testing/selftests/rseq/Makefile              |   6 +-
 7 files changed, 222 insertions(+), 197 deletions(-)

vmlinux size differences in bytes (from 8cdeaa50eae8):
  text   data   bss     dec    hex  filename                             
 +3054  +4604     .   +7658  +1dea  vmlinux.defconfig.gcc-16             
     .  +4160     .   +4160  +1040  vmlinux.nosmp_defconfig.gcc-16       
 +3154  +3316     .   +6470  +1946  vmlinux.rv32_defconfig.gcc-16        
     .    +96     .     +96    +60  vmlinux.rv32_nosmp_defconfig.gcc-16  
     .    +64     .     +64    +40  vmlinux.nommu_virt_defconfig.gcc-16  
 +2930  +4620     .   +7550  +1d7e  vmlinux.defconfig.clang-20           
     .    +64     .     +64    +40  vmlinux.nosmp_defconfig.clang-20     
 +3014  +2952     .   +5966  +174e  vmlinux.rv32_defconfig.clang-20      
     .    +64     .     +64    +40  vmlinux.rv32_nosmp_defconfig.clang-20
     .      .     .       .      .  vmlinux.nommu_virt_defconfig.clang-20
 +3086  +4604     .   +7690  +1e0a  vmlinux.defconfig.gcc-15             
     .    +96     .     +96    +60  vmlinux.nosmp_defconfig.gcc-15       
 +2674  +3284     .   +5958  +1746  vmlinux.rv32_defconfig.gcc-15        
     .    +96     .     +96    +60  vmlinux.rv32_nosmp_defconfig.gcc-15  
     .      .     .       .      .  vmlinux.nommu_virt_defconfig.gcc-15  
 +3070  +4604     .   +7674  +1dfa  vmlinux.defconfig.gcc-14             
     .    +64     .     +64    +40  vmlinux.nosmp_defconfig.gcc-14       
 +2682  +3316     .   +5998  +176e  vmlinux.rv32_defconfig.gcc-14        
     .    +64     .     +64    +40  vmlinux.rv32_nosmp_defconfig.gcc-14  
     .      .     .       .      .  vmlinux.nommu_virt_defconfig.gcc-14  
 +2962  +4588     .   +7550  +1d7e  vmlinux.defconfig.clang-19           
     .    +64     .     +64    +40  vmlinux.nosmp_defconfig.clang-19     
 +3018  +2956     .   +5974  +1756  vmlinux.rv32_defconfig.clang-19      
     .    +64     .     +64    +40  vmlinux.rv32_nosmp_defconfig.clang-19
     .    +64     .     +64    +40  vmlinux.nommu_virt_defconfig.clang-19
 +3070  +4604     .   +7674  +1dfa  vmlinux.defconfig.gcc-13             
     .    +96     .     +96    +60  vmlinux.nosmp_defconfig.gcc-13       
 +2674  +3316     .   +5990  +1766  vmlinux.rv32_defconfig.gcc-13        
     .    +64     .     +64    +40  vmlinux.rv32_nosmp_defconfig.gcc-13  
     .    +64     .     +64    +40  vmlinux.nommu_virt_defconfig.gcc-13  
 +2954  +8684     .  +11638  +2d76  vmlinux.defconfig.clang-18           
     .    +96     .     +96    +60  vmlinux.nosmp_defconfig.clang-18     
 +3074  +3500     .   +6574  +19ae  vmlinux.rv32_defconfig.clang-18      
     .    +96     .     +96    +60  vmlinux.rv32_nosmp_defconfig.clang-18
     .      .     .       .      .  vmlinux.nommu_virt_defconfig.clang-18
 +3046  +4668     .   +7714  +1e22  vmlinux.defconfig.gcc-12             
     .    +64     .     +64    +40  vmlinux.nosmp_defconfig.gcc-12       
 +3114  +3380     .   +6494  +195e  vmlinux.rv32_defconfig.gcc-12        
     .    +64     .     +64    +40  vmlinux.rv32_nosmp_defconfig.gcc-12  
     .    +64     .     +64    +40  vmlinux.nommu_virt_defconfig.gcc-12  
 +2970  +4556     .   +7526  +1d66  vmlinux.defconfig.clang-17           
     .  +4160     .   +4160  +1040  vmlinux.nosmp_defconfig.clang-17     
 +3054  +2956     .   +6010  +177a  vmlinux.rv32_defconfig.clang-17      
     .    +96     .     +96    +60  vmlinux.rv32_nosmp_defconfig.clang-17
     .    +64     .     +64    +40  vmlinux.nommu_virt_defconfig.clang-17
 +3062  +4636     .   +7698  +1e12  vmlinux.defconfig.gcc-11             
     .    +64     .     +64    +40  vmlinux.nosmp_defconfig.gcc-11       
 +3114  +3316     .   +6430  +191e  vmlinux.rv32_defconfig.gcc-11        
     .    +96     .     +96    +60  vmlinux.rv32_nosmp_defconfig.gcc-11  
     .      .     .       .      .  vmlinux.nommu_virt_defconfig.gcc-11  
     .    +32     .     +32    +20  vmlinux.allnoconfig.gcc-15           
-12848  +4460  +320   -8068  -1f84  vmlinux.allmodconfig.gcc-15          
     .      .     .       .      .  vmlinux.allnoconfig.clang-19         
-10608   +204   -64  -10468  -28e4  vmlinux.allmodconfig.clang-19        



More information about the linux-riscv mailing list