Commit 0fbf78feb38a for kernel
commit 0fbf78feb38a18c9eb49f67ad3d3095d11c46295
Merge: b95a6d4916b4 9b62aa64ed00
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sat Dec 5 13:32:31 2026 -0800
Merge tag 'cifs-fixes-7.4-rc6' of https://git.manguebit.org/linux
Pull smb client fixes from Paulo Alcantara:
- 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
* tag 'cifs-fixes-7.4-rc6' of https://git.manguebit.org/linux:
smb: compress: fix LZ77 match length on big-endian
smb: client: don't let the mfsymlinks probe overwrite an earlier error
smb: client: fix shift of SID authority[0] in sid_to_key_str()
smb: client: handle zero DataOffset in CIFSSMBRead()
smb: client: fix -EACCES when creating read-only file without O_EXCL
smb: client: use clear_and_wake_up_bit() for the inode flag bits
smb: client: use a counter for the nonce of encrypted messages
smb: client: don't use zero RDMA limits without a connection
smb: client: don't use server->smbd_conn without a reference or lock
smb: client: pass server to smbd_register_mr()
smb: client: pass server to smbd_get_parameters()
smb: client: change server->smbd_conn only under server->srv_lock
smb: client: return the real error from smbd_get_connection()
smb: smbdirect: add smbdirect_socket_get() and smbdirect_socket_put()