1. 15 Sep, 2024 2 commits
    • Paolo Bonzini's avatar
      Merge tag 'loongarch-kvm-6.12' of... · 1a371190
      Paolo Bonzini authored
      Merge tag 'loongarch-kvm-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson into HEAD
      
      LoongArch KVM changes for v6.12
      
      1. Revert qspinlock to test-and-set simple lock on VM.
      2. Add Loongson Binary Translation extension support.
      3. Add PMU support for guest.
      4. Enable paravirt feature control from VMM.
      5. Implement function kvm_para_has_feature().
      1a371190
    • Paolo Bonzini's avatar
      Merge tag 'kvmarm-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD · 091b2eca
      Paolo Bonzini authored
      KVM/arm64 updates for 6.12
      
      * New features:
      
        - Add a Stage-2 page table dumper, reusing the main ptdump
          infrastructure, and allowing easier debugging of the our
          page-table infrastructure
      
        - Add FP8 support to the KVM/arm64 floating point handling.
      
        - Add NV support for the AT family of instructions, which mostly
          results in adding a page table walker that deals with most of the
          complexity of the architecture.
      
      * Improvements, fixes and cleanups:
      
        - Add selftest checks for a bunch of timer emulation corner cases
      
        - Fix the multiple of cases where KVM/arm64 doesn't correctly handle
          the guest trying to use a GICv3 that isn't advertised
      
        - Remove REG_HIDDEN_USER from the sysreg infrastructure, making
          things little more simple
      
        - Prevent MTE tags being restored by userspace if we are actively
          logging writes, as that's a recipe for disaster
      
        - Correct the refcount on a page that is not considered for MTE tag
          copying (such as a device)
      
        - Relax the synchronisation when walking a page table to split block
          mappings, moving it at the end the walk, as there is no need to
          perform it on every store.
      
        - Fix boundary check when transfering memory using FFA
      
        - Fix pKVM TLB invalidation, only affecting currently out of tree
          code but worth addressing for peace of mind
      091b2eca
  2. 12 Sep, 2024 10 commits
    • Bibo Mao's avatar
      LoongArch: KVM: Implement function kvm_para_has_feature() · 3abb708e
      Bibo Mao authored
      Implement function kvm_para_has_feature() to detect supported paravirt
      features. It can be used by device driver to detect and enable paravirt
      features, such as the EIOINTC irqchip driver is able to detect feature
      KVM_FEATURE_VIRT_EXTIOI and do some optimization.
      Signed-off-by: default avatarBibo Mao <maobibo@loongson.cn>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      3abb708e
    • Bibo Mao's avatar
      LoongArch: KVM: Enable paravirt feature control from VMM · cdc118f8
      Bibo Mao authored
      Export kernel paravirt features to user space, so that VMM can control
      each single paravirt feature. By default paravirt features will be the
      same with kvm supported features if VMM does not set it.
      
      Also a new feature KVM_FEATURE_VIRT_EXTIOI is added which can be set
      from user space. This feature indicates that the virt EIOINTC can route
      interrupts to 256 vCPUs, rather than 4 vCPUs like with real HW.
      Signed-off-by: default avatarBibo Mao <maobibo@loongson.cn>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      cdc118f8
    • Song Gao's avatar
      LoongArch: KVM: Add PMU support for guest · f4e40ea9
      Song Gao authored
      On LoongArch, the host and guest have their own PMU CSRs registers and
      they share PMU hardware resources. A set of PMU CSRs consists of a CTRL
      register and a CNTR register. We can set which PMU CSRs are used by the
      guest by writing to the GCFG register [24:26] bits.
      
      On KVM side:
      - Save the host PMU CSRs into structure kvm_context.
      - If the host supports the PMU feature.
        - When entering guest mode, save the host PMU CSRs and restore the guest PMU CSRs.
        - When exiting guest mode, save the guest PMU CSRs and restore the host PMU CSRs.
      Reviewed-by: default avatarBibo Mao <maobibo@loongson.cn>
      Signed-off-by: default avatarSong Gao <gaosong@loongson.cn>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      f4e40ea9
    • Marc Zyngier's avatar
      Merge branch kvm-arm64/visibility-cleanups into kvmarm-master/next · 17a00056
      Marc Zyngier authored
      * kvm-arm64/visibility-cleanups:
        : .
        : Remove REG_HIDDEN_USER from the sysreg infrastructure, making things
        : a little more simple. From the cover letter:
        :
        : "Since 4d4f5205 ("KVM: arm64: nv: Drop EL12 register traps that are
        : redirected to VNCR") and the admission that KVM would never be supporting
        : the original FEAT_NV, REG_HIDDEN_USER only had a few users, all of which
        : could either be replaced by a more ad-hoc mechanism, or removed altogether."
        : .
        KVM: arm64: Get rid of REG_HIDDEN_USER visibility qualifier
        KVM: arm64: Simplify visibility handling of AArch32 SPSR_*
        KVM: arm64: Simplify handling of CNTKCTL_EL12
      Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
      17a00056
    • Marc Zyngier's avatar
      Merge branch kvm-arm64/s2-ptdump into kvmarm-master/next · f6254690
      Marc Zyngier authored
      * kvm-arm64/s2-ptdump:
        : .
        : Stage-2 page table dumper, reusing the main ptdump infrastructure,
        : courtesy of Sebastian Ene. From the cover letter:
        :
        : "This series extends the ptdump support to allow dumping the guest
        : stage-2 pagetables. When CONFIG_PTDUMP_STAGE2_DEBUGFS is enabled, ptdump
        : registers the new following files under debugfs:
        : - /sys/debug/kvm/<guest_id>/stage2_page_tables
        : - /sys/debug/kvm/<guest_id>/stage2_levels
        : - /sys/debug/kvm/<guest_id>/ipa_range
        :
        : This allows userspace tools (eg. cat) to dump the stage-2 pagetables by
        : reading the 'stage2_page_tables' file.
        : [...]"
        : .
        KVM: arm64: Register ptdump with debugfs on guest creation
        arm64: ptdump: Don't override the level when operating on the stage-2 tables
        arm64: ptdump: Use the ptdump description from a local context
        arm64: ptdump: Expose the attribute parsing functionality
        KVM: arm64: Move pagetable definitions to common header
      Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
      f6254690
    • Marc Zyngier's avatar
      Merge branch kvm-arm64/nv-at-pan into kvmarm-master/next · 2e0f2394
      Marc Zyngier authored
      * kvm-arm64/nv-at-pan:
        : .
        : Add NV support for the AT family of instructions, which mostly results
        : in adding a page table walker that deals with most of the complexity
        : of the architecture.
        :
        : From the cover letter:
        :
        : "Another task that a hypervisor supporting NV on arm64 has to deal with
        : is to emulate the AT instruction, because we multiplex all the S1
        : translations on a single set of registers, and the guest S2 is never
        : truly resident on the CPU.
        :
        : So given that we lie about page tables, we also have to lie about
        : translation instructions, hence the emulation. Things are made
        : complicated by the fact that guest S1 page tables can be swapped out,
        : and that our shadow S2 is likely to be incomplete. So while using AT
        : to emulate AT is tempting (and useful), it is not going to always
        : work, and we thus need a fallback in the shape of a SW S1 walker."
        : .
        KVM: arm64: nv: Add support for FEAT_ATS1A
        KVM: arm64: nv: Plumb handling of AT S1* traps from EL2
        KVM: arm64: nv: Make AT+PAN instructions aware of FEAT_PAN3
        KVM: arm64: nv: Sanitise SCTLR_EL1.EPAN according to VM configuration
        KVM: arm64: nv: Add SW walker for AT S1 emulation
        KVM: arm64: nv: Make ps_to_output_size() generally available
        KVM: arm64: nv: Add emulation of AT S12E{0,1}{R,W}
        KVM: arm64: nv: Add basic emulation of AT S1E2{R,W}
        KVM: arm64: nv: Add basic emulation of AT S1E1{R,W}P
        KVM: arm64: nv: Add basic emulation of AT S1E{0,1}{R,W}
        KVM: arm64: nv: Honor absence of FEAT_PAN2
        KVM: arm64: nv: Turn upper_attr for S2 walk into the full descriptor
        KVM: arm64: nv: Enforce S2 alignment when contiguous bit is set
        arm64: Add ESR_ELx_FSC_ADDRSZ_L() helper
        arm64: Add system register encoding for PSTATE.PAN
        arm64: Add PAR_EL1 field description
        arm64: Add missing APTable and TCR_ELx.HPD masks
        KVM: arm64: Make kvm_at() take an OP_AT_*
      Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
      
      # Conflicts:
      #	arch/arm64/kvm/nested.c
      2e0f2394
    • Marc Zyngier's avatar
      Merge branch kvm-arm64/selftests-6.12 into kvmarm-master/next · f77e63e2
      Marc Zyngier authored
      * kvm-arm64/selftests-6.12:
        : .
        : KVM/arm64 selftest updates for 6.12
        :
        : - Check for a bunch of timer emulation corner cases (COlton Lewis)
        : .
        KVM: arm64: selftests: Add arch_timer_edge_cases selftest
        KVM: arm64: selftests: Ensure pending interrupts are handled in arch_timer test
      Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
      f77e63e2
    • Marc Zyngier's avatar
      Merge branch kvm-arm64/vgic-sre-traps into kvmarm-master/next · acf2ab28
      Marc Zyngier authored
      * kvm-arm64/vgic-sre-traps:
        : .
        : Fix the multiple of cases where KVM/arm64 doesn't correctly
        : handle the guest trying to use a GICv3 that isn't advertised.
        :
        : From the cover letter:
        :
        : "It recently appeared that, when running on a GICv3-equipped platform
        : (which is what non-ancient arm64 HW has), *not* configuring a GICv3
        : for the guest could result in less than desirable outcomes.
        :
        : We have multiple issues to fix:
        :
        : - for registers that *always* trap (the SGI registers) or that *may*
        :   trap (the SRE register), we need to check whether a GICv3 has been
        :   instantiated before acting upon the trap.
        :
        : - for registers that only conditionally trap, we must actively trap
        :   them even in the absence of a GICv3 being instantiated, and handle
        :   those traps accordingly.
        :
        : - finally, ID registers must reflect the absence of a GICv3, so that
        :   we are consistent.
        :
        : This series goes through all these requirements. The main complexity
        : here is to apply a GICv3 configuration on the host in the absence of a
        : GICv3 in the guest. This is pretty hackish, but I don't have a much
        : better solution so far.
        :
        : As part of making wider use of of the trap bits, we fully define the
        : trap routing as per the architecture, something that we eventually
        : need for NV anyway."
        : .
        KVM: arm64: selftests: Cope with lack of GICv3 in set_id_regs
        KVM: arm64: Add selftest checking how the absence of GICv3 is handled
        KVM: arm64: Unify UNDEF injection helpers
        KVM: arm64: Make most GICv3 accesses UNDEF if they trap
        KVM: arm64: Honor guest requested traps in GICv3 emulation
        KVM: arm64: Add trap routing information for ICH_HCR_EL2
        KVM: arm64: Add ICH_HCR_EL2 to the vcpu state
        KVM: arm64: Zero ID_AA64PFR0_EL1.GIC when no GICv3 is presented to the guest
        KVM: arm64: Add helper for last ditch idreg adjustments
        KVM: arm64: Force GICv3 trap activation when no irqchip is configured on VHE
        KVM: arm64: Force SRE traps when SRE access is not enabled
        KVM: arm64: Move GICv3 trap configuration to kvm_calculate_traps()
      Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
      acf2ab28
    • Marc Zyngier's avatar
      Merge branch kvm-arm64/fpmr into kvmarm-master/next · 091258a0
      Marc Zyngier authored
      * kvm-arm64/fpmr:
        : .
        : Add FP8 support to the KVM/arm64 floating point handling.
        :
        : This includes new ID registers (ID_AA64PFR2_EL1 ID_AA64FPFR0_EL1)
        : being made visible to guests, as well as a new confrol register
        : (FPMR) which gets context-switched.
        : .
        KVM: arm64: Expose ID_AA64PFR2_EL1 to userspace and guests
        KVM: arm64: Enable FP8 support when available and configured
        KVM: arm64: Expose ID_AA64FPFR0_EL1 as a writable ID reg
        KVM: arm64: Honor trap routing for FPMR
        KVM: arm64: Add save/restore support for FPMR
        KVM: arm64: Move FPMR into the sysreg array
        KVM: arm64: Add predicate for FPMR support in a VM
        KVM: arm64: Move SVCR into the sysreg array
      Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
      091258a0
    • Marc Zyngier's avatar
      Merge branch kvm-arm64/mmu-misc-6.12 into kvmarm-master/next · 8884fd12
      Marc Zyngier authored
      * kvm-arm64/mmu-misc-6.12:
        : .
        : Various minor MMU improvements and bug-fixes:
        :
        : - Prevent MTE tags being restored by userspace if we are actively
        :   logging writes, as that's a recipe for disaster
        :
        : - Correct the refcount on a page that is not considered for MTE
        :   tag copying (such as a device)
        :
        : - When walking a page table to split blocks, keep the DSB at the end
        :   the walk, as there is no need to perform it on every store.
        :
        : - Fix boundary check when transfering memory using FFA
        : .
        KVM: arm64: Add memory length checks and remove inline in do_ffa_mem_xfer
        KVM: arm64: Disallow copying MTE to guest memory while KVM is dirty logging
        KVM: arm64: Release pfn, i.e. put page, if copying MTE tags hits ZONE_DEVICE
        KVM: arm64: Move data barrier to end of split walk
      Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
      8884fd12
  3. 11 Sep, 2024 7 commits
  4. 10 Sep, 2024 6 commits
  5. 08 Sep, 2024 5 commits
    • Linus Torvalds's avatar
      Linux 6.11-rc7 · da3ea350
      Linus Torvalds authored
      da3ea350
    • Linus Torvalds's avatar
      Merge tag 'timers_urgent_for_v6.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 89f5e14d
      Linus Torvalds authored
      Pull timer fixes from Borislav Petkov:
      
       - Remove percpu irq related code in the timer-of initialization routine
         as it is broken but also unused (Daniel Lezcano)
      
       - Fix return -ETIME when delta exceeds INT_MAX and the next event not
         taking effect sometimes (Jacky Bai)
      
      * tag 'timers_urgent_for_v6.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        clocksource/drivers/imx-tpm: Fix next event not taking effect sometime
        clocksource/drivers/imx-tpm: Fix return -ETIME when delta exceeds INT_MAX
        clocksource/drivers/timer-of: Remove percpu irq related code
      89f5e14d
    • Linus Torvalds's avatar
      Merge tag 'perf_urgent_for_v6.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · e2039887
      Linus Torvalds authored
      Pull perf fixes from Borislav Petkov:
      
       - Fix perf's AUX buffer serialization
      
       - Prevent uninitialized struct members in perf's uprobes handling
      
      * tag 'perf_urgent_for_v6.11_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/aux: Fix AUX buffer serialization
        uprobes: Use kzalloc to allocate xol area
      e2039887
    • Linus Torvalds's avatar
      Merge tag 'char-misc-6.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 5dadc1be
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg KH:
       "Here are some small char/misc/other driver fixes for 6.11-rc7. It's
        nothing huge, just a bunch of small fixes of reported problems,
        including:
      
         - lots of tiny iio driver fixes
      
         - nvmem driver fixex
      
         - binder UAF bugfix
      
         - uio driver crash fix
      
         - other small fixes
      
        All of these have been in linux-next this week with no reported
        problems"
      
      * tag 'char-misc-6.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (21 commits)
        VMCI: Fix use-after-free when removing resource in vmci_resource_remove()
        Drivers: hv: vmbus: Fix rescind handling in uio_hv_generic
        uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind
        misc: keba: Fix sysfs group creation
        dt-bindings: nvmem: Use soc-nvmem node name instead of nvmem
        nvmem: Fix return type of devm_nvmem_device_get() in kerneldoc
        nvmem: u-boot-env: error if NVMEM device is too small
        misc: fastrpc: Fix double free of 'buf' in error path
        binder: fix UAF caused by offsets overwrite
        iio: imu: inv_mpu6050: fix interrupt status read for old buggy chips
        iio: adc: ad7173: fix GPIO device info
        iio: adc: ad7124: fix DT configuration parsing
        iio: adc: ad_sigma_delta: fix irq_flags on irq request
        iio: adc: ads1119: Fix IRQ flags
        iio: fix scale application in iio_convert_raw_to_processed_unlocked
        iio: adc: ad7124: fix config comparison
        iio: adc: ad7124: fix chip ID mismatch
        iio: adc: ad7173: Fix incorrect compatible string
        iio: buffer-dmaengine: fix releasing dma channel on error
        iio: adc: ad7606: remove frstdata check for serial mode
        ...
      5dadc1be
    • Linus Torvalds's avatar
      Merge tag 'usb-6.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 51c4d5f1
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are a handful of small USB fixes for 6.11-rc7. Included in here
        are:
      
         - dwc3 driver fixes for two reported problems
      
         - two typec ucsi driver fixes
      
         - cdns2 controller reset fix
      
        All of these have been in linux-next this week with no reported
        problems"
      
      * tag 'usb-6.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        usb: typec: ucsi: Fix cable registration
        usb: typec: ucsi: Fix the partner PD revision
        usb: cdns2: Fix controller reset issue
        usb: dwc3: core: update LC timer as per USB Spec V3.2
        usb: dwc3: Avoid waking up gadget during startxfer
      51c4d5f1
  6. 07 Sep, 2024 6 commits
    • Linus Torvalds's avatar
      Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · d1f2d51b
      Linus Torvalds authored
      Pull clk fixes from Stephen Boyd:
       "A pile of Qualcomm clk driver fixes with two main themes: the alpha
        PLL driver and shared RCGs, and one fix for the Starfive JH7110 SoC.
      
         - The Alpha PLL clk_ops had multiple problems around setting rates.
      
           There are a handful of patches here that fix masks and skip
           enabling the clk from set_rate() when the PLL is disabled. The PLLs
           are crucial to operation of the system as almost all frequencies in
           the system are derived from them.
      
         - Parking shared RCGs at a slow always on clk at registration time
           breaks stuff.
      
           USB host mode can't handle such a slow frequency and the serial
           console gets all garbled when the UART clk is handed over to the
           kernel. There's a few patches that don't use the shared clk_ops for
           the UART clks and another one to skip parking the USB clk at
           registration time.
      
         - The Starfive PLL driver used for the CPU was busted causing cpufreq
           to fail because the clk didn't change to a safe parent during
           set_rate().
      
           The fix is to register a notifier and switch to a safe parent so
           the PLL can change rate in a glitch free manner"
      
      * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
        clk: qcom: gcc-sc8280xp: don't use parking clk_ops for QUPs
        clk: starfive: jh7110-sys: Add notifier for PLL0 clock
        clk: qcom: gcc-sm8650: Don't use shared clk_ops for QUPs
        clk: qcom: gcc-sm8550: Don't park the USB RCG at registration time
        clk: qcom: gcc-sm8550: Don't use parking clk_ops for QUPs
        clk: qcom: gcc-x1e80100: Don't use parking clk_ops for QUPs
        clk: qcom: ipq9574: Update the alpha PLL type for GPLLs
        clk: qcom: gcc-x1e80100: Fix USB 0 and 1 PHY GDSC pwrsts flags
        clk: qcom: clk-alpha-pll: Update set_rate for Zonda PLL
        clk: qcom: clk-alpha-pll: Fix zonda set_rate failure when PLL is disabled
        clk: qcom: clk-alpha-pll: Fix the trion pll postdiv set rate API
        clk: qcom: clk-alpha-pll: Fix the pll post div mask
      d1f2d51b
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 37d4cc69
      Linus Torvalds authored
      Pull SCSI fix from James Bottomley:
       "Single ufs driver fix quirking around another device spec violation"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: ufs: ufs-mediatek: Add UFSHCD_QUIRK_BROKEN_LSDBS_CAP
      37d4cc69
    • Linus Torvalds's avatar
      Merge tag 'pinctrl-v6.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · 87276562
      Linus Torvalds authored
      Pull pin control fix from Linus Walleij:
       "A single fix for Qualcomm laptops that are affected by
        missing wakeup IRQs"
      
      * tag 'pinctrl-v6.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
        pinctrl: qcom: x1e80100: Bypass PDC wakeup parent for now
      87276562
    • Linus Torvalds's avatar
      Merge tag 'linux_kselftest-kunit-fixes-6.11-rc7-2' of... · b31c4492
      Linus Torvalds authored
      Merge tag 'linux_kselftest-kunit-fixes-6.11-rc7-2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      PullKUnit fix from Shuah Khan:
       "Fix to a missing function parameter warning found during documentation
        build in linux-next"
      
      * tag 'linux_kselftest-kunit-fixes-6.11-rc7-2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        kunit: Fix missing kerneldoc comment
      b31c4492
    • Linus Torvalds's avatar
      Merge tag 'pci-v6.11-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci · 487ee43b
      Linus Torvalds authored
      Pull pci fixes from Bjorn Helgaas:
      
       - Unregister platform devices for child nodes when stopping a PCI
         device, even if the PCI core has already cleared the OF_POPULATED bit
         and of_platform_depopulate() doesn't do anything (Bartosz
         Golaszewski)
      
       - Rescan the bus from a separate thread so we don't deadlock when
         triggering rescan from sysfs (Bartosz Golaszewski)
      
      * tag 'pci-v6.11-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci:
        PCI/pwrctl: Rescan bus on a separate thread
        PCI: Don't rely on of_platform_depopulate() for reused OF-nodes
      487ee43b
    • Linus Torvalds's avatar
      Merge tag 'v6.11-rc6-cifs-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · a86b83f7
      Linus Torvalds authored
      Pull smb client fixes from Steve French:
      
       - fix potential mount hang
      
       - fix retry problem in two types of compound operations
      
       - important netfs integration fix in SMB1 read paths
      
       - fix potential uninitialized zero point of inode
      
       - minor patch to improve debugging for potential crediting problems
      
      * tag 'v6.11-rc6-cifs-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        netfs, cifs: Improve some debugging bits
        cifs: Fix SMB1 readv/writev callback in the same way as SMB2/3
        cifs: Fix zero_point init on inode initialisation
        smb: client: fix double put of @cfile in smb2_set_path_size()
        smb: client: fix double put of @cfile in smb2_rename_path()
        smb: client: fix hang in wait_for_response() for negproto
      a86b83f7
  7. 06 Sep, 2024 4 commits
    • Linus Torvalds's avatar
      KVM: x86: don't fall through case statements without annotations · 9d4c3040
      Linus Torvalds authored
      clang warns on this because it has an unannotated fall-through between
      cases:
      
         arch/x86/kvm/x86.c:4819:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
      
      and while we could annotate it as a fallthrough, the proper fix is to
      just add the break for this case, instead of falling through to the
      default case and the break there.
      
      gcc also has that warning, but it looks like gcc only warns for the
      cases where they fall through to "real code", rather than to just a
      break.  Odd.
      
      Fixes: d30d9ee9 ("KVM: x86: Only advertise KVM_CAP_READONLY_MEM when supported by VM")
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Tom Dohrmann <erbse.13@gmx.de>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9d4c3040
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 6b8ff511
      Linus Torvalds authored
      Pull arm64 fix from Catalin Marinas:
       "Fix the arm64 usage of ftrace_graph_ret_addr() to pass the
        &state->graph_idx pointer instead of NULL, otherwise this function
        just returns early"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: stacktrace: fix the usage of ftrace_graph_ret_addr()
      6b8ff511
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-6.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 890daede
      Linus Torvalds authored
      Pull RISC-V fixes from Palmer Dabbelt:
      
       - A revert for the mmap() change that ties the allocation range to the
         hint adress, as what we tried to do ended up regressing on other
         userspace workloads.
      
       - A fix to avoid a kernel memory leak when emulating misaligned
         accesses from userspace.
      
       - A Kconfig fix for toolchain vector detection, which now correctly
         detects vector support on toolchains where the V extension depends on
         the M extension.
      
       - A fix to avoid failing the linear mapping bootmem bounds check on
         NOMMU systems.
      
       - A fix for early alternatives on relocatable kernels.
      
      * tag 'riscv-for-linus-6.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: Fix RISCV_ALTERNATIVE_EARLY
        riscv: Do not restrict memory size because of linear mapping on nommu
        riscv: Fix toolchain vector detection
        riscv: misaligned: Restrict user access to kernel memory
        riscv: mm: Do not restrict mmap address based on hint
        riscv: selftests: Remove mmap hint address checks
        Revert "RISC-V: mm: Document mmap changes"
      890daede
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · a78d7dce
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix a deadlock in the powerpc qspinlock MCS queue logic
      
       - Fix the return type of pgd_val() to not truncate 64-bit PTEs on 85xx
      
       - Allow the check for dynamic relocations in the VDSO to work correctly
      
       - Make mmu_pte_psize static to fix a build error
      
      Thanks to Christophe Leroy, Nysal Jan K.A., Nicholas Piggin, Geetika
      Moolchandani, Jijo Varghese, and Vaishnavi Bhat.
      
      * tag 'powerpc-6.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/qspinlock: Fix deadlock in MCS queue
        powerpc/mm: Fix return type of pgd_val()
        powerpc/vdso: Don't discard rela sections
        powerpc/64e: Define mmu_pte_psize static
      a78d7dce