summaryrefslogtreecommitdiff
path: root/fs/efivarfs
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2019-06-06 11:10:28 +0200
committerDan Williams <dan.j.williams@intel.com>2019-06-06 22:18:49 -0700
commit1571c029a2ff289683ddb0a32253850363bcb8a7 (patch)
tree18f4216050c35e68b5a4f6098aa6b185c931d3db /fs/efivarfs
parentf2c7c76c5d0a443053e94adb9f0918fa2fb85c3a (diff)
dax: Fix xarray entry association for mixed mappings
When inserting entry into xarray, we store mapping and index in corresponding struct pages for memory error handling. When it happened that one process was mapping file at PMD granularity while another process at PTE granularity, we could wrongly deassociate PMD range and then reassociate PTE range leaving the rest of struct pages in PMD range without mapping information which could later cause missed notifications about memory errors. Fix the problem by calling the association / deassociation code if and only if we are really going to update the xarray (deassociating and associating zero or empty entries is just no-op so there's no reason to complicate the code with trying to avoid the calls for these cases). Cc: <stable@vger.kernel.org> Fixes: d2c997c0f145 ("fs, dax: use page->mapping to warn if truncate...") Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'fs/efivarfs')
0 files changed, 0 insertions, 0 deletions