Skip to content
Permalink
Thinh-Nguyen/u…
Switch branches/tags

Commits on Apr 9, 2021

  1. usb: dwc3: host: Set quirks base on version

    We can check for host quirks at runtime base on the controller IP and
    version check. Set the following quirks for the DWC_usb31 IP host mode
    before creating a platform device for the xHCI driver:
    
     * XHCI_ISOC_BLOCKED_DISCONNECT
     * XHCI_LIMIT_FS_BI_INTR_EP
     * XHCI_LOST_DISCONNECT_QUIRK
    
    Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
    Thinh Nguyen authored and intel-lab-lkp committed Apr 9, 2021
  2. usb: xhci: Workaround lost disconnect port status

    If an eSS device with active periodic transfers is disconnected from the
    DWC_usb31 (v1.90a and prior) host controller at root port, the host
    controller may not detect a disconnection. By active transfers, it
    means that the endpoint is not in flow control, and there are active
    Transfer Descriptors available for the host to initiate transfers to the
    endpoint. This issue can occur if the endpoint periodic interval is in
    2ms, 4ms, or 8ms.
    
    In addition, the host controller will not be able to detect a new device
    connection while the disconnection is not processed. The controller will
    set the link state of the affected port to eSS_INACTIVE.
    
    To workaround this, have the xHCI driver polls for the eSS root port
    status every 2 seconds. If eSS_INACTIVE state is detected, initiate a
    fake connection change to stop all the active endpoints and start
    polling for new connection change.
    
    Since XHCI_COMP_MODE_QUIRK is basically doing the same thing except for
    polling for a different link state, we will use the same timer and
    polling rate for this new workaround. Introduce a new quirk
    XHCI_LOST_DISCONNECT_QUIRK to poll for eSS_INACTIVE port link state and
    fake a connection change.
    
    Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
    Thinh Nguyen authored and intel-lab-lkp committed Apr 9, 2021
  3. usb: xhci: Rename Compliance mode timer quirk

    In preparation for a workaround that needs to poll for the port status,
    rename the timer for XHCI_COMP_MODE_QUIRK to be more generic as it can
    be used for the new workaround. No funtional change here.
    
    Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
    Thinh Nguyen authored and intel-lab-lkp committed Apr 9, 2021
  4. usb: xhci: Workaround undercalculated BW for fullspeed BI

    DWC_usb31 host version 1.90a and prior undercalculates the bandwidth
    available for interrupt endpoints. The controller will return bandwidth
    error on config endpoint commands if there are already 6 or more
    fullspeed interrupt endpoints with bInterval of 4 (or 4ms) associated
    with a single fullspeed bus instance (BI).
    
    To workaround this, configure and use the endpoint at a shorter
    interrupt interval. Lower the ep_ctx interval from 5 to 4 (or 2ms)
    for interrupt endpoints of the fullspeed BI. Note: we have not observed
    functional impact to the fullspeed devices by lowering the interrupt
    service interval (at least for a few devices that we tested).
    
    To simplify the workaround, let's just check and apply the workaround if
    the endpoint is a fullspeed interrupt endpoint with interval of 4ms and
    if the top parent device is also operating in fullspeed (i.e. associated
    with fullspeed BI).
    
    Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
    Thinh Nguyen authored and intel-lab-lkp committed Apr 9, 2021
  5. usb: xhci: Check for blocked disconnection

    If there is a device with active enhanced super-speed (eSS) isoc IN
    endpoint(s) behind one or more eSS hubs, DWC_usb31 (v1.90a and prior)
    host controller will not detect the device disconnection until no more
    isoc URB is submitted. If there's a device disconnection, internally
    the wait for tHostTransactionTimeout (USB 3.2 spec 8.13) blocks the
    other endpoints from being scheduled. So, it blocks the interrupt
    endpoint of the eSS hub indicating the port change status.
    
    This can be an issue for applications that continuously submitting isoc
    URBs to the xHCI. To work around this, stop processing new URBs after 3
    consecutive isoc transaction errors. If new isoc transfers are queued
    after the device is disconnected, the host will respond with USB
    transaction error. After 3 consecutive USB transaction errors, the
    driver can wait a period of time (at least 2 * largest periodic interval
    of the topology) without ringing isoc endpoint doorbell to detect the
    port change status. If there is no disconnection detected, ring the
    endpoint doorbell to resume isoc transfers.
    
    This workaround tracks the max eSS periodic interval every time there's
    an endpoint added or dropped, which happens when there's bandwidth
    check. So, scan the topology and update the xhci->max_ess_interval
    whenever there's a bandwidth check. Introduced a new flag
    VDEV_DISCONN_CHECK_PENDING to prevent ringing the doorbell while waiting
    for a disconnection status. After 2 * max_ess_interval time and no
    disconnection detected, a delayed work will ring the doorbell to resume
    the active isoc transfers.
    
    Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
    Thinh Nguyen authored and intel-lab-lkp committed Apr 9, 2021
  6. usb: xhci: Move quirks definitions to common usb header

    DWC3 (and possibly others such as CDNS3) will need to access these xHCI
    quirks' definitions to initialize their hosts. Currently, to set these
    quirks, we'd need to create new DT properties matching the quirks. This
    may not be necessary as the driver can check the controller IP and
    version at runtime to determine which quirks are needed. Let's move
    these quirks' definitions to a common header under include/linux/usb so
    DWC3 can properly access them.
    
    Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
    Thinh Nguyen authored and intel-lab-lkp committed Apr 9, 2021

