aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorHeiko Carstens <[email protected]>2025-06-16 15:00:32 +0000
committerAlexander Gordeev <[email protected]>2025-06-29 11:12:02 +0000
commitd2b73ce90a7141d5aa34a52de82d69fbb68efc30 (patch)
tree1f2f759500a1d4f59a94907375deb19e7933c3ef /net/unix/af_unix.c
parents390/uaccess: Initialize code pages executed with non-default access key (diff)
downloadkernel-d2b73ce90a7141d5aa34a52de82d69fbb68efc30.tar.gz
kernel-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 <[email protected]> Signed-off-by: Heiko Carstens <[email protected]> Signed-off-by: Alexander Gordeev <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions