From 6eff8f0b09e5f4404efc4bd46cbbd35071b2a615 Mon Sep 17 00:00:00 2001 From: "Justin M. Forbes" Date: Sat, 12 Jul 2025 09:22:52 -0600 Subject: [PATCH] kernel-6.16.0-0.rc5.250712g379f604cc3dc.50 * Sat Jul 12 2025 Fedora Kernel Team [6.16.0-0.rc5.379f604cc3dc.50] - redhat/configs: clang_lto: disable CONFIG_FORTIFY_KUNIT_TEST (Scott Weaver) Resolves: Signed-off-by: Justin M. Forbes --- Makefile.rhelver | 2 +- kernel.changelog | 61 +++++++++++++++++++++++++- kernel.spec | 94 +++++++++++++++++++++++++++++++---------- patch-6.16-redhat.patch | 26 ++++++------ sources | 6 +-- 5 files changed, 149 insertions(+), 40 deletions(-) diff --git a/Makefile.rhelver b/Makefile.rhelver index 40f70faf5..04638816d 100644 --- a/Makefile.rhelver +++ b/Makefile.rhelver @@ -12,7 +12,7 @@ RHEL_MINOR = 99 # # Use this spot to avoid future merge conflicts. # Do not trim this comment. -RHEL_RELEASE = 38 +RHEL_RELEASE = 50 # # RHEL_REBASE_NUM diff --git a/kernel.changelog b/kernel.changelog index c6d725c1f..fc2dfad9c 100644 --- a/kernel.changelog +++ b/kernel.changelog @@ -1,7 +1,66 @@ -* Mon Jun 30 2025 Fedora Kernel Team [6.16.0-0.rc4.38] +* Sat Jul 12 2025 Fedora Kernel Team [6.16.0-0.rc5.379f604cc3dc.50] - redhat/configs: clang_lto: disable CONFIG_FORTIFY_KUNIT_TEST (Scott Weaver) Resolves: +* Sat Jul 12 2025 Fedora Kernel Team [6.16.0-0.rc5.379f604cc3dc.49] +- Linux v6.16.0-0.rc5.379f604cc3dc +Resolves: + +* Fri Jul 11 2025 Fedora Kernel Team [6.16.0-0.rc5.bc9ff192a6c9.48] +- kernel.spec: honor packaging flags (Scott Weaver) +- Fix FIPS mode for Fedora (Justin M. Forbes) +- Linux v6.16.0-0.rc5.bc9ff192a6c9 +Resolves: + +* Thu Jul 10 2025 Fedora Kernel Team [6.16.0-0.rc5.8c2e52ebbe88.47] +- Linux v6.16.0-0.rc5.8c2e52ebbe88 +Resolves: + +* Wed Jul 09 2025 Fedora Kernel Team [6.16.0-0.rc5.733923397fd9.46] +- Linux v6.16.0-0.rc5.733923397fd9 +Resolves: + +* Tue Jul 08 2025 Fedora Kernel Team [6.16.0-0.rc5.d006330be3f7.45] +- Turn on TSA Mitigation for Fedora (Justin M. Forbes) +- Linux v6.16.0-0.rc5.d006330be3f7 +Resolves: + +* Mon Jul 07 2025 Fedora Kernel Team [6.16.0-0.rc5.44] +- Linux v6.16.0-0.rc5 +Resolves: + +* Sun Jul 06 2025 Fedora Kernel Team [6.16.0-0.rc4.1f988d0788f5.43] +- Linux v6.16.0-0.rc4.1f988d0788f5 +Resolves: + +* Sat Jul 05 2025 Fedora Kernel Team [6.16.0-0.rc4.a79a588fc176.42] +- Linux v6.16.0-0.rc4.a79a588fc176 +Resolves: + +* Fri Jul 04 2025 Fedora Kernel Team [6.16.0-0.rc4.4c06e63b9203.41] +- redhat/configs: Enable CONFIG_AMD_HSMP_ACPI and CONFIG_AMD_HSMP_PLAT on RHEL (David Arcari) +- Linux v6.16.0-0.rc4.4c06e63b9203 +Resolves: + +* Thu Jul 03 2025 Fedora Kernel Team [6.16.0-0.rc4.b4911fb0b060.40] +- redhat/configs: CONFIG_WWAN enough as a module (Jose Ignacio Tornos Martinez) +- redhat/configs: Enable CONFIG_NET_SCH_BPF on RHEL (Viktor Malik) +- config: new config in drivers/phy (Izabela Bakollari) +- Linux v6.16.0-0.rc4.b4911fb0b060 +Resolves: + +* Wed Jul 02 2025 Fedora Kernel Team [6.16.0-0.rc4.66701750d556.39] +- livepatch: no need to build kselftests with kernel (Radomir Vrbovsky) +- redhat: Restore the status quo wrt memory onlining (Vitaly Kuznetsov) [2375049] +- redhat/spec: Disable gdb index for riscv cross-compile (Jennifer Berringer) +- gitlab-ci: Enable CI for riscv64 on centos/eln (Jennifer Berringer) +- redhat: Enable RISC-V arch for centos/eln (Jennifer Berringer) +Resolves: rhbz#2375049 + +* Tue Jul 01 2025 Fedora Kernel Team [6.16.0-0.rc4.66701750d556.38] +- Linux v6.16.0-0.rc4.66701750d556 +Resolves: + * Mon Jun 30 2025 Fedora Kernel Team [6.16.0-0.rc4.37] - Linux v6.16.0-0.rc4 Resolves: diff --git a/kernel.spec b/kernel.spec index 5e4ee42c9..48ab26f9c 100644 --- a/kernel.spec +++ b/kernel.spec @@ -162,13 +162,13 @@ Summary: The Linux kernel %define specrpmversion 6.16.0 %define specversion 6.16.0 %define patchversion 6.16 -%define pkgrelease 0.rc4.50 +%define pkgrelease 0.rc5.250712g379f604cc3dc.50 %define kversion 6 -%define tarfile_release 6.16-rc4 +%define tarfile_release 6.16-rc5-224-g379f604cc3dc # This is needed to do merge window version magic %define patchlevel 16 # This allows pkg_release to have configurable %%{?dist} tag -%define specrelease 0.rc4.50%{?buildid}%{?dist} +%define specrelease 0.rc5.250712g379f604cc3dc.50%{?buildid}%{?dist} # This defines the kabi tarball version %define kabiversion 6.16.0 @@ -644,9 +644,6 @@ Summary: The Linux kernel %define cpupowerarchs i686 x86_64 ppc64le aarch64 riscv64 %endif -# Architectures we build kernel livepatching selftests on -%define klptestarches x86_64 ppc64le s390x - %if 0%{?use_vdso} %define _use_vdso 1 %else @@ -714,7 +711,7 @@ Release: %{pkg_release} %if 0%{?fedora} ExclusiveArch: noarch x86_64 s390x aarch64 ppc64le riscv64 %else -ExclusiveArch: noarch i386 i686 x86_64 s390x aarch64 ppc64le +ExclusiveArch: noarch i386 i686 x86_64 s390x aarch64 ppc64le riscv64 %endif ExclusiveOS: Linux %ifnarch %{nobuildarches} @@ -857,6 +854,16 @@ BuildRequires: binutils-%{_build_arch}-linux-gnu, gcc-%{_build_arch}-linux-gnu # debugedit-5.1-5 in F42 added support to override tools with target versions. %undefine _include_gdb_index %endif + +%if 0%{?rhel}%{?centos} +%ifarch riscv64 +# Temporary workaround to avoid using find-debuginfo and gdb.minimal. +# The current c10s version of gdb-minimal (14.2-4.el10) crashes when given some +# riscv64 kernel modules (see RHEL-91586). Not building the gdb index avoids +# breaking CI for now. +%undefine _include_gdb_index +%endif +%endif %endif # These below are required to build man pages @@ -973,6 +980,9 @@ Source33: %{name}-x86_64-debug-rhel.config # ARM64 64K page-size kernel config Source42: %{name}-aarch64-64k-rhel.config Source43: %{name}-aarch64-64k-debug-rhel.config + +Source44: %{name}-riscv64-rhel.config +Source45: %{name}-riscv64-debug-rhel.config %endif %if %{include_rhel} || %{include_automotive} @@ -1169,7 +1179,7 @@ device drivers shipped with it are documented in these files. You'll want to install this package if you need a reference to the options that can be passed to Linux kernel modules at load time. - +%if %{with_headers} %package headers Summary: Header files for the Linux kernel for use by glibc Obsoletes: glibc-kernheaders < 3.0-46 @@ -1184,7 +1194,9 @@ between the Linux kernel and userspace libraries and programs. The header files define structures and constants that are needed for building most standard programs and are also needed for rebuilding the glibc package. +%endif +%if %{with_cross_headers} %package cross-headers Summary: Header files for the Linux kernel for use by cross-glibc %if 0%{?gemini} @@ -1197,6 +1209,7 @@ between the Linux kernel and userspace libraries and programs. The header files define structures and constants that are needed for building most standard programs and are also needed for rebuilding the cross-glibc package. +%endif %package debuginfo-common-%{_target_cpu} Summary: Kernel source files used by %{name}-debuginfo packages @@ -1393,6 +1406,7 @@ Summary: gcov graph and source files for coverage data collection.\ %{?1:%{1}-}gcov includes the gcov graph and source files for gcov coverage collection.\ %{nil} +%if %{with_kernel_abi_stablelists} %package -n %{package_name}-abi-stablelists Summary: The Red Hat Enterprise Linux kernel ABI symbol stablelists AutoReqProv: no @@ -1400,6 +1414,7 @@ AutoReqProv: no The kABI package contains information pertaining to the Red Hat Enterprise Linux kernel ABI, including lists of kernel symbols that are needed by external Linux kernel modules, and a yum plugin to aid enforcement. +%endif %if %{with_kabidw_base} %package kernel-kabidw-base-internal @@ -2293,6 +2308,7 @@ BuildKernel() { %ifarch aarch64 riscv64 %{log_msg "Build dtb kernel"} + mkdir -p $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer %{make} ARCH=$Arch dtbs INSTALL_DTBS_PATH=$RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer %{make} ARCH=$Arch dtbs_install INSTALL_DTBS_PATH=$RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer cp -r $RPM_BUILD_ROOT/%{image_install_path}/dtb-$KernelVer $RPM_BUILD_ROOT/lib/modules/$KernelVer/dtb @@ -3256,13 +3272,6 @@ pushd tools/testing/selftests %{log_msg "main selftests compile"} %{make} %{?_smp_mflags} ARCH=$Arch V=1 TARGETS="bpf cgroup kmod mm net net/forwarding net/mptcp net/netfilter net/packetdrill tc-testing memfd drivers/net drivers/net/hw iommu cachestat pid_namespace rlimits timens pidfd" SKIP_TARGETS="" $force_targets INSTALL_PATH=%{buildroot}%{_libexecdir}/kselftests VMLINUX_H="${RPM_VMLINUX_H}" install -%ifarch %{klptestarches} - # kernel livepatching selftest test_modules will build against - # /lib/modules/$(shell uname -r)/build tree unless KDIR is set - export KDIR=$(realpath $(pwd)/../../..) - %{make} %{?_smp_mflags} ARCH=$Arch V=1 TARGETS="livepatch" SKIP_TARGETS="" $force_targets INSTALL_PATH=%{buildroot}%{_libexecdir}/kselftests VMLINUX_H="${RPM_VMLINUX_H}" install || true -%endif - # 'make install' for bpf is broken and upstream refuses to fix it. # Install the needed files manually. %{log_msg "install selftests"} @@ -3625,12 +3634,6 @@ find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/tc-testing/{ find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/tc-testing/{} \; find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/tc-testing/{} \; popd -# install livepatch selftests -pushd tools/testing/selftests/livepatch -find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/livepatch/{} \; -find -type f -executable -exec install -D -m755 {} %{buildroot}%{_libexecdir}/kselftests/livepatch/{} \; -find -type f ! -executable -exec install -D -m644 {} %{buildroot}%{_libexecdir}/kselftests/livepatch/{} \; -popd # install net/netfilter selftests pushd tools/testing/selftests/net/netfilter find -type d -exec install -d %{buildroot}%{_libexecdir}/kselftests/net/netfilter/{} \; @@ -4349,9 +4352,56 @@ fi\ # # %changelog -* Mon Jun 30 2025 Fedora Kernel Team [6.16.0-0.rc4.50] +* Sat Jul 12 2025 Fedora Kernel Team [6.16.0-0.rc5.379f604cc3dc.50] - redhat/configs: clang_lto: disable CONFIG_FORTIFY_KUNIT_TEST (Scott Weaver) +* Sat Jul 12 2025 Fedora Kernel Team [6.16.0-0.rc5.379f604cc3dc.49] +- Linux v6.16.0-0.rc5.379f604cc3dc + +* Fri Jul 11 2025 Fedora Kernel Team [6.16.0-0.rc5.bc9ff192a6c9.48] +- kernel.spec: honor packaging flags (Scott Weaver) +- Fix FIPS mode for Fedora (Justin M. Forbes) +- Linux v6.16.0-0.rc5.bc9ff192a6c9 + +* Thu Jul 10 2025 Fedora Kernel Team [6.16.0-0.rc5.8c2e52ebbe88.47] +- Linux v6.16.0-0.rc5.8c2e52ebbe88 + +* Wed Jul 09 2025 Fedora Kernel Team [6.16.0-0.rc5.733923397fd9.46] +- Linux v6.16.0-0.rc5.733923397fd9 + +* Tue Jul 08 2025 Fedora Kernel Team [6.16.0-0.rc5.d006330be3f7.45] +- Turn on TSA Mitigation for Fedora (Justin M. Forbes) +- Linux v6.16.0-0.rc5.d006330be3f7 + +* Mon Jul 07 2025 Fedora Kernel Team [6.16.0-0.rc5.44] +- Linux v6.16.0-0.rc5 + +* Sun Jul 06 2025 Fedora Kernel Team [6.16.0-0.rc4.1f988d0788f5.43] +- Linux v6.16.0-0.rc4.1f988d0788f5 + +* Sat Jul 05 2025 Fedora Kernel Team [6.16.0-0.rc4.a79a588fc176.42] +- Linux v6.16.0-0.rc4.a79a588fc176 + +* Fri Jul 04 2025 Fedora Kernel Team [6.16.0-0.rc4.4c06e63b9203.41] +- redhat/configs: Enable CONFIG_AMD_HSMP_ACPI and CONFIG_AMD_HSMP_PLAT on RHEL (David Arcari) +- Linux v6.16.0-0.rc4.4c06e63b9203 + +* Thu Jul 03 2025 Fedora Kernel Team [6.16.0-0.rc4.b4911fb0b060.40] +- redhat/configs: CONFIG_WWAN enough as a module (Jose Ignacio Tornos Martinez) +- redhat/configs: Enable CONFIG_NET_SCH_BPF on RHEL (Viktor Malik) +- config: new config in drivers/phy (Izabela Bakollari) +- Linux v6.16.0-0.rc4.b4911fb0b060 + +* Wed Jul 02 2025 Fedora Kernel Team [6.16.0-0.rc4.66701750d556.39] +- livepatch: no need to build kselftests with kernel (Radomir Vrbovsky) +- redhat: Restore the status quo wrt memory onlining (Vitaly Kuznetsov) [2375049] +- redhat/spec: Disable gdb index for riscv cross-compile (Jennifer Berringer) +- gitlab-ci: Enable CI for riscv64 on centos/eln (Jennifer Berringer) +- redhat: Enable RISC-V arch for centos/eln (Jennifer Berringer) + +* Tue Jul 01 2025 Fedora Kernel Team [6.16.0-0.rc4.66701750d556.38] +- Linux v6.16.0-0.rc4.66701750d556 + * Mon Jun 30 2025 Fedora Kernel Team [6.16.0-0.rc4.37] - Linux v6.16.0-0.rc4 diff --git a/patch-6.16-redhat.patch b/patch-6.16-redhat.patch index 8a92b6959..c94670c0c 100644 --- a/patch-6.16-redhat.patch +++ b/patch-6.16-redhat.patch @@ -78,7 +78,7 @@ 77 files changed, 2720 insertions(+), 207 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt -index f1f2c0874da9..bcbfd150b8a1 100644 +index 07e22ba5bfe3..f9d712044457 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -6301,6 +6301,17 @@ @@ -99,7 +99,7 @@ index f1f2c0874da9..bcbfd150b8a1 100644 ring3mwait=disable [KNL] Disable ring 3 MONITOR/MWAIT feature on supported CPUs. -@@ -7634,6 +7645,15 @@ +@@ -7647,6 +7658,15 @@ unknown_nmi_panic [X86] Cause panic on unknown NMI. @@ -190,7 +190,7 @@ index 000000000000..85771d74c34f + +endmenu diff --git a/Makefile b/Makefile -index 1c9ea229809f..4b83d7676140 100644 +index 7eea2a41c905..64635af4a041 100644 --- a/Makefile +++ b/Makefile @@ -355,6 +355,17 @@ ifneq ($(filter install,$(MAKECMDGOALS)),) @@ -276,10 +276,10 @@ index 3072731fe09c..d34abca3e149 100644 The VM uses one page of physical memory for each page table. For systems with a lot of processes, this can use a lot of diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig -index 55fc331af337..f5d5e59058a2 100644 +index 393d71124f5d..ea142284db99 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig -@@ -1427,7 +1427,7 @@ endchoice +@@ -1428,7 +1428,7 @@ endchoice config ARM64_FORCE_52BIT bool "Force 52-bit virtual addresses for userspace" @@ -336,10 +336,10 @@ index f244c5560e7f..464f915011b8 100644 /* boot_command_line has been already set up in early.c */ *cmdline_p = boot_command_line; diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c -index 27125e009847..40e5c9b1e707 100644 +index fb50c1dd53ef..c68958773d34 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c -@@ -1720,6 +1720,7 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c) +@@ -1732,6 +1732,7 @@ static void __init early_identify_cpu(struct cpuinfo_x86 *c) get_cpu_vendor(c); intel_unlock_cpuid_leafs(c); get_cpu_cap(c); @@ -2166,7 +2166,7 @@ index d4b484c0fd9d..4e5bb4cce484 100644 { PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_ISP2271) }, { PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_ISP2261) }, diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c -index 3f6e87705b62..ddfd99a32f14 100644 +index eeaa6af294b8..150578ffc41a 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -121,6 +121,14 @@ static const char *sd_cache_types[] = { @@ -2197,10 +2197,10 @@ index 3f6e87705b62..ddfd99a32f14 100644 if (err) goto err_out_driver; diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c -index 770d1e91183c..46ccd737c4ee 100644 +index 3e1215f7a9a0..0920136b0c21 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c -@@ -5858,6 +5858,13 @@ static void hub_event(struct work_struct *work) +@@ -5889,6 +5889,13 @@ static void hub_event(struct work_struct *work) (u16) hub->change_bits[0], (u16) hub->event_bits[0]); @@ -3241,7 +3241,7 @@ index dd5304c6ac3c..b38a64ce7b19 100644 } diff --git a/kernel/module/main.c b/kernel/module/main.c -index 413ac6ea3702..5bc4453090ce 100644 +index c2c08007029d..a9d9c03ffd6d 100644 --- a/kernel/module/main.c +++ b/kernel/module/main.c @@ -65,6 +65,8 @@ @@ -3269,7 +3269,7 @@ index 413ac6ea3702..5bc4453090ce 100644 &modinfo_initstate, &modinfo_coresize, #ifdef CONFIG_ARCH_WANTS_MODULES_DATA_IN_VMALLOC -@@ -3299,6 +3303,11 @@ static int early_mod_check(struct load_info *info, int flags) +@@ -3304,6 +3308,11 @@ static int early_mod_check(struct load_info *info, int flags) return -EPERM; } @@ -3281,7 +3281,7 @@ index 413ac6ea3702..5bc4453090ce 100644 err = rewrite_section_headers(info, flags); if (err) return err; -@@ -3870,6 +3879,10 @@ void print_modules(void) +@@ -3875,6 +3884,10 @@ void print_modules(void) pr_cont(" [last unloaded: %s%s]", last_unloaded_module.name, last_unloaded_module.taints); pr_cont("\n"); diff --git a/sources b/sources index 22634d0a6..f65f694e0 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (linux-6.16-rc4.tar.xz) = 1dc3d6636d1f7d6ce599140061428be3791728b48505691451bae7a9ca2dd084336f33e8123413ad90fd793f86021b16f9b772bd4de6ea7f3901b789e71306ec -SHA512 (kernel-abi-stablelists-6.16.0.tar.xz) = d44019f921613a318b84f04bdac3807688de8cc8646cb1fa4fc28d7d9b158b469bf02968d29ff7e8240e6b456d4c104a180ef20802a0d3f10d2146d0aa6af397 -SHA512 (kernel-kabi-dw-6.16.0.tar.xz) = 8355665d929f547d8e2d216082b8914057a1a9a2c89835ff7bb083e51e6cea304cf9d73476fc1987eaededc06c3867d1498b7e2ed6f9a1f3b23bddb605e0209f +SHA512 (linux-6.16-rc5-224-g379f604cc3dc.tar.xz) = 09936b11a8896357dde3cca0003af269641b3fc4fae205ed9c01ac5c81bc8b9d831b87da075f0ffe38778e97d40dfddbf5cad8e1797dee16759f692cc8d04862 +SHA512 (kernel-abi-stablelists-6.16.0.tar.xz) = 7ef7695cb3f87a11492100efa5e5e3368c7e477f16f49e7024273acaf531e44f3c979bc8367ce9d2b5ff9881b87da72496c19d5a3e128a203deae0dd0d5213d3 +SHA512 (kernel-kabi-dw-6.16.0.tar.xz) = 4ce1f30725d9f9654801d66c796411f7ae7498bd2c2ba6358b851002e30e3208cd4be5a7b870459befd5a4bcb297ce47933c1023de02d603228e7ad22720425f