diff options
| author | 2025-06-16 17:00:32 +0200 | |
|---|---|---|
| committer | 2025-06-29 13:12:02 +0200 | |
| commit | d2b73ce90a7141d5aa34a52de82d69fbb68efc30 (patch) | |
| tree | 1f2f759500a1d4f59a94907375deb19e7933c3ef /net/core/dev_api.c | |
| parent | s390/uaccess: Initialize code pages executed with non-default access key (diff) | |
| download | wireguard-linux-d2b73ce90a7141d5aa34a52de82d69fbb68efc30.tar.xz wireguard-linux-d2b73ce90a7141d5aa34a52de82d69fbb68efc30.zip | |
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 'net/core/dev_api.c')
0 files changed, 0 insertions, 0 deletions
