]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/futex: Switch to user_access block
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Wed, 10 Mar 2021 17:57:06 +0000 (17:57 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 26 Mar 2021 12:19:43 +0000 (23:19 +1100)
commit48a1bf2e1bed499692c49f3b424321333ac41129
tree9d4e590872e9407e34dccde963273ba83b348a0a
parent4c5e3592f1ee186b71ab5262fbfffe9ba5164257
powerpc/futex: Switch to user_access block

Use user_access_begin() instead of the access_ok/allow_access sequence.

This brings the missing might_fault() check.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/6cd202cdc4f939d47822e4ddd3c0856210431a58.1615398498.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/futex.h