All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH 0/2] ocfs2: Truncate data corruption fix
@ 2021-10-25 15:13 Jan Kara
  2021-10-25 15:13   ` Jan Kara
  2021-10-25 15:13 ` [Ocfs2-devel] [PATCH 2/2] ocfs2: Do not zero pages beyond i_size Jan Kara
  0 siblings, 2 replies; 15+ messages in thread
From: Jan Kara @ 2021-10-25 15:13 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Jan Kara, ocfs2-devel

Hello,

as further testing has shown, the commit 5314454ea3f ("ocfs2: fix data
corruption after conversion from inline format") didn't fix all the data
corruption issues the customer started observing after 6dbf7bb55598 ("fs: Don't
invalidate page buffers in block_write_full_page()"). This time I have tracked
them down to two bugs in ocfs2 truncation code. One bug (truncating page cache
before clearing tail cluster and setting i_size) could cause data corruption
even before 6dbf7bb55598, but before that commit it needed a race with page
fault, after 6dbf7bb55598 it started to be pretty deterministic. Another
bug (zeroing pages beyond old i_size) used to be harmless inefficiency before
commit 6dbf7bb55598. But after commit 6dbf7bb55598 in combination with the
first bug it resulted in deterministic data corruption. Although fixing only
the first problem is needed to stop data corruption, I've fixed both issues
to make the code more robust.

								Honza

_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel@oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel

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

end of thread, other threads:[~2021-11-02 10:02 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-25 15:13 [Ocfs2-devel] [PATCH 0/2] ocfs2: Truncate data corruption fix Jan Kara
2021-10-25 15:13 ` [Ocfs2-devel] [PATCH 1/2] ocfs2: Fix data corruption on truncate Jan Kara
2021-10-25 15:13   ` Jan Kara
2021-10-28  7:09   ` [Ocfs2-devel] " Joseph Qi
2021-10-28  7:09     ` Joseph Qi
2021-10-28  7:44     ` [Ocfs2-devel] " Joseph Qi
2021-10-28  7:44       ` Joseph Qi
2021-11-01 11:31     ` [Ocfs2-devel] " Jan Kara
2021-11-01 11:31       ` Jan Kara
2021-11-02  2:36       ` [Ocfs2-devel] " Joseph Qi
2021-11-02  2:36         ` Joseph Qi
2021-11-02  9:55         ` [Ocfs2-devel] " Jan Kara
2021-11-02  9:55           ` Jan Kara
2021-10-25 15:13 ` [Ocfs2-devel] [PATCH 2/2] ocfs2: Do not zero pages beyond i_size Jan Kara
2021-11-02  2:58   ` Joseph Qi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.