This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/22396] x86-64: siglongjmp does not restore PKRU register
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sun, 05 Nov 2017 07:37:27 +0000
- Subject: [Bug libc/22396] x86-64: siglongjmp does not restore PKRU register
- Auto-submitted: auto-generated
- References: <bug-22396-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22396
--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Carlos O'Donell from comment #1)
> (In reply to Florian Weimer from comment #0)
> > When a signal handler is left using siglongjmp, the PKRU value is not
> > restored. This is problematic because the signal handler has access to all
> > memory protection keys disabled.
>
> The worst case is that the application fails because it can no longer access
> memory that it previously could?
Correct, and the signal handler could be provided by a completely different
library which knows nothing about memory protection keys.
--
You are receiving this mail because:
You are on the CC list for the bug.