Skip to contentSkip to conversation

cifs: revalidate mapping when we open files for SMB1 POSIX

PATCH New Ronnie Sahlberg 1 participant 1 message Mar 25, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cifs: revalidate mapping when we open files for SMB1 POSIX

RHBZ: 1933527

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

---
 fs/cifs/file.c | 1 +
 1 file changed, 1 insertion(+)
fs/cifs/file.c +1 -0
index 26de4329d161..042e24aad410 100644
@@ -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);
 	}
 
Signature · 1 line
2.29.2