1. 02 Jun, 2023 1 commit
  2. 01 Jun, 2023 33 commits
  3. 31 May, 2023 6 commits
    • Linus Torvalds's avatar
      Merge tag '6.4-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 929ed21d
      Linus Torvalds authored
      Pull smb client fixes from Steve French:
       "Four small smb3 client fixes:
      
         - two small fixes suggested by kernel test robot
      
         - small cleanup fix
      
         - update Paulo's email address in the maintainer file"
      
      * tag '6.4-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: address unused variable warning
        smb: delete an unnecessary statement
        smb3: missing null check in SMB2_change_notify
        smb3: update a reviewer email in MAINTAINERS file
      929ed21d
    • Dan Carpenter's avatar
      mailbox: mailbox-test: fix a locking issue in mbox_test_message_write() · 8fe72b76
      Dan Carpenter authored
      There was a bug where this code forgot to unlock the tdev->mutex if the
      kzalloc() failed.  Fix this issue, by moving the allocation outside the
      lock.
      
      Fixes: 2d1e952a ("mailbox: mailbox-test: Fix potential double-free in mbox_test_message_write()")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
      Reviewed-by: default avatarLee Jones <lee@kernel.org>
      Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
      8fe72b76
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · 884fe9da
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
      
       - Fix 64K ARM page size support in bnxt_re and efa
      
       - bnxt_re fixes for a memory leak, incorrect error handling and a
         remove a bogus FW failure when running on a VF
      
       - Update MAINTAINERS for hns and efa
      
       - Fix two rxe regressions added this merge window in error unwind and
         incorrect spinlock primitives
      
       - hns gets a better algorithm for allocating page tables to avoid
         running out of resources, and a timeout adjustment
      
       - Fix a text case failure in hns
      
       - Use after free in irdma and fix incorrect construction of a WQE
         causing mis-execution
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        RDMA/irdma: Fix Local Invalidate fencing
        RDMA/irdma: Prevent QP use after free
        MAINTAINERS: Update maintainer of Amazon EFA driver
        RDMA/bnxt_re: Do not enable congestion control on VFs
        RDMA/bnxt_re: Fix return value of bnxt_re_process_raw_qp_pkt_rx
        RDMA/bnxt_re: Fix a possible memory leak
        RDMA/hns: Modify the value of long message loopback slice
        RDMA/hns: Fix base address table allocation
        RDMA/hns: Fix timeout attr in query qp for HIP08
        RDMA/efa: Fix unsupported page sizes in device
        RDMA/rxe: Convert spin_{lock_bh,unlock_bh} to spin_{lock_irqsave,unlock_irqrestore}
        RDMA/rxe: Fix double unlock in rxe_qp.c
        MAINTAINERS: Update maintainers of HiSilicon RoCE
        RDMA/bnxt_re: Fix the page_size used during the MR creation
      884fe9da
    • Linus Torvalds's avatar
      Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · fd2186d1
      Linus Torvalds authored
      Pull ext4 fixes from Ted Ts'o:
       "Fix two regressions in ext4 and a number of issues reported by syzbot"
      
      * tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        ext4: enable the lazy init thread when remounting read/write
        ext4: fix fsync for non-directories
        ext4: add lockdep annotations for i_data_sem for ea_inode's
        ext4: disallow ea_inodes with extended attributes
        ext4: set lockdep subclass for the ea_inode in ext4_xattr_inode_cache_find()
        ext4: add EA_INODE checking to ext4_iget()
      fd2186d1
    • Bastien Nocera's avatar
      HID: logitech-hidpp: Handle timeout differently from busy · 6199d23c
      Bastien Nocera authored
      If an attempt at contacting a receiver or a device fails because the
      receiver or device never responds, don't restart the communication, only
      restart it if the receiver or device answers that it's busy, as originally
      intended.
      
      This was the behaviour on communication timeout before commit 586e8fed
      ("HID: logitech-hidpp: Retry commands when device is busy").
      
      This fixes some overly long waits in a critical path on boot, when
      checking whether the device is connected by getting its HID++ version.
      Signed-off-by: default avatarBastien Nocera <hadess@hadess.net>
      Suggested-by: default avatarMark Lord <mlord@pobox.com>
      Fixes: 586e8fed ("HID: logitech-hidpp: Retry commands when device is busy")
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=217412Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      6199d23c
    • Vladislav Efanov's avatar
      udp6: Fix race condition in udp6_sendmsg & connect · 448a5ce1
      Vladislav Efanov authored
      Syzkaller got the following report:
      BUG: KASAN: use-after-free in sk_setup_caps+0x621/0x690 net/core/sock.c:2018
      Read of size 8 at addr ffff888027f82780 by task syz-executor276/3255
      
      The function sk_setup_caps (called by ip6_sk_dst_store_flow->
      ip6_dst_store) referenced already freed memory as this memory was
      freed by parallel task in udpv6_sendmsg->ip6_sk_dst_lookup_flow->
      sk_dst_check.
      
                task1 (connect)              task2 (udp6_sendmsg)
              sk_setup_caps->sk_dst_set |
                                        |  sk_dst_check->
                                        |      sk_dst_set
                                        |      dst_release
              sk_setup_caps references  |
              to already freed dst_entry|
      
      The reason for this race condition is: sk_setup_caps() keeps using
      the dst after transferring the ownership to the dst cache.
      
      Found by Linux Verification Center (linuxtesting.org) with syzkaller.
      
      Fixes: 1da177e4 ("Linux-2.6.12-rc2")
      Signed-off-by: default avatarVladislav Efanov <VEfanov@ispras.ru>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      448a5ce1