Ross Zwisler
bba1b1b2b9
generic: add regression test for stale mmap reads
...
This adds a regression test for the following kernel patch:
dax: fix data corruption due to stale mmap reads
The above patch fixes an issue where users of DAX can suffer data
corruption from stale mmap reads via the following sequence:
- open an mmap over a 2MiB hole
- read from a 2MiB hole, faulting in a 2MiB zero page
- write to the hole with write(3p). The write succeeds but we incorrectly
leave the 2MiB zero page mapping intact.
- via the mmap, read the data that was just written. Since the zero page
mapping is still intact we read back zeroes instead of the new data.
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com >
Reviewed-by: Eryu Guan <eguan@redhat.com >
Signed-off-by: Eryu Guan <eguan@redhat.com >
2017-04-27 12:00:14 +08:00
..
2017-02-04 14:16:43 +08:00
2017-01-15 13:56:45 +08:00
2016-11-14 10:37:49 +08:00
2017-03-09 15:01:43 +08:00
2017-03-09 15:01:43 +08:00
2017-03-09 15:01:43 +08:00
2017-03-09 15:01:43 +08:00
2017-03-09 15:01:43 +08:00
2017-03-09 15:01:43 +08:00
2017-03-09 15:01:43 +08:00
2017-03-09 15:01:43 +08:00
2017-03-09 15:01:43 +08:00
2017-03-09 15:01:43 +08:00
2017-03-09 15:01:43 +08:00
2017-03-09 15:01:43 +08:00
2016-12-18 12:14:29 +08:00
2017-03-01 18:35:23 +08:00
2016-07-16 17:34:57 +08:00
2017-04-08 23:22:58 +08:00
2017-02-06 11:48:28 +08:00
2016-07-20 11:15:52 +08:00
2017-04-07 13:11:56 +08:00
2017-01-15 13:56:45 +08:00
2016-07-01 11:17:08 +08:00
2016-11-14 10:37:49 +08:00
2017-02-23 15:08:04 +08:00
2016-11-18 16:41:02 +08:00
2016-11-18 16:41:02 +08:00
2016-07-01 11:17:08 +08:00
2016-07-20 11:15:52 +08:00
2016-12-13 14:26:18 +08:00
2016-07-18 16:51:01 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2016-08-26 15:29:49 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-06 16:53:10 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2016-11-03 10:41:41 +08:00
2017-01-15 13:56:45 +08:00
2016-11-03 10:41:41 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2016-11-03 10:41:41 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2016-11-24 16:25:36 +08:00
2016-11-24 16:25:36 +08:00
2016-07-07 12:24:13 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2016-10-20 22:20:08 +08:00
2016-11-14 10:37:49 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2016-11-03 10:41:41 +08:00
2016-11-03 10:41:41 +08:00
2017-02-06 14:14:53 +08:00
2016-07-21 17:44:30 +08:00
2016-07-21 17:44:30 +08:00
2016-07-01 11:17:08 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2016-12-24 18:12:10 +08:00
2016-11-14 10:37:49 +08:00
2017-01-15 13:56:45 +08:00
2016-10-21 23:20:14 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2016-07-16 17:34:57 +08:00
2016-07-16 17:34:57 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-06 16:53:10 +08:00
2017-01-06 16:53:10 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2016-10-13 15:54:16 +08:00
2016-10-13 15:54:16 +08:00
2016-09-26 10:17:29 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2016-09-23 10:04:28 +08:00
2016-12-06 19:04:19 +08:00
2016-12-06 19:04:19 +08:00
2017-03-13 11:58:56 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-01 11:17:08 +08:00
2016-07-31 10:37:08 +08:00
2016-07-31 10:37:08 +08:00
2016-11-18 16:41:06 +08:00
2016-08-05 16:15:55 +08:00
2016-11-14 10:35:45 +08:00
2016-08-08 15:28:28 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2016-10-13 15:53:46 +08:00
2016-10-13 15:53:46 +08:00
2016-08-26 15:45:00 +08:00
2016-08-26 15:45:00 +08:00
2016-08-31 17:33:22 +08:00
2016-08-31 17:33:22 +08:00
2016-09-08 15:02:14 +08:00
2016-09-08 15:02:14 +08:00
2016-09-23 11:35:42 +08:00
2016-09-23 11:35:42 +08:00
2016-09-23 11:35:42 +08:00
2016-09-23 11:35:42 +08:00
2017-01-27 16:06:12 +08:00
2016-09-23 11:35:42 +08:00
2017-01-27 16:06:12 +08:00
2016-09-23 11:35:42 +08:00
2017-01-27 16:06:12 +08:00
2016-09-23 12:30:04 +08:00
2017-01-15 13:56:45 +08:00
2016-09-23 12:30:04 +08:00
2017-01-15 13:56:45 +08:00
2016-09-23 12:30:04 +08:00
2017-01-15 13:56:45 +08:00
2016-09-23 12:30:04 +08:00
2016-09-24 00:39:13 +08:00
2016-09-24 00:39:13 +08:00
2017-03-09 15:01:43 +08:00
2016-09-28 11:36:32 +08:00
2016-10-21 23:20:14 +08:00
2016-10-21 23:20:14 +08:00
2016-11-07 17:38:55 +08:00
2016-11-07 17:38:55 +08:00
2017-01-15 13:56:45 +08:00
2016-11-18 16:41:06 +08:00
2017-03-09 15:01:43 +08:00
2016-11-22 13:45:33 +08:00
2016-11-22 13:49:01 +08:00
2016-11-22 13:49:01 +08:00
2016-12-18 12:14:54 +08:00
2016-12-18 12:14:54 +08:00
2016-12-24 16:47:12 +08:00
2016-12-24 16:47:12 +08:00
2016-12-24 16:47:12 +08:00
2016-12-24 16:47:12 +08:00
2016-12-24 16:47:12 +08:00
2016-12-24 16:47:12 +08:00
2016-12-24 16:47:12 +08:00
2017-02-04 14:16:43 +08:00
2016-12-24 16:48:58 +08:00
2016-12-24 16:48:58 +08:00
2017-01-27 16:06:12 +08:00
2016-12-24 18:09:40 +08:00
2016-12-24 20:21:55 +08:00
2016-12-24 20:21:55 +08:00
2017-01-05 10:18:01 +08:00
2017-01-05 10:18:01 +08:00
2017-01-10 11:43:33 +08:00
2017-01-10 11:43:33 +08:00
2017-01-15 13:56:45 +08:00
2017-01-15 13:56:45 +08:00
2017-01-18 17:29:57 +08:00
2017-01-18 17:29:57 +08:00
2017-01-27 16:06:12 +08:00
2017-01-27 16:06:12 +08:00
2017-02-04 14:16:43 +08:00
2017-02-04 14:16:43 +08:00
2017-02-04 14:16:43 +08:00
2017-02-04 14:16:43 +08:00
2017-03-07 19:41:22 +08:00
2017-02-15 17:55:41 +08:00
2017-03-07 19:41:22 +08:00
2017-02-15 17:55:51 +08:00
2017-03-07 19:41:22 +08:00
2017-02-15 17:55:57 +08:00
2017-02-19 07:59:08 +08:00
2017-02-19 07:59:08 +08:00
2017-02-19 07:59:33 +08:00
2017-02-19 07:59:33 +08:00
2017-03-01 11:25:06 +08:00
2017-03-01 11:25:06 +08:00
2017-03-02 12:26:17 +08:00
2017-03-02 12:26:17 +08:00
2017-03-09 12:28:22 +08:00
2017-03-09 12:28:22 +08:00
2017-03-17 13:17:42 +08:00
2017-03-10 14:30:44 +08:00
2017-03-22 11:29:23 +08:00
2017-03-22 11:29:23 +08:00
2017-03-22 11:50:35 +08:00
2017-03-22 11:50:35 +08:00
2017-04-01 11:46:13 +08:00
2017-04-01 11:46:13 +08:00
2017-04-01 14:05:32 +08:00
2017-04-01 14:05:32 +08:00
2017-04-11 12:19:28 +08:00
2017-04-08 23:22:58 +08:00
2017-04-11 12:34:24 +08:00
2017-04-11 12:34:24 +08:00
2017-04-11 12:34:24 +08:00
2017-04-11 12:34:24 +08:00
2017-04-13 10:27:22 +08:00
2017-04-13 10:27:22 +08:00
2017-04-21 11:14:34 +08:00
2017-04-21 11:14:34 +08:00
2017-04-27 11:31:00 +08:00
2017-04-27 11:31:00 +08:00
2017-04-27 12:00:14 +08:00
2017-04-27 12:00:14 +08:00
2017-04-27 12:00:14 +08:00
2016-07-18 16:55:04 +08:00