Skip to content
Permalink
Andrew-Melnych…
Switch branches/tags

Commits on Aug 18, 2021

  1. drivers/net/virtio_net: Added RSS hash report.

    Added set_hash for skb.
    Also added hashflow set/get callbacks.
    Virtio RSS "IPv6 extensions" hashes disabled.
    Also, disabling RXH_IP_SRC/DST for TCP would disable them for UDP.
    TCP and UDP supports only:
    ethtool -U eth0 rx-flow-hash tcp4 sd
        RXH_IP_SRC + RXH_IP_DST
    ethtool -U eth0 rx-flow-hash tcp4 sdfn
        RXH_IP_SRC + RXH_IP_DST + RXH_L4_B_0_1 + RXH_L4_B_2_3
    
    Signed-off-by: Andrew Melnychenko <andrew@daynix.com>
    AndrewAtDaynix authored and intel-lab-lkp committed Aug 18, 2021
  2. drivers/net/virtio_net: Added basic RSS support.

    Added features for RSS and RSS hash report.
    Added initialization, RXHASH feature and ethtool ops.
    By default RSS/RXHASH is disabled.
    Added ethtools ops to set key and indirection table.
    
    Signed-off-by: Andrew Melnychenko <andrew@daynix.com>
    AndrewAtDaynix authored and intel-lab-lkp committed Aug 18, 2021
  3. drivers/net/virtio_net: Fixed vheader to use v1.

    The header v1 provides additional info about RSS.
    Added changes to computing proper header length.
    In the next patches, the header may contain RSS hash info
    for the hash population.
    
    Signed-off-by: Andrew Melnychenko <andrew@daynix.com>
    AndrewAtDaynix authored and intel-lab-lkp committed Aug 18, 2021

