smb: client: fix compound alignment with encryption
authorPaulo Alcantara <pc@manguebit.org>
Sun, 7 Sep 2025 00:19:29 +0000 (21:19 -0300)
committerSteve French <stfrench@microsoft.com>
Tue, 9 Sep 2025 22:30:11 +0000 (17:30 -0500)
commit90f7c100d2dd99d5cd5be950d553edd2647e6cc8
tree54f5f89ae0a15b919140fd941ab20d38203dc891
parent76eeb9b8de9880ca38696b2fb56ac45ac0a25c6c
smb: client: fix compound alignment with encryption

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>
fs/smb/client/smb2ops.c