1. Aug 18, 2023
  2. Aug 17, 2023
  3. Aug 16, 2023
  4. Aug 15, 2023
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · 91aa6c41
      Linus Torvalds authored
      Pull virtio fixes from Michael Tsirkin:
       "Just a bunch of bugfixes all over the place"
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: (26 commits)
        virtio-mem: check if the config changed before fake offlining memory
        virtio-mem: keep retrying on offline_and_remove_memory() errors in Sub Block Mode (SBM)
        virtio-mem: convert most offline_and_remove_memory() errors to -EBUSY
        virtio-mem: remove unsafe unplug in Big Block Mode (BBM)
        pds_vdpa: fix up debugfs feature bit printing
        pds_vdpa: alloc irq vectors on DRIVER_OK
        pds_vdpa: clean and reset vqs entries
        pds_vdpa: always allow offering VIRTIO_NET_F_MAC
        pds_vdpa: reset to vdpa specified mac
        virtio-net: Zero max_tx_vq field for VIRTIO_NET_CTRL_MQ_HASH_CONFIG case
        vdpa/mlx5: Fix crash on shutdown for when no ndev exists
        vdpa/mlx5: Delete control vq iotlb in destroy_mr only when necessary
        vdpa/mlx5: Fix mr->initialized semantics
        vdpa/mlx5: Correct default number of queues when MQ is on
        virtio-vdpa: Fix cpumask memory leak in virtio_vdpa_find_vqs()
        vduse: Use proper spinlock for IRQ injection
        vdpa: Enable strict validation for netlinks ops
        vdpa: Add max vqp attr to vdpa_nl_policy for nlattr length check
        vdpa: Add queue index attr to vdpa_nl_policy for nlattr length check
        vdpa: Add features attr to vdpa_nl_policy for nlattr length check
        ...
      91aa6c41
    • Jeff Layton's avatar
      sunrpc: set the bv_offset of first bvec in svc_tcp_sendmsg · c96e2a69
      Jeff Layton authored
      svc_tcp_sendmsg used to factor in the xdr->page_base when sending pages,
      but commit 5df5dd03 ("sunrpc: Use sendmsg(MSG_SPLICE_PAGES) rather
      then sendpage") dropped that part of the handling. Fix it by setting
      the bv_offset of the first bvec.
      
      Fixes: 5df5dd03
      
       ("sunrpc: Use sendmsg(MSG_SPLICE_PAGES) rather then sendpage")
      Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
      Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
      c96e2a69
  5. Aug 14, 2023
    • Steve French's avatar
      smb3: display network namespace in debug information · 7b38f6dd
      Steve French authored
      
      
      We recently had problems where a network namespace was deleted
      causing hard to debug reconnect problems.  To help deal with
      configuration issues like this it is useful to dump the network
      namespace to better debug what happened.
      
      So add this to information displayed in /proc/fs/cifs/DebugData for
      the server (and channels if mounted with multichannel). For example:
      
         Local Users To Server: 1 SecMode: 0x1 Req On Wire: 0 Net namespace: 4026531840
      
      This can be easily compared with what is displayed for the
      processes on the system. For example /proc/1/ns/net in this case
      showed the same thing (see below), and we can see that the namespace
      is still valid in this example.
      
         'net:[4026531840]'
      
      Cc: stable@vger.kernel.org
      Acked-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      7b38f6dd
    • Russell Harmon via samba-technical's avatar
      cifs: Release folio lock on fscache read hit. · 69513dd6
      Russell Harmon via samba-technical authored
      
      
      Under the current code, when cifs_readpage_worker is called, the call
      contract is that the callee should unlock the page. This is documented
      in the read_folio section of Documentation/filesystems/vfs.rst as:
      
      > The filesystem should unlock the folio once the read has completed,
      > whether it was successful or not.
      
      Without this change, when fscache is in use and cache hit occurs during
      a read, the page lock is leaked, producing the following stack on
      subsequent reads (via mmap) to the page:
      
      $ cat /proc/3890/task/12864/stack
      [<0>] folio_wait_bit_common+0x124/0x350
      [<0>] filemap_read_folio+0xad/0xf0
      [<0>] filemap_fault+0x8b1/0xab0
      [<0>] __do_fault+0x39/0x150
      [<0>] do_fault+0x25c/0x3e0
      [<0>] __handle_mm_fault+0x6ca/0xc70
      [<0>] handle_mm_fault+0xe9/0x350
      [<0>] do_user_addr_fault+0x225/0x6c0
      [<0>] exc_page_fault+0x84/0x1b0
      [<0>] asm_exc_page_fault+0x27/0x30
      
      This requires a reboot to resolve; it is a deadlock.
      
      Note however that the call to cifs_readpage_from_fscache does mark the
      page clean, but does not free the folio lock. This happens in
      __cifs_readpage_from_fscache on success. Releasing the lock at that
      point however is not appropriate as cifs_readahead also calls
      cifs_readpage_from_fscache and *does* unconditionally release the lock
      after its return. This change therefore effectively makes
      cifs_readpage_worker work like cifs_readahead.
      
      Signed-off-by: default avatarRussell Harmon <russ@har.mn>
      Acked-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
      Reviewed-by: default avatarDavid Howells <dhowells@redhat.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      69513dd6
    • Helge Deller's avatar
      parisc: Fix CONFIG_TLB_PTLOCK to work with lightweight spinlock checks · 7a894c87
      Helge Deller authored
      
      
      For the TLB_PTLOCK checks we used an optimization to store the spc
      register into the spinlock to unlock it. This optimization works as
      long as the lightweight spinlock checks (CONFIG_LIGHTWEIGHT_SPINLOCK_CHECK)
      aren't enabled, because they really check if the lock word is zero or
      __ARCH_SPIN_LOCK_UNLOCKED_VAL and abort with a kernel crash
      ("Spinlock was trashed") otherwise.
      
      Drop that optimization to make it possible to activate both checks
      at the same time.
      
      Noticed-by: default avatarSam James <sam@gentoo.org>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      Tested-by: default avatarSam James <sam@gentoo.org>
      Cc: stable@vger.kernel.org # v6.4+
      Fixes: 15e64ef6 ("parisc: Add lightweight spinlock checks")
      7a894c87
    • Linus Torvalds's avatar
      Linux 6.5-rc6 · 2ccdd1b1
      Linus Torvalds authored
      2ccdd1b1
  6. Aug 13, 2023
  7. Aug 12, 2023