linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Cifs: fix kbz 216301: return corrupt/stale file content
@ 2022-09-12  3:04 Ronnie Sahlberg
  2022-09-12  3:04 ` [PATCH] cifs: revalidate mapping when doing direct writes Ronnie Sahlberg
  0 siblings, 1 reply; 4+ messages in thread
From: Ronnie Sahlberg @ 2022-09-12  3:04 UTC (permalink / raw)
  To: linux-cifs; +Cc: Steve French

Steve, List

Please find a small patch that fixes kernel bugzilla 216301 which can cause
writes to an mmaped file to corrupt data when reading it back.

The issue arises when mmaping a file under cache=none. In this case all writes go through the
direct_write codepaths directly to the server.
But IF any of the mmapped page are already present then the write will go to the server without
updating what we present to the application in the mmapped pages.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-12 15:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-12  3:04 Cifs: fix kbz 216301: return corrupt/stale file content Ronnie Sahlberg
2022-09-12  3:04 ` [PATCH] cifs: revalidate mapping when doing direct writes Ronnie Sahlberg
     [not found]   ` <CAH2r5mvh5_XbVxu0idZgt5A=zEr=4k7DF8Omf4VZOdrgCNkOfA@mail.gmail.com>
2022-09-12  5:32     ` Fwd: " Steve French
2022-09-12 15:57   ` Paulo Alcantara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).