Skip to content
Permalink
Yassine-Oudjan…
Switch branches/tags

Commits on Aug 11, 2021

  1. arm64: dts: qcom: msm8996: Add interconnect support

    Add interconnect providers for the multiple NoCs available on the platform,
    and assign interconnects used by some blocks.
    
    Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
    Tooniis authored and intel-lab-lkp committed Aug 11, 2021
  2. interconnect: qcom: Add MSM8996 interconnect provider driver

    Add a driver for the MSM8996 NoCs. This chip is similar to SDM660 where
    some busses are controlled by RPM, while others directly by the AP with
    writes to QoS registers.
    
    This driver currently supports all NoCs except a0noc.
    
    Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
    Tooniis authored and intel-lab-lkp committed Aug 11, 2021
  3. dt-bindings: interconnect: Add Qualcomm MSM8996 DT bindings

    Add bindings for interconnects on Qualcomm MSM8996.
    
    Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
    Tooniis authored and intel-lab-lkp committed Aug 11, 2021
  4. dt-bindings: interconnect: Move SDM660 to a new RPM-QoS file

    Move SDM660 to a new shared file to allow for adding other similar SoCs.
    
    Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
    Reviewed-by: Rob Herring <robh@kernel.org>
    Tooniis authored and intel-lab-lkp committed Aug 11, 2021
  5. interconnect: qcom: sdm660: Commonize RPM-QoS

    SoCs such as MSM8996 also control bus QoS in a similar fashion to SDM660,
    with some paths being controlled by RPM and others directly by the AP.
    Move relevant functions and defines to a new object so that they can be used
    in multiple drivers.
    
    Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
    Tooniis authored and intel-lab-lkp committed Aug 11, 2021
  6. interconnect: qcom: icc-rpmh: Rename qcom_icc_set

    Rename qcom_icc_set to qcom_icc_rpmh_set in preparation for commonizing
    RPM-QoS, which also has a qcom_icc_set function.
    
    Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com>
    Tooniis authored and intel-lab-lkp committed Aug 11, 2021
  7. Merge tag 'arc-5.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/vgupta/arc
    
    Pull ARC fixes from Vineet Gupta:
    
     - Fix FPU_STATUS update
    
     - Update my email address
    
     - Other spellos and fixes
    
    * tag 'arc-5.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc:
      MAINTAINERS: update Vineet's email address
      ARC: fp: set FPU_STATUS.FWE to enable FPU_STATUS update on context switch
      ARC: Fix CONFIG_STACKDEPOT
      arc: Fix spelling mistake and grammar in Kconfig
      arc: Prefer unsigned int to bare use of unsigned
    torvalds committed Aug 11, 2021

