]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 10:04:54 +0000 (12:04 +0200)
commite192a08f6534c400f22ab0f91f8bf83007093a31
treed0683b645e53ad78b3d782596ca1e2e1bd34ae06
parent59c6902a96b4439e07c25ef86a4593bea5481c3b
smb3: missing inode locks in punch hole

[ Upstream commit ba0803050d610d5072666be727bca5e03e55b242 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/smb2ops.c