diff mbox series

cifs: revalidate mapping when we open files for SMB1 POSIX

Message ID 20210325052330.40898-1-lsahlber@redhat.com (mailing list archive)
State New, archived
Headers show
Series cifs: revalidate mapping when we open files for SMB1 POSIX | expand

Commit Message

Ronnie Sahlberg March 25, 2021, 5:23 a.m. UTC
From: root <root@localhost.localdomain>

RHBZ: 1933527

We have seen read cashe surviving across close to open under
SMB1 POSIX.

Signed-off-by: root <root@localhost.localdomain>
---
 fs/cifs/file.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 26de4329d161..042e24aad410 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -165,6 +165,7 @@  int cifs_posix_open(char *full_path, struct inode **pinode,
 			goto posix_open_ret;
 		}
 	} else {
+		cifs_revalidate_mapping(*pinode);
 		cifs_fattr_to_inode(*pinode, &fattr);
 	}