From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795378322; b=sT0madLNE6CCbs8Hi0qAHlfzdJ/ilync7RCJ35X6C8afI5uBHoE3YkMNL+RJO+UA1wXu +KIE8T+swsvhCOraR5vtESacB6oUxo+v1qKFJ2VXd3pIU/OGl4/OLRLwWx8HQMiBPWPVn vdSDOn4qZeB5yPKNcAqIehLzBP7yt/jYHF557CfApz2uzmQ4CtdZHfD60mbip1CdvwRuu V0vIizCRXI8WTbT0FJ/Rtrnh55Ic6m9J+C0uM4C3IX1zNyEmxWkSHQZB7Zcbwa0Ke6btc K8mgeFisgLX37SQejGLdnOaPa34Fc3fX27Uy3gAnz0SRXFXc1bOtc29jZEq8OK2zveQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795378322; h=Received:DKIM-Signature:Date:From:To:cc:Subject:Message-ID: MIME-Version:Content-Type; bh=0YiM6djptQgn4EoVdjkfY4phLj3O+eimQq1jNyeXtv4=; b=W+aa3TppjeGx9ZM8aVyIrbyYBY5q2Pk5Q2gsDzz+kB9tGjriBN5KXu6Ty2ZuA9J7cyi8 T/jmygkvAaHL6bdvizYqPUMou9jkJbZ78fQYT/0d2Pfq1jho+M6J/3CLWHGrWh2bqWDXD 3ncjxxp2tD0I4PitaKaJ4KGjqreZ/2kdrYwQaXeollpKawr2/bzRIgDkGrvagE1RRzoiX hKT3rUvAqbk2UF/9EHD9LSlbxEt3oe2plDoJCxJHvE+pRd4d0bw48UlujqAGYE/iiFkse rz1WzgPFiYT5SdDqXknt7l/qCMv8LL3d1SkNEHgy7qAvj/N3uNXTcXoQFRtbz8exiNA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bauQ4KpO; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22DE8606A31D for ; Sun, 22 Nov 2026 20:12:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bauQ4KpO Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D92D1F000C0; Sun, 22 Nov 2026 20:12:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795378321; bh=0YiM6djptQgn4EoVdjkfY4phLj3O+eimQq1jNyeXtv4=; h=Date:From:To:cc:Subject; b=bauQ4KpOmHGiu27NL6CqIlssJ8Kk95HPTvdVpCoFLwo+YaZ75wonqNi1S0uv+wnIT FueDb5NpDM6HZOrkQCCg9rYgQii8R11molw4TmCl+kv8BehgG+F2NmMLByNMimKU6q zMlmOBhWgrXDheJD1jFOwflmiYqJssH9U4EpFWd+VNLNFueBiZs8MQwFlId76Ed63Z 33Y2pgtoyc4Gqbqd1I3WUtguNTPi5EPXM8B/RNpA75AXM3F/c95rRZXrEgvr/UKTGk XXxWUdcFbPHnja/lAxkSYhyMLQix34D4QY92DUGf/tyxxZ3o5vvtIPEGt69mLVTklt imq50jOsnbVQg== Date: Sun, 22 Nov 2026 13:11:58 -0700 (MST) From: Paul Walmsley 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 Message-ID: <1a74c335-ead7-bf62-b35b-d2afd06599ca@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1527400424-1795378321=:2266450" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1527400424-1795378321=:2266450 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT 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 --8323329-1527400424-1795378321=:2266450--