Skip to content
  1. Aug 07, 2021
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.14-rc4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 2c4b1ec6
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
       "Fix tracepoint race between static_call and callback data
      
        As callbacks to a tracepoint are paired with the data that is passed
        in when the callback is registered to the tracepoint, it must have
        that data passed to the callback when the tracepoint is triggered,
        else bad things will happen. To keep the two together, they are both
        assigned to a tracepoint structure and added to an array. The
        tracepoint call site will dereference the structure (via RCU) and call
        the callback in that structure along with the data in that structure.
        This keeps the callback and data tightly coupled.
      
        Because of the overhead that retpolines have on tracepoint callbacks,
        if there's only one callback attached to a tracepoint (a common case),
        then it is called via a static call (code modified to do a direct call
        instead of an indirect call). But to implement this, the data had to
        be decoupled from the callback, as now the callback is implemented via
        a direct call from the static call and not an indirect call from the
        dereferenced structure.
      
        Note, the static call only calls a callback used when there's a single
        callback attached to the tracepoint. If more than one callback is
        attached to the same tracepoint, then the static call will call an
        iterator function that goes back to dereferencing the structure
        keeping the callback and its data tightly coupled again.
      
        Issues can arise when going from 0 callbacks to one, as the static
        call is assigned to the callback, and it must take care that the data
        passed to it is loaded before the static call calls the callback.
        Going from 1 to 2 callbacks is not an issue, as long as the static
        call is updated to the iterator before the tracepoint structure array
        is updated via RCU. Going from 2 to more or back down to 2 is not an
        issue as the iterator can handle all theses cases. But going from 2 to
        1, care must be taken as the static call is now calling a callback and
        the data that is loaded must be the data for that callback.
      
        Care was taken to ensure the callback and data would be in-sync, but
        after a bug was reported, it became clear that not enough was done to
        make sure that was the case. These changes address this.
      
        The first change is to compare the old and new data instead of the old
        and new callback, as it's the data that can corrupt the callback, even
        if the callback is the same (something getting freed).
      
        The next change is to convert these transitions into states, to make
        it easier to know when a synchronization is needed, and to perform
        those synchronizations. The problem with this patch is that it slows
        down disabling all events from under a second, to making it take over
        10 seconds to do the same work. But that is addressed in the final
        patch.
      
        The final patch uses the RCU state functions to keep track of the RCU
        state between the transitions, and only needs to perform the
        synchronization if an RCU synchronization hasn't been done already.
        This brings the performance of disabling all events back to its
        original value. That's because no synchronization is required between
        disabling tracepoints but is required when enabling a tracepoint after
        its been disabled. If an RCU synchronization happens after the
        tracepoint is disabled, and before it is re-enabled, there's no need
        to do the synchronization again.
      
        Both the second and third patch have subtle complexities that they are
        separated into two patches. But because the second patch causes such a
        regression in performance, the third patch adds a "Fixes" tag to the
        second patch, such that the two must be backported together and not
        just the second patch"
      
      * tag 'trace-v5.14-rc4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracepoint: Use rcu get state and cond sync for static call updates
        tracepoint: Fix static call function vs data state mismatch
        tracepoint: static call: Compare data on transition from 2->1 callees
      2c4b1ec6
    • Linus Torvalds's avatar
      Merge tag 'pm-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 9917de73
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "Fix a recent regression in the timer events oriented (TEO) cpuidle
        governor causing it to misbehave when idle state 0 is disabled and
        rename two local variables for improved clarity on top of that"
      
      * tag 'pm-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpuidle: teo: Rename two local variables in teo_select()
        cpuidle: teo: Fix alternative idle state lookup
      9917de73
    • Linus Torvalds's avatar
      Merge tag 'acpi-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 5d609689
      Linus Torvalds authored
      Pull ACPI fix from Rafael Wysocki:
       "Revert a recent ACPICA commit causing boot issues to appear on some
        systems"
      
      * tag 'acpi-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        Revert "ACPICA: Fix memory leak caused by _CID repair function"
      5d609689
    • Linus Torvalds's avatar
      Merge tag 'soc-fixes-5.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 3dc064d2
      Linus Torvalds authored
      Pull ARM SoC fixes from Arnd Bergmann:
       "Lots of small fixes for Arm SoCs this time, nothing too worrying:
      
         - omap/beaglebone boot regression fix in gpt12 timer
      
         - revert for i.mx8 soc driver breaking as a platform_driver
      
         - kexec/kdump fixes for op-tee
      
         - various fixes for incorrect DT settings on imx, mvebu, omap, stm32,
           and tegra causing problems.
      
         - device tree fixes for static checks in nomadik, versatile, stm32
      
         - code fixes for issues found in build testing and with static
           checking on tegra, ixp4xx, imx, omap"
      
      * tag 'soc-fixes-5.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (36 commits)
        soc: ixp4xx/qmgr: fix invalid __iomem access
        soc: ixp4xx: fix printing resources
        ARM: ixp4xx: goramo_mlr depends on old PCI driver
        ARM: ixp4xx: fix compile-testing soc drivers
        soc/tegra: Make regulator couplers depend on CONFIG_REGULATOR
        ARM: dts: nomadik: Fix up interrupt controller node names
        ARM: dts: stm32: Fix touchscreen IRQ line assignment on DHCOM
        ARM: dts: stm32: Disable LAN8710 EDPD on DHCOM
        ARM: dts: stm32: Prefer HW RTC on DHCOM SoM
        omap5-board-common: remove not physically existing vdds_1v8_main fixed-regulator
        ARM: dts: am437x-l4: fix typo in can@0 node
        ARM: dts: am43x-epos-evm: Reduce i2c0 bus speed for tps65218
        bus: ti-sysc: AM3: RNG is GP only
        ARM: omap2+: hwmod: fix potential NULL pointer access
        arm64: dts: armada-3720-turris-mox: remove mrvl,i2c-fast-mode
        arm64: dts: armada-3720-turris-mox: fixed indices for the SDHC controllers
        ARM: dts: imx: Swap M53Menlo pinctrl_power_button/pinctrl_power_out pins
        ARM: imx: fix missing 3rd argument in macro imx_mmdc_perf_init
        ARM: dts: colibri-imx6ull: limit SDIO clock to 25MHz
        arm64: dts: ls1028: sl28: fix networking for variant 2
        ...
      3dc064d2
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 73f25536
      Linus Torvalds authored
      Pull arm64 fixes from Will Deacon:
       "It's all pretty minor but the main fix is sorting out how we deal with
        return values from 32-bit system calls as audit expects error codes to
        be sign-extended to 64 bits
      
        Summary:
      
         - Fix extension/truncation of return values from 32-bit system calls
      
         - Fix interaction between unwinding and tracing
      
         - Fix spurious toolchain warning emitted during make
      
         - Fix Kconfig help text for RANDOMIZE_MODULE_REGION_FULL"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: stacktrace: avoid tracing arch_stack_walk()
        arm64: stacktrace: fix comment
        arm64: fix the doc of RANDOMIZE_MODULE_REGION_FULL
        arm64: move warning about toolchains to archprepare
        arm64: fix compat syscall return truncation
      73f25536
    • Linus Torvalds's avatar
      Merge tag 'mips-fixes_5.14_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux · cb407fc8
      Linus Torvalds authored
      Pull MIPS fix from Thomas Bogendoerfer:
       "Fix PMD accounting change"
      
      * tag 'mips-fixes_5.14_1' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux:
        MIPS: check return value of pgtable_pmd_page_ctor
      cb407fc8
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v5.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · 894d6f40
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "A small collection of fixes for SPI, small mostly driver specific
        things plus a fix for module autoloading which hadn't been working
        properly for DT systems"
      
      * tag 'spi-fix-v5.14-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: cadence-quadspi: Fix check condition for DTR ops
        spi: mediatek: Fix fifo transfer
        spi: imx: mx51-ecspi: Fix CONFIGREG delay comment
        spi: imx: mx51-ecspi: Fix low-speed CONFIGREG delay calculation
        spi: update modalias_show after of_device_uevent_modalias support
        spi: meson-spicc: fix memory leak in meson_spicc_remove
        spi: spi-mux: Add module info needed for autoloading
      894d6f40
    • Linus Torvalds's avatar
      Merge tag 'dmaengine-fix-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine · 4f1be396
      Linus Torvalds authored
      Pull dmaengine fixes from Vinod Koul:
       "A bunch of driver fixes, notably:
      
         - idxd driver fixes for submission race, driver remove sequence,
           setup sequence for MSIXPERM, array index and updating descriptor
           vector
      
         - usb-dmac, pm reference leak fix
      
         - xilinx_dma, read-after-free fix
      
         - uniphier-xdmac fix for using atomic readl_poll_timeout_atomic()
      
         - of-dma, router_xlate to return
      
         - imx-dma, generic dma fix"
      
      * tag 'dmaengine-fix-5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine:
        dmaengine: imx-dma: configure the generic DMA type to make it work
        dmaengine: of-dma: router_xlate to return -EPROBE_DEFER if controller is not yet available
        dmaengine: stm32-dmamux: Fix PM usage counter unbalance in stm32 dmamux ops
        dmaengine: stm32-dma: Fix PM usage counter imbalance in stm32 dma ops
        dmaengine: uniphier-xdmac: Use readl_poll_timeout_atomic() in atomic state
        dmaengine: idxd: fix submission race window
        dmaengine: idxd: fix sequence for pci driver remove() and shutdown()
        dmaengine: idxd: fix desc->vector that isn't being updated
        dmaengine: idxd: fix setup sequence for MSIXPERM table
        dmaengine: idxd: fix array index when int_handles are being used
        dmaengine: usb-dmac: Fix PM reference leak in usb_dmac_probe()
        dmaengine: xilinx_dma: Fix read-after-free bug when terminating transfers
      4f1be396
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · b4b927fc
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
       "Several small recent regressions - rather more than usual, but nothing
        too scary. Good to know people are testing.
      
         - Typo causing incorrect operation of the mlx5 mkey cache
           expiration
      
         - Revert a CM patch that is breaking some ULPs
      
         - Typo breaking SRQ in rxe
      
         - Revert a rxe patch breaking icrc calculation
      
         - Static checker warning about unbalanced locking in hns
      
         - Subtle cxgb4 regression from a recent atomic to refcount
           conversion"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        RDMA/iw_cxgb4: Fix refcount underflow while destroying cqs.
        RDMA/hns: Fix the double unlock problem of poll_sem
        RDMA/rxe: Restore setting tot_len in the IPv4 header
        RDMA/rxe: Use the correct size of wqe when processing SRQ
        RDMA/cma: Revert INIT-INIT patch
        RDMA/mlx5: Delay emptying a cache entry when a new MR is added to it recently
      b4b927fc
    • Linus Torvalds's avatar
      Merge tag 'sound-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 484faec8
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A collection of small fixes:
      
         - A few regression fixes (PCM core fixes, USB-audio fixes)
      
         - Follow up fixes for the USB-audio mixer changes in this cycle
      
         - A long-standing ALSA sequencer race bug fix
      
         - Usual device-specific quirks for HD- and USB-audio"
      
      * tag 'sound-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: seq: Fix racy deletion of subscriber
        ALSA: memalloc: Fix regression with SNDRV_DMA_TYPE_CONTINUOUS
        ALSA: pcm - fix mmap capability check for the snd-dummy driver
        ALSA: usb-audio: Avoid unnecessary or invalid connector selection at resume
        ALSA: hda/realtek: add mic quirk for Acer SF314-42
        ALSA: usb-audio: Add registration quirk for JBL Quantum 600
        ALSA: hda/realtek: Fix headset mic for Acer SWIFT SF314-56 (ALC256)
        ALSA: usb-audio: Fix superfluous autosuspend recovery
        ALSA: usb-audio: fix incorrect clock source setting
        ALSA: scarlett2: Fix line out/speaker switching notifications
        ALSA: scarlett2: Correct channel mute status after mute button pressed
        ALSA: scarlett2: Fix Direct Monitor control name for 2i2
        ALSA: scarlett2: Fix Mute/Dim/MSD Mode control names
      484faec8
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2021-08-06' of git://anongit.freedesktop.org/drm/drm · 1254f05c
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular weekly fixes pull, live from a Brisbane lockdown with kids at
        home.
      
        A big bunch of scattered amdgpu fixes, but they are all pretty small,
        minor i915 fixes, kmb, and one vmwgfx regression fixes, all pretty
        quiet for this time.
      
        amdgpu:
         - Fix potential out-of-bounds read when updating GPUVM mapping
         - Renoir powergating fix
         - Yellow Carp updates
         - 8K fix for navi1x
         - Beige Goby updates and new DIDs
         - Fix DMUB firmware version output
         - EDP fix
         - pmops config fix
      
        i915:
         - Call i915_globals_exit if pci_register_device fails
         - (follow on fix for section mismatch)
         - Correct SFC_DONE register offset
      
        kmb:
         - DMA fix
         - driver date/version macros
      
        vmwgfx:
         - Fix I/O memory access on 64-bit systems"
      
      * tag 'drm-fixes-2021-08-06' of git://anongit.freedesktop.org/drm/drm:
        drm/amdgpu: add DID for beige goby
        drm/amdgpu/display: fix DMUB firmware version info
        drm/amd/display: workaround for hard hang on HPD on native DP
        drm/amd/display: Fix resetting DCN3.1 HW when resuming from S4
        drm/amd/display: Increase stutter watermark for dcn303
        drm/amd/display: Fix Dynamic bpp issue with 8K30 with Navi 1X
        drm/amd/display: Assume LTTPR interop for DCN31+
        drm/amdgpu: fix checking pmops when PM_SLEEP is not enabled
        drm/amd/pm: update yellow carp pmfw interface version
        drm/i915: fix i915_globals_exit() section mismatch error
        drm/i915: Call i915_globals_exit() if pci_register_device() fails
        drm/i915: Correct SFC_DONE register offset
        drm/vmwgfx: Fix a 64bit regression on svga3
        drm/amdgpu: fix the doorbell missing when in CGPG issue for renoir.
        drm/amdgpu: Fix out-of-bounds read when update mapping
        drm/kmb: Define driver date and major/minor version
        drm/kmb: Enable LCD DMA for low TVDDCV
      1254f05c
  2. Aug 06, 2021
  3. Aug 05, 2021