1. Sep 24, 2023
  2. Sep 23, 2023
    • Linus Torvalds's avatar
      Merge tag 'hardening-v6.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · d90b0276
      Linus Torvalds authored
      Pull hardening fixes from Kees Cook:
      
       - Fix UAPI stddef.h to avoid C++-ism (Alexey Dobriyan)
      
       - Fix harmless UAPI stddef.h header guard endif (Alexey Dobriyan)
      
      * tag 'hardening-v6.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
        uapi: stddef.h: Fix __DECLARE_FLEX_ARRAY for C++
        uapi: stddef.h: Fix header guard location
      d90b0276
    • Linus Torvalds's avatar
      Merge tag 'xfs-6.6-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 3abc79dc
      Linus Torvalds authored
      Pull xfs fixes from Chandan Babu:
      
       - Fix an integer overflow bug when processing an fsmap call
      
       - Fix crash due to CPU hot remove event racing with filesystem mount
         operation
      
       - During read-only mount, XFS does not allow the contents of the log to
         be recovered when there are one or more unrecognized rcompat features
         in the primary superblock, since the log might have intent items
         which the kernel does not know how to process
      
       - During recovery of log intent items, XFS now reserves log space
         sufficient for one cycle of a permanent transaction to execute.
         Otherwise, this could lead to livelocks due to non-availability of
         log space
      
       - On an fs which has an ondisk unlinked inode list, trying to delete a
         file or allocating an O_TMPFILE file can cause the fs to the shutdown
         if the first inode in the ondisk inode list is not present in the
         inode cache. The bug is solved by explicitly loading the first inode
         in the ondisk unlinked inode list into the inode cache if it is not
         already cached
      
         A similar problem arises when the uncached inode is present in the
         middle of the ondisk unlinked inode list. This second bug is
         triggered when executing operations like quotacheck and bulkstat. In
         this case, XFS now reads in the entire ondisk unlinked inode list
      
       - Enable LARP mode only on recent v5 filesystems
      
       - Fix a out of bounds memory access in scrub
      
       - Fix a performance bug when locating the tail of the log during
         mounting a filesystem
      
      * tag 'xfs-6.6-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: use roundup_pow_of_two instead of ffs during xlog_find_tail
        xfs: only call xchk_stats_merge after validating scrub inputs
        xfs: require a relatively recent V5 filesystem for LARP mode
        xfs: make inode unlinked bucket recovery work with quotacheck
        xfs: load uncached unlinked inodes into memory on demand
        xfs: reserve less log space when recovering log intent items
        xfs: fix log recovery when unknown rocompat bits are set
        xfs: reload entire unlinked bucket lists
        xfs: allow inode inactivation during a ro mount log recovery
        xfs: use i_prev_unlinked to distinguish inodes that are not on the unlinked list
        xfs: remove CPU hotplug infrastructure
        xfs: remove the all-mounts list
        xfs: use per-mount cpumask to track nonempty percpu inodegc lists
        xfs: fix an agbno overflow in __xfs_getfsmap_datadev
        xfs: fix per-cpu CIL structure aggregation racing with dying cpus
        xfs: fix select in config XFS_ONLINE_SCRUB_STATS
      3abc79dc
    • Linus Torvalds's avatar
      Merge tag 'thermal-6.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 8018e02a
      Linus Torvalds authored
      Pull thermal control fix from Rafael Wysocki:
       "Unbreak the trip point update sysfs interface that has been broken
        since the 6.3 cycle (Rafael Wysocki)"
      
      * tag 'thermal-6.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        thermal: sysfs: Fix trip_point_hyst_store()
      8018e02a
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · b184c040
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "These fix a general ACPI processor driver regression and an ia64 build
        issue, both introduced recently.
      
        Specifics:
      
         - Fix recently introduced uninitialized memory access issue in the
           ACPI processor driver (Michal Wilczynski)
      
         - Fix ia64 build inadvertently broken by recent ACPI processor driver
           changes, which is prudent to do for 6.6 even though ia64 support is
           slated for removal in 6.7 (Ard Biesheuvel)"
      
      * tag 'acpi-6.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: processor: Fix uninitialized access of buf in acpi_set_pdc_bits()
        acpi: Provide ia64 dummy implementation of acpi_proc_quirk_mwait_check()
      b184c040
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 36fcf381
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "Small crop of relatively boring arm64 fixes for -rc3.
      
        That's not to say we don't have any juicy bugs, however, it's just
        that fixes for those are likely to come via -mm and -tip for a hugetlb
        and an atomics issue respectively. I get left with the
        documentation...
      
         - Fix detection of "ClearBHB" and "Hinted Conditional Branch" features
      
         - Fix broken wildcarding for Arm PMU MAINTAINERS entry
      
         - Add missing documentation for userspace-visible ID register fields"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: Document missing userspace visible fields in ID_AA64ISAR2_EL1
        arm64/hbc: Document HWCAP2_HBC
        arm64/sme: Include ID_AA64PFR1_EL1.SME in cpu-feature-registers.rst
        arm64: cpufeature: Fix CLRBHB and BC detection
        MAINTAINERS: Use wildcard pattern for ARM PMU headers
      36fcf381
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v6.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · b61ec8d0
      Linus Torvalds authored
      Pull x86 rethunk fixes from Borislav Petkov:
       "Fix the patching ordering between static calls and return thunks"
      
      * tag 'x86_urgent_for_v6.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86,static_call: Fix static-call vs return-thunk
        x86/alternatives: Remove faulty optimization
      b61ec8d0
    • Linus Torvalds's avatar
      Merge tag 'x86-urgent-2023-09-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · e583bffe
      Linus Torvalds authored
      Pull misc x86 fixes from Ingo Molnar:
      
       - Fix a kexec bug
      
       - Fix an UML build bug
      
       - Fix a handful of SRSO related bugs
      
       - Fix a shadow stacks handling bug & robustify related code
      
      * tag 'x86-urgent-2023-09-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/shstk: Add warning for shadow stack double unmap
        x86/shstk: Remove useless clone error handling
        x86/shstk: Handle vfork clone failure correctly
        x86/srso: Fix SBPB enablement for spec_rstack_overflow=off
        x86/srso: Don't probe microcode in a guest
        x86/srso: Set CPUID feature bits independently of bug or mitigation status
        x86/srso: Fix srso_show_state() side effect
        x86/asm: Fix build of UML with KASAN
        x86/mm, kexec, ima: Use memblock_free_late() from ima_free_kexec_buffer()
      e583bffe
    • Linus Torvalds's avatar
      Merge tag 'sched-urgent-2023-09-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 5b47b576
      Linus Torvalds authored
      Pull scheduler fix from Ingo Molnar:
       "Fix a PF_IDLE initialization bug that generated warnings on tiny-RCU"
      
      * tag 'sched-urgent-2023-09-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        kernel/sched: Modify initial boot task idle setup
      5b47b576
    • Linus Torvalds's avatar
      Merge tag 'locking-urgent-2023-09-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 725e2d7e
      Linus Torvalds authored
      Pull locking fixes from Ingo Molnar:
       "Fix a include/linux/atomic/atomic-arch-fallback.h breakage that
        generated incorrect code, and fix a lockdep reporting race that may
        result in lockups"
      
      * tag 'locking-urgent-2023-09-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        locking/seqlock: Do the lockdep annotation before locking in do_write_seqcount_begin_nested()
        locking/atomic: scripts: fix fallback ifdeffery
      725e2d7e
    • Peter Zijlstra's avatar
      x86,static_call: Fix static-call vs return-thunk · aee9d30b
      Peter Zijlstra authored
      Commit
      
        7825451f ("static_call: Add call depth tracking support")
      
      failed to realize the problem fixed there is not specific to call depth
      tracking but applies to all return-thunk uses.
      
      Move the fix to the appropriate place and condition.
      
      Fixes: ee88d363
      
       ("x86,static_call: Use alternative RET encoding")
      Reported-by: default avatarDavid Kaplan <David.Kaplan@amd.com>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
      Reviewed-by: default avatarIngo Molnar <mingo@kernel.org>
      Tested-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
      Cc: <stable@kernel.org>
      aee9d30b
    • Josh Poimboeuf's avatar
      x86/alternatives: Remove faulty optimization · 4ba89dd6
      Josh Poimboeuf authored
      The following commit
      
        095b8303 ("x86/alternative: Make custom return thunk unconditional")
      
      made '__x86_return_thunk' a placeholder value.  All code setting
      X86_FEATURE_RETHUNK also changes the value of 'x86_return_thunk'.  So
      the optimization at the beginning of apply_returns() is dead code.
      
      Also, before the above-mentioned commit, the optimization actually had a
      bug It bypassed __static_call_fixup(), causing some raw returns to
      remain unpatched in static call trampolines.  Thus the 'Fixes' tag.
      
      Fixes: d2408e04
      
       ("x86/alternative: Optimize returns patching")
      Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@kernel.org>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
      Acked-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
      Link: https://lore.kernel.org/r/16d19d2249d4485d8380fb215ffaae81e6b8119e.1693889988.git.jpoimboe@kernel.org
      4ba89dd6
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-processor' · a1001c37
      Rafael J. Wysocki authored
      Merge a fix for recently introduced uninitialized memory access in the
      ACPI processor driver from Michal Wilczynski.
      
      * acpi-processor:
        ACPI: processor: Fix uninitialized access of buf in acpi_set_pdc_bits()
      a1001c37
    • Linus Torvalds's avatar
      Merge tag 'efi-fixes-for-v6.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi · dc912ba9
      Linus Torvalds authored
      Pull EFI fix from Ard Biesheuvel:
       "Follow-up fix for the unaccepted memory fix merged last week as part
        of the first EFI fixes batch.
      
        The unaccepted memory table needs to be accessible very early, even in
        cases (such as crashkernels) where the direct map does not cover all
        of DRAM, and so it is added to memblock explicitly, and subsequently
        memblock_reserve()'d as before"
      
      * tag 'efi-fixes-for-v6.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi:
        efi/unaccepted: Make sure unaccepted table is mapped
      dc912ba9
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2023-09-22-2' of git://anongit.freedesktop.org/drm/drm · 48bb67d3
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Ben Skeggs is stepping away from nouveau and Red Hat for personal
        reasons, he'll be missed and we intend to fill the gaps in the
        upcoming time with Danilo and Lyude stepping in for now.
      
        Otherwise i915, nouveau, amdgpu with a few each and some misc spread
        around.
      
        MAINTAINERS:
         - drop Ben as he retired from nouveau
      
        core:
         - drm_mm test fixes
      
        fbdev:
         - Kconfig fixes
      
        ivpu:
         - IRQ-handling fixes
      
        meson:
         - Fix memory leak in HDMI EDID code
      
        nouveau:
         - Correct type casting
         - Fix memory leak in scheduler
         - u_memcpya() fixes
      
        i915:
         - Prevent error pointer dereference
         - Fix PMU busyness values when using GuC mode
      
        amdgpu:
         - MST fix
         - Vbios part number reporting fix
         - Fix a possible memory leak in an error case in the RAS code
         - Fix low resolution modes on eDP
      
        amdkfd:
         - Fix GPU address for user queue wptr when GART is not at 0"
      
      * tag 'drm-fixes-2023-09-22-2' of git://anongit.freedesktop.org/drm/drm:
        MAINTAINERS: remove myself as nouveau maintainer
        fbdev/sh7760fb: Depend on FB=y
        drm/amdkfd: Use gpu_offset for user queue's wptr
        drm/amd/display: fix the ability to use lower resolution modes on eDP
        drm/amdgpu: fix a memory leak in amdgpu_ras_feature_enable
        Revert "drm/amdgpu: Report vbios version instead of PN"
        drm/amd/display: Fix MST recognizes connected displays as one
        drm/virtio: clean out_fence on complete_submit
        i915/pmu: Move execlist stats initialization to execlist specific setup
        drm/i915/gt: Prevent error pointer dereference
        drm/meson: fix memory leak on ->hpd_notify callback
        accel/ivpu/40xx: Fix buttress interrupt handling
        nouveau/u_memcpya: fix NULL vs error pointer bug
        nouveau/u_memcpya: use vmemdup_user
        drm/nouveau: sched: fix leaking memory of timedout job
        drm/nouveau: fence: fix type cast warning in nouveau_fence_emit()
        drm: fix up fbdev Kconfig defaults
        drm/tests: Fix incorrect argument in drm_test_mm_insert_range
      48bb67d3
    • Linus Torvalds's avatar
      Merge tag 'v6.6-p3' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 2f8d62da
      Linus Torvalds authored
      Pull crypto fix from Herbert Xu:
       "This fixes a regression in sm2"
      
      * tag 'v6.6-p3' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: sm2 - Fix crash caused by uninitialized context
      2f8d62da
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v6.6-3' of... · 3a457d28
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
      
      Pull x86 platform driver fixes from Hans de Goede:
       "The most noteworthy change in here is the addition of Ilpo Järvinen as
        co-maintainer of platform-drivers-x86. Ilpo will be helping me with
        platform-drivers-x86 maintenance going forward and you can expect
        pull-requests from Ilpo in the future.
      
        Other then that there is a set of Intel SCU IPC fixes and a
        thinkpad_acpi locking fix"
      
      * tag 'platform-drivers-x86-v6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
        MAINTAINERS: Add x86 platform drivers patchwork
        MAINTAINERS: Add myself into x86 platform driver maintainers
        platform/x86: thinkpad_acpi: Take mutex in hotkey_resume
        platform/x86: intel_scu_ipc: Fail IPC send if still busy
        platform/x86: intel_scu_ipc: Don't override scu in intel_scu_ipc_dev_simple_command()
        platform/x86: intel_scu_ipc: Check status upon timeout in ipc_wait_for_interrupt()
        platform/x86: intel_scu_ipc: Check status after timeout in busy_loop()
      3a457d28
  3. Sep 22, 2023
  4. Sep 21, 2023