1. 01 Feb, 2023 1 commit
  2. 31 Jan, 2023 3 commits
  3. 30 Jan, 2023 3 commits
    • Linus Torvalds's avatar
      Merge tag 'fscache-fixes-20230130' of... · 22b8077d
      Linus Torvalds authored
      Merge tag 'fscache-fixes-20230130' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs
      
      Pull fscache fixes from David Howells:
       "Fix two problems in fscache volume handling:
      
         - wake_up_bit() is incorrectly paired with wait_var_event(). The
           latter selects the waitqueue to use differently.
      
         - Missing barriers ordering between state bit and task state"
      
      * tag 'fscache-fixes-20230130' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
        fscache: Use clear_and_wake_up_bit() in fscache_create_volume_work()
        fscache: Use wait_on_bit() to wait for the freeing of relinquished volume
      22b8077d
    • Hou Tao's avatar
      fscache: Use clear_and_wake_up_bit() in fscache_create_volume_work() · 3288666c
      Hou Tao authored
      fscache_create_volume_work() uses wake_up_bit() to wake up the processes
      which are waiting for the completion of volume creation. According to
      comments in wake_up_bit() and waitqueue_active(), an extra smp_mb() is
      needed to guarantee the memory order between FSCACHE_VOLUME_CREATING
      flag and waitqueue_active() before invoking wake_up_bit().
      
      Fixing it by using clear_and_wake_up_bit() to add the missing memory
      barrier.
      Reviewed-by: default avatarJingbo Xu <jefflexu@linux.alibaba.com>
      Signed-off-by: default avatarHou Tao <houtao1@huawei.com>
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
      Link: https://lore.kernel.org/r/20230113115211.2895845-3-houtao@huaweicloud.com/ # v3
      3288666c
    • Hou Tao's avatar
      fscache: Use wait_on_bit() to wait for the freeing of relinquished volume · 8226e37d
      Hou Tao authored
      The freeing of relinquished volume will wake up the pending volume
      acquisition by using wake_up_bit(), however it is mismatched with
      wait_var_event() used in fscache_wait_on_volume_collision() and it will
      never wake up the waiter in the wait-queue because these two functions
      operate on different wait-queues.
      
      According to the implementation in fscache_wait_on_volume_collision(),
      if the wake-up of pending acquisition is delayed longer than 20 seconds
      (e.g., due to the delay of on-demand fd closing), the first
      wait_var_event_timeout() will timeout and the following wait_var_event()
      will hang forever as shown below:
      
       FS-Cache: Potential volume collision new=00000024 old=00000022
       ......
       INFO: task mount:1148 blocked for more than 122 seconds.
             Not tainted 6.1.0-rc6+ #1
       task:mount           state:D stack:0     pid:1148  ppid:1
       Call Trace:
        <TASK>
        __schedule+0x2f6/0xb80
        schedule+0x67/0xe0
        fscache_wait_on_volume_collision.cold+0x80/0x82
        __fscache_acquire_volume+0x40d/0x4e0
        erofs_fscache_register_volume+0x51/0xe0 [erofs]
        erofs_fscache_register_fs+0x19c/0x240 [erofs]
        erofs_fc_fill_super+0x746/0xaf0 [erofs]
        vfs_get_super+0x7d/0x100
        get_tree_nodev+0x16/0x20
        erofs_fc_get_tree+0x20/0x30 [erofs]
        vfs_get_tree+0x24/0xb0
        path_mount+0x2fa/0xa90
        do_mount+0x7c/0xa0
        __x64_sys_mount+0x8b/0xe0
        do_syscall_64+0x30/0x60
        entry_SYSCALL_64_after_hwframe+0x46/0xb0
      
      Considering that wake_up_bit() is more selective, so fix it by using
      wait_on_bit() instead of wait_var_event() to wait for the freeing of
      relinquished volume. In addition because waitqueue_active() is used in
      wake_up_bit() and clear_bit() doesn't imply any memory barrier, use
      clear_and_wake_up_bit() to add the missing memory barrier between
      cursor->flags and waitqueue_active().
      
      Fixes: 62ab6335 ("fscache: Implement volume registration")
      Reviewed-by: default avatarJingbo Xu <jefflexu@linux.alibaba.com>
      Signed-off-by: default avatarHou Tao <houtao1@huawei.com>
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
      Link: https://lore.kernel.org/r/20230113115211.2895845-2-houtao@huaweicloud.com/ # v3
      8226e37d
  4. 29 Jan, 2023 6 commits
  5. 28 Jan, 2023 7 commits
    • Linus Torvalds's avatar
      Fix up more non-executable files marked executable · c9661827
      Linus Torvalds authored
      Joe found another DT file that shouldn't be executable, and that
      frustrated me enough that I went hunting with this script:
      
          git ls-files -s |
              grep '^100755' |
              cut -f2 |
              xargs grep -L '^#!'
      
      and that found another file that shouldn't have been marked executable
      either, despite being in the scripts directory.
      
      Maybe these two are the last ones at least for now.  But I'm sure we'll
      be back in a few years, fixing things up again.
      
      Fixes: 8c6789f4 ("ASoC: dt-bindings: Add Everest ES8326 audio CODEC")
      Fixes: 4d8e5cd2 ("locking/atomics: Fix scripts/atomic/ script permissions")
      Reported-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c9661827
    • Linus Torvalds's avatar
      Merge tag '6.2-rc5-ksmbd-server-fixes' of git://git.samba.org/ksmbd · 2543fdbd
      Linus Torvalds authored
      Pull ksmbd server fixes from Steve French:
       "Four smb3 server fixes, all also for stable:
      
         - fix for signing bug
      
         - fix to more strictly check packet length
      
         - add a max connections parm to limit simultaneous connections
      
         - fix error message flood that can occur with newer Samba xattr
           format"
      
      * tag '6.2-rc5-ksmbd-server-fixes' of git://git.samba.org/ksmbd:
        ksmbd: downgrade ndr version error message to debug
        ksmbd: limit pdu length size according to connection status
        ksmbd: do not sign response to session request for guest login
        ksmbd: add max connections parameter
      2543fdbd
    • Linus Torvalds's avatar
      Merge tag '6.2-rc5-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 5af6ce70
      Linus Torvalds authored
      Pull cifs fix from Steve French:
       "Fix for reconnect oops in smbdirect (RDMA), also is marked for stable"
      
      * tag '6.2-rc5-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: Fix oops due to uncleared server->smbd_conn in reconnect
      5af6ce70
    • Linus Torvalds's avatar
      Merge tag 'block-6.2-2023-01-27' of git://git.kernel.dk/linux · 90aaef4e
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "Minor tweaks for this release:
      
         - NVMe pull request via Christoph:
              - Flush initial scan_work for async probe (Keith Busch)
              - Fix passthrough csi check (Keith Busch)
              - Fix nvme-fc initialization order (Ross Lagerwall)
      
         - Fix for tearing down non-started device in ublk (Ming)"
      
      * tag 'block-6.2-2023-01-27' of git://git.kernel.dk/linux:
        block: ublk: move ublk_chr_class destroying after devices are removed
        nvme: fix passthrough csi check
        nvme-pci: flush initial scan_work for async probe
        nvme-fc: fix initialization order
      90aaef4e
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.2-2023-01-27' of git://git.kernel.dk/linux · f851453b
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       "Two small fixes for this release:
      
         - Sanitize how async prep is done for drain requests, so we ensure
           that it always gets done (Dylan)
      
         - A ring provided buffer recycling fix for multishot receive (me)"
      
      * tag 'io_uring-6.2-2023-01-27' of git://git.kernel.dk/linux:
        io_uring: always prep_async for drain requests
        io_uring/net: cache provided buffer group value for multishot receives
      f851453b
    • Linus Torvalds's avatar
      Merge tag 'hardening-v6.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · 28cca23d
      Linus Torvalds authored
      Pull hardening fixes from Kees Cook:
      
       - Split slow memcpy tests into MEMCPY_SLOW_KUNIT_TEST
      
       - Reorganize gcc-plugin includes for GCC 13
      
       - Silence bcache memcpy run-time false positive warnings
      
      * tag 'hardening-v6.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
        bcache: Silence memcpy() run-time false positive warnings
        gcc-plugins: Reorganize gimple includes for GCC 13
        kunit: memcpy: Split slow memcpy tests into MEMCPY_SLOW_KUNIT_TEST
      28cca23d
    • Linus Torvalds's avatar
      Merge tag 'trace-v6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · d786f0fe
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
      
       - Fix filter memory leak by calling ftrace_free_filter()
      
       - Initialize trace_printk() earlier so that ftrace_dump_on_oops shows
         data on early crashes.
      
       - Update the outdated instructions in scripts/tracing/ftrace-bisect.sh
      
       - Add lockdep_is_held() to fix lockdep warning
      
       - Add allocation failure check in create_hist_field()
      
       - Don't initialize pointer that gets set right away in enabled_monitors_write()
      
       - Update MAINTAINER entries
      
       - Fix help messages in Kconfigs
      
       - Fix kernel-doc header for update_preds()
      
      * tag 'trace-v6.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        bootconfig: Update MAINTAINERS file to add tree and mailing list
        rv: remove redundant initialization of pointer ptr
        ftrace: Maintain samples/ftrace
        tracing/filter: fix kernel-doc warnings
        lib: Kconfig: fix spellos
        trace_events_hist: add check for return value of 'create_hist_field'
        tracing/osnoise: Use built-in RCU list checking
        tracing: Kconfig: Fix spelling/grammar/punctuation
        ftrace/scripts: Update the instructions for ftrace-bisect.sh
        tracing: Make sure trace_printk() can output as soon as it can be used
        ftrace: Export ftrace_free_filter() to modules
      d786f0fe
  6. 27 Jan, 2023 20 commits