Skip to content
Snippets Groups Projects
  1. Mar 05, 2025
  2. Mar 02, 2025
  3. Mar 01, 2025
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 9d20040d
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "Ryan's been hard at work finding and fixing mm bugs in the arm64 code,
        so here's a small crop of fixes for -rc5.
      
        The main changes are to fix our zapping of non-present PTEs for
        hugetlb entries created using the contiguous bit in the page-table
        rather than a block entry at the level above. Prior to these fixes, we
        were pulling the contiguous bit back out of the PTE in order to
        determine the size of the hugetlb page but this is clearly bogus if
        the thing isn't present and consequently both the clearing of the
        PTE(s) and the TLB invalidation were unreliable.
      
        Although the problem was found by code inspection, we really don't
        want this sitting around waiting to trigger and the changes are CC'd
        to stable accordingly.
      
        Note that the diffstat looks a lot worse than it really is;
        huge_ptep_get_and_clear() now takes a size argument from the core code
        and so all the arch implementations of that have been updated in a
        pretty mechanical fashion.
      
         - Fix a sporadic boot failure due to incorrect randomization of the
           linear map on systems that support it
      
         - Fix the zapping (both clearing the entries *and* invalidating the
           TLB) of hugetlb PTEs constructed using the contiguous bit"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: hugetlb: Fix flush_hugetlb_tlb_range() invalidation level
        arm64: hugetlb: Fix huge_ptep_get_and_clear() for non-present ptes
        mm: hugetlb: Add huge page size param to huge_ptep_get_and_clear()
        arm64/mm: Fix Boot panic on Ampere Altra
      9d20040d
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · b4b215cf
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
       "All driver fixes this time:
      
         - fix interrupt initialization sequence (npcm)
      
         - fix frequency setting (ls2x)
      
         - re-enable interrupts properly at irq handler's exit (amd-asf)"
      
      * tag 'i2c-for-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: amd-asf: Fix EOI register write to enable successive interrupts
        i2c: ls2x: Fix frequency division register access
        i2c: npcm: disable interrupt enable bit before devm_request_irq
      b4b215cf
    • Linus Torvalds's avatar
      Merge tag 'ata-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux · df87d843
      Linus Torvalds authored
      Pull ata fixes from Niklas Cassel:
      
       - Fix a regression where the enablement of the PHYs would be skipped
         for device trees without any port child nodes (me)
      
       - Revert ATA_QUIRK_NOLPM for Samsung SSD 870 QVO drives, as it stops
         systems from entering lower package states. LPM works on newer
         firmware versions. We will need a more refined quirk that only
         targets the older firmware versions (me)
      
      * tag 'ata-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux:
        Revert "ata: libata-core: Add ATA_QUIRK_NOLPM for Samsung SSD 870 QVO drives"
        ata: ahci: Make ahci_ignore_port() handle empty mask_port_map
      df87d843
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 209cd6f2
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "ARM:
      
         - Fix TCR_EL2 configuration to not use the ASID in TTBR1_EL2 and not
           mess-up T1SZ/PS by using the HCR_EL2.E2H==0 layout.
      
         - Bring back the VMID allocation to the vcpu_load phase, ensuring
           that we only setup VTTBR_EL2 once on VHE. This cures an ugly race
           that would lead to running with an unallocated VMID.
      
        RISC-V:
      
         - Fix hart status check in SBI HSM extension
      
         - Fix hart suspend_type usage in SBI HSM extension
      
         - Fix error returned by SBI IPI and TIME extensions for unsupported
           function IDs
      
         - Fix suspend_type usage in SBI SUSP extension
      
         - Remove unnecessary vcpu kick after injecting interrupt via IMSIC
           guest file
      
        x86:
      
         - Fix an nVMX bug where KVM fails to detect that, after nested
           VM-Exit, L1 has a pending IRQ (or NMI).
      
         - To avoid freeing the PIC while vCPUs are still around, which would
           cause a NULL pointer access with the previous patch, destroy vCPUs
           before any VM-level destruction.
      
         - Handle failures to create vhost_tasks"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        kvm: retry nx_huge_page_recovery_thread creation
        vhost: return task creation error instead of NULL
        KVM: nVMX: Process events on nested VM-Exit if injectable IRQ or NMI is pending
        KVM: x86: Free vCPUs before freeing VM state
        riscv: KVM: Remove unnecessary vcpu kick
        KVM: arm64: Ensure a VMID is allocated before programming VTTBR_EL2
        KVM: arm64: Fix tcr_el2 initialisation in hVHE mode
        riscv: KVM: Fix SBI sleep_type use
        riscv: KVM: Fix SBI TIME error generation
        riscv: KVM: Fix SBI IPI error generation
        riscv: KVM: Fix hart suspend_type use
        riscv: KVM: Fix hart suspend status check
      209cd6f2
    • Niklas Cassel's avatar
      Revert "ata: libata-core: Add ATA_QUIRK_NOLPM for Samsung SSD 870 QVO drives" · a2f925a2
      Niklas Cassel authored
      This reverts commit cc77e2ce.
      
      It was reported that adding ATA_QUIRK_NOLPM for Samsung SSD 870 QVO drives
      breaks entering lower package states for certain systems.
      
      It turns out that Samsung SSD 870 QVO actually has working LPM when using
      a recent SSD firmware version.
      
      The author of commit cc77e2ce ("ata: libata-core: Add ATA_QUIRK_NOLPM
      for Samsung SSD 870 QVO drives") reported himself that only older SSD
      firmware versions have broken LPM:
      https://lore.kernel.org/stable/93c10d38-718c-459d-84a5-4d87680b4da7@debian.org/
      
      
      
      Unfortunately, he did not specify which older firmware version he was using
      which had broken LPM.
      
      Let's revert this quirk, which has FW version field specified as NULL
      (which means that it applies for all Samsung SSD 870 QVO firmware versions)
      for now. Once the author reports which older firmware version(s) that are
      broken, we can create a more fine grained quirk, which populates the FW
      version field accordingly.
      
      Fixes: cc77e2ce ("ata: libata-core: Add ATA_QUIRK_NOLPM for Samsung SSD 870 QVO drives")
      Reported-by: default avatarDieter Mummenschanz <dmummenschanz@web.de>
      Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219747
      Link: https://lore.kernel.org/r/20250228122603.91814-2-cassel@kernel.org
      
      
      Signed-off-by: default avatarNiklas Cassel <cassel@kernel.org>
      a2f925a2
    • Keith Busch's avatar
      kvm: retry nx_huge_page_recovery_thread creation · 916b7f42
      Keith Busch authored
      
      A VMM may send a non-fatal signal to its threads, including vCPU tasks,
      at any time, and thus may signal vCPU tasks during KVM_RUN.  If a vCPU
      task receives the signal while its trying to spawn the huge page recovery
      vhost task, then KVM_RUN will fail due to copy_process() returning
      -ERESTARTNOINTR.
      
      Rework call_once() to mark the call complete if and only if the called
      function succeeds, and plumb the function's true error code back to the
      call_once() invoker.  This provides userspace with the correct, non-fatal
      error code so that the VMM doesn't terminate the VM on -ENOMEM, and allows
      subsequent KVM_RUN a succeed by virtue of retrying creation of the NX huge
      page task.
      
      Co-developed-by: default avatarSean Christopherson <seanjc@google.com>
      Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
      [implemented the kvm user side]
      Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
      Message-ID: <20250227230631.303431-3-kbusch@meta.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      916b7f42
    • Keith Busch's avatar
      vhost: return task creation error instead of NULL · cb380909
      Keith Busch authored
      
      Lets callers distinguish why the vhost task creation failed. No one
      currently cares why it failed, so no real runtime change from this
      patch, but that will not be the case for long.
      
      Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
      Message-ID: <20250227230631.303431-2-kbusch@meta.com>
      Reviewed-by: default avatarMike Christie <michael.christie@oracle.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      cb380909
    • Linus Torvalds's avatar
      Merge tag 'thermal-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 03d38806
      Linus Torvalds authored
      Pull thermal control fixes from Rafael Wysocki:
       "These fix the processing of DT thermal properties and the Power
        Allocator thermal governor:
      
         - Fix parsing cooling-maps in DT for trip points with more than one
           cooling device (Rafael Wysocki)
      
         - Fix granted_power computation in the Power Allocator thermal
           governor and make it update total_weight on configuration changes
           after the thermal zone has been registered (Yu-Che Cheng)"
      
      * tag 'thermal-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        thermal: gov_power_allocator: Update total_weight on bind and cdev updates
        thermal/of: Fix cdev lookup in thermal_of_should_bind()
        thermal: gov_power_allocator: Fix incorrect calculation in divvy_up_power()
      03d38806
    • Linus Torvalds's avatar
      Merge tag 'pm-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 14ebe690
      Linus Torvalds authored
      Pull power management fix from Rafael Wysocki:
       "Fix the handling of processors that stop the TSC in deeper C-states in
        the intel_idle driver (Thomas Gleixner)"
      
      * tag 'pm-6.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        intel_idle: Handle older CPUs, which stop the TSC in deeper C states, correctly
      14ebe690
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7a566889
      Linus Torvalds authored
      Pull x86 fixes from Ingo Molnar:
      
       - Fix conflicts between devicetree and ACPI SMP discovery & setup
      
       - Fix a warm-boot lockup on AMD SC1100 SoC systems
      
       - Fix a W=1 build warning related to x86 IRQ trace event setup
      
       - Fix a kernel-doc warning
      
      * tag 'x86-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/entry: Fix kernel-doc warning
        x86/irq: Define trace events conditionally
        x86/CPU: Fix warm boot hang regression on AMD SC1100 SoC systems
        x86/of: Don't use DTB for SMP setup if ACPI is enabled
      7a566889
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · d203484f
      Linus Torvalds authored
      Pull scheduler fix from Ingo Molnar:
       "Prevent cond_resched() based preemption when interrupts are disabled,
        on PREEMPT_NONE and PREEMPT_VOLUNTARY kernels"
      
      * tag 'sched-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/core: Prevent rescheduling when interrupts are disabled
      d203484f
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 766331f2
      Linus Torvalds authored
      Pull perf event fixes from Ingo Molnar:
       "Miscellaneous perf events fixes and a minor HW enablement change:
      
         - Fix missing RCU protection in perf_iterate_ctx()
      
         - Fix pmu_ctx_list ordering bug
      
         - Reject the zero page in uprobes
      
         - Fix a family of bugs related to low frequency sampling
      
         - Add Intel Arrow Lake U CPUs to the generic Arrow Lake RAPL support
           table
      
         - Fix a lockdep-assert false positive in uretprobes"
      
      * tag 'perf-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        uprobes: Remove too strict lockdep_assert() condition in hprobe_expire()
        perf/x86/rapl: Add support for Intel Arrow Lake U
        perf/x86/intel: Use better start period for frequency mode
        perf/core: Fix low freq setting via IOC_PERIOD
        perf/x86: Fix low freqency setting issue
        uprobes: Reject the shared zeropage in uprobe_write_opcode()
        perf/core: Order the PMU list to fix warning about unordered pmu_ctx_list
        perf/core: Add RCU read lock protection to perf_iterate_ctx()
      766331f2
    • Linus Torvalds's avatar
      Merge tag 'objtool-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ad69e021
      Linus Torvalds authored
      Pull objtool fixes from Ingo Molnar:
       "Fix an objtool false positive, and objtool related build warnings that
        happens on PIE-enabled architectures such as LoongArch"
      
      * tag 'objtool-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        objtool: Add bch2_trans_unlocked_or_in_restart_error() to bcachefs noreturns
        objtool: Fix C jump table annotations for Clang
        vmlinux.lds: Ensure that const vars with relocations are mapped R/O
      ad69e021
    • Linus Torvalds's avatar
      Merge tag 'locking-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 405a41d7
      Linus Torvalds authored
      Pull locking fix from Ingo Molnar:
       "Fix an rcuref_put() slowpath race"
      
      * tag 'locking-urgent-2025-02-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        rcuref: Plug slowpath race in rcuref_put()
      405a41d7
  4. Feb 28, 2025
    • Linus Torvalds's avatar
      Merge tag 'trace-v6.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · 5c44ddaf
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
      
       - Fix crash from bad histogram entry
      
         An error path in the histogram creation could leave an entry in a
         link list that gets freed. Then when a new entry is added it can
         cause a u-a-f bug. This is fixed by restructuring the code so that
         the histogram is consistent on failure and everything is cleaned up
         appropriately.
      
       - Fix fprobe self test
      
         The fprobe self test relies on no function being attached by ftrace.
         BPF programs can attach to functions via ftrace and systemd now does
         so. This causes those functions to appear in the enabled_functions
         list which holds all functions attached by ftrace. The selftest also
         uses that file to see if functions are being connected correctly. It
         counts the functions in the file, but if there's already functions in
         the file, it fails. Instead, add the number of functions in the file
         at the start of the test to all the calculations during the test.
      
       - Fix potential division by zero of the function profiler stddev
      
         The calculated divisor that calculates the standard deviation of the
         function times can overflow. If the overflow happens to land on zero,
         that can cause a division by zero. Check for zero from the
         calculation before doing the division.
      
         TODO: Catch when it ever overflows and report it accordingly. For
         now, just prevent the system from crashing.
      
      * tag 'trace-v6.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        ftrace: Avoid potential division by zero in function_stat_show()
        selftests/ftrace: Let fprobe test consider already enabled functions
        tracing: Fix bad hist from corrupting named_triggers list
      5c44ddaf
    • Linus Torvalds's avatar
      Merge tag 'iommu-fixes-v6.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux · 3d7dc865
      Linus Torvalds authored
      Pull iommu fixes from Joerg Roedel:
      
       - Intel VT-d fixes:
           - Fix suspicious RCU usage splat
           - Fix passthrough for devices under PCIe-PCI bridge
      
       - AMD-Vi fix:
           - Fix to preserve bits when updating device table entries
      
      * tag 'iommu-fixes-v6.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux:
        iommu/vt-d: Fix suspicious RCU usage
        iommu/vt-d: Remove device comparison in context_setup_pass_through_cb
        iommu/amd: Preserve default DTE fields when updating Host Page Table Root
      3d7dc865
    • Thomas Gleixner's avatar
      intel_idle: Handle older CPUs, which stop the TSC in deeper C states, correctly · c157d351
      Thomas Gleixner authored
      
      The Intel idle driver is preferred over the ACPI processor idle driver,
      but fails to implement the work around for Core2 generation CPUs, where
      the TSC stops in C2 and deeper C-states. This causes stalls and boot
      delays, when the clocksource watchdog does not catch the unstable TSC
      before the CPU goes deep idle for the first time.
      
      The ACPI driver marks the TSC unstable when it detects that the CPU
      supports C2 or deeper and the CPU does not have a non-stop TSC.
      
      Add the equivivalent work around to the Intel idle driver to cure that.
      
      Fixes: 18734958 ("intel_idle: Use ACPI _CST for processor models without C-state tables")
      Reported-by: default avatarFab Stz <fabstz-it@yahoo.fr>
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Tested-by: default avatarFab Stz <fabstz-it@yahoo.fr>
      Cc: All applicable <stable@vger.kernel.org>
      Closes: https://lore.kernel.org/all/10cf96aa-1276-4bd4-8966-c890377030c3@yahoo.fr
      Link: https://patch.msgid.link/87bjupfy7f.ffs@tglx
      
      
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      c157d351
    • Linus Torvalds's avatar
      Merge tag 'block-6.14-20250228' of git://git.kernel.dk/linux · 276f98ef
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - Fix plugging for native zone writes
      
       - Fix segment limit settings for != 4K page size archs
      
       - Fix for slab names overflowing
      
      * tag 'block-6.14-20250228' of git://git.kernel.dk/linux:
        block: fix 'kmem_cache of name 'bio-108' already exists'
        block: Remove zone write plugs when handling native zone append writes
        block: make segment size limit workable for > 4K PAGE_SIZE
      276f98ef
Loading