# git rev-parse -q --verify a5dbd76a89423eca9f8de338350f2666aacfb432^{commit} a5dbd76a89423eca9f8de338350f2666aacfb432 already have revision, skipping fetch # git checkout -q -f -B kisskb a5dbd76a89423eca9f8de338350f2666aacfb432 # git clean -qxdf # < git log -1 # commit a5dbd76a89423eca9f8de338350f2666aacfb432 # Merge: 61ca6c78295e dd35a0933269 # Author: Linus Torvalds # Date: Sun Aug 4 08:57:08 2024 -0700 # # Merge tag 'x86-urgent-2024-08-04' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip # # Pull x86 fixes from Thomas Gleixner: # # - Prevent a deadlock on cpu_hotplug_lock in the aperf/mperf driver. # # A recent change in the ACPI code which consolidated code pathes moved # the invocation of init_freq_invariance_cppc() to be moved to a CPU # hotplug handler. The first invocation on AMD CPUs ends up enabling a # static branch which dead locks because the static branch enable tries # to acquire cpu_hotplug_lock but that lock is already held write by # the hotplug machinery. # # Use static_branch_enable_cpuslocked() instead and take the hotplug # lock read for the Intel code path which is invoked from the # architecture code outside of the CPU hotplug operations. # # - Fix the number of reserved bits in the sev_config structure bit field # so that the bitfield does not exceed 64 bit. # # - Add missing Zen5 model numbers # # - Fix the alignment assumptions of pti_clone_pgtable() and # clone_entry_text() on 32-bit: # # The code assumes PMD aligned code sections, but on 32-bit the kernel # entry text is not PMD aligned. So depending on the code size and # location, which is configuration and compiler dependent, entry text # can cross a PMD boundary. As the start is not PMD aligned adding PMD # size to the start address is larger than the end address which # results in partially mapped entry code for user space. That causes # endless recursion on the first entry from userspace (usually #PF). # # Cure this by aligning the start address in the addition so it ends up # at the next PMD start address. # # clone_entry_text() enforces PMD mapping, but on 32-bit the tail might # eventually be PTE mapped, which causes a map fail because the PMD for # the tail is not a large page mapping. Use PTI_LEVEL_KERNEL_IMAGE for # the clone() invocation which resolves to PTE on 32-bit and PMD on # 64-bit. # # - Zero the 8-byte case for get_user() on range check failure on 32-bit # # The recend consolidation of the 8-byte get_user() case broke the # zeroing in the failure case again. Establish it by clearing ECX # before the range check and not afterwards as that obvioulsy can't be # reached when the range check fails # # * tag 'x86-urgent-2024-08-04' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: # x86/uaccess: Zero the 8-byte get_range case on failure on 32-bit # x86/mm: Fix pti_clone_entry_text() for i386 # x86/mm: Fix pti_clone_pgtable() alignment assumption # x86/setup: Parse the builtin command line before merging # x86/CPU/AMD: Add models 0x60-0x6f to the Zen5 range # x86/sev: Fix __reserved field in sev_config # x86/aperfmperf: Fix deadlock on cpu_hotplug_lock # < /opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sh4-linux/bin/sh4-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sh4-linux/bin/sh4-linux-ld --version # < git log --format=%s --max-count=1 a5dbd76a89423eca9f8de338350f2666aacfb432 # make -s -j 160 ARCH=sh O=/kisskb/build/linus_allmodconfig_sh4-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sh4-linux/bin/sh4-linux- allmodconfig # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_SAMPLES=n # < make -s -j 160 ARCH=sh O=/kisskb/build/linus_allmodconfig_sh4-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sh4-linux/bin/sh4-linux- help # make -s -j 160 ARCH=sh O=/kisskb/build/linus_allmodconfig_sh4-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sh4-linux/bin/sh4-linux- olddefconfig # make -s -j 160 ARCH=sh O=/kisskb/build/linus_allmodconfig_sh4-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sh4-linux/bin/sh4-linux- Generating include/generated/machtypes.h :1519:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S: Assembler messages: /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:85: Warning: overflow in branch to __restore_all; converted into longer instruction sequence /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:357: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:360: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /kisskb/src/kernel/fork.c: In function '__do_sys_clone3': /kisskb/src/kernel/fork.c:3072:2: error: #warning clone3() entry point is missing, please fix [-Werror=cpp] 3072 | #warning clone3() entry point is missing, please fix | ^~~~~~~ cc1: all warnings being treated as errors make[4]: *** [/kisskb/src/scripts/Makefile.build:244: kernel/fork.o] Error 1 make[4]: *** Waiting for unfinished jobs.... {standard input}: Assembler messages: {standard input}: Warning: end of file not at end of a line; newline inserted {standard input}:1111: Error: unknown pseudo-op: `.l18' {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive {standard input}:1070: Error: displacement to undefined symbol .L142 overflows 8-bit field {standard input}:1075: Error: displacement to undefined symbol .L161 overflows 8-bit field {standard input}:1059: Error: pcrel too far {standard input}:1060: Error: pcrel too far {standard input}:1061: Error: pcrel too far sh4-linux-gcc: internal compiler error: Segmentation fault signal terminated program cc1 Please submit a full bug report, with preprocessed source (by using -freport-bug). See for instructions. make[6]: *** [/kisskb/src/scripts/Makefile.build:244: drivers/net/pcs/pcs-xpcs.o] Error 4 make[6]: *** Waiting for unfinished jobs.... make[5]: *** [/kisskb/src/scripts/Makefile.build:485: drivers/net/pcs] Error 2 make[5]: *** Waiting for unfinished jobs.... make[3]: *** [/kisskb/src/scripts/Makefile.build:485: kernel] Error 2 make[3]: *** Waiting for unfinished jobs.... make[4]: *** [/kisskb/src/scripts/Makefile.build:485: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... {standard input}: Assembler messages: {standard input}: Warning: end of file not at end of a line; newline inserted {standard input}:1270: Error: unknown pseudo-op: `.al' {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive {standard input}:1254: Error: pcrel too far {standard input}:1255: Error: pcrel too far sh4-linux-gcc: internal compiler error: Segmentation fault signal terminated program cc1 Please submit a full bug report, with preprocessed source (by using -freport-bug). See for instructions. make[6]: *** [/kisskb/src/scripts/Makefile.build:244: drivers/hwmon/pmbus/mp2975.o] Error 4 make[5]: *** [/kisskb/src/scripts/Makefile.build:485: drivers/hwmon/pmbus] Error 2 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [/kisskb/src/scripts/Makefile.build:485: drivers/hwmon] Error 2 make[3]: *** [/kisskb/src/scripts/Makefile.build:485: drivers] Error 2 make[2]: *** [/kisskb/src/Makefile:1925: .] Error 2 make[1]: *** [/kisskb/src/Makefile:224: __sub-make] Error 2 make: *** [Makefile:224: __sub-make] Error 2 Command 'make -s -j 160 ARCH=sh O=/kisskb/build/linus_allmodconfig_sh4-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sh4-linux/bin/sh4-linux- ' returned non-zero exit status 2. # rm -rf /kisskb/build/linus_allmodconfig_sh4-gcc13 # Build took: 0:05:07.513312