]> git.itanic.dy.fi Git - linux-stable/commit
smb3: missing inode locks in zero range
authorDavid Howells <dhowells@redhat.com>
Tue, 23 Aug 2022 06:01:36 +0000 (01:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 08:47:11 +0000 (10:47 +0200)
commit2a30908856904dd43900c75bb7c91acf4bd17f1f
tree7a4c326aec75f41edfb62d443e0c111f8c58927e
parentef69b108b52cb1ca71fdb40d360e3475fc157332
smb3: missing inode locks in zero range

[ Upstream commit c919c164fc87bcca8e80b3b9224492fa5b6455ba ]

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