]> git.itanic.dy.fi Git - linux-stable/commit
smb3: missing inode locks in punch hole
authorDavid Howells <dhowells@redhat.com>
Tue, 23 Aug 2022 07:10:56 +0000 (02:10 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 23 Aug 2022 08:15:27 +0000 (03:15 -0500)
commitba0803050d610d5072666be727bca5e03e55b242
tree3d2e9c3e9b3626333c47ea19a630c4eb5dd2df00
parentc919c164fc87bcca8e80b3b9224492fa5b6455ba
smb3: missing inode locks in punch hole

smb3 fallocate punch hole 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