]> 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 09:32:04 +0000 (11:32 +0200)
commit015c2ec053f3a3f0f24c6cba165edb8a9506400d
treeda9aeff46eb78e4c24433a9bd7c0a293d0e6be64
parent98127f140bc4db0d19e6e32ed44ed09008a27df0
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