Skip to content
Snippets Groups Projects
  1. Feb 09, 2025
    • Linus Torvalds's avatar
      Linux 6.14-rc2 · a64dcfb4
      Linus Torvalds authored
      v6.14-rc2
      a64dcfb4
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v6.14' of... · 69b54314
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Suppress false-positive -Wformat-{overflow,truncation}-non-kprintf
         warnings regardless of the W= option
      
       - Avoid CONFIG_TRIM_UNUSED_KSYMS dropping symbols passed to symbol_get()
      
       - Fix a build regression of the Debian linux-headers package
      
      * tag 'kbuild-fixes-v6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kbuild: install-extmod-build: add missing quotation marks for CC variable
        kbuild: fix misspelling in scripts/Makefile.lib
        kbuild: keep symbols for symbol_get() even with CONFIG_TRIM_UNUSED_KSYMS
        scripts/Makefile.extrawarn: Do not show clang's non-kprintf warnings at W=1
      69b54314
    • Linus Torvalds's avatar
      Merge tag 'pm-6.14-rc2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 146339dd
      Linus Torvalds authored
      Pull power management fix from Rafael Wysocki:
       "Fix a recently introduced kernel crash due to a NULL pointer
        dereference during system-wide suspend (Rafael Wysocki)"
      
      * tag 'pm-6.14-rc2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        PM: sleep: core: Restrict power.set_active propagation
      146339dd
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 954a209f
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "ARM:
      
         - Correctly clean the BSS to the PoC before allowing EL2 to access it
           on nVHE/hVHE/protected configurations
      
         - Propagate ownership of debug registers in protected mode after the
           rework that landed in 6.14-rc1
      
         - Stop pretending that we can run the protected mode without a GICv3
           being present on the host
      
         - Fix a use-after-free situation that can occur if a vcpu fails to
           initialise the NV shadow S2 MMU contexts
      
         - Always evaluate the need to arm a background timer for fully
           emulated guest timers
      
         - Fix the emulation of EL1 timers in the absence of FEAT_ECV
      
         - Correctly handle the EL2 virtual timer, specially when HCR_EL2.E2H==0
      
        s390:
      
         - move some of the guest page table (gmap) logic into KVM itself,
           inching towards the final goal of completely removing gmap from the
           non-kvm memory management code.
      
           As an initial set of cleanups, move some code from mm/gmap into kvm
           and start using __kvm_faultin_pfn() to fault-in pages as needed;
           but especially stop abusing page->index and page->lru to aid in the
           pgdesc conversion.
      
        x86:
      
         - Add missing check in the fix to defer starting the huge page
           recovery vhost_task
      
         - SRSO_USER_KERNEL_NO does not need SYNTHESIZED_F"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (31 commits)
        KVM: x86/mmu: Ensure NX huge page recovery thread is alive before waking
        KVM: remove kvm_arch_post_init_vm
        KVM: selftests: Fix spelling mistake "initally" -> "initially"
        kvm: x86: SRSO_USER_KERNEL_NO is not synthesized
        KVM: arm64: timer: Don't adjust the EL2 virtual timer offset
        KVM: arm64: timer: Correctly handle EL1 timer emulation when !FEAT_ECV
        KVM: arm64: timer: Always evaluate the need for a soft timer
        KVM: arm64: Fix nested S2 MMU structures reallocation
        KVM: arm64: Fail protected mode init if no vgic hardware is present
        KVM: arm64: Flush/sync debug state in protected mode
        KVM: s390: selftests: Streamline uc_skey test to issue iske after sske
        KVM: s390: remove the last user of page->index
        KVM: s390: move PGSTE softbits
        KVM: s390: remove useless page->index usage
        KVM: s390: move gmap_shadow_pgt_lookup() into kvm
        KVM: s390: stop using lists to keep track of used dat tables
        KVM: s390: stop using page->index for non-shadow gmaps
        KVM: s390: move some gmap shadowing functions away from mm/gmap.c
        KVM: s390: get rid of gmap_translate()
        KVM: s390: get rid of gmap_fault()
        ...
      954a209f
    • Rafael J. Wysocki's avatar
      PM: sleep: core: Restrict power.set_active propagation · 75859462
      Rafael J. Wysocki authored
      Commit 3775fc53 ("PM: sleep: core: Synchronize runtime PM status of
      parents and children") exposed an issue related to simple_pm_bus_pm_ops
      that uses pm_runtime_force_suspend() and pm_runtime_force_resume() as
      bus type PM callbacks for the noirq phases of system-wide suspend and
      resume.
      
      The problem is that pm_runtime_force_suspend() does not distinguish
      runtime-suspended devices from devices for which runtime PM has never
      been enabled, so if it sees a device with runtime PM status set to
      RPM_ACTIVE, it will assume that runtime PM is enabled for that device
      and so it will attempt to suspend it with the help of its runtime PM
      callbacks which may not be ready for that.  As it turns out, this
      causes simple_pm_bus_runtime_suspend() to crash due to a NULL pointer
      dereference.
      
      Another problem related to the above commit and simple_pm_bus_pm_ops is
      that setting runtime PM status of a device handled by the latter to
      RPM_ACTIVE will actually prevent it from being resumed because
      pm_runtime_force_resume() only resumes devices with runtime PM status
      set to RPM_SUSPENDED.
      
      To mitigate these issues, do not allow power.set_active to propagate
      beyond the parent of the device with DPM_FLAG_SMART_SUSPEND set that
      will need to be resumed, which should be a sufficient stop-gap for the
      time being, but they will need to be properly addressed in the future
      because in general during system-wide resume it is necessary to resume
      all devices in a dependency chain in which at least one device is going
      to be resumed.
      
      Fixes: 3775fc53 ("PM: sleep: core: Synchronize runtime PM status of parents and children")
      Closes: https://lore.kernel.org/linux-pm/1c2433d4-7e0f-4395-b841-b8eac7c25651@nvidia.com/
      
      
      Reported-by: default avatarJon Hunter <jonathanh@nvidia.com>
      Tested-by: default avatarJohan Hovold <johan+linaro@kernel.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Link: https://patch.msgid.link/6137505.lOV4Wx5bFT@rjwysocki.net
      75859462
  2. Feb 08, 2025
  3. Feb 07, 2025
Loading