]> git.baikalelectronics.ru Git - 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)
committerSteve French <stfrench@microsoft.com>
Tue, 23 Aug 2022 08:15:27 +0000 (03:15 -0500)
commit4b707ca04075b136db87e5571a95610c5ff8554c
tree3d2e9c3e9b3626333c47ea19a630c4eb5dd2df00
parent2d7adaec5068acb5e319c8c9e7701d4bdbf93b4e
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