Commits on Apr 6, 2021

  1. xhci: prevent double-fetch of transfer and transfer event TRBs

    The same values are parsed several times from transfer and event
    TRBs by different functions in the same call path, all while processing
    one transfer event.
    
    As the TRBs are in DMA memory and can be accessed by the xHC host we want
    to avoid this to prevent double-fetch issues.
    
    To resolve this pass the already parsed values to the different functions
    in the path of parsing a transfer event
    
    Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
    Link: https://lore.kernel.org/r/20210406070208.3406266-5-mathias.nyman@linux.intel.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    matnyman authored and gregkh committed Apr 6, 2021
  2. xhci: fix potential array out of bounds with several interrupters

    The Max Interrupters supported by the controller is given in a 10bit
    wide bitfield, but the driver uses a fixed 128 size array to index these
    interrupters.
    
    Klockwork reports a possible array out of bounds case which in theory
    is possible. In practice this hasn't been hit as a common number of Max
    Interrupters for new controllers is 8, not even close to 128.
    
    This needs to be fixed anyway
    
    Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
    Link: https://lore.kernel.org/r/20210406070208.3406266-4-mathias.nyman@linux.intel.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    matnyman authored and gregkh committed Apr 6, 2021
  3. xhci: check control context is valid before dereferencing it.

    Don't dereference ctrl_ctx before checking it's valid.
    Issue reported by Klockwork
    
    Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
    Link: https://lore.kernel.org/r/20210406070208.3406266-3-mathias.nyman@linux.intel.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    matnyman authored and gregkh committed Apr 6, 2021
  4. xhci: check port array allocation was successful before dereferencing it

    return if rhub->ports is null after rhub->ports = kcalloc_node()
    Klockwork reported issue
    
    Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
    Link: https://lore.kernel.org/r/20210406070208.3406266-2-mathias.nyman@linux.intel.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    matnyman authored and gregkh committed Apr 6, 2021

Commits on Apr 5, 2021

  1. usb: typec: Declare the typec_class static

    This is only to make the handling of the class consistent
    with the two other susbsystems - the alt mode bus and the
    mux class.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Link: https://lore.kernel.org/r/20210401105847.13026-3-heikki.krogerus@linux.intel.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Heikki Krogerus authored and gregkh committed Apr 5, 2021
  2. usb: typec: Organize the private headers properly

    Adding a header file for each subsystem - the connector
    class, alt mode bus and the class for the muxes.
    
    Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
    Link: https://lore.kernel.org/r/20210401105847.13026-2-heikki.krogerus@linux.intel.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Heikki Krogerus authored and gregkh committed Apr 5, 2021
  3. Merge 5.12-rc6 into usb-next

    We want the USB fixes in here as well and it resolves a merge issue with
    xhci-mtk.c
    
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    gregkh committed Apr 5, 2021

