]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
smb3: missing inode locks in punch hole
authorDavid Howells <dhowells@redhat.com>
Tue, 23 Aug 2022 07:10:56 +0000 (02:10 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 Oct 2022 08:39:34 +0000 (10:39 +0200)
commit2f83bc2f8c5d37ebd12e4b69d16fa3c54bfee701
treef19a4054fd5c33878531afdd48de0bec93ed6269
parent3ecd75ac86094d395d5b49d6940981a2f9125346
smb3: missing inode locks in punch hole

BugLink: https://bugs.launchpad.net/bugs/1991717
commit ba0803050d610d5072666be727bca5e03e55b242 upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/cifs/smb2ops.c