Commits on Aug 10, 2021

  1. Merge tag 'platform-drivers-x86-v5.14-3' of git://git.kernel.org/pub/…

    …scm/linux/kernel/git/pdx86/platform-drivers-x86
    
    Pull x86 platform driver fixes from Hans de Goede:
     "Small set of pdx86 fixes for 5.14"
    
    * tag 'platform-drivers-x86-v5.14-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
      platform/x86: pcengines-apuv2: Add missing terminating entries to gpio-lookup tables
      platform/x86: Make dual_accel_detect() KIOX010A + KIOX020A detect more robust
      platform/x86: Add and use a dual_accel_detect() helper
    torvalds committed Aug 10, 2021
  2. Merge tag 'ovl-fixes-5.14-rc6-v2' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/mszeredi/vfs
    
    Pull overlayfs fixes from Miklos Szeredi:
     "Fix several bugs in overlayfs"
    
    * tag 'ovl-fixes-5.14-rc6-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
      ovl: prevent private clone if bind mount is not allowed
      ovl: fix uninitialized pointer read in ovl_lookup_real_one()
      ovl: fix deadlock in splice write
      ovl: skip stale entries in merge dir cache iteration
    torvalds committed Aug 10, 2021
  3. ovl: prevent private clone if bind mount is not allowed

    Add the following checks from __do_loopback() to clone_private_mount() as
    well:
    
     - verify that the mount is in the current namespace
    
     - verify that there are no locked children
    
    Reported-by: Alois Wohlschlager <alois1@gmx-topmail.de>
    Fixes: c771d68 ("vfs: introduce clone_private_mount()")
    Cc: <stable@vger.kernel.org> # v3.18
    Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
    Miklos Szeredi committed Aug 10, 2021
  4. ovl: fix uninitialized pointer read in ovl_lookup_real_one()

    One error path can result in release_dentry_name_snapshot() being called
    before "name" was initialized by take_dentry_name_snapshot().
    
    Fix by moving the release_dentry_name_snapshot() to immediately after the
    only use.
    
    Reported-by: Colin Ian King <colin.king@canonical.com>
    Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
    Miklos Szeredi committed Aug 10, 2021
  5. ovl: fix deadlock in splice write

    There's possibility of an ABBA deadlock in case of a splice write to an
    overlayfs file and a concurrent splice write to a corresponding real file.
    
    The call chain for splice to an overlay file:
    
     -> do_splice                     [takes sb_writers on overlay file]
       -> do_splice_from
         -> iter_file_splice_write    [takes pipe->mutex]
           -> vfs_iter_write
             ...
             -> ovl_write_iter        [takes sb_writers on real file]
    
    And the call chain for splice to a real file:
    
     -> do_splice                     [takes sb_writers on real file]
       -> do_splice_from
         -> iter_file_splice_write    [takes pipe->mutex]
    
    Syzbot successfully bisected this to commit 82a763e ("ovl: simplify
    file splice").
    
    Fix by reverting the write part of the above commit and by adding missing
    bits from ovl_write_iter() into ovl_splice_write().
    
    Fixes: 82a763e ("ovl: simplify file splice")
    Reported-and-tested-by: syzbot+579885d1a9a833336209@syzkaller.appspotmail.com
    Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
    Miklos Szeredi committed Aug 10, 2021
  6. ovl: skip stale entries in merge dir cache iteration

    On the first getdents call, ovl_iterate() populates the readdir cache
    with a list of entries, but for upper entries with origin lower inode,
    p->ino remains zero.
    
    Following getdents calls traverse the readdir cache list and call
    ovl_cache_update_ino() for entries with zero p->ino to lookup the entry
    in the overlay and return d_ino that is consistent with st_ino.
    
    If the upper file was unlinked between the first getdents call and the
    getdents call that lists the file entry, ovl_cache_update_ino() will not
    find the entry and fall back to setting d_ino to the upper real st_ino,
    which is inconsistent with how this object was presented to users.
    
    Instead of listing a stale entry with inconsistent d_ino, simply skip
    the stale entry, which is better for users.
    
    xfstest overlay/077 is failing without this patch.
    
    Signed-off-by: Amir Goldstein <amir73il@gmail.com>
    Link: https://lore.kernel.org/fstests/CAOQ4uxgR_cLnC_vdU5=seP3fwqVkuZM_-WfD6maFTMbMYq=a9w@mail.gmail.com/
    Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
    amir73il authored and Miklos Szeredi committed Aug 10, 2021

Commits on Aug 9, 2021

  1. Merge branch 'for-5.14-fixes' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/tj/cgroup
    
    Pull cgroup fix from Tejun Heo:
     "One commit to fix a possible A-A deadlock around u64_stats_sync on
      32bit machines caused by updating it without disabling IRQ when it may
      be read from IRQ context"
    
    * 'for-5.14-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
      cgroup: rstat: fix A-A deadlock on 32bit around u64_stats_sync
    torvalds committed Aug 9, 2021
  2. MAINTAINERS: update Vineet's email address

    I'll be leaving Synopsys shortly, but will continue to handle maintenance
    for the transition period.
    
    Signed-off-by: Vineet Gupta <vgupta@kernel.org>
    vineetgarc committed Aug 9, 2021

Commits on Aug 8, 2021

  1. Linux 5.14-rc5

    torvalds committed Aug 8, 2021
  2. Merge tag 'timers-urgent-2021-08-08' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/tip/tip
    
    Pull timer fix from Thomas Gleixner:
     "A single timer fix:
    
       - Prevent a memory ordering issue in the timer expiry code which
         makes it possible to observe falsely that the callback has been
         executed already while that's not the case, which violates the
         guarantee of del_timer_sync()"
    
    * tag 'timers-urgent-2021-08-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      timers: Move clearing of base::timer_running under base:: Lock
    torvalds committed Aug 8, 2021
  3. Merge tag 'sched-urgent-2021-08-08' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/tip/tip
    
    Pull scheduler fix from Thomas Gleixner:
     "A single scheduler fix:
    
       - Prevent a double enqueue caused by rt_effective_prio() being
         invoked twice in __sched_setscheduler()"
    
    * tag 'sched-urgent-2021-08-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      sched/rt: Fix double enqueue caused by rt_effective_prio
    torvalds committed Aug 8, 2021
  4. Merge tag 'perf-urgent-2021-08-08' of git://git.kernel.org/pub/scm/li…

    …nux/kernel/git/tip/tip
    
    Pull perf fixes from Thomas Gleixner:
     "A set of perf fixes:
    
       - Correct the permission checks for perf event which send SIGTRAP to
         a different process and clean up that code to be more readable.
    
       - Prevent an out of bound MSR access in the x86 perf code which
         happened due to an incomplete limiting to the actually available
         hardware counters.
    
       - Prevent access to the AMD64_EVENTSEL_HOSTONLY bit when running
         inside a guest.
    
       - Handle small core counter re-enabling correctly by issuing an ACK
         right before reenabling it to prevent a stale PEBS record being
         kept around"
    
    * tag 'perf-urgent-2021-08-08' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      perf/x86/intel: Apply mid ACK for small core
      perf/x86/amd: Don't touch the AMD64_EVENTSEL_HOSTONLY bit inside the guest
      perf/x86: Fix out of bound MSR access
      perf: Refactor permissions check into perf_check_permission()
      perf: Fix required permissions if sigtrap is requested
    torvalds committed Aug 8, 2021
  5. Merge tag 'char-misc-5.14-rc5' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/gregkh/char-misc
    
    Pull char/misc driver fixes from Greg KH:
     "Here are some small char/misc driver fixes for 5.14-rc5.
    
      They resolve a few regressions that people reported:
    
       - acrn driver fix
    
       - fpga driver fix
    
       - interconnect tiny driver fixes
    
      All have been in linux-next for a while with no reported issues"
    
    * tag 'char-misc-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
      interconnect: Fix undersized devress_alloc allocation
      interconnect: qcom: icc-rpmh: Add BCMs to commit list in pre_aggregate
      interconnect: qcom: icc-rpmh: Ensure floor BW is enforced for all nodes
      fpga: dfl: fme: Fix cpu hotplug issue in performance reporting
      virt: acrn: Do hcall_destroy_vm() before resource release
      interconnect: Always call pre_aggregate before aggregate
      interconnect: Zero initial BW after sync-state
    torvalds committed Aug 8, 2021
  6. Merge tag 'driver-core-5.14-rc5' of git://git.kernel.org/pub/scm/linu…

    …x/kernel/git/gregkh/driver-core
    
    Pull driver core fixes from Greg KH:
     "Here are three tiny driver core and firmware loader fixes for
      5.14-rc5. They are:
    
       - driver core fix for when probing fails
    
       - firmware loader fixes for reported problems.
    
      All have been in linux-next for a while with no reported issues"
    
    * tag 'driver-core-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
      firmware_loader: fix use-after-free in firmware_fallback_sysfs
      firmware_loader: use -ETIMEDOUT instead of -EAGAIN in fw_load_sysfs_fallback
      drivers core: Fix oops when driver probe fails
    torvalds committed Aug 8, 2021
  7. Merge tag 'staging-5.14-rc5' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/gregkh/staging
    
    Pull staging driver fixes from Greg KH:
     "Here are a few small staging driver fixes for 5.14-rc5 to resolve some
      reported problems. They include:
    
       - mt7621 driver fix
    
       - rtl8723bs driver fixes
    
       - rtl8712 driver fixes.
    
      Nothing major, just small problems resolved.
    
      All have been in linux-next for a while with no reported issues"
    
    * tag 'staging-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
      staging: mt7621-pci: avoid to re-disable clock for those pcies not in use
      staging: rtl8712: error handling refactoring
      staging: rtl8712: get rid of flush_scheduled_work
      staging: rtl8723bs: select CONFIG_CRYPTO_LIB_ARC4
      staging: rtl8723bs: Fix a resource leak in sd_int_dpc
    torvalds committed Aug 8, 2021
  8. Merge tag 'tty-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/gregkh/tty
    
    Pull tty/serial fixes from Greg KH:
     "Here are some small tty/serial driver fixes for 5.14-rc5 to resolve a
      number of reported problems.
    
      They include:
    
       - mips serial driver fixes
    
       - 8250 driver fixes for reported problems
    
       - fsl_lpuart driver fixes
    
       - other tiny driver fixes
    
      All have been in linux-next for a while with no reported problems"
    
    * tag 'tty-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
      serial: 8250_pci: Avoid irq sharing for MSI(-X) interrupts.
      serial: 8250_mtk: fix uart corruption issue when rx power off
      tty: serial: fsl_lpuart: fix the wrong return value in lpuart32_get_mctrl
      serial: 8250_pci: Enumerate Elkhart Lake UARTs via dedicated driver
      serial: 8250: fix handle_irq locking
      serial: tegra: Only print FIFO error message when an error occurs
      MIPS: Malta: Do not byte-swap accesses to the CBUS UART
      serial: 8250: Mask out floating 16/32-bit bus bits
      serial: max310x: Unprepare and disable clock in error path
    torvalds committed Aug 8, 2021
  9. Merge tag 'usb-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/gregkh/usb
    
    Pull USB driver fixes from Greg KH:
     "Here are some small USB driver fixes for 5.14-rc5. They resolve a
      number of small reported issues, including:
    
       - cdnsp driver fixes
    
       - usb serial driver fixes and device id updates
    
       - usb gadget hid fixes
    
       - usb host driver fixes
    
       - usb dwc3 driver fixes
    
       - other usb gadget driver fixes
    
      All of these have been in linux-next for a while with no reported
      issues"
    
    * tag 'usb-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (21 commits)
      usb: typec: tcpm: Keep other events when receiving FRS and Sourcing_vbus events
      usb: dwc3: gadget: Avoid runtime resume if disabling pullup
      usb: dwc3: gadget: Use list_replace_init() before traversing lists
      USB: serial: ftdi_sio: add device ID for Auto-M3 OP-COM v2
      USB: serial: pl2303: fix GT type detection
      USB: serial: option: add Telit FD980 composition 0x1056
      USB: serial: pl2303: fix HX type detection
      USB: serial: ch341: fix character loss at high transfer rates
      usb: cdnsp: Fix the IMAN_IE_SET and IMAN_IE_CLEAR macro
      usb: cdnsp: Fixed issue with ZLP
      usb: cdnsp: Fix incorrect supported maximum speed
      usb: cdns3: Fixed incorrect gadget state
      usb: gadget: f_hid: idle uses the highest byte for duration
      Revert "thunderbolt: Hide authorized attribute if router does not support PCIe tunnels"
      usb: otg-fsm: Fix hrtimer list corruption
      usb: host: ohci-at91: suspend/resume ports after/before OHCI accesses
      usb: musb: Fix suspend and resume issues for PHYs on I2C and SPI
      usb: gadget: f_hid: added GET_IDLE and SET_IDLE handlers
      usb: gadget: f_hid: fixed NULL pointer dereference
      usb: gadget: remove leaked entry from udc driver list
      ...
    torvalds committed Aug 8, 2021

Commits on Aug 7, 2021

  1. Merge tag 'io_uring-5.14-2021-08-07' of git://git.kernel.dk/linux-block

    Pull io_uring from Jens Axboe:
     "A few io-wq related fixes:
    
       - Fix potential nr_worker race and missing max_workers check from one
         path (Hao)
    
       - Fix race between worker exiting and new work queue (me)"
    
    * tag 'io_uring-5.14-2021-08-07' of git://git.kernel.dk/linux-block:
      io-wq: fix lack of acct->nr_workers < acct->max_workers judgement
      io-wq: fix no lock protection of acct->nr_worker
      io-wq: fix race between worker exiting and activating free worker
    torvalds committed Aug 7, 2021
  2. Merge tag 'block-5.14-2021-08-07' of git://git.kernel.dk/linux-block

    Pull block fixes from Jens Axboe:
     "A few minor fixes:
    
       - Fix ldm kernel-doc warning (Bart)
    
       - Fix adding offset twice for DMA address in n64cart (Christoph)
    
       - Fix use-after-free in dasd path handling (Stefan)
    
       - Order kyber insert trace correctly (Vincent)
    
       - raid1 errored write handling fix (Wei)
    
       - Fix blk-iolatency queue get failure handling (Yu)"
    
    * tag 'block-5.14-2021-08-07' of git://git.kernel.dk/linux-block:
      kyber: make trace_block_rq call consistent with documentation
      block/partitions/ldm.c: Fix a kernel-doc warning
      blk-iolatency: error out if blk_get_queue() failed in iolatency_set_limit()
      n64cart: fix the dma address in n64cart_do_bvec
      s390/dasd: fix use after free in dasd path handling
      md/raid10: properly indicate failure when ending a failed write request
    torvalds committed Aug 7, 2021
  3. Merge tag 'riscv-for-linus-5.14-rc5' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/riscv/linux
    
    Pull RISC-V fixes from Palmer Dabbelt:
    
     - avoid dereferencing a null task pointer while walking the stack
    
     - fix the memory size in the HiFive Unleashed device tree
    
     - disable stack protectors when randstruct is enabled, which results in
       non-deterministic offsets during module builds
    
     - a pair of fixes to avoid relying on a constant physical memory base
       for the non-XIP builds
    
    * tag 'riscv-for-linus-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
      Revert "riscv: Remove CONFIG_PHYS_RAM_BASE_FIXED"
      riscv: Get rid of CONFIG_PHYS_RAM_BASE in kernel physical address conversion
      riscv: Disable STACKPROTECTOR_PER_TASK if GCC_PLUGIN_RANDSTRUCT is enabled
      riscv: dts: fix memory size for the SiFive HiFive Unmatched
      riscv: stacktrace: Fix NULL pointer dereference
    torvalds committed Aug 7, 2021
  4. Merge tag 'kbuild-fixes-v5.14-2' of git://git.kernel.org/pub/scm/linu…

    …x/kernel/git/masahiroy/linux-kbuild
    
    Pull Kbuild fixes from Masahiro Yamada:
    
     - Correct the Extended Regular Expressions in tools
    
     - Adjust scripts/checkversion.pl for the current Kbuild
    
     - Unset sub_make_done for 'make install' to make DKMS work again
    
    * tag 'kbuild-fixes-v5.14-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
      kbuild: cancel sub_make_done for the install target to fix DKMS
      scripts: checkversion: modernize linux/version.h search strings
      mips: Fix non-POSIX regexp
      x86/tools/relocs: Fix non-POSIX regexp
    torvalds committed Aug 7, 2021
  5. Revert "riscv: Remove CONFIG_PHYS_RAM_BASE_FIXED"

    This reverts commit 9b79878.
    
    The removal of this config exposes CONFIG_PHYS_RAM_BASE for all kernel
    types: this value being implementation-specific, this breaks the
    genericity of the RISC-V kernel so revert it.
    
    Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
    Tested-by: Emil Renner Berthing <kernel@esmil.dk>
    Reviewed-by: Jisheng Zhang <jszhang@kernel.org>
    Cc: stable@vger.kernel.org
    Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
    AlexGhiti authored and palmer-dabbelt committed Aug 7, 2021
  6. riscv: Get rid of CONFIG_PHYS_RAM_BASE in kernel physical address con…

    …version
    
    The usage of CONFIG_PHYS_RAM_BASE for all kernel types was a mistake:
    this value is implementation-specific and this breaks the genericity of
    the RISC-V kernel.
    
    Fix this by introducing a new variable phys_ram_base that holds this
    value at runtime and use it in the kernel physical address conversion
    macro. Since this value is used only for XIP kernels, evaluate it only if
    CONFIG_XIP_KERNEL is set which in addition optimizes this macro for
    standard kernels at compile-time.
    
    Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
    Tested-by: Emil Renner Berthing <kernel@esmil.dk>
    Reviewed-by: Jisheng Zhang <jszhang@kernel.org>
    Fixes: 44c9225 ("RISC-V: enable XIP")
    Cc: stable@vger.kernel.org
    Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
    AlexGhiti authored and palmer-dabbelt committed Aug 7, 2021

Commits on Aug 6, 2021

  1. kyber: make trace_block_rq call consistent with documentation

    The kyber ioscheduler calls trace_block_rq_insert() *after* the request
    is added to the queue but the documentation for trace_block_rq_insert()
    says that the call should be made *before* the request is added to the
    queue.  Move the tracepoint for the kyber ioscheduler so that it is
    consistent with the documentation.
    
    Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
    Link: https://lore.kernel.org/r/20210804194913.10497-1-vincent.fu@samsung.com
    Reviewed by: Adam Manzanares <a.manzanares@samsung.com>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    vincentkfu authored and axboe committed Aug 6, 2021
  2. Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/tytso/ext4
    
    Pull ext4 fixes from Ted Ts'o:
     "A regression fix, bug fix, and a comment cleanup for ext4"
    
    * tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
      ext4: fix potential htree corruption when growing large_dir directories
      ext4: remove conflicting comment from __ext4_forget
      ext4: fix potential uninitialized access to retval in kmmpd
    torvalds committed Aug 6, 2021
  3. Merge tag 'trace-v5.14-rc4-2' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/rostedt/linux-trace
    
    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
    torvalds committed Aug 6, 2021
  4. Merge tag 'pm-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/rafael/linux-pm
    
    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
    torvalds committed Aug 6, 2021
  5. Merge tag 'acpi-5.14-rc5' of git://git.kernel.org/pub/scm/linux/kerne…

    …l/git/rafael/linux-pm
    
    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"
    torvalds committed Aug 6, 2021
Older