smb3: missing inode locks in zero range
authorDavid Howells <dhowells@redhat.com>
Tue, 23 Aug 2022 06:01:36 +0000 (01:01 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 23 Aug 2022 06:09:08 +0000 (01:09 -0500)
commitc919c164fc87bcca8e80b3b9224492fa5b6455ba
treee5cad395cf78f278d60d99a1cba664c860b21dd6
parent1c23f9e627a7b412978b4e852793c5e3c3efc555
smb3: missing inode locks in zero range

smb3 fallocate zero range was not grabbing the inode or filemap_invalidate
locks so could have race with pagemap reinstantiating the page.

Cc: stable@vger.kernel.org
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c