From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=143.255.12.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796497016; b=Ar7hjR8ZcYyRA+J/QOuyCXifwwZqTv/A2NUkXR6lwFuGI74OONjBYou80mgzENyocvFu 1XSUoWq2v5+JM8laBmLvjmAU5Nbw2HffjNif3osj5VjEKvPl7m+9PB6MqyflaPC6GDifS xTml2XFS/CBiP2pjc+k1C9JHxzKzY3Q81sq/ejf9GyjbVjKz7mgbrMXptERAuof1UUueM rs1Iqkd2CQVthgHYz+wocoXXM1lMW5Hj2Jen4clztvpH9knjHzwlgR0qGTjDka9cyQD62 J2i9pfkPYTOH5o3ox3fnvLtciqELYaaeQoSN6Tw+6A5nezWlBAMJZlplgqJ6NDZafQw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796497016; h=DMARC-Filter:DKIM-Signature:Received:Message-ID:From:To:Cc:Subject: Date:MIME-Version:Content-Type; bh=7SDtJvD77icdyIVPBGyLAj0BPTJqQfUQZfCsOQEloog=; b=cHD8JU8f6yDV00LKqZ/XegiMRTtwwHk5rDsEhpEBtVXXPDX537QaUCBtT186ibA6COqK 7xq7qTtogClET3itEOHe9LWw3VZxPOXUrL+vxm0afjYdIn+jKT0V6gghy+HxM1OhbFtXu 6hw5JEDEkePqkrDcMHvy0QLei8Ao+VxJ4GjuWjsctwM8SIIulfd8wwCFRfK8fwME6sl0G ftR3uG4tAH4jDC1s/OIHGH0RsaPcjI6YhAjAWL+o2BDzy4p3bOk8jOoKmiqaf2TnBq9CY wszzDnPpdQArm0ZD/p84RbIvRVXHoSPMvw6GMIVo27fPB4R++Tc5PVutTUlI9xKUSTA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=manguebit.org; spf=pass smtp.mailfrom=manguebit.org; dkim=pass header.d=manguebit.org header.i=@manguebit.org header.a=rsa-sha256 header.s=dkim header.b="Yn/E9cBu"; arc=none smtp.remote-ip=143.255.12.172 Received: from mx1.manguebit.org (mx1.manguebit.org [143.255.12.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB32F606A31F; Sat, 5 Dec 2026 18:56:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AB32F606A31F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manguebit.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=manguebit.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=manguebit.org header.i=@manguebit.org header.a=rsa-sha256 header.s=dkim header.b=Yn/E9cBu DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=manguebit.org; s=dkim; h=Content-Type:MIME-Version:Date:Subject:Cc:To:From: Message-ID:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=7SDtJvD77icdyIVPBGyLAj0BPTJqQfUQZfCsOQEloog=; b=Yn/E9cBuxxitPNO0iyg2vqyr4A KX7NBqKRQS7FL/NgB5uelo0jQ9k0kZ5oG5KGYTT0/jZxHP1SUVLSRbfU0StBIEYtv7MEYySG6Dty3 MHCBaGEOqOqtl34BU6/Rg94LpoOF6pB2XmOfz1O+jAFB3iuU5wqKe3ekiehvbm+NLhAuw4SB/cLDW wHoN4r1OlYA8vUsPk2dSdOsLOt3+l7NqvGUc2ZrvksBJ9Srv2/JFsTgzOoBindYjWzuaGD/ApAmex cqhR0gqlnaJZjzN11tXGMpv25oxdNe6Z1hPi9T08FC5wD3YlUsfroLgfNJ2a8DpMxvNXiAvK4ANco DtRAoSTQ==; Received: from pc by mx1.manguebit.org with local (Exim 4.100.1) id 1xZuwA-00000001mAQ-40k4; Sat, 05 Dec 2026 15:56:46 -0300 Message-ID: <7ac8f1dc929e80e0f9bdfcd89f71559d@manguebit.org> From: Paulo Alcantara To: Linus Torvalds 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 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain 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(-)