From: Jan Kara <jack@suse.cz> To: Andrew Morton <akpm@linux-foundation.org> Cc: Ross Zwisler <ross.zwisler@linux.intel.com>, Dan Williams <dan.j.williams@intel.com>, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-nvdimm@lists.01.org, linux-mm@kvack.org, Jan Kara <jack@suse.cz> Subject: [PATCH 0/4 v4] mm,dax: Fix data corruption due to mmap inconsistency Date: Wed, 10 May 2017 10:54:15 +0200 [thread overview] Message-ID: <20170510085419.27601-1-jack@suse.cz> (raw) Hello, this series fixes data corruption that can happen for DAX mounts when page faults race with write(2) and as a result page tables get out of sync with block mappings in the filesystem and thus data seen through mmap is different from data seen through read(2). The series passes testing with t_mmap_stale test program from Ross and also other mmap related tests on DAX filesystem. Andrew, can you please merge these patches? Thanks! Changes since v3: * Rebased on top of current Linus' tree due to non-trivial conflicts with added tracepoint Changes since v2: * Added reviewed-by tag from Ross Changes since v1: * Improved performance of unmapping pages * Changed fault locking to fix another write vs fault race Honza -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
WARNING: multiple messages have this Message-ID (diff)
From: Jan Kara <jack@suse.cz> To: Andrew Morton <akpm@linux-foundation.org> Cc: Ross Zwisler <ross.zwisler@linux.intel.com>, Dan Williams <dan.j.williams@intel.com>, <linux-ext4@vger.kernel.org>, <linux-fsdevel@vger.kernel.org>, linux-nvdimm@lists.01.org, <linux-mm@kvack.org>, Jan Kara <jack@suse.cz> Subject: [PATCH 0/4 v4] mm,dax: Fix data corruption due to mmap inconsistency Date: Wed, 10 May 2017 10:54:15 +0200 [thread overview] Message-ID: <20170510085419.27601-1-jack@suse.cz> (raw) Hello, this series fixes data corruption that can happen for DAX mounts when page faults race with write(2) and as a result page tables get out of sync with block mappings in the filesystem and thus data seen through mmap is different from data seen through read(2). The series passes testing with t_mmap_stale test program from Ross and also other mmap related tests on DAX filesystem. Andrew, can you please merge these patches? Thanks! Changes since v3: * Rebased on top of current Linus' tree due to non-trivial conflicts with added tracepoint Changes since v2: * Added reviewed-by tag from Ross Changes since v1: * Improved performance of unmapping pages * Changed fault locking to fix another write vs fault race Honza -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2017-05-10 8:54 UTC|newest] Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-05-10 8:54 Jan Kara [this message] 2017-05-10 8:54 ` [PATCH 0/4 v4] mm,dax: Fix data corruption due to mmap inconsistency Jan Kara 2017-05-10 8:54 ` [PATCH 1/4] dax: prevent invalidation of mapped DAX entries Jan Kara 2017-05-10 8:54 ` Jan Kara 2017-05-10 8:54 ` Jan Kara 2017-05-10 8:54 ` Jan Kara 2017-05-10 8:54 ` [PATCH 2/4] mm: Fix data corruption due to stale mmap reads Jan Kara 2017-05-10 8:54 ` Jan Kara 2017-05-10 8:54 ` Jan Kara 2017-05-10 8:54 ` Jan Kara 2017-05-10 8:54 ` [PATCH 3/4] ext4: Return back to starting transaction in ext4_dax_huge_fault() Jan Kara 2017-05-10 8:54 ` Jan Kara 2017-05-10 8:54 ` Jan Kara 2017-05-10 8:54 ` Jan Kara 2017-05-10 8:54 ` [PATCH 4/4] dax: Fix data corruption when fault races with write Jan Kara 2017-05-10 8:54 ` Jan Kara 2017-05-10 8:54 ` Jan Kara 2017-05-10 8:54 ` Jan Kara 2017-05-10 17:27 ` [PATCH 5/4] dax: Fix PMD " Ross Zwisler 2017-05-10 17:27 ` Ross Zwisler 2017-05-11 8:39 ` Jan Kara 2017-05-11 8:39 ` Jan Kara 2017-05-11 8:39 ` Jan Kara 2017-05-10 17:27 ` [PATCH 0/4 v4] mm,dax: Fix data corruption due to mmap inconsistency Ross Zwisler 2017-05-10 17:27 ` Ross Zwisler 2017-05-10 17:27 ` Ross Zwisler
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20170510085419.27601-1-jack@suse.cz \ --to=jack@suse.cz \ --cc=akpm@linux-foundation.org \ --cc=dan.j.williams@intel.com \ --cc=linux-ext4@vger.kernel.org \ --cc=linux-fsdevel@vger.kernel.org \ --cc=linux-mm@kvack.org \ --cc=linux-nvdimm@lists.01.org \ --cc=ross.zwisler@linux.intel.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.