summaryrefslogtreecommitdiffstats
path: root/fs/dax.c
diff options
context:
space:
mode:
authorDan Williams2018-04-20 06:32:19 +0200
committerDan Williams2018-05-22 16:19:08 +0200
commita9b6de77b1a3ff729f7bfc54b2e17711776a416c (patch)
treeabf94e003816c5c99bb5792a8e636905a44ad48e /fs/dax.c
parentmm: introduce MEMORY_DEVICE_FS_DAX and CONFIG_DEV_PAGEMAP_OPS (diff)
downloadkernel-qcow2-linux-a9b6de77b1a3ff729f7bfc54b2e17711776a416c.tar.gz
kernel-qcow2-linux-a9b6de77b1a3ff729f7bfc54b2e17711776a416c.tar.xz
kernel-qcow2-linux-a9b6de77b1a3ff729f7bfc54b2e17711776a416c.zip
mm: fix __gup_device_huge vs unmap
get_user_pages_fast() for device pages is missing the typical validation that all page references have been taken while the mapping was valid. Without this validation truncate operations can not reliably coordinate against new page reference events like O_DIRECT. Cc: <stable@vger.kernel.org> Fixes: 3565fce3a659 ("mm, x86: get_user_pages() for dax mappings") Reported-by: Jan Kara <jack@suse.cz> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'fs/dax.c')
0 files changed, 0 insertions, 0 deletions