# git rev-parse -q --verify 683b783c2093e0172738f899ba188bc406b0595f^{commit} 683b783c2093e0172738f899ba188bc406b0595f already have revision, skipping fetch # git checkout -q -f -B kisskb 683b783c2093e0172738f899ba188bc406b0595f # git clean -qxdf # < git log -1 # commit 683b783c2093e0172738f899ba188bc406b0595f # Merge: 4b6f7c624e70 9895ceeb5cd6 # Author: Linus Torvalds # Date: Fri Feb 16 10:48:14 2024 -0800 # # Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm # # Pull KVM fixes from Paolo Bonzini: # "ARM: # # - Avoid dropping the page refcount twice when freeing an unlinked # page-table subtree. # # - Don't source the VFIO Kconfig twice # # - Fix protected-mode locking order between kvm and vcpus # # RISC-V: # # - Fix steal-time related sparse warnings # # x86: # # - Cleanup gtod_is_based_on_tsc() to return "bool" instead of an "int" # # - Make a KVM_REQ_NMI request while handling KVM_SET_VCPU_EVENTS if # and only if the incoming events->nmi.pending is non-zero. If the # target vCPU is in the UNITIALIZED state, the spurious request will # result in KVM exiting to userspace, which in turn causes QEMU to # constantly acquire and release QEMU's global mutex, to the point # where the BSP is unable to make forward progress. # # - Fix a type (u8 versus u64) goof that results in pmu->fixed_ctr_ctrl # being incorrectly truncated, and ultimately causes KVM to think a # fixed counter has already been disabled (KVM thinks the old value # is '0'). # # - Fix a stack leak in KVM_GET_MSRS where a failed MSR read from # userspace that is ultimately ignored due to ignore_msrs=true # doesn't zero the output as intended. # # Selftests cleanups and fixes: # # - Remove redundant newlines from error messages. # # - Delete an unused variable in the AMX test (which causes build # failures when compiling with -Werror). # # - Fail instead of skipping tests if open(), e.g. of /dev/kvm, fails # with an error code other than ENOENT (a Hyper-V selftest bug # resulted in an EMFILE, and the test eventually got skipped). # # - Fix TSC related bugs in several Hyper-V selftests. # # - Fix a bug in the dirty ring logging test where a sem_post() could # be left pending across multiple runs, resulting in incorrect # synchronization between the main thread and the vCPU worker thread. # # - Relax the dirty log split test's assertions on 4KiB mappings to fix # false positives due to the number of mappings for memslot 0 (used # for code and data that is NOT being dirty logged) changing, e.g. # due to NUMA balancing" # # * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (25 commits) # KVM: arm64: Fix double-free following kvm_pgtable_stage2_free_unlinked() # RISC-V: KVM: Use correct restricted types # RISC-V: paravirt: Use correct restricted types # RISC-V: paravirt: steal_time should be static # KVM: selftests: Don't assert on exact number of 4KiB in dirty log split test # KVM: selftests: Fix a semaphore imbalance in the dirty ring logging test # KVM: x86: Fix KVM_GET_MSRS stack info leak # KVM: arm64: Do not source virt/lib/Kconfig twice # KVM: x86/pmu: Fix type length error when reading pmu->fixed_ctr_ctrl # KVM: x86: Make gtod_is_based_on_tsc() return 'bool' # KVM: selftests: Make hyperv_clock require TSC based system clocksource # KVM: selftests: Run clocksource dependent tests with hyperv_clocksource_tsc_page too # KVM: selftests: Use generic sys_clocksource_is_tsc() in vmx_nested_tsc_scaling_test # KVM: selftests: Generalize check_clocksource() from kvm_clock_test # KVM: x86: make KVM_REQ_NMI request iff NMI pending for vcpu # KVM: arm64: Fix circular locking dependency # KVM: selftests: Fail tests when open() fails with !ENOENT # KVM: selftests: Avoid infinite loop in hyperv_features when invtsc is missing # KVM: selftests: Delete superfluous, unused "stage" variable in AMX test # KVM: selftests: x86_64: Remove redundant newlines # ... # < /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 683b783c2093e0172738f899ba188bc406b0595f # 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/math-emu/math.c:492:5: error: no previous prototype for 'do_fpu_inst' [-Werror=missing-prototypes] 492 | int do_fpu_inst(unsigned short inst, struct pt_regs *regs) | ^~~~~~~~~~~ /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/arch/sh/mm/cache-sh2.c:85:13: error: no previous prototype for 'sh2_cache_init' [-Werror=missing-prototypes] 85 | void __init sh2_cache_init(void) | ^~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[5]: *** [/kisskb/src/scripts/Makefile.build:243: arch/sh/mm/cache-sh2.o] Error 1 make[5]: *** Waiting for unfinished jobs.... /kisskb/src/arch/sh/mm/nommu.c:76:13: error: no previous prototype for 'kmap_coherent_init' [-Werror=missing-prototypes] 76 | void __init kmap_coherent_init(void) | ^~~~~~~~~~~~~~~~~~ /kisskb/src/arch/sh/mm/nommu.c:80:7: error: no previous prototype for 'kmap_coherent' [-Werror=missing-prototypes] 80 | void *kmap_coherent(struct page *page, unsigned long addr) | ^~~~~~~~~~~~~ /kisskb/src/arch/sh/mm/nommu.c:86:6: error: no previous prototype for 'kunmap_coherent' [-Werror=missing-prototypes] 86 | void kunmap_coherent(void *kvaddr) | ^~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[5]: *** [/kisskb/src/scripts/Makefile.build:243: arch/sh/mm/nommu.o] Error 1 make[4]: *** [/kisskb/src/scripts/Makefile.build:481: arch/sh/mm] Error 2 make[4]: *** Waiting for unfinished jobs.... cc1: all warnings being treated as errors make[5]: *** [/kisskb/src/scripts/Makefile.build:243: arch/sh/math-emu/math.o] Error 1 make[4]: *** [/kisskb/src/scripts/Makefile.build:481: arch/sh/math-emu] Error 2 /kisskb/src/arch/sh/kernel/cpu/init.c:99:29: error: no previous prototype for 'l2_cache_init' [-Werror=missing-prototypes] 99 | void __attribute__ ((weak)) l2_cache_init(void) | ^~~~~~~~~~~~~ cc1: all warnings being treated as errors make[6]: *** [/kisskb/src/scripts/Makefile.build:243: arch/sh/kernel/cpu/init.o] Error 1 make[6]: *** Waiting for unfinished jobs.... make[5]: *** [/kisskb/src/scripts/Makefile.build:481: arch/sh/kernel/cpu] Error 2 make[4]: *** [/kisskb/src/scripts/Makefile.build:481: arch/sh/kernel] Error 2 make[3]: *** [/kisskb/src/scripts/Makefile.build:481: arch/sh] Error 2 make[3]: *** Waiting for unfinished jobs.... {standard input}: Assembler messages: {standard input}:1094: Warning: end of file not at end of a line; newline inserted {standard input}:1095: Error: expected symbol name 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:243: drivers/net/pcs/pcs-xpcs.o] Error 4 make[5]: *** [/kisskb/src/scripts/Makefile.build:481: drivers/net/pcs] Error 2 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [/kisskb/src/scripts/Makefile.build:481: 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}:606: Error: missing operand {standard input}:606: Error: missing operand {standard input}:606: Error: invalid operands for opcode {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive 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:243: drivers/hwmon/pmbus/mp2975.o] Error 4 make[5]: *** [/kisskb/src/scripts/Makefile.build:481: drivers/hwmon/pmbus] Error 2 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [/kisskb/src/scripts/Makefile.build:481: drivers/hwmon] Error 2 make[3]: *** [/kisskb/src/scripts/Makefile.build:481: drivers] Error 2 make[2]: *** [/kisskb/src/Makefile:1921: .] Error 2 make[1]: *** [/kisskb/src/Makefile:240: __sub-make] Error 2 make: *** [Makefile:240: __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:07:11.592135