Commits on Aug 11, 2021

  1. vdpa/mlx5: Fix queue type selection logic

    get_queue_type() comments that splict virtqueue is preferred, however,
    the actual logic preferred packed virtqueues. Since firmware has not
    supported packed virtqueues we ended up using split virtqueues as was
    desired.
    
    Since we do not advertise support for packed virtqueues, we add a check
    to verify split virtqueues are indeed supported.
    
    Fixes: 1a86b37 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices")
    Signed-off-by: Eli Cohen <elic@nvidia.com>
    Link: https://lore.kernel.org/r/20210811053759.66752-1-elic@nvidia.com
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Eli Cohen authored and mstsirkin committed Aug 11, 2021
  2. vdpa/mlx5: Avoid destroying MR on empty iotlb

    The current code treats an empty iotlb provdied in set_map() as a
    special case and destroy the memory region object. This must not be done
    since the virtqueue objects reference this MR. Doing so will cause the
    driver unload to emit errors and log timeouts caused by the firmware
    complaining on busy resources.
    
    This patch treats an empty iotlb as any other change of mapping. In this
    case, mlx5_vdpa_create_mr() will fail and the entire set_map() call to
    fail.
    
    This issue has not been encountered before but was seen to occur in a
    non-official version of qemu. Since qemu is a userspace program, the
    driver must protect against such case.
    
    Fixes: 94abbcc ("vdpa/mlx5: Add shared memory registration code")
    Signed-off-by: Eli Cohen <elic@nvidia.com>
    Link: https://lore.kernel.org/r/20210811053713.66658-1-elic@nvidia.com
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Eli Cohen authored and mstsirkin committed Aug 11, 2021
  3. tools/virtio: fix build

    We use a spinlock now so add a stub.
    Ignore bogus uninitialized variable warnings.
    
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    mstsirkin committed Aug 11, 2021
  4. virtio_ring: pull in spinlock header

    we use a spinlock now pull in the correct header to
    make virtio_ring.c self sufficient.
    
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    mstsirkin committed Aug 11, 2021
  5. vringh: pull in spinlock header

    we use a spinlock now pull in the correct header to
    make vring.h self sufficient.
    
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    mstsirkin committed Aug 11, 2021
  6. virtio-blk: Add validation for block size in config space

    An untrusted device might presents an invalid block size
    in configuration space. This tries to add validation for it
    in the validate callback and clear the VIRTIO_BLK_F_BLK_SIZE
    feature bit if the value is out of the supported range.
    
    And we also double check the value in virtblk_probe() in
    case that it's changed after the validation.
    
    Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
    Link: https://lore.kernel.org/r/20210809101609.148-1-xieyongji@bytedance.com
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Acked-by: Jason Wang <jasowang@redhat.com>
    YongjiXie authored and mstsirkin committed Aug 11, 2021
  7. vringh: Use wiov->used to check for read/write desc order

    As __vringh_iov() traverses a descriptor chain, it populates
    each descriptor entry into either read or write vring iov
    and increments that iov's ->used member. So, as we iterate
    over a descriptor chain, at any point, (riov/wriov)->used
    value gives the number of descriptor enteries available,
    which are to be read or written by the device. As all read
    iovs must precede the write iovs, wiov->used should be zero
    when we are traversing a read descriptor. Current code checks
    for wiov->i, to figure out whether any previous entry in the
    current descriptor chain was a write descriptor. However,
    iov->i is only incremented, when these vring iovs are consumed,
    at a later point, and remain 0 in __vringh_iov(). So, correct
    the check for read and write descriptor order, to use
    wiov->used.
    
    Acked-by: Jason Wang <jasowang@redhat.com>
    Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
    Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
    Link: https://lore.kernel.org/r/1624591502-4827-1-git-send-email-neeraju@codeaurora.org
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Neeraj Upadhyay authored and mstsirkin committed Aug 11, 2021
  8. virtio_vdpa: reject invalid vq indices

    Do not call vDPA drivers' callbacks with vq indicies larger than what
    the drivers indicate that they support.  vDPA drivers do not bounds
    check the indices.
    
    Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
    Link: https://lore.kernel.org/r/20210701114652.21956-1-vincent.whitchurch@axis.com
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Acked-by: Jason Wang <jasowang@redhat.com>
    Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
    vwax authored and mstsirkin committed Aug 11, 2021
  9. vdpa: Add documentation for vdpa_alloc_device() macro

    The return value of vdpa_alloc_device() macro is not very
    clear, so that most of callers did the wrong check. Let's
    add some comments to better document it.
    
    Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
    Link: https://lore.kernel.org/r/20210715080026.242-4-xieyongji@bytedance.com
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Acked-by: Jason Wang <jasowang@redhat.com>
    Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
    YongjiXie authored and mstsirkin committed Aug 11, 2021
  10. vDPA/ifcvf: Fix return value check for vdpa_alloc_device()

    The vdpa_alloc_device() returns an error pointer upon
    failure, not NULL. To handle the failure correctly, this
    replaces NULL check with IS_ERR() check and propagate the
    error upwards.
    
    Fixes: 5a2414b ("virtio: Intel IFC VF driver for VDPA")
    Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
    Link: https://lore.kernel.org/r/20210715080026.242-3-xieyongji@bytedance.com
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Acked-by: Jason Wang <jasowang@redhat.com>
    Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
    YongjiXie authored and mstsirkin committed Aug 11, 2021
  11. vp_vdpa: Fix return value check for vdpa_alloc_device()

    The vdpa_alloc_device() returns an error pointer upon
    failure, not NULL. To handle the failure correctly, this
    replaces NULL check with IS_ERR() check and propagate the
    error upwards.
    
    Fixes: 64b9f64 ("vdpa: introduce virtio pci driver")
    Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
    Link: https://lore.kernel.org/r/20210715080026.242-2-xieyongji@bytedance.com
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Acked-by: Jason Wang <jasowang@redhat.com>
    Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
    YongjiXie authored and mstsirkin committed Aug 11, 2021
  12. vdpa_sim: Fix return value check for vdpa_alloc_device()

    The vdpa_alloc_device() returns an error pointer upon
    failure, not NULL. To handle the failure correctly, this
    replaces NULL check with IS_ERR() check and propagate the
    error upwards.
    
    Fixes: 2c53d0f ("vdpasim: vDPA device simulator")
    Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
    Link: https://lore.kernel.org/r/20210715080026.242-1-xieyongji@bytedance.com
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
    YongjiXie authored and mstsirkin committed Aug 11, 2021
  13. vhost: Fix the calculation in vhost_overflow()

    This fixes the incorrect calculation for integer overflow
    when the last address of iova range is 0xffffffff.
    
    Fixes: ec33d03 ("vhost: detect 32 bit integer wrap around")
    Reported-by: Jason Wang <jasowang@redhat.com>
    Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
    Acked-by: Jason Wang <jasowang@redhat.com>
    Link: https://lore.kernel.org/r/20210728130756.97-2-xieyongji@bytedance.com
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    YongjiXie authored and mstsirkin committed Aug 11, 2021

