1. 21 Feb, 2024 1 commit
    • Kees Cook's avatar
      ubsan: Reintroduce signed overflow sanitizer · 557f8c58
      Kees Cook authored
      In order to mitigate unexpected signed wrap-around[1], bring back the
      signed integer overflow sanitizer. It was removed in commit 6aaa31ae
      ("ubsan: remove overflow checks") because it was effectively a no-op
      when combined with -fno-strict-overflow (which correctly changes signed
      overflow from being "undefined" to being explicitly "wrap around").
      
      Compilers are adjusting their sanitizers to trap wrap-around and to
      detecting common code patterns that should not be instrumented
      (e.g. "var + offset < var"). Prepare for this and explicitly rename
      the option from "OVERFLOW" to "WRAP" to more accurately describe the
      behavior.
      
      To annotate intentional wrap-around arithmetic, the helpers
      wrapping_add/sub/mul_wrap() can be used for individual statements. At
      the function level, the __signed_wrap attribute can be used to mark an
      entire function as expecting its signed arithmetic to wrap around. For a
      single object file the Makefile can use "UBSAN_SIGNED_WRAP_target.o := n"
      to mark it as wrapping, and for an entire directory, "UBSAN_SIGNED_WRAP :=
      n" can be used.
      
      Additionally keep these disabled under CONFIG_COMPILE_TEST for now.
      
      Link: https://github.com/KSPP/linux/issues/26 [1]
      Cc: Miguel Ojeda <ojeda@kernel.org>
      Cc: Nathan Chancellor <nathan@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Hao Luo <haoluo@google.com>
      Reviewed-by: default avatarMarco Elver <elver@google.com>
      Reviewed-by: default avatarJustin Stitt <justinstitt@google.com>
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      557f8c58
  2. 06 Feb, 2024 4 commits
  3. 01 Feb, 2024 8 commits
  4. 29 Jan, 2024 1 commit
  5. 28 Jan, 2024 7 commits
  6. 27 Jan, 2024 9 commits
  7. 26 Jan, 2024 10 commits
    • Linus Torvalds's avatar
      Merge tag 'ata-6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux · 3a5879d4
      Linus Torvalds authored
      Pull ata updates from Niklas Cassel:
      
       - Fix an incorrect link_power_management_policy sysfs attribute value.
      
         We were previously using the same attribute value for two different
         LPM policies (me)
      
       - Add a ASMedia ASM1166 quirk.
      
         The SATA host controller always reports that it has 32 ports, even
         though it only has six ports. Add a quirk that overrides the value
         reported by the controller (Conrad)
      
       - Add a ASMedia ASM1061 quirk.
      
         The SATA host controller completely ignores the upper 21 bits of the
         DMA address. This causes IOMMU error events when a (valid) DMA
         address actually has any of the upper 21 bits set. Add a quirk that
         limits the dma_mask to 43-bits (Lennert)
      
      * tag 'ata-6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux:
        ahci: add 43-bit DMA address quirk for ASMedia ASM1061 controllers
        ahci: asm1166: correct count of reported ports
        ata: libata-sata: improve sysfs description for ATA_LPM_UNKNOWN
      3a5879d4
    • Linus Torvalds's avatar
      Merge tag 'block-6.8-2024-01-26' of git://git.kernel.dk/linux · 914e1708
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - RCU warning fix for md (Mikulas)
      
       - Fix for an aoe issue that lockdep rightfully complained about
         (Maksim)
      
       - Fix for an error code change in partitioning that caused a regression
         with some tools (Li)
      
       - Fix for a data direction warning with bi-direction commands
         (Christian)
      
      * tag 'block-6.8-2024-01-26' of git://git.kernel.dk/linux:
        md: fix a suspicious RCU usage warning
        aoe: avoid potential deadlock at set_capacity
        block: Fix WARNING in _copy_from_iter
        block: Move checking GENHD_FL_NO_PART to bdev_add_partition()
      914e1708
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.8-2024-01-26' of git://git.kernel.dk/linux · cced1c5e
      Linus Torvalds authored
      Pull io_uring fix from Jens Axboe:
       "Just a single tweak to the newly added IORING_OP_FIXED_FD_INSTALL from
        Paul, ensuring it goes via the audit path and playing it safe by
        excluding it from using registered creds"
      
      * tag 'io_uring-6.8-2024-01-26' of git://git.kernel.dk/linux:
        io_uring: enable audit and restrict cred override for IORING_OP_FIXED_FD_INSTALL
      cced1c5e
    • Linus Torvalds's avatar
      Merge tag 'thermal-6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 667c8893
      Linus Torvalds authored
      Pull thermal control update from Rafael Wysocki:
       "Remove some dead code from the Intel powerclamp thermal control driver
        (Srinivas Pandruvada)"
      
      * tag 'thermal-6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        thermal: intel: powerclamp: Remove dead code for target mwait value
      667c8893
    • Linus Torvalds's avatar
      Merge tag 'pm-6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 0c879d88
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These fix two cpufreq drivers and the cpupower utility.
      
        Specifics:
      
         - Fix the handling of scaling_max/min_freq sysfs attributes in the
           AMD P-state cpufreq driver (Mario Limonciello)
      
         - Make the intel_pstate cpufreq driver avoid unnecessary computation
           of the HWP performance level corresponding to a given frequency in
           the cases when it is known already, which also helps to avoid
           reducing the maximum CPU capacity artificially on some systems
           (Rafael J. Wysocki)
      
         - Fix compilation of the cpupower utility when CFLAGS is passed as a
           make argument for cpupower, but it does not take effect as expected
           due to mishandling (Stanley Chan)"
      
      * tag 'pm-6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpufreq/amd-pstate: Fix setting scaling max/min freq values
        cpufreq: intel_pstate: Refine computation of P-state for given frequency
        tools cpupower bench: Override CFLAGS assignments
      0c879d88
    • Linus Torvalds's avatar
      Merge tag 'docs-6.8-fixes' of git://git.lwn.net/linux · 70da22eb
      Linus Torvalds authored
      Pull documentation fixes from Jonathan Corbet:
       "A handful of relatively boring documentation fixes"
      
      * tag 'docs-6.8-fixes' of git://git.lwn.net/linux:
        docs: admin-guide: remove obsolete advice related to SLAB allocator
        doc: admin-guide/kernel-parameters: remove useless comment
        docs/accel: correct links to mailing list archives
        docs/sphinx: Fix TOC scroll hack for the home page
      70da22eb
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2024-01-27' of git://anongit.freedesktop.org/drm/drm · 168174d7
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Lots going on for rc2, ivpu has a bunch of stabilisation and debugging
        work, then amdgpu and xe are the main fixes. i915, exynos have a few,
        then some misc panel and bridge fixes.
      
        Worth mentioning are three regressions. One of the nouveau fixes in
        6.7 for a serious deadlock had side effects, so I guess we will bring
        back the deadlock until I can figure out what should be done properly.
        There was a scheduler regression vs amdgpu which was reported in a few
        places and is now fixed. There was an i915 vs simpledrm problem
        resulting in black screens, that is reverted also.
      
        I'll be working on a proper nouveau fix, it kinda looks like one of
        those cases where someone tried to use an atomic where they should
        have probably used a lock, but I'll see.
      
        fb:
         - fix simpledrm/i915 regression by reverting change
      
        scheduler:
         - fix regression affecting amdgpu users due to sched draining
      
        nouveau:
         - revert 6.7 deadlock fix as it has side effects
      
        dp:
         - fix documentation warning
      
        ttm:
         - fix dummy page read on some platforms
      
        bridge:
         - anx7625 suspend fix
         - sii902x: fix probing and audio registration
         - parade-ps8640: fix suspend of bridge, aux fixes
         - samsung-dsim: avoid using FORCE_STOP_STATE
      
        panel:
         - simple add missing bus flags
         - fix samsung-s6d7aa0 flags
      
        amdgpu:
         - AC/DC power supply tracking fix
         - Don't show invalid vram vendor data
         - SMU 13.0.x fixes
         - GART fix for umr on systems without VRAM
         - GFX 10/11 UNORD_DISPATCH fixes
         - IPS display fixes (required for S0ix on some platforms)
         - Misc fixes
      
        i915:
         - DSI sequence revert to fix GitLab #10071 and DP test-pattern fix
         - Drop -Wstringop-overflow (broken on GCC11)
      
        ivpu:
         - fix recovery/reset support
         - improve submit ioctl stability
         - fix dev open/close races on unbind
         - PLL disable reset fix
         - deprecate context priority param
         - improve debug buffer logging
         - disable buffer sharing across VPU contexts
         - free buffer sgt on unbind
         - fix missing lock around shmem vmap
         - add better boot diagnostics
         - add more debug prints around mapping
         - dump MMU events in case of timeout
      
        v3d:
         - NULL ptr dereference fix
      
        exynos:
         - fix stack usage
         - fix incorrect type
         - fix dt typo
         - fix gsc runtime resume
      
        xe:
         - Make an ops struct static
         - Fix an implicit 0 to NULL conversion
         - A couple of 32-bit fixes
         - A migration coherency fix for Lunar Lake.
         - An error path vm id leak fix
         - Remove PVC references in kunit tests"
      
      * tag 'drm-fixes-2024-01-27' of git://anongit.freedesktop.org/drm/drm: (66 commits)
        Revert "nouveau: push event block/allowing out of the fence context"
        drm: bridge: samsung-dsim: Don't use FORCE_STOP_STATE
        drm/sched: Drain all entities in DRM sched run job worker
        drm/amd/display: "Enable IPS by default"
        drm/amd: Add a DC debug mask for IPS
        drm/amd/display: Disable ips before dc interrupt setting
        drm/amd/display: Replay + IPS + ABM in Full Screen VPB
        drm/amd/display: Add IPS checks before dcn register access
        drm/amd/display: Add Replay IPS register for DMUB command table
        drm/amd/display: Allow IPS2 during Replay
        drm/amdgpu/gfx11: set UNORD_DISPATCH in compute MQDs
        drm/amdgpu/gfx10: set UNORD_DISPATCH in compute MQDs
        drm/amd/amdgpu: Assign GART pages to AMD device mapping
        drm/amd/pm: Fetch current power limit from FW
        drm/amdgpu: Fix null pointer dereference
        drm/amdgpu: Show vram vendor only if available
        drm/amd/pm: update the power cap setting
        drm/amdgpu: Avoid fetching vram vendor information
        drm/amdgpu/pm: Fix the power source flag error
        drm/amd/display: Fix uninitialized variable usage in core_link_ 'read_dpcd() & write_dpcd()' functions
        ...
      168174d7
    • Linus Torvalds's avatar
      Merge tag 'asm-generic-6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic · 2047b0b2
      Linus Torvalds authored
      Pull asm-generic update from Arnd Bergmann:
       "Just one patch this time, adding Andreas Larsson as co-maintainer for
        arch/sparc. He is volunteering to help since David Miller has become
        much less active over the past few years.
      
        In turn, I'm helping Andreas get set up as a new maintainer, starting
        with the entry in the MAINTAINERS file"
      
      * tag 'asm-generic-6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic:
        MAINTAINERS: Add Andreas Larsson as co-maintainer for arch/sparc
      2047b0b2
    • Linus Torvalds's avatar
      Merge tag 'arm-fixes-6.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · ae971859
      Linus Torvalds authored
      Pull arm SoC fixes from Arnd Bergmann:
       "There are a couple of devicetree fixes for samsung, riscv/sophgo, and
        for TPM device nodes on a couple of platforms.
      
        Both the Arm FF-A and the SCMI firmware drivers get a number of code
        fixes, addressing minor implementation bugs and compatibility with
        firmware implementations. Most of these bugs relate to the usage of
        xarray and rwlock structures and are fixed by Cristian Marussi"
      
      * tag 'arm-fixes-6.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
        riscv: dts: sophgo: separate sg2042 mtime and mtimecmp to fit aclint format
        arm64: dts: Fix TPM schema violations
        ARM: dts: Fix TPM schema violations
        ARM: dts: exynos4212-tab3: add samsung,invert-vclk flag to fimd
        arm64: dts: exynos: gs101: comply with the new cmu_misc clock names
        firmware: arm_ffa: Handle partitions setup failures
        firmware: arm_ffa: Use xa_insert() and check for result
        firmware: arm_ffa: Simplify ffa_partitions_cleanup()
        firmware: arm_ffa: Check xa_load() return value
        firmware: arm_ffa: Add missing rwlock_init() for the driver partition
        firmware: arm_ffa: Add missing rwlock_init() in ffa_setup_partitions()
        firmware: arm_scmi: Fix the clock protocol supported version
        firmware: arm_scmi: Fix the clock protocol version for v3.2
        firmware: arm_scmi: Use xa_insert() when saving raw queues
        firmware: arm_scmi: Use xa_insert() to store opps
        firmware: arm_scmi: Replace asm-generic/bug.h with linux/bug.h
        firmware: arm_scmi: Check mailbox/SMT channel for consistency
      ae971859
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · 48fa8ec6
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "As well as a few device IDs and the usual scattering of driver
        specific fixes this contains a couple of core things.
      
        One is a missed case in error handling, the other patch is a change
        from me raising the number of chip selects allowed by the newly added
        multi chip select support patches to resolve problems seen on several
        systems that exceeded the limit.
      
        This is not a real solution to the issue but rather just a change to
        avoid disruption to users, one of the options I am considering is just
        sending a revert of those changes if we can't come up with something
        sensible"
      
      * tag 'spi-fix-v6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: fix finalize message on error return
        spi: cs42l43: Handle error from devm_pm_runtime_enable
        spi: Raise limit on number of chip selects
        spi: hisi-sfc-v3xx: Return IRQ_NONE if no interrupts were detected
        spi: spi-cadence: Reverse the order of interleaved write and read operations
        spi: spi-imx: Use dev_err_probe for failed DMA channel requests
        spi: bcm-qspi: fix SFDP BFPT read by usig mspi read
        spi: intel-pci: Add support for Arrow Lake SPI serial flash
        spi: intel-pci: Remove Meteor Lake-S SoC PCI ID from the list
      48fa8ec6