1. Jan 31, 2023
  2. Jan 30, 2023
  3. 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
  4. Jan 28, 2023
  5. 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++)
              gpi...
      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
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2023-01-26' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · d23db898
      Dave Airlie authored
      
      
      A fix and a preliminary patch to fix a memory leak in i915, and a use
      after free fix for fbdev deferred io
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Maxime Ripard <maxime@cerno.tech>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230126104018.cbrcjxl5wefdbb2f@houat
      d23db898
    • Dave Airlie's avatar
      amdgpu: fix build on non-DCN platforms. · f439a959
      Dave Airlie authored
      
      
      This fixes the build here locally on my 32-bit arm build.
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      f439a959
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-6.2-2023-01-25' of... · 1d65bd6b
      Dave Airlie authored
      Merge tag 'amd-drm-fixes-6.2-2023-01-25' of https://gitlab.freedesktop.org/agd5f/linux
      
       into drm-fixes
      
      amd-drm-fixes-6.2-2023-01-25:
      
      amdgpu:
      - GC11.x fixes
      - SMU13.0.0 fix
      - Freesync video fix
      - DP MST fixes
      
      drm:
      - DP MST kref fix
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230125220153.320248-1-alexander.deucher@amd.com
      1d65bd6b
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2023-01-26' of... · af0af908
      Dave Airlie authored
      Merge tag 'drm-intel-fixes-2023-01-26' of git://anongit.freedesktop.org/drm/drm-intel
      
       into drm-fixes
      
      - Fix BSC default context for Meteor Lake (Lucas)
      - Fix selftest-scheduler's modify_type (Andi)
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/Y9LKD2J5bmICTyIP@intel.com
      af0af908
    • Jens Axboe's avatar
      Merge tag 'nvme-6.2-2023-01-26' of git://git.infradead.org/nvme into block-6.2 · db3ba974
      Jens Axboe authored
      Pull NVMe fixes from Christoph:
      
      "nvme fixes for Linux 6.2
      
       - flush initial scan_work for async probe (Keith Busch)
       - fix passthrough csi check (Keith Busch)
       - fix nvme-fc initialization order (Ross Lagerwall)"
      
      * tag 'nvme-6.2-2023-01-26' of git://git.infradead.org/nvme:
        nvme: fix passthrough csi check
        nvme-pci: flush initial scan_work for async probe
        nvme-fc: fix initialization order
      db3ba974
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v6.2-3' of... · 83abd4d4
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v6.2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
      
      Pull x86 platform driver fixes from Hans de Goede:
      
       -  Fix false positive apple_gmux backlight detection on older iGPU only
          MacBook models
      
       -  Various other small fixes and hardware-id additions
      
      * tag 'platform-drivers-x86-v6.2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
        platform/x86: thinkpad_acpi: Fix profile modes on Intel platforms
        ACPI: video: Fix apple gmux detection
        platform/x86: apple-gmux: Add apple_gmux_detect() helper
        platform/x86: apple-gmux: Move port defines to apple-gmux.h
        platform/x86: hp-wmi: Fix cast to smaller integer type warning
        platform/x86/amd: pmc: Add a module parameter to disable workarounds
        platform/x86/amd: pmc: Disable IRQ1 wakeup for RN/CZN
        platform/x86: asus-wmi: Fix kbd_dock_devid tablet-switch reporting
        platform/x86: gigabyte-wmi: add support for B450M DS3H WIFI-CF
        platform/x86: hp-wmi: Handle Omen Key event
        platform/x86: dell-wmi: Add a keymap for KEY_MUTE in type 0x0010 table
      83abd4d4
    • Linus Torvalds's avatar
      Merge tag 'net-6.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 28b4387f
      Linus Torvalds authored
      Pull networking fixes from Paolo Abeni:
       "Including fixes from netfilter.
      
        Current release - regressions:
      
         - sched: sch_taprio: do not schedule in taprio_reset()
      
        Previous releases - regressions:
      
         - core: fix UaF in netns ops registration error path
      
         - ipv4: prevent potential spectre v1 gadgets
      
         - ipv6: fix reachability confirmation with proxy_ndp
      
         - netfilter: fix for the set rbtree
      
         - eth: fec: use page_pool_put_full_page when freeing rx buffers
      
         - eth: iavf: fix temporary deadlock and failure to set MAC address
      
        Previous releases - always broken:
      
         - netlink: prevent potential spectre v1 gadgets
      
         - netfilter: fixes for SCTP connection tracking
      
         - mctp: struct sock lifetime fixes
      
         - eth: ravb: fix possible hang if RIS2_QFF1 happen
      
         - eth: tg3: resolve deadlock in tg3_reset_task() during EEH
      
        Misc:
      
         - Mat stepped out as MPTCP co-maintainer"
      
      * tag 'net-6.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (40 commits)
        net: mdio-mux-meson-g12a: force internal PHY off on mux switch
        docs: networking: Fix bridge documentation URL
        tsnep: Fix TX queue stop/wake for multiple queues
        net/tg3: resolve deadlock in tg3_reset_task() during EEH
        net: mctp: mark socks as dead on unhash, prevent re-add
        net: mctp: hold key reference when looking up a general key
        net: mctp: move expiry timer delete to unhash
        net: mctp: add an explicit reference from a mctp_sk_key to sock
        net: ravb: Fix possible hang if RIS2_QFF1 happen
        net: ravb: Fix lack of register setting after system resumed for Gen3
        net/x25: Fix to not accept on connected socket
        ice: move devlink port creation/deletion
        sctp: fail if no bound addresses can be used for a given scope
        net/sched: sch_taprio: do not schedule in taprio_reset()
        Revert "Merge branch 'ethtool-mac-merge'"
        netrom: Fix use-after-free of a listening socket.
        netfilter: conntrack: unify established states for SCTP paths
        Revert "netfilter: conntrack: add sctp DATA_SENT state"
        netfilter: conntrack: fix bug in for_each_sctp_chunk
        netfilter: conntrack: fix vtag checks for ABORT/SHUTDOWN_COMPLETE
        ...
      28b4387f
    • Linus Torvalds's avatar
      treewide: fix up files incorrectly marked executable · 262b42e0
      Linus Torvalds authored
      I'm not exactly clear on what strange workflow causes people to do it,
      but clearly occasionally some files end up being committed as executable
      even though they clearly aren't.
      
      This is a reprise of commit 90fda63f
      
       ("treewide: fix up files
      incorrectly marked executable"), just with a different set of files (but
      with the same trivial shell scripting).
      
      So apparently we need to re-do this every five years or so, and Joe
      needs to just keep reminding me to do so ;)
      
      Reported-by: default avatarJoe Perches <joe@perches.com>
      Fixes: 523375c9 ("drm/vmwgfx: Port vmwgfx to arm64")
      Fixes: 5c439937
      
       ("ASoC: codecs: add support for ES8326")
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      262b42e0
  6. Jan 26, 2023