Commits on Aug 10, 2021

  1. vhost-vdpa: Fix integer overflow in vhost_vdpa_process_iotlb_update()

    The "msg->iova + msg->size" addition can have an integer overflow
    if the iotlb message is from a malicious user space application.
    So let's fix it.
    
    Fixes: 1b48dc0 ("vhost: vdpa: report iova range")
    Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
    Acked-by: Jason Wang <jasowang@redhat.com>
    Link: https://lore.kernel.org/r/20210728130756.97-1-xieyongji@bytedance.com
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    YongjiXie authored and mstsirkin committed Aug 10, 2021
  2. virtio_pci: Support surprise removal of virtio pci device

    When a virtio pci device undergo surprise removal (aka async removal in
    PCIe spec), mark the device as broken so that any upper layer drivers can
    abort any outstanding operation.
    
    When a virtio net pci device undergo surprise removal which is used by a
    NetworkManager, a below call trace was observed.
    
    kernel:watchdog: BUG: soft lockup - CPU#1 stuck for 26s! [kworker/1:1:27059]
    watchdog: BUG: soft lockup - CPU#1 stuck for 52s! [kworker/1:1:27059]
    CPU: 1 PID: 27059 Comm: kworker/1:1 Tainted: G S      W I  L    5.13.0-hotplug+ torvalds#8
    Hardware name: Dell Inc. PowerEdge R640/0H28RR, BIOS 2.9.4 11/06/2020
    Workqueue: events linkwatch_event
    RIP: 0010:virtnet_send_command+0xfc/0x150 [virtio_net]
    Call Trace:
     virtnet_set_rx_mode+0xcf/0x2a7 [virtio_net]
     ? __hw_addr_create_ex+0x85/0xc0
     __dev_mc_add+0x72/0x80
     igmp6_group_added+0xa7/0xd0
     ipv6_mc_up+0x3c/0x60
     ipv6_find_idev+0x36/0x80
     addrconf_add_dev+0x1e/0xa0
     addrconf_dev_config+0x71/0x130
     addrconf_notify+0x1f5/0xb40
     ? rtnl_is_locked+0x11/0x20
     ? __switch_to_asm+0x42/0x70
     ? finish_task_switch+0xaf/0x2c0
     ? raw_notifier_call_chain+0x3e/0x50
     raw_notifier_call_chain+0x3e/0x50
     netdev_state_change+0x67/0x90
     linkwatch_do_dev+0x3c/0x50
     __linkwatch_run_queue+0xd2/0x220
     linkwatch_event+0x21/0x30
     process_one_work+0x1c8/0x370
     worker_thread+0x30/0x380
     ? process_one_work+0x370/0x370
     kthread+0x118/0x140
     ? set_kthread_struct+0x40/0x40
     ret_from_fork+0x1f/0x30
    
    Hence, add the ability to abort the command on surprise removal
    which prevents infinite loop and system lockup.
    
    Signed-off-by: Parav Pandit <parav@nvidia.com>
    Link: https://lore.kernel.org/r/20210721142648.1525924-5-parav@nvidia.com
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    paravmellanox authored and mstsirkin committed Aug 10, 2021
  3. virtio: Protect vqs list access

    VQs may be accessed to mark the device broken while they are
    created/destroyed. Hence protect the access to the vqs list.
    
    Fixes: e2dcdfe ("virtio: virtio_break_device() to mark all virtqueues broken.")
    Signed-off-by: Parav Pandit <parav@nvidia.com>
    Link: https://lore.kernel.org/r/20210721142648.1525924-4-parav@nvidia.com
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    paravmellanox authored and mstsirkin committed Aug 10, 2021
  4. virtio: Keep vring_del_virtqueue() mirror of VQ create

    Keep the vring_del_virtqueue() mirror of the create routines.
    i.e. to delete list entry first as it is added last during the create
    routine.
    
    Signed-off-by: Parav Pandit <parav@nvidia.com>
    Link: https://lore.kernel.org/r/20210721142648.1525924-3-parav@nvidia.com
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    paravmellanox authored and mstsirkin committed Aug 10, 2021
  5. virtio: Improve vq->broken access to avoid any compiler optimization

    Currently vq->broken field is read by virtqueue_is_broken() in busy
    loop in one context by virtnet_send_command().
    
    vq->broken is set to true in other process context by
    virtio_break_device(). Reader and writer are accessing it without any
    synchronization. This may lead to a compiler optimization which may
    result to optimize reading vq->broken only once.
    
    Hence, force reading vq->broken on each invocation of
    virtqueue_is_broken() and also force writing it so that such
    update is visible to the readers.
    
    It is a theoretical fix that isn't yet encountered in the field.
    
    Signed-off-by: Parav Pandit <parav@nvidia.com>
    Link: https://lore.kernel.org/r/20210721142648.1525924-2-parav@nvidia.com
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    paravmellanox authored and mstsirkin committed Aug 10, 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
Older