]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: fix compound alignment with encryption
authorPaulo Alcantara <pc@manguebit.org>
Sun, 7 Sep 2025 00:19:29 +0000 (21:19 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:37:31 +0000 (16:37 +0200)
commit81492813c6e5cd030fdd4d5d7f5a445fd8679488
tree3dc4040529ac3adc8d87dccba67c8252a77a0c82
parent28725db8800e1c4b9d1dd1c1e5802bfd8d9535d6
smb: client: fix compound alignment with encryption

commit 90f7c100d2dd99d5cd5be950d553edd2647e6cc8 upstream.

The encryption layer can't handle the padding iovs, so flatten the
compound request into a single buffer with required padding to prevent
the server from dropping the connection when finding unaligned
compound requests.

Fixes: bc925c1216f0 ("smb: client: improve compound padding in encryption")
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Reviewed-by: David Howells <dhowells@redhat.com>
Cc: linux-cifs@vger.kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/smb2ops.c