1. 12 Sep, 2024 2 commits
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v6.11-7' of... · 42c5b519
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v6.11-7' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
      
      Pull x86 platform driver fixes from Ilpo Järvinen:
      
       - asus-wmi: Disable OOBE that interferes with backlight control
      
       - panasonic-laptop: Two fixes to SINF array handling
      
      * tag 'platform-drivers-x86-v6.11-7' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
        platform/x86: asus-wmi: Disable OOBE experience on Zenbook S 16
        platform/x86: panasonic-laptop: Allocate 1 entry extra in the sinf array
        platform/x86: panasonic-laptop: Fix SINF array out of bounds accesses
      42c5b519
    • Linus Torvalds's avatar
      mm: avoid leaving partial pfn mappings around in error case · 79a61cc3
      Linus Torvalds authored
      As Jann points out, PFN mappings are special, because unlike normal
      memory mappings, there is no lifetime information associated with the
      mapping - it is just a raw mapping of PFNs with no reference counting of
      a 'struct page'.
      
      That's all very much intentional, but it does mean that it's easy to
      mess up the cleanup in case of errors.  Yes, a failed mmap() will always
      eventually clean up any partial mappings, but without any explicit
      lifetime in the page table mapping itself, it's very easy to do the
      error handling in the wrong order.
      
      In particular, it's easy to mistakenly free the physical backing store
      before the page tables are actually cleaned up and (temporarily) have
      stale dangling PTE entries.
      
      To make this situation less error-prone, just make sure that any partial
      pfn mapping is torn down early, before any other error handling.
      Reported-and-tested-by: default avatarJann Horn <jannh@google.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Jason Gunthorpe <jgg@ziepe.ca>
      Cc: Simona Vetter <simona.vetter@ffwll.ch>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      79a61cc3
  2. 11 Sep, 2024 7 commits
  3. 10 Sep, 2024 2 commits
  4. 09 Sep, 2024 13 commits
  5. 08 Sep, 2024 6 commits
  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