1. Feb 02, 2023
    • 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
  2. Feb 01, 2023
  3. Jan 31, 2023
  4. Jan 30, 2023
  5. Jan 29, 2023
    • 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
  6. Jan 28, 2023
  7. Jan 27, 2023
    • Miklos Szeredi's avatar
      ovl: fail on invalid uid/gid mapping at copy up · 4f11ada1
      Miklos Szeredi authored
      If st_uid/st_gid doesn't have a mapping in the mounter's user_ns, then
      copy-up should fail, just like it would fail if the mounter task was doing
      the copy using "cp -a".
      
      There's a corner case where the "cp -a" would succeed but copy up fail: if
      there's a mapping of the invalid uid/gid (65534 by default) in the user
      namespace.  This is because stat(2) will return this value if the mapping
      doesn't exist in the current user_ns and "cp -a" will in turn be able to
      create a file with this uid/gid.
      
      This behavior would be inconsistent with POSIX ACL's, which return -1 for
      invalid uid/gid which result in a failed copy.
      
      For consistency and simplicity fail the copy of the st_uid/st_gid are
      invalid.
      
      Fixes: 459c7c56
      
       ("ovl: unprivieged mounts")
      Cc: <stable@vger.kernel.org> # v5.11
      Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
      Reviewed-by: default avatarChristian Brauner <brauner@kernel.org>
      Reviewed-by: default avatarSeth Forshee <sforshee@kernel.org>
      4f11ada1
    • Miklos Szeredi's avatar
      ovl: fix tmpfile leak · baabaa50
      Miklos Szeredi authored
      
      
      Missed an error cleanup.
      
      Reported-by: default avatar <syzbot+fd749a7ea127a84e0ffd@syzkaller.appspotmail.com>
      Fixes: 2b1a7746
      
       ("ovl: use vfs_tmpfile_open() helper")
      Cc: <stable@vger.kernel.org> # v6.1
      Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
      baabaa50
    • Dylan Yudaken's avatar
      io_uring: always prep_async for drain requests · ef5c600a
      Dylan Yudaken authored
      Drain requests all go through io_drain_req, which has a quick exit in case
      there is nothing pending (ie the drain is not useful). In that case it can
      run the issue the request immediately.
      
      However for safety it queues it through task work.
      The problem is that in this case the request is run asynchronously, but
      the async work has not been prepared through io_req_prep_async.
      
      This has not been a problem up to now, as the task work always would run
      before returning to userspace, and so the user would not have a chance to
      race with it.
      
      However - with IORING_SETUP_DEFER_TASKRUN - this is no longer the case and
      the work might be defered, giving userspace a chance to change data being
      referred to in the request.
      
      Instead _always_ prep_async for drain requests, which is simpler anyway
      and removes this issue.
      
      Cc: stable@vger.kernel.org
      Fixes: c0e0d6ba
      
       ("io_uring: add IORING_SETUP_DEFER_TASKRUN")
      Signed-off-by: default avatarDylan Yudaken <dylany@meta.com>
      Link: https://lore.kernel.org/r/20230127105911.2420061-1-dylany@meta.com
      
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      ef5c600a
    • Ivo Borisov Shopov's avatar
      tools: gpio: fix -c option of gpio-event-mon · 677d85e1
      Ivo Borisov Shopov authored
      Following line should listen for a rising edge and exit after the first
      one since '-c 1' is provided.
      
          # gpio-event-mon -n gpiochip1 -o 0 -r -c 1
      
      It works with kernel 4.19 but it doesn't work with 5.10. In 5.10 the
      above command doesn't exit after the first rising edge it keep listening
      for an event forever. The '-c 1' is not taken into an account.
      The problem is in commit 62757c32 ("tools: gpio: add multi-line
      monitoring to gpio-event-mon").
      Before this commit the iterator 'i' in monitor_device() is used for
      counting of the events (loops). In the case of the above command (-c 1)
      we should start from 0 and increment 'i' only ones and hit the 'break'
      statement and exit the process. But after the above commit counting
      doesn't start from 0, it start from 1 when we listen on one line.
      It is because 'i' is used from one more purpose, counting of lines
      (num_lines) and it isn't restore to 0 after following code
      
          for (i = 0; i < num_lines; i++)
              gpiotools_set_bit(&values.mask, i);
      
      Restore the initial value of the iterator to 0 in order to allow counting
      of loops to work for any cases.
      
      Fixes: 62757c32
      
       ("tools: gpio: add multi-line monitoring to gpio-event-mon")
      Signed-off-by: default avatarIvo Borisov Shopov <ivoshopov@gmail.com>
      Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
      [Bartosz: tweak the commit message]
      Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
      677d85e1
    • Arnd Bergmann's avatar
      gpio: ep93xx: remove unused variable · b710ef41
      Arnd Bergmann authored
      This one was left behind by a previous cleanup patch:
      
      drivers/gpio/gpio-ep93xx.c: In function 'ep93xx_gpio_add_bank':
      drivers/gpio/gpio-ep93xx.c:366:34: error: unused variable 'ic' [-Werror=unused-variable]
      
      Fixes: 216f3736
      
       ("gpio: ep93xx: Make irqchip immutable")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
      b710ef41