[GIT PULL] RISC-V updates for v7.1-rc8

Paul Walmsley pjw at kernel.org
Wed Jun 10 06:54:04 PDT 2026


Linus,

Please pull these fixes for late v7.1-rc.  The most important fix
is for a performance regression in the RISC-V-specific 
implementation of the checksumming code, related
to when RISC-V systems probe unaligned access performance during boot.  
There is another fix to return -EinVaL when invalid flags are
passed to the CFI landing pad control prctl(); no existing software should 
rely on the previously-incorrect behavior.  Finally there is a fix for a 
warning when dumping core, also CFI-related.   

thanks,

- Paul


The following changes since commit 5200f5f493f79f14bbdc349e402a40dfb32f23c8:

  Linux 7.1-rc4 (2026-05-17 13:59:58 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux tags/riscv-for-linux-7.1-rc8

for you to fetch changes up to 15b4155138505669d3d43d7692459ee8ea2a86e7:

  riscv: cfi: reject unknown flags in PR_SET_CFI (2026-06-06 20:17:05 -0600)

----------------------------------------------------------------
RISC-V updates for v7.1-rc8

- Fix the implementation of the CFI branch landing pad control
  prctl()s to return -EINVAL if unknown control bits are set, rather
  than silently ignoring the request; and add a kselftest for this
  case

- Fix unaligned access performance testing to happen earlier in boot,
  which fixes a performance regression in the lib/checksum code

- Fix a binfmt_elf warning when dumping core (due to missing
  .core_note_name for CFI registers)

----------------------------------------------------------------
Andreas Schwab (1):
      riscv/ptrace: Use USER_REGSET_NOTE_TYPE for REGSET_CFI

Nam Cao (1):
      riscv: Fix fast_unaligned_access_speed_key not getting initialized

Richard Patel (1):
      riscv: cfi: reject unknown flags in PR_SET_CFI

 arch/riscv/include/asm/usercfi.h             |  1 +
 arch/riscv/kernel/ptrace.c                   |  2 +-
 arch/riscv/kernel/unaligned_access_speed.c   | 15 ++++-----------
 arch/riscv/kernel/usercfi.c                  |  3 +++
 tools/testing/selftests/riscv/cfi/cfitests.c |  6 ++++++
 5 files changed, 15 insertions(+), 12 deletions(-)

vmlinux size differences in bytes (from 5200f5f493f7):
text  data  bss   dec  hex  filename                             
 -12  +120    .  +108  +6c  vmlinux.defconfig.gcc-15             
  -8   +88    .   +80  +50  vmlinux.nosmp_defconfig.gcc-15       
 -20   +64    .   +44  +2c  vmlinux.rv32_defconfig.gcc-15        
 -20   +32    .   +12   +c  vmlinux.rv32_nosmp_defconfig.gcc-15  
 -40   +56    .   +16  +10  vmlinux.nommu_virt_defconfig.gcc-15  
 -20   +24    .    +4   +4  vmlinux.defconfig.clang-20           
  -8   +24    .   +16  +10  vmlinux.nosmp_defconfig.clang-20     
 -36   +64    .   +28  +1c  vmlinux.rv32_defconfig.clang-20      
  -8   +32    .   +24  +18  vmlinux.rv32_nosmp_defconfig.clang-20
 -28    -8    .   -36  -24  vmlinux.nommu_virt_defconfig.clang-20
 -28   +56    .   +28  +1c  vmlinux.defconfig.clang-17           
 -20   +88    .   +68  +44  vmlinux.nosmp_defconfig.clang-17     
 -24  +128    .  +104  +68  vmlinux.rv32_defconfig.clang-17      
 -20  +128    .  +108  +6c  vmlinux.rv32_nosmp_defconfig.clang-17
 -36   +56    .   +20  +14  vmlinux.nommu_virt_defconfig.clang-17
 -16   +56    .   +40  +28  vmlinux.defconfig.gcc-11             
 -24   +56    .   +32  +20  vmlinux.nosmp_defconfig.gcc-11       
 -20   +64    .   +44  +2c  vmlinux.rv32_defconfig.gcc-11        
 -24   +96    .   +72  +48  vmlinux.rv32_nosmp_defconfig.gcc-11  
 -44  +248    .  +204  +cc  vmlinux.nommu_virt_defconfig.gcc-11  



More information about the linux-riscv mailing list