aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorFan Yang <[email protected]>2020-06-04 10:22:07 +0000
committerLinus Torvalds <[email protected]>2020-06-05 02:05:24 +0000
commit5bfea2d9b17f1034a68147a8b03b9789af5700f9 (patch)
treeedad86fc86a98a8f13c4ebd1c4cdc3beb2114435 /fs/proc/array.c
parentMerge branch 'exec-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/eb... (diff)
downloadkernel-5bfea2d9b17f1034a68147a8b03b9789af5700f9.tar.gz
kernel-5bfea2d9b17f1034a68147a8b03b9789af5700f9.zip
mm: Fix mremap not considering huge pmd devmap
The original code in mm/mremap.c checks huge pmd by: if (is_swap_pmd(*old_pmd) || pmd_trans_huge(*old_pmd)) { However, a DAX mapped nvdimm is mapped as huge page (by default) but it is not transparent huge page (_PAGE_PSE | PAGE_DEVMAP). This commit changes the condition to include the case. This addresses CVE-2020-10757. Fixes: 5c7fb56e5e3f ("mm, dax: dax-pmd vs thp-pmd vs hugetlbfs-pmd") Cc: <[email protected]> Reported-by: Fan Yang <[email protected]> Signed-off-by: Fan Yang <[email protected]> Tested-by: Fan Yang <[email protected]> Tested-by: Dan Williams <[email protected]> Reviewed-by: Dan Williams <[email protected]> Acked-by: Kirill A. Shutemov <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions