Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F168546346
D56416.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56416.diff
View Options
diff --git a/lib/libsys/x86/pkru.3 b/lib/libsys/x86/pkru.3
--- a/lib/libsys/x86/pkru.3
+++ b/lib/libsys/x86/pkru.3
@@ -71,13 +71,16 @@
The default protection key index is zero, it is used even if no key
was explicitly assigned to the address, or if the key was removed.
.Pp
-The protection prevents the system from accessing user addresses as well
-as the user applications.
-When a system call was unable to read or write user memory due to key
-protection, it returns the
-.Er EFAULT
-error code.
-Note that some side effects may have occurred if this error is reported.
+If the user application attempts a memory access which is prohibited by the
+PKRU register, the offending thread receives a synchronous
+.Dv SIGSEGV
+signal with
+.Va si_code
+set to
+.Dv SEGV_PKUERR .
+PKRU protections might prevent the kernel from accessing protected
+user addresses when handling system calls, but this is not guaranteed and
+must not be relied upon.
.Pp
Both 64-bit and 32-bit applications can use protection keys.
More information about the hardware feature is provided in the IA32 Software
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 29, 11:13 PM (7 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37547474
Default Alt Text
D56416.diff (1 KB)
Attached To
Mode
D56416: pkru.3: Note that the kernel may not respect PKRU protections
Attached
Detach File
Event Timeline
Log In to Comment