diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2025-06-16 17:00:32 +0200 |
---|---|---|
committer | Alexander Gordeev <agordeev@linux.ibm.com> | 2025-06-29 13:12:02 +0200 |
commit | d2b73ce90a7141d5aa34a52de82d69fbb68efc30 (patch) | |
tree | 1f2f759500a1d4f59a94907375deb19e7933c3ef /rust/helpers/helpers.c | |
parent | b13c190c6da49043c55708cd62419d762744af18 (diff) |
s390/uaccess: Prevent kprobes on cmpxchg_user_key() functions
Code regions within cmpxchg_user_key() functions may be executed with a
non-default access key, which may lead to a protection exception if the
corresponding page has the fetch-protection bit enabled.
There is code in place which initializes the storage keys of such pages
when needed. However there is also the possibility of out-of-line execution
of such code in case a kprobe is set within such a region.
To avoid this problem prevent that any kprobe can be set within the
cmpxchg_user_key() functions.
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions