Linux-RISC-V Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL] RISC-V updates for v7.3-rc7
@ 2026-10-11  6:05 Paul Walmsley
  2026-10-11 18:18 ` pr-tracker-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Walmsley @ 2026-10-11  6:05 UTC (permalink / raw)
  To: torvalds, linux-riscv

Linus,

Please pull these RISC-V updates for v7.3-rc7.  There are several security 
fixes, a significant strnlen() regression fix, and several other 
miscellaneous fixes.  My intention was to send these earlier, but LPC got 
in the way.


thanks,

- Paul


The following changes since commit a90ee4305c4a5df72c11b31dacfdc76e00fcf78a:

  Linux 7.3-rc6 (2026-10-04 13:45:25 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux tags/riscv-for-linus-7.3-rc7

for you to fetch changes up to d4f25b097e46d82718bb737d4540c99b7ab0a408:

  riscv: fix load_unaligned_zeropad() fixup for RV32 (2026-10-07 20:25:09 -0600)

----------------------------------------------------------------
RISC-V updates for v7.3-rc7

- Fix a regression in the Zbb-enabled strnlen() implementation when
  huge counts are specified

- When userspace pointer masking is enabled, strip the tag from
  user-specified pointers in two spots in the RISC-V futex code where
  this was missing

- When CONFIG_SHADOW_CALL_STACK=y, use a supervisor mode-only CSR bit
  to determine whether the trap came from userspace or not, rather
  than a userspace-writable register

- Reset the HSTATUS.HU bit during CPU initialization to avoid
  unexpected behavior, as the RISC-V specification does not require
  this bit to be hardware-reset

- Fix the T-Head GhostWrite probing code when !CONFIG_ERRATA_THEAD_MAE

- Fix RV32 boots using 32-bit.config by constraining NR_CPUS

- Implement a workaround for SiFive MAL-9092, which requires fences
  around hypervisor load/store instructions

- Fix the RISC-V patch_map() code to work properly for EXECMEM
  addresses when !CONFIG_STRICT_MODULE_RWX

- Fix ptrace register set access reporting when CFI landing pad or
  shadow stack support is enabled

- Avoid copying garbage into the target's vstate when PTRACE_SETREGSET
  is called with a short iov_len

- Fix load_unaligned_zeropad() on RV32 kernels with
  CONFIG_RISCV_EFFICIENT_UNALIGNED_ACCESS=y

- Fix build breakage for any userspace program that includes
  uapi/asm/vendor/mips.h

- Fix a build warning for 32-bit allmodconfig builds related to SiFive
  errata

- Fix misspecified inline assembly constraints in the vector context
  save/restore code

----------------------------------------------------------------
Arnd Bergmann (1):
      riscv: limit sifive errata to CONFIG_64BIT

Aurelien Jarno (1):
      riscv: vector: Fix output operands in context save

Chen Pei (1):
      riscv: ptrace: reject CFI regset access when extensions are absent

Karl Mehltretter (1):
      riscv: fix load_unaligned_zeropad() fixup for RV32

Leo Yu-Chi Liang (1):
      riscv: fix NR_CPUS range leaking 64-bit default onto 32-bit builds

Shao Mingyin (1):
      riscv: lib: Fix ZBB strnlen wrap-around regression on huge counts

Troy Mitchell (1):
      riscv: vector: Fix data pointer constraints in context save/restore

Wei-Jie Hung (1):
      riscv: patch: fix handling of bpf-jit execmem addresses

Yong-Xuan Wang (2):
      RISC-V: errata: Add SiFive MAL-9092 workaround
      RISC-V: Clear HSTATUS.HU on CPU initialization

Ziyi Guo (2):
      riscv: futex: untag the user pointer before the atomic access
      riscv: entry: gate shadow call stack reload on sstatus.SPP, not tp

Zongmin Zhou (3):
      riscv: hwprobe: use _BITULL() rather than BIT() in MIPS vendor uapi header
      riscv: errata: select RISCV_ALTERNATIVE_EARLY for THEAD GHOSTWRITE
      riscv: ptrace: Zero-initialize regset buffers before copyin

 arch/riscv/Kconfig                           |  5 +++--
 arch/riscv/Kconfig.errata                    | 17 ++++++++++++++++-
 arch/riscv/Kconfig.socs                      |  1 +
 arch/riscv/errata/sifive/errata.c            | 20 ++++++++++++++++++++
 arch/riscv/include/asm/cpufeature.h          |  2 ++
 arch/riscv/include/asm/errata_list_vendors.h |  3 ++-
 arch/riscv/include/asm/futex.h               |  2 ++
 arch/riscv/include/asm/insn-def.h            | 16 +++++++++++++---
 arch/riscv/include/asm/scs.h                 | 17 +++++++++++++----
 arch/riscv/include/asm/vector.h              |  8 ++++----
 arch/riscv/include/uapi/asm/vendor/mips.h    |  4 +++-
 arch/riscv/kernel/cpufeature.c               | 12 ++++++++++++
 arch/riscv/kernel/entry.S                    |  2 +-
 arch/riscv/kernel/patch.c                    |  2 +-
 arch/riscv/kernel/ptrace.c                   |  8 ++++++++
 arch/riscv/kernel/setup.c                    |  2 ++
 arch/riscv/kernel/smpboot.c                  |  2 ++
 arch/riscv/kernel/suspend.c                  |  2 ++
 arch/riscv/lib/strnlen.S                     | 20 ++++++++++++++++++--
 arch/riscv/mm/extable.c                      |  4 ++--
 20 files changed, 127 insertions(+), 22 deletions(-)

vmlinux size differences in bytes (from a90ee4305c4a):
  text    data     bss     dec    hex  filename                             
  +424    +128       .    +552   +228  vmlinux.defconfig.gcc-16             
  +408    +128       .    +536   +218  vmlinux.nosmp_defconfig.gcc-16       
 -9710  -15080  -32720  -57510  -e0a6  vmlinux.rv32_defconfig.gcc-16        
 -4342   -4728       .   -9070  -236e  vmlinux.rv32_nosmp_defconfig.gcc-16  
  +315       .       .    +315   +13b  vmlinux.nommu_virt_defconfig.gcc-16  
  +216    +128       .    +344   +158  vmlinux.defconfig.clang-20           
  +180    +128       .    +308   +134  vmlinux.nosmp_defconfig.clang-20     
 -9366  -14936  -32848  -57150  -df3e  vmlinux.rv32_defconfig.clang-20      
 -4418   -5000       .   -9418  -24ca  vmlinux.rv32_nosmp_defconfig.clang-20
  +367     +64       .    +431   +1af  vmlinux.nommu_virt_defconfig.clang-20
  +404    +128       .    +532   +214  vmlinux.defconfig.gcc-15             
  +400    +128       .    +528   +210  vmlinux.nosmp_defconfig.gcc-15       
 -9626  -15080  -32720  -57426  -e052  vmlinux.rv32_defconfig.gcc-15        
 -4846   -4696       .   -9542  -2546  vmlinux.rv32_nosmp_defconfig.gcc-15  
  +291       .       .    +291   +123  vmlinux.nommu_virt_defconfig.gcc-15  
  +324    +128       .    +452   +1c4  vmlinux.defconfig.gcc-14             
  +332    +128       .    +460   +1cc  vmlinux.nosmp_defconfig.gcc-14       
 -9654  -15144  -32720  -57518  -e0ae  vmlinux.rv32_defconfig.gcc-14        
 -4370   -4696       .   -9066  -236a  vmlinux.rv32_nosmp_defconfig.gcc-14  
  +335     +64       .    +399   +18f  vmlinux.nommu_virt_defconfig.gcc-14  
  +212    +128       .    +340   +154  vmlinux.defconfig.clang-19           
  +176    +128       .    +304   +130  vmlinux.nosmp_defconfig.clang-19     
 -9182  -14936  -32784  -56902  -de46  vmlinux.rv32_defconfig.clang-19      
 -4410   -4488       .   -8898  -22c2  vmlinux.rv32_nosmp_defconfig.clang-19
  +367     +64       .    +431   +1af  vmlinux.nommu_virt_defconfig.clang-19
  +292    +128       .    +420   +1a4  vmlinux.defconfig.gcc-13             
  +304   +4256       .   +4560  +11d0  vmlinux.nosmp_defconfig.gcc-13       
 -9590  -15080  -32720  -57390  -e02e  vmlinux.rv32_defconfig.gcc-13        
 -4314   -4728       .   -9042  -2352  vmlinux.rv32_nosmp_defconfig.gcc-13  
  +239     +64       .    +303   +12f  vmlinux.nommu_virt_defconfig.gcc-13  
  +216    +128       .    +344   +158  vmlinux.defconfig.clang-18           
  +204    +128       .    +332   +14c  vmlinux.nosmp_defconfig.clang-18     
 -9074  -14936  -32784  -56794  -ddda  vmlinux.rv32_defconfig.clang-18      
 -4402   -4488       .   -8890  -22ba  vmlinux.rv32_nosmp_defconfig.clang-18
  +343       .       .    +343   +157  vmlinux.nommu_virt_defconfig.clang-18
  +288    +128       .    +416   +1a0  vmlinux.defconfig.gcc-12             
  +280    +128       .    +408   +198  vmlinux.nosmp_defconfig.gcc-12       
 -9646  -15080  -32720  -57446  -e066  vmlinux.rv32_defconfig.gcc-12        
 -4314   -4696       .   -9010  -2332  vmlinux.rv32_nosmp_defconfig.gcc-12  
  +239       .       .    +239    +ef  vmlinux.nommu_virt_defconfig.gcc-12  
  +192    +128       .    +320   +140  vmlinux.defconfig.clang-17           
  +188    +128       .    +316   +13c  vmlinux.nosmp_defconfig.clang-17     
 -8822  -14936  -32784  -56542  -dcde  vmlinux.rv32_defconfig.clang-17      
 -4442   -4488       .   -8930  -22e2  vmlinux.rv32_nosmp_defconfig.clang-17
  +343       .       .    +343   +157  vmlinux.nommu_virt_defconfig.clang-17
  +336    +128       .    +464   +1d0  vmlinux.defconfig.gcc-11             
  +352    +160       .    +512   +200  vmlinux.nosmp_defconfig.gcc-11       
 -8186  -15112  -32720  -56018  -dad2  vmlinux.rv32_defconfig.gcc-11        
 -4130   -4696       .   -8826  -227a  vmlinux.rv32_nosmp_defconfig.gcc-11  
  +239       .       .    +239    +ef  vmlinux.nommu_virt_defconfig.gcc-11  
   +40     +32       .     +72    +48  vmlinux.allnoconfig.gcc-15           
+14383    +400    +320  +15103  +3aff  vmlinux.allmodconfig.gcc-15          
   +42     +32       .     +74    +4a  vmlinux.allnoconfig.clang-19         
  +643    +128       .    +771   +303  vmlinux.allmodconfig.clang-19        

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [GIT PULL] RISC-V updates for v7.3-rc7
  2026-10-11  6:05 [GIT PULL] RISC-V updates for v7.3-rc7 Paul Walmsley
@ 2026-10-11 18:18 ` pr-tracker-bot
  0 siblings, 0 replies; 2+ messages in thread
From: pr-tracker-bot @ 2026-10-11 18:18 UTC (permalink / raw)
  To: Paul Walmsley; +Cc: torvalds, linux-riscv

The pull request you sent on Sun, 11 Oct 2026 00:05:14 -0600 (MDT):

> git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux tags/riscv-for-linus-7.3-rc7

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/b2d929a1c2a887dd046e0af2d4a06dbf4e7d87a6

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-11 18:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-11  6:05 [GIT PULL] RISC-V updates for v7.3-rc7 Paul Walmsley
2026-10-11 18:18 ` pr-tracker-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox