]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
SMB3: Fix persistent handles reconnect
authorPavel Shilovsky <pshilov@microsoft.com>
Wed, 6 Nov 2019 21:58:15 +0000 (13:58 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 26 Nov 2019 12:16:17 +0000 (13:16 +0100)
commit72400d96873955409ae661bc3b1b3aa3794e22f4
tree5b4b073142ce58919bc025a3fe39504a40fb07ae
parent039c92de0621d55851e5a388589d8119803dd111
SMB3: Fix persistent handles reconnect

BugLink: https://bugs.launchpad.net/bugs/1853519
commit d243af7ab9feb49f11f2c0050d2077e2d9556f9b upstream.

When the client hits a network reconnect, it re-opens every open
file with a create context to reconnect a persistent handle. All
create context types should be 8-bytes aligned but the padding
was missed for that one. As a result, some servers don't allow
us to reconnect handles and return an error. The problem occurs
when the problematic context is not at the end of the create
request packet. Fix this by adding a proper padding at the end
of the reconnect persistent handle context.

Cc: Stable <stable@vger.kernel.org> # 4.19.x
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/cifs/smb2pdu.h