s390/uaccess: add cmpxchg_user_key()
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 2 Nov 2022 14:19:23 +0000 (15:19 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 21 Nov 2022 12:36:16 +0000 (13:36 +0100)
commit4148575abe1e14af3cb9fd1a3c9c2a708ec0b1f9
treee558cdfaeb9474dcf5488f2097d7a56af5e70673
parentf39a8c4a22ea104c368361b9ae0f550da161db2d
s390/uaccess: add cmpxchg_user_key()

Add cmpxchg_user_key() which allows to execute a compare and exchange
on a user space address. This allows also to specify a storage key
which makes sure that key-controlled protection is considered.

This is based on a patch written by Janis Schoetterl-Glausch.

Link: https://lore.kernel.org/all/20220930210751.225873-2-scgl@linux.ibm.com
Cc: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
Link: https://lore.kernel.org/r/Y2J8axs+bcQ2dO/l@osiris
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/uaccess.h