1. 02 Feb, 2023 1 commit
  2. 01 Feb, 2023 3 commits
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · 9f266cca
      Linus Torvalds authored
      Pull virtio fixes from Michael Tsirkin:
       "Just small bugfixes all over the place"
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
        vdpa: ifcvf: Do proper cleanup if IFCVF init fails
        vhost-scsi: unbreak any layout for response
        tools/virtio: fix the vringh test for virtio ring changes
        vhost/net: Clear the pending messages when the backend is removed
      9f266cca
    • Linus Torvalds's avatar
      Merge tag 'sound-6.2-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · ce18d3aa
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A bit higher volume of changes than wished, but each change is
        relatively small and the fix targets are mostly device-specific, so
        those should be safe as a late stage merge.
      
        The most significant LoC is about the memalloc helper fix, which is
        applied only to Xen PV. The other major parts are ASoC Intel SOF and
        AVS fixes that are scattered as various small code changes. The rest
        are device-specific fixes and quirks for HD- and USB-audio, FireWire
        and ASoC AMD / HDMI"
      
      * tag 'sound-6.2-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (30 commits)
        ALSA: firewire-motu: fix unreleased lock warning in hwdep device
        ALSA: memalloc: Workaround for Xen PV
        ASoC: cs42l56: fix DT probe
        ASoC: codecs: wsa883x: correct playback min/max rates
        ALSA: hda/realtek: Add Acer Predator PH315-54
        ASoC: amd: yc: Add Xiaomi Redmi Book Pro 15 2022 into DMI table
        ALSA: hda: Do not unset preset when cleaning up codec
        ASoC: SOF: sof-audio: prepare_widgets: Check swidget for NULL on sink failure
        ASoC: hdmi-codec: zero clear HDMI pdata
        ASoC: SOF: ipc4-mtrace: prevent underflow in sof_ipc4_priority_mask_dfs_write()
        ASoC: Intel: sof_ssp_amp: always set dpcm_capture for amplifiers
        ASoC: Intel: sof_nau8825: always set dpcm_capture for amplifiers
        ASoC: Intel: sof_cs42l42: always set dpcm_capture for amplifiers
        ASoC: Intel: sof_rt5682: always set dpcm_capture for amplifiers
        ALSA: hda/via: Avoid potential array out-of-bound in add_secret_dac_path()
        ALSA: usb-audio: Add FIXED_RATE quirk for JBL Quantum610 Wireless
        ALSA: hda/realtek: fix mute/micmute LEDs, speaker don't work for a HP platform
        ASoC: SOF: keep prepare/unprepare widgets in sink path
        ASoC: SOF: sof-audio: skip prepare/unprepare if swidget is NULL
        ASoC: SOF: sof-audio: unprepare when swidget->use_count > 0
        ...
      ce18d3aa
    • Linus Torvalds's avatar
      Merge tag 'cgroup-for-6.2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup · c0b67534
      Linus Torvalds authored
      Pull cgroup fix from Tejun Heo:
       "cpuset has a bug which can cause an oops after some configuration
        operations, introduced during the v6.1 cycle.
      
        This single commit fixes the bug"
      
      * tag 'cgroup-for-6.2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
        cgroup/cpuset: Fix wrong check in update_parent_subparts_cpumask()
      c0b67534
  3. 31 Jan, 2023 4 commits
  4. 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
  5. 29 Jan, 2023 6 commits
  6. 28 Jan, 2023 8 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
    • Takashi Iwai's avatar
      Merge tag 'asoc-fix-v6.2-rc5' of... · 4f876bfd
      Takashi Iwai authored
      Merge tag 'asoc-fix-v6.2-rc5' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
      
      ASoC: Fixes for v6.2
      
      An unfortunately large batch of fixes here, the numbers amplified
      by several repeated fixes for patterns of bugs in multiple
      drivers.  Most of this is in the x86 drivers which are very
      actively developed, the implementation of PCI shutdown is a fix
      for issues with spamming warnings into the logs with a leaked
      reference to the i915 driver.
      4f876bfd
    • 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
  7. 27 Jan, 2023 15 commits