From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kara Subject: [PATCH 0/4 v4] mm,dax: Fix data corruption due to mmap inconsistency Date: Wed, 10 May 2017 10:54:15 +0200 Message-ID: <20170510085419.27601-1-jack@suse.cz> Cc: Ross Zwisler , Dan Williams , , , linux-nvdimm@lists.01.org, , Jan Kara To: Andrew Morton Return-path: Sender: owner-linux-mm@kvack.org List-Id: linux-ext4.vger.kernel.org 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: email@kvack.org