summaryrefslogtreecommitdiff
path: root/arch/x86/xen
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2018-02-21 17:08:01 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-11 16:21:28 +0100
commit43672fa6428ec186db18fc5fba2df8c642bc1c38 (patch)
treee269b56ebbebc0cb20496398e2fdfbd83c1d8df2 /arch/x86/xen
parent144b6353ae503c055dd8bda0a03f42798d62aaa4 (diff)
dax: fix vma_is_fsdax() helper
commit 230f5a8969d8345fc9bbe3683f068246cf1be4b8 upstream. Gerd reports that ->i_mode may contain other bits besides S_IFCHR. Use S_ISCHR() instead. Otherwise, get_user_pages_longterm() may fail on device-dax instances when those are meant to be explicitly allowed. Fixes: 2bb6d2837083 ("mm: introduce get_user_pages_longterm") Cc: <stable@vger.kernel.org> Reported-by: Gerd Rausch <gerd.rausch@oracle.com> Acked-by: Jane Chu <jane.chu@oracle.com> Reported-by: Haozhong Zhang <haozhong.zhang@intel.com> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/xen')
0 files changed, 0 insertions, 0 deletions