]> git.baikalelectronics.ru Git - kernel.git/commit
mm/gup: Use huge_ptep_get() in gup_hugepte()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 15 Jun 2020 12:57:57 +0000 (12:57 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Jun 2020 12:14:53 +0000 (22:14 +1000)
commita47d0be5ee7ac054384ad0aad5f675ef225e5421
tree29d1d4b264dfef7461e611240fabcf18d7261ec4
parent335fc96acd13e03197e625033347052882ec0918
mm/gup: Use huge_ptep_get() in gup_hugepte()

gup_hugepte() reads hugepage table entries, it can't read
them directly, huge_ptep_get() must be used.

Fixes: c29e7b63d59e ("READ_ONCE: Enforce atomicity for {READ,WRITE}_ONCE() memory accesses")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Will Deacon <will@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/ffc3714334c3bfaca6f13788ad039e8759ae413f.1592225558.git.christophe.leroy@csgroup.eu
mm/gup.c