# 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/sparc64-linux/bin/sparc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sparc64-linux/bin/sparc64-linux-ld --version # < git log --format=%s --max-count=1 683b783c2093e0172738f899ba188bc406b0595f # make -s -j 160 ARCH=sparc64 O=/kisskb/build/linus_defconfig_sparc64-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sparc64-linux/bin/sparc64-linux- defconfig # < make -s -j 160 ARCH=sparc64 O=/kisskb/build/linus_defconfig_sparc64-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sparc64-linux/bin/sparc64-linux- help # make -s -j 160 ARCH=sparc64 O=/kisskb/build/linus_defconfig_sparc64-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sparc64-linux/bin/sparc64-linux- olddefconfig # make -s -j 160 ARCH=sparc64 O=/kisskb/build/linus_defconfig_sparc64-gcc13 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sparc64-linux/bin/sparc64-linux- :1519:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/arch/sparc/prom/p1275.c:52:6: warning: no previous prototype for 'prom_cif_init' [-Wmissing-prototypes] 52 | void prom_cif_init(void *cif_handler, void *cif_stack) | ^~~~~~~~~~~~~ /kisskb/src/arch/sparc/prom/misc_64.c:165:5: warning: no previous prototype for 'prom_get_mmu_ihandle' [-Wmissing-prototypes] 165 | int prom_get_mmu_ihandle(void) | ^~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/sparc/vdso/vma.c:246:12: warning: no previous prototype for 'init_vdso_image' [-Wmissing-prototypes] 246 | int __init init_vdso_image(const struct vdso_image *image, | ^~~~~~~~~~~~~~~ /kisskb/src/arch/sparc/kernel/traps_64.c:253:6: warning: no previous prototype for 'is_no_fault_exception' [-Wmissing-prototypes] 253 | bool is_no_fault_exception(struct pt_regs *regs) | ^~~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/sparc/kernel/traps_64.c:2035:6: warning: no previous prototype for 'do_mcd_err' [-Wmissing-prototypes] 2035 | void do_mcd_err(struct pt_regs *regs, struct sun4v_error_entry ent) | ^~~~~~~~~~ /kisskb/src/arch/sparc/kernel/traps_64.c:2153:6: warning: no previous prototype for 'sun4v_nonresum_error_user_handled' [-Wmissing-prototypes] 2153 | bool sun4v_nonresum_error_user_handled(struct pt_regs *regs, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/sparc/mm/init_64.c:2644:6: warning: no previous prototype for 'vmemmap_free' [-Wmissing-prototypes] 2644 | void vmemmap_free(unsigned long start, unsigned long end, | ^~~~~~~~~~~~ /kisskb/src/arch/sparc/vdso/vclock_gettime.c:254:1: warning: no previous prototype for '__vdso_clock_gettime' [-Wmissing-prototypes] 254 | __vdso_clock_gettime(clockid_t clock, struct __kernel_old_timespec *ts) | ^~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/sparc/vdso/vclock_gettime.c:282:1: warning: no previous prototype for '__vdso_clock_gettime_stick' [-Wmissing-prototypes] 282 | __vdso_clock_gettime_stick(clockid_t clock, struct __kernel_old_timespec *ts) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/sparc/vdso/vclock_gettime.c:307:1: warning: no previous prototype for '__vdso_gettimeofday' [-Wmissing-prototypes] 307 | __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) | ^~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/sparc/vdso/vclock_gettime.c:343:1: warning: no previous prototype for '__vdso_gettimeofday_stick' [-Wmissing-prototypes] 343 | __vdso_gettimeofday_stick(struct __kernel_old_timeval *tv, struct timezone *tz) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sparc64-linux/bin/sparc64-linux-ld: warning: arch/sparc/vdso/vdso-note.o: missing .note.GNU-stack section implies executable stack /opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sparc64-linux/bin/sparc64-linux-ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker In file included from /kisskb/src/arch/sparc/vdso/vdso32/vclock_gettime.c:22: /kisskb/src/arch/sparc/vdso/vdso32/../vclock_gettime.c:254:1: warning: no previous prototype for '__vdso_clock_gettime' [-Wmissing-prototypes] 254 | __vdso_clock_gettime(clockid_t clock, struct __kernel_old_timespec *ts) | ^~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/sparc/vdso/vdso32/../vclock_gettime.c:282:1: warning: no previous prototype for '__vdso_clock_gettime_stick' [-Wmissing-prototypes] 282 | __vdso_clock_gettime_stick(clockid_t clock, struct __kernel_old_timespec *ts) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/sparc/vdso/vdso32/../vclock_gettime.c:307:1: warning: no previous prototype for '__vdso_gettimeofday' [-Wmissing-prototypes] 307 | __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) | ^~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/sparc/vdso/vdso32/../vclock_gettime.c:343:1: warning: no previous prototype for '__vdso_gettimeofday_stick' [-Wmissing-prototypes] 343 | __vdso_gettimeofday_stick(struct __kernel_old_timeval *tv, struct timezone *tz) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sparc64-linux/bin/sparc64-linux-ld: warning: arch/sparc/vdso/vdso32/vdso-note.o: missing .note.GNU-stack section implies executable stack /opt/cross/kisskb/korg/gcc-13.1.0-nolibc/sparc64-linux/bin/sparc64-linux-ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker /kisskb/src/arch/sparc/kernel/setup_64.c:602:13: warning: no previous prototype for 'alloc_irqstack_bootmem' [-Wmissing-prototypes] 602 | void __init alloc_irqstack_bootmem(void) | ^~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/sparc/kernel/time_64.c:880:20: warning: no previous prototype for 'sched_clock' [-Wmissing-prototypes] 880 | unsigned long long sched_clock(void) | ^~~~~~~~~~~ /kisskb/src/arch/sparc/kernel/adi_64.c:124:21: warning: no previous prototype for 'find_tag_store' [-Wmissing-prototypes] 124 | tag_storage_desc_t *find_tag_store(struct mm_struct *mm, | ^~~~~~~~~~~~~~ /kisskb/src/arch/sparc/kernel/adi_64.c:156:21: warning: no previous prototype for 'alloc_tag_store' [-Wmissing-prototypes] 156 | tag_storage_desc_t *alloc_tag_store(struct mm_struct *mm, | ^~~~~~~~~~~~~~~ /kisskb/src/arch/sparc/kernel/adi_64.c:299:6: warning: no previous prototype for 'del_tag_store' [-Wmissing-prototypes] 299 | void del_tag_store(tag_storage_desc_t *tag_desc, struct mm_struct *mm) | ^~~~~~~~~~~~~ /kisskb/src/arch/sparc/kernel/pci_sun4v.c:259:15: warning: no previous prototype for 'dma_4v_iotsb_bind' [-Wmissing-prototypes] 259 | unsigned long dma_4v_iotsb_bind(unsigned long devhandle, | ^~~~~~~~~~~~~~~~~ /kisskb/src/arch/sparc/kernel/uprobes.c:237:17: warning: no previous prototype for 'uprobe_trap' [-Wmissing-prototypes] 237 | asmlinkage void uprobe_trap(struct pt_regs *regs, | ^~~~~~~~~~~ WARNING: modpost: EXPORT symbol "_mcount" [vmlinux] version generation failed, symbol will not be versioned. Is "_mcount" prototyped in ? Completed OK # rm -rf /kisskb/build/linus_defconfig_sparc64-gcc13 # Build took: 0:00:51.700761