Commits on Apr 4, 2021

  1. Linux 5.12-rc6

    torvalds committed Apr 4, 2021
  2. firewire: nosy: Fix a use-after-free bug in nosy_ioctl()

    For each device, the nosy driver allocates a pcilynx structure.
    A use-after-free might happen in the following scenario:
    
     1. Open nosy device for the first time and call ioctl with command
        NOSY_IOC_START, then a new client A will be malloced and added to
        doubly linked list.
     2. Open nosy device for the second time and call ioctl with command
        NOSY_IOC_START, then a new client B will be malloced and added to
        doubly linked list.
     3. Call ioctl with command NOSY_IOC_START for client A, then client A
        will be readded to the doubly linked list. Now the doubly linked
        list is messed up.
     4. Close the first nosy device and nosy_release will be called. In
        nosy_release, client A will be unlinked and freed.
     5. Close the second nosy device, and client A will be referenced,
        resulting in UAF.
    
    The root cause of this bug is that the element in the doubly linked list
    is reentered into the list.
    
    Fix this bug by adding a check before inserting a client.  If a client
    is already in the linked list, don't insert it.
    
    The following KASAN report reveals it:
    
       BUG: KASAN: use-after-free in nosy_release+0x1ea/0x210
       Write of size 8 at addr ffff888102ad7360 by task poc
       CPU: 3 PID: 337 Comm: poc Not tainted 5.12.0-rc5+ torvalds#6
       Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014
       Call Trace:
         nosy_release+0x1ea/0x210
         __fput+0x1e2/0x840
         task_work_run+0xe8/0x180
         exit_to_user_mode_prepare+0x114/0x120
         syscall_exit_to_user_mode+0x1d/0x40
         entry_SYSCALL_64_after_hwframe+0x44/0xae
    
       Allocated by task 337:
         nosy_open+0x154/0x4d0
         misc_open+0x2ec/0x410
         chrdev_open+0x20d/0x5a0
         do_dentry_open+0x40f/0xe80
         path_openat+0x1cf9/0x37b0
         do_filp_open+0x16d/0x390
         do_sys_openat2+0x11d/0x360
         __x64_sys_open+0xfd/0x1a0
         do_syscall_64+0x33/0x40
         entry_SYSCALL_64_after_hwframe+0x44/0xae
    
       Freed by task 337:
         kfree+0x8f/0x210
         nosy_release+0x158/0x210
         __fput+0x1e2/0x840
         task_work_run+0xe8/0x180
         exit_to_user_mode_prepare+0x114/0x120
         syscall_exit_to_user_mode+0x1d/0x40
         entry_SYSCALL_64_after_hwframe+0x44/0xae
    
       The buggy address belongs to the object at ffff888102ad7300 which belongs to the cache kmalloc-128 of size 128
       The buggy address is located 96 bytes inside of 128-byte region [ffff888102ad7300, ffff888102ad7380)
    
    [ Modified to use 'list_empty()' inside proper lock  - Linus ]
    
    Link: https://lore.kernel.org/lkml/1617433116-5930-1-git-send-email-zheyuma97@gmail.com/
    Reported-and-tested-by: 马哲宇 (Zheyu Ma) <zheyuma97@gmail.com>
    Signed-off-by: Zheyu Ma <zheyuma97@gmail.com>
    Cc: Greg Kroah-Hartman <greg@kroah.com>
    Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    ZheyuMa authored and torvalds committed Apr 4, 2021

Commits on Apr 3, 2021

  1. Merge tag 'for-linus' of git://github.com/openrisc/linux

    Pull OpenRISC fix from Stafford Horne:
     "Fix duplicate header include in Litex SOC driver"
    
    * tag 'for-linus' of git://github.com/openrisc/linux:
      soc: litex: Remove duplicated header file inclusion
    torvalds committed Apr 3, 2021
  2. Merge tag 'io_uring-5.12-2021-04-03' of git://git.kernel.dk/linux-block

    POull io_uring fix from Jens Axboe:
     "Just fixing a silly braino in a previous patch, where we'd end up
      failing to compile if CONFIG_BLOCK isn't enabled.
    
      Not that a lot of people do that, but kernel bot spotted it and it's
      probably prudent to just flush this out now before -rc6.
    
      Sorry about that, none of my test compile configs have !CONFIG_BLOCK"
    
    * tag 'io_uring-5.12-2021-04-03' of git://git.kernel.dk/linux-block:
      io_uring: fix !CONFIG_BLOCK compilation failure
    torvalds committed Apr 3, 2021
  3. soc: litex: Remove duplicated header file inclusion

    The header file <linux/errno.h> is already included above and can be
    removed here.
    
    Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
    Signed-off-by: Mateusz Holenko <mholenko@antmicro.com>
    Signed-off-by: Stafford Horne <shorne@gmail.com>
    Zhen Lei authored and stffrdhrn committed Apr 3, 2021
  4. Merge tag 'gfs2-v5.12-rc2-fixes2' of git://git.kernel.org/pub/scm/lin…

    …ux/kernel/git/gfs2/linux-gfs2
    
    Pull gfs2 fixes from Andreas Gruenbacher:
     "Two more gfs2 fixes"
    
    * tag 'gfs2-v5.12-rc2-fixes2' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2:
      gfs2: report "already frozen/thawed" errors
      gfs2: Flag a withdraw if init_threads() fails
    torvalds committed Apr 3, 2021
  5. Merge tag 'riscv-for-linus-5.12-rc6' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/riscv/linux
    
    Pull RISC-V fixes from Palmer Dabbelt:
     "A handful of fixes for 5.12:
    
       - fix a stack tracing regression related to "const register asm"
         variables, which have unexpected behavior.
    
       - ensure the value to be written by put_user() is evaluated before
         enabling access to userspace memory..
    
       - align the exception vector table correctly, so we don't rely on the
         firmware's handling of unaligned accesses.
    
       - build fix to make NUMA depend on MMU, which triggered on some
         randconfigs"
    
    * tag 'riscv-for-linus-5.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
      riscv: Make NUMA depend on MMU
      riscv: remove unneeded semicolon
      riscv,entry: fix misaligned base for excp_vect_table
      riscv: evaluate put_user() arg before enabling user access
      riscv: Drop const annotation for sp
    torvalds committed Apr 3, 2021
  6. Merge tag 'powerpc-5.12-5' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/powerpc/linux
    
    Pull powerpc fixes from Michael Ellerman:
     "Fix a bug on pseries where spurious wakeups from H_PROD would prevent
      partition migration from succeeding.
    
      Fix oopses seen in pcpu_alloc(), caused by parallel faults of the
      percpu mapping causing us to corrupt the protection key used for the
      mapping, and cause a fatal key fault.
    
      Thanks to Aneesh Kumar K.V, Murilo Opsfelder Araujo, and Nathan Lynch"
    
    * tag 'powerpc-5.12-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
      powerpc/mm/book3s64: Use the correct storage key value when calling H_PROTECT
      powerpc/pseries/mobility: handle premature return from H_JOIN
      powerpc/pseries/mobility: use struct for shared state
    torvalds committed Apr 3, 2021
  7. Merge tag 'hyperv-fixes-signed-20210402' of git://git.kernel.org/pub/…

    …scm/linux/kernel/git/hyperv/linux
    
    Pull Hyper-V fixes from Wei Liu:
     "One fix from Lu Yunlong for a double free in hvfb_probe"
    
    * tag 'hyperv-fixes-signed-20210402' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux:
      video: hyperv_fb: Fix a double free in hvfb_probe
    torvalds committed Apr 3, 2021
  8. Merge tag 'driver-core-5.12-rc6' of git://git.kernel.org/pub/scm/linu…

    …x/kernel/git/gregkh/driver-core
    
    Pull driver core fix from Greg KH:
     "Here is a single driver core fix for a reported problem with differed
      probing. It has been in linux-next for a while with no reported
      problems"
    
    * tag 'driver-core-5.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
      driver core: clear deferred probe reason on probe retry
    torvalds committed Apr 3, 2021
  9. Merge tag 'char-misc-5.12-rc6' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/gregkh/char-misc
    
    Pull char/misc driver fixes from Greg KH:
     "Here are a few small driver char/misc changes for 5.12-rc6.
    
      Nothing major here, a few fixes for reported issues:
    
       - interconnect fixes for problems found
    
       - fbcon syzbot-found fix
    
       - extcon fixes
    
       - firmware stratix10 bugfix
    
       - MAINTAINERS file update.
    
      All of these have been in linux-next for a while with no reported
      issues"
    
    * tag 'char-misc-5.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
      drivers: video: fbcon: fix NULL dereference in fbcon_cursor()
      mei: allow map and unmap of client dma buffer only for disconnected client
      MAINTAINERS: Add linux-phy list and patchwork
      interconnect: Fix kerneldoc warning
      firmware: stratix10-svc: reset COMMAND_RECONFIG_FLAG_PARTIAL to 0
      extcon: Fix error handling in extcon_dev_register
      extcon: Add stubs for extcon_register_notifier_all() functions
      interconnect: core: fix error return code of icc_link_destroy()
      interconnect: qcom: msm8939: remove rpm-ids from non-RPM nodes
    torvalds committed Apr 3, 2021
  10. Merge tag 'staging-5.12-rc6' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/gregkh/staging
    
    Pull staging driver fixes from Greg KH:
     "Here are two rtl8192e staging driver fixes for reported problems.
    
      Both of these have been in linux-next for a while with no reported
      issues"
    
    * tag 'staging-5.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
      staging: rtl8192e: Change state information from u16 to u8
      staging: rtl8192e: Fix incorrect source in memcpy()
    torvalds committed Apr 3, 2021
  11. Merge tag 'tty-5.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/gregkh/tty
    
    Pull serial driver fix from Greg KH:
     "Here is a single serial driver fix for 5.12-rc6. Is is a revert of a
      change that showed up in 5.9 that has been reported to cause problems.
    
      It has been in linux-next for a while with no reported issues"
    
    * tag 'tty-5.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
      soc: qcom-geni-se: Cleanup the code to remove proxy votes
    torvalds committed Apr 3, 2021
  12. Merge tag 'usb-5.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel…

    …/git/gregkh/usb
    
    Pull USB fixes from Greg KH:
     "Here are a few small USB driver fixes for 5.12-rc6 to resolve reported
      problems.
    
      They include:
    
       - a number of cdc-acm fixes for reported problems. It seems more
         people are using this driver lately...
    
       - dwc3 driver fixes for reported problems, and fixes for the fixes :)
    
       - dwc2 driver fixes for reported issues.
    
       - musb driver fix.
    
       - new USB quirk additions.
    
      All of these have been in linux-next for a while with no reported
      issues"
    
    * tag 'usb-5.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (23 commits)
      usb: dwc2: Prevent core suspend when port connection flag is 0
      usb: dwc2: Fix HPRT0.PrtSusp bit setting for HiKey 960 board.
      usb: musb: Fix suspend with devices connected for a64
      usb: xhci-mtk: fix broken streams issue on 0.96 xHCI
      usb: dwc3: gadget: Clear DEP flags after stop transfers in ep disable
      usbip: vhci_hcd fix shift out-of-bounds in vhci_hub_control()
      USB: quirks: ignore remote wake-up on Fibocom L850-GL LTE modem
      USB: cdc-acm: do not log successful probe on later errors
      USB: cdc-acm: always claim data interface
      USB: cdc-acm: use negation for NULL checks
      USB: cdc-acm: clean up probe error labels
      USB: cdc-acm: drop redundant driver-data reset
      USB: cdc-acm: drop redundant driver-data assignment
      USB: cdc-acm: fix use-after-free after probe failure
      USB: cdc-acm: fix double free on probe failure
      USB: cdc-acm: downgrade message to debug
      USB: cdc-acm: untangle a circular dependency between callback and softint
      cdc-acm: fix BREAK rx code path adding necessary calls
      usb: gadget: udc: amd5536udc_pci fix null-ptr-dereference
      usb: dwc3: pci: Enable dis_uX_susphy_quirk for Intel Merrifield
      ...
    torvalds committed Apr 3, 2021
  13. Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…

    …it/jejb/scsi
    
    Pull SCSI fix from James Bottomley:
     "A single fix to iscsi for a rare race condition which can cause a
      kernel panic"
    
    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
      scsi: iscsi: Fix race condition between login and sync thread
    torvalds committed Apr 3, 2021
  14. io_uring: fix !CONFIG_BLOCK compilation failure

    kernel test robot correctly pinpoints a compilation failure if
    CONFIG_BLOCK isn't set:
    
    fs/io_uring.c: In function '__io_complete_rw':
    >> fs/io_uring.c:2509:48: error: implicit declaration of function 'io_rw_should_reissue'; did you mean 'io_rw_reissue'? [-Werror=implicit-function-declaration]
        2509 |  if ((res == -EAGAIN || res == -EOPNOTSUPP) && io_rw_should_reissue(req)) {
             |                                                ^~~~~~~~~~~~~~~~~~~~
             |                                                io_rw_reissue
        cc1: some warnings being treated as errors
    
    Ensure that we have a stub declaration of io_rw_should_reissue() for
    !CONFIG_BLOCK.
    
    Fixes: 230d50d ("io_uring: move reissue into regular IO path")
    Reported-by: kernel test robot <lkp@intel.com>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    axboe committed Apr 3, 2021

Commits on Apr 2, 2021

  1. Merge tag 'block-5.12-2021-04-02' of git://git.kernel.dk/linux-block

    Pull block fixes from Jens Axboe:
    
     - Remove comment that never came to fruition in 22 years of development
       (Christoph)
    
     - Remove unused request flag (Christoph)
    
     - Fix for null_blk fake timeout handling (Damien)
    
     - Fix for IOCB_NOWAIT being ignored for O_DIRECT on raw bdevs (Pavel)
    
     - Error propagation fix for multiple split bios (Yufen)
    
    * tag 'block-5.12-2021-04-02' of git://git.kernel.dk/linux-block:
      block: remove the unused RQF_ALLOCED flag
      block: update a few comments in uapi/linux/blkpg.h
      block: don't ignore REQ_NOWAIT for direct IO
      null_blk: fix command timeout completion handling
      block: only update parent bi_status when bio fail
    torvalds committed Apr 2, 2021
  2. Merge tag 'io_uring-5.12-2021-04-02' of git://git.kernel.dk/linux-block

    Pull io_uring fixes from Jens Axboe:
     "Nothing really major in here, and finally nothing really related to
      signals. A few minor fixups related to the threading changes, and some
      general fixes, that's it.
    
      There's the pending gdb-get-confused-about-arch, but that's more of a
      cosmetic issue, nothing that hinder use of it. And given that other
      archs will likely be affected by that oddity too, better to postpone
      any changes there until 5.13 imho"
    
    * tag 'io_uring-5.12-2021-04-02' of git://git.kernel.dk/linux-block:
      io_uring: move reissue into regular IO path
      io_uring: fix EIOCBQUEUED iter revert
      io_uring/io-wq: protect against sprintf overflow
      io_uring: don't mark S_ISBLK async work as unbounded
      io_uring: drop sqd lock before handling signals for SQPOLL
      io_uring: handle setup-failed ctx in kill_timeouts
      io_uring: always go for cancellation spin on exec
    torvalds committed Apr 2, 2021
  3. Merge tag 'acpi-5.12-rc6' of git://git.kernel.org/pub/scm/linux/kerne…

    …l/git/rafael/linux-pm
    
    Pull ACPI fixes from Rafael Wysocki:
     "These fix an ACPI tables management issue, an issue related to the
      ACPI enumeration of devices and CPU wakeup in the ACPI processor
      driver.
    
      Specifics:
    
       - Ensure that the memory occupied by ACPI tables on x86 will always
         be reserved to prevent it from being allocated for other purposes
         which was possible in some cases (Rafael Wysocki).
    
       - Fix the ACPI device enumeration code to prevent it from attempting
         to evaluate the _STA control method for devices with unmet
         dependencies which is likely to fail (Hans de Goede).
    
       - Fix the handling of CPU0 wakeup in the ACPI processor driver to
         prevent CPU0 online failures from occurring (Vitaly Kuznetsov)"
    
    * tag 'acpi-5.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
      ACPI: processor: Fix CPU0 wakeup in acpi_idle_play_dead()
      ACPI: scan: Fix _STA getting called on devices with unmet dependencies
      ACPI: tables: x86: Reserve memory occupied by ACPI tables
    torvalds committed Apr 2, 2021
  4. Merge tag 'pm-5.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/rafael/linux-pm
    
    Pull power management fixes from Rafael Wysocki:
     "These fix a race condition and an ordering issue related to using
      device links in the runtime PM framework and two kerneldoc comments in
      cpufreq.
    
      Specifics:
    
       - Fix race condition related to the handling of supplier devices
         during consumer device probe and fix the order of decrementation of
         two related reference counters in the runtime PM core code handling
         supplier devices (Adrian Hunter).
    
       - Fix kerneldoc comments in cpufreq that have not been updated along
         with the functions documented by them (Geert Uytterhoeven)"
    
    * tag 'pm-5.12-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
      PM: runtime: Fix race getting/putting suppliers at probe
      PM: runtime: Fix ordering in pm_runtime_get_suppliers()
      cpufreq: Fix scaling_{available,boost}_frequencies_show() comments
    torvalds committed Apr 2, 2021
  5. block: remove the unused RQF_ALLOCED flag

    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    Christoph Hellwig authored and axboe committed Apr 2, 2021
  6. block: update a few comments in uapi/linux/blkpg.h

    The big top of the file comment talk about grand plans that never
    happened, so remove them to not confuse the readers.  Also mark the
    devname and volname fields as ignored as they were never used by the
    kernel.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Jens Axboe <axboe@kernel.dk>
    Christoph Hellwig authored and axboe committed Apr 2, 2021
Older