mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paulo Alcantara <pc@manguebit.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [GIT PULL] smb client fixes for 7.4-rc6
Date: Sat, 05 Dec 2026 15:56:46 -0300	[thread overview]
Message-ID: <7ac8f1dc929e80e0f9bdfcd89f71559d@manguebit.org> (raw)

Linus,

Please consider pulling these smb client fixes for v7.4-rc6.  The main
ones fix races around the SMB Direct connection that a reconnect can tear
down while it is still in use, a nonce reuse in the message encryption,
and a heap buffer overflow in the LZ77 compressor on big-endian systems;
the rest are smaller client fixes.  All but the mfsymlinks one are for
stable.

Thanks,
Paulo

----------------------------------------------------------------
The following changes since commit 088c27249716d8484acbd2fb2bc89f301e11cba4:

  Merge tag 'cifs-fixes-7.4-rc5' of https://git.manguebit.org/linux (2026-11-28 12:52:26 -0800)

are available in the Git repository at:

  https://git.manguebit.org/linux.git cifs-fixes-7.4-rc6

for you to fetch changes up to 9b62aa64ed00237526f4ac67358d742e192c7a00:

  smb: compress: fix LZ77 match length on big-endian (2026-12-04 11:19:28 -0300)

----------------------------------------------------------------
smb client fixes for v7.4-rc6

 - Fix several races around server->smbd_conn, which a reconnect can
   destroy via cifs_abort_connection() while smbd_get_parameters(),
   smbd_register_mr() and the debug handler still use it without a
   reference or lock; readers now take a socket reference under
   server->srv_lock

 - Fix the SMB Direct RDMA I/O limits underflowing to zero during a
   reconnect when there is no connection, which dropped the negotiated
   RDMA sizes

 - Return the real error from smbd_get_connection() instead of a
   made-up -ENOENT, so mount and reconnect report the actual RDMA
   failure

 - Use a per-session counter for the nonce of encrypted messages
   instead of random bytes, to keep the nonce unique as the protocol
   requires and avoid AES-CCM/GCM nonce reuse

 - Fix a heap buffer overflow in the LZ77 compressor on big-endian
   systems, where the match-length calculation read the words in the
   wrong byte order (ksmbd compressing READ responses and the client
   compressing WRITE data)

 - Fix a one-to-two byte out-of-bounds write and a wrong idmap key in
   sid_to_key_str(), caused by shifting the top SID authority byte by
   the wrong amount

 - Accept a zero DataOffset in CIFSSMBRead(), which Windows sends for
   reads at or beyond EOF and a recent bounds check wrongly rejected

 - Fix -EACCES when a non-root user creates a read-only file without
   O_EXCL, by setting FMODE_CREATED from the server's CreateAction
   rather than the open flags

 - Fix a lost wakeup on the inode oplock/writer flag bits by using
   clear_and_wake_up_bit(), which could leave a writer blocked
   indefinitely

 - Don't let the mfsymlinks probe overwrite an earlier reparse-point
   error in the getattr paths

----------------------------------------------------------------
Anh Nguyen Hoang (1):
      smb: client: fix shift of SID authority[0] in sid_to_key_str()

Enzo Matsumiya (1):
      smb: client: fix -EACCES when creating read-only file without O_EXCL

Mark Bundschuh (1):
      smb: client: handle zero DataOffset in CIFSSMBRead()

Michail Andreas Michalopoulos (1):
      smb: compress: fix LZ77 match length on big-endian

Stefan Metzmacher (8):
      smb: smbdirect: add smbdirect_socket_get() and smbdirect_socket_put()
      smb: client: return the real error from smbd_get_connection()
      smb: client: change server->smbd_conn only under server->srv_lock
      smb: client: pass server to smbd_get_parameters()
      smb: client: pass server to smbd_register_mr()
      smb: client: don't use server->smbd_conn without a reference or lock
      smb: client: don't use zero RDMA limits without a connection
      smb: client: use a counter for the nonce of encrypted messages

Yashvardhan Saraf (1):
      smb: client: don't let the mfsymlinks probe overwrite an earlier error

Zhenwen Liang (1):
      smb: client: use clear_and_wake_up_bit() for the inode flag bits

 fs/smb/client/cifsacl.c       |   2 +-
 fs/smb/client/cifsglob.h      |   3 +
 fs/smb/client/cifssmb.c       |   6 +-
 fs/smb/client/connect.c       |  18 +++--
 fs/smb/client/dir.c           |  37 +++++----
 fs/smb/client/file.c          |  12 +--
 fs/smb/client/inode.c         |   4 +-
 fs/smb/client/misc.c          |  13 ++--
 fs/smb/client/smb2ops.c       | 109 +++++++++++++++++++++------
 fs/smb/client/smb2pdu.c       |  12 ++-
 fs/smb/client/smbdirect.c     | 170 ++++++++++++++++++++++++++++++++++--------
 fs/smb/client/smbdirect.h     |  11 ++-
 fs/smb/common/compress/lz77.c |   6 +-
 fs/smb/smbdirect/socket.c     |  27 +++++++
 include/linux/smbdirect.h     |   3 +
 15 files changed, 338 insertions(+), 95 deletions(-)

             reply	other threads:[~2026-12-05 18:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05 18:56 Paulo Alcantara [this message]
2026-12-05 22:12 ` pr-tracker-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7ac8f1dc929e80e0f9bdfcd89f71559d@manguebit.org \
    --to=pc@manguebit.org \
    --cc=linux-cifs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®