]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: make sure we do not overflow the max EA buffer size
authorRonnie Sahlberg <lsahlber@redhat.com>
Thu, 13 Feb 2020 02:14:47 +0000 (12:14 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2020 18:53:03 +0000 (19:53 +0100)
commit03f6c2bf9562604f914346b19a1a1c56ba93eae9
tree8bd088059028c020dbe802247b86671f65cb9e44
parentff04f342f8c4a6fce5fd572c4bfc8945a701f8ee
cifs: make sure we do not overflow the max EA buffer size

commit 85db6b7ae65f33be4bb44f1c28261a3faa126437 upstream.

RHBZ: 1752437

Before we add a new EA we should check that this will not overflow
the maximum buffer we have available to read the EAs back.
Otherwise we can get into a situation where the EAs are so big that
we can not read them back to the client and thus we can not list EAs
anymore or delete them.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2ops.c