mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Walmsley <pjw@kernel.org>
To: torvalds@linux-foundation.org
Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [GIT PULL] RISC-V updates for v7.4-rc4
Date: Sun, 22 Nov 2026 13:11:58 -0700 (MST)	[thread overview]
Message-ID: <1a74c335-ead7-bf62-b35b-d2afd06599ca@kernel.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 7901 bytes --]

Linus,

Please pull these RISC-V updates for v7.4-rc4.  There's nothing
controversial here from a maintenance point of view, I think.
Details are in the PR message.

thanks,


- Paul


The following changes since commit 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4:

  Linux 7.4-rc1 (2026-11-01 13:26:31 -0800)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux tags/riscv-for-linus-7.4-rc4

for you to fetch changes up to fc91dacd0c2b4f9ca7e0ce30016f5aee6256cba5:

  riscv: mm: reserve the DTB before scanning reserved memory (2026-11-21 12:27:09 -0700)

----------------------------------------------------------------
RISC-V updates for v7.4-rc4

- Fix a bug in the context switch code that can allow the switched-to
  task to inadvertently inherit the supervisor user memory access
  privilege from the switched-from task

- Protect the regs->status RMW sequences in the vector register
  context switch code, to fix a potential floating point state
  corruption bug

- Fix the return values from the early boot unaligned access speed
  detection functions called by __setup() to return 0 on failure,
  rather than an error code, as 0 is what __setup() expects to receive
  upon an error

- Prevent the DTB from being potentially overwritten early in boot by
  reserving it in memblock before scanning the /reserved-memory
  section of the DTB

- Fix hugetlb vmemmap optimization and a few other code paths that map
  kernel pages as read-only by defining PAGE_KERNEL_RO

- Fix an error path in kgdb_riscv_notify() to add a missing
  local_irq_restore()

- Fix the RISC-V defconfig to enable heap randomization by default by
  removing CONFIG_COMPAT_BRK, which shouldn't have been there in the
  first place; and to enable building onboard USB hub support as a
  module to better support the SpacemiT K1

- Fix CONFIG_RISCV_ISA_SV{48,57} to depend on CONFIG_MMU, since they
  are virtual memory configuration options that by definition require
  MMU support

- Fix a missing space in the SpacemiT K1 DTS file

----------------------------------------------------------------
Clément Léger (1):
      riscv: kgdb: Fix potential missing local_irq_restore() call

Frédéric Mahé (1):
      riscv: defconfig: enable onboard USB hub support

Geert Uytterhoeven (1):
      riscv: RISCV_ISA_SV48 and RISCV_ISA_SV57 should depend on MMU

Guobin Zhang (1):
      riscv: signal: protect regs->status RMW from concurrent preemption

Krzysztof Kozlowski (1):
      riscv: dts: spacemit: k1: Correct missing space

Marek Szyprowski (1):
      riscv: mm: reserve the DTB before scanning reserved memory

Michael Ellerman (1):
      riscv: defconfig: Disable COMPAT_BRK

Nickolai Zeldovich (1):
      riscv: mm: Define PAGE_KERNEL_RO

Vladimir Kondratiev (1):
      riscv: unaligned: fix __setup handlers

Yunhui Cui (1):
      riscv: Fix SR_SUM leakage across context switches

 arch/riscv/Kconfig                         |  4 ++--
 arch/riscv/boot/dts/spacemit/k1.dtsi       |  2 +-
 arch/riscv/configs/defconfig               |  2 ++
 arch/riscv/include/asm/pgtable.h           |  1 +
 arch/riscv/include/asm/switch_to.h         | 30 ++++++++++++++++++++++++------
 arch/riscv/include/asm/vector.h            |  2 ++
 arch/riscv/kernel/entry.S                  |  6 +++---
 arch/riscv/kernel/kernel_mode_fpu.c        |  4 ++--
 arch/riscv/kernel/kgdb.c                   | 28 ++++++++++++++++++----------
 arch/riscv/kernel/signal.c                 |  2 ++
 arch/riscv/kernel/unaligned_access_speed.c |  4 ++--
 arch/riscv/mm/init.c                       | 14 +++++++-------
 12 files changed, 66 insertions(+), 33 deletions(-)

vmlinux size differences in bytes (from 6628e7d4c6b2):
  text    data   bss     dec     hex  filename                             
 +1877   +8356     .  +10233   +27f9  vmlinux.defconfig.gcc-16             
  +576    +164     .    +740    +2e4  vmlinux.nosmp_defconfig.gcc-16       
 +1117   +7812     .   +8929   +22e1  vmlinux.rv32_defconfig.gcc-16        
  +456    +132     .    +588    +24c  vmlinux.rv32_nosmp_defconfig.gcc-16  
  +360    +100     .    +460    +1cc  vmlinux.nommu_virt_defconfig.gcc-16  
 +1693   +8388     .  +10081   +2761  vmlinux.defconfig.gcc-15             
  +536    +164     .    +700    +2bc  vmlinux.nosmp_defconfig.gcc-15       
 +1133   +7780     .   +8913   +22d1  vmlinux.rv32_defconfig.gcc-15        
  +448    +164     .    +612    +264  vmlinux.rv32_nosmp_defconfig.gcc-15  
  +360    +100     .    +460    +1cc  vmlinux.nommu_virt_defconfig.gcc-15  
 +1293   +8356     .   +9649   +25b1  vmlinux.defconfig.gcc-14             
  +464    +132     .    +596    +254  vmlinux.nosmp_defconfig.gcc-14       
  +981   +7748     .   +8729   +2219  vmlinux.rv32_defconfig.gcc-14        
  +360    +132     .    +492    +1ec  vmlinux.rv32_nosmp_defconfig.gcc-14  
  +360    +100     .    +460    +1cc  vmlinux.nommu_virt_defconfig.gcc-14  
 +1325   +8292     .   +9617   +2591  vmlinux.defconfig.clang-20           
  +448    +604     .   +1052    +41c  vmlinux.nosmp_defconfig.clang-20     
  +941   +8288     .   +9229   +240d  vmlinux.rv32_defconfig.clang-20      
  +360    +160     .    +520    +208  vmlinux.rv32_nosmp_defconfig.clang-20
  +360   -3996     .   -3636    -e34  vmlinux.nommu_virt_defconfig.clang-20
 +1225   +8252     .   +9477   +2505  vmlinux.defconfig.clang-19           
  +448    +132     .    +580    +244  vmlinux.nosmp_defconfig.clang-19     
  +957   +7748     .   +8705   +2201  vmlinux.rv32_defconfig.clang-19      
  +360    +164     .    +524    +20c  vmlinux.rv32_nosmp_defconfig.clang-19
  +360     +36     .    +396    +18c  vmlinux.nommu_virt_defconfig.clang-19
 +1657   +8356     .  +10013   +271d  vmlinux.defconfig.gcc-13             
  +628    +164     .    +792    +318  vmlinux.nosmp_defconfig.gcc-13       
 +1161   +7780     .   +8941   +22ed  vmlinux.rv32_defconfig.gcc-13        
  +576    +132     .    +708    +2c4  vmlinux.rv32_nosmp_defconfig.gcc-13  
  +368     +36     .    +404    +194  vmlinux.nommu_virt_defconfig.gcc-13  
 +1253   +8260     .   +9513   +2529  vmlinux.defconfig.clang-18           
  +448     +92     .    +540    +21c  vmlinux.nosmp_defconfig.clang-18     
  +965   +8316     .   +9281   +2441  vmlinux.rv32_defconfig.clang-18      
  +352    +124     .    +476    +1dc  vmlinux.rv32_nosmp_defconfig.clang-18
  +360     +36     .    +396    +18c  vmlinux.nommu_virt_defconfig.clang-18
 +1581   +8356     .   +9937   +26d1  vmlinux.defconfig.gcc-12             
  +624    +196     .    +820    +334  vmlinux.nosmp_defconfig.gcc-12       
 +1153   +7812     .   +8965   +2305  vmlinux.rv32_defconfig.gcc-12        
  +592    +164     .    +756    +2f4  vmlinux.rv32_nosmp_defconfig.gcc-12  
  +368     +36     .    +404    +194  vmlinux.nommu_virt_defconfig.gcc-12  
 +1469   +8288     .   +9757   +261d  vmlinux.defconfig.clang-17           
  +652    +640     .   +1292    +50c  vmlinux.nosmp_defconfig.clang-17     
 +1153   +7776     .   +8929   +22e1  vmlinux.rv32_defconfig.clang-17      
  +552    +128     .    +680    +2a8  vmlinux.rv32_nosmp_defconfig.clang-17
  +608    +192     .    +800    +320  vmlinux.nommu_virt_defconfig.clang-17
 +1333   +8356     .   +9689   +25d9  vmlinux.defconfig.gcc-11             
  +484    +196     .    +680    +2a8  vmlinux.nosmp_defconfig.gcc-11       
 +1033   +7748     .   +8781   +224d  vmlinux.rv32_defconfig.gcc-11        
  +456    +164     .    +620    +26c  vmlinux.rv32_nosmp_defconfig.gcc-11  
  +352  +12324     .  +12676   +3184  vmlinux.nommu_virt_defconfig.gcc-11  
   +30     +32     .     +62     +3e  vmlinux.allnoconfig.gcc-15           
+92776    +172  -192  +92756  +16a54  vmlinux.allmodconfig.gcc-15          
     .       .     .       .       .  vmlinux.allnoconfig.clang-19         
 +1840    +228     .   +2068    +814  vmlinux.allmodconfig.clang-19        

             reply	other threads:[~2026-11-22 20:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-22 20:11 Paul Walmsley [this message]
2026-11-22 22:20 ` pr-tracker-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1a74c335-ead7-bf62-b35b-d2afd06599ca@kernel.org \
    --to=pjw@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®