diff options
| author | Janosch Frank <[email protected]> | 2018-07-04 00:02:39 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-07-04 00:32:18 +0000 |
| commit | 1e2c043628c7736dd56536d16c0ce009bc834ae7 (patch) | |
| tree | e511865feee12b1d6ba326588fb7aa36ada14951 /lib/debugobjects.c | |
| parent | net/smc: fix up merge error with poll changes (diff) | |
| download | kernel-1e2c043628c7736dd56536d16c0ce009bc834ae7.tar.gz kernel-1e2c043628c7736dd56536d16c0ce009bc834ae7.zip | |
userfaultfd: hugetlbfs: fix userfaultfd_huge_must_wait() pte access
Use huge_ptep_get() to translate huge ptes to normal ptes so we can
check them with the huge_pte_* functions. Otherwise some architectures
will check the wrong values and will not wait for userspace to bring in
the memory.
Link: http://lkml.kernel.org/r/[email protected]
Fixes: 369cd2121be4 ("userfaultfd: hugetlbfs: userfaultfd_huge_must_wait for hugepmd ranges")
Signed-off-by: Janosch Frank <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Mike Kravetz <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
