1. Jan 30, 2023
  2. 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
  3. Jan 28, 2023
  4. 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