]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/uaccess: Separate key uaccess functions
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 11 Feb 2025 19:19:27 +0000 (20:19 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 4 Mar 2025 16:18:03 +0000 (17:18 +0100)
commitbc6029239c11df78433c2085d8c9ee0e1109dfd2
tree834c897d134b564ea19df1ac0c66e7f98f24d398
parentc488f5187a24969b40fd08c3e9ead377c0cfb9b3
s390/uaccess: Separate key uaccess functions

Implement separate raw_copy_to_user_key() and raw_copy_from_user_key()
functions, which allows to remove the open-coded operand access control
handling from the normal raw_copy_to_user() / raw_copy_from_user()
functions - they are simplified to use immediate instructions to load
hard-coded operand access control values into register zero, which saves
one instruction.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/uaccess.h
arch/s390/lib/uaccess.c