merged into cifs-2.6.git for-next On Thu, Mar 25, 2021 at 10:34 AM Paulo Alcantara <pc@xxxxxx> wrote: > > Ronnie Sahlberg <lsahlber@xxxxxxxxxx> writes: > > > RHBZ: 1933527 > > > > Under SMB1 + POSIX, if an inode is reused on a server after we have read and > > cached a part of a file, when we then open the new file with the > > re-cycled inode there is a chance that we may serve the old data out of cache > > to the application. > > This only happens for SMB1 (deprecated) and when posix are used. > > The simplest solution to avoid this race is to force a revalidate > > on smb1-posix open. > > > > Signed-off-by: Ronnie Sahlberg <lsahlber@xxxxxxxxxx> > > --- > > fs/cifs/file.c | 1 + > > 1 file changed, 1 insertion(+) > > Reviewed-by: Paulo Alcantara (SUSE) <pc@xxxxxx> -- Thanks, Steve