Skip to content
Commit 79383813 authored by Helge Deller's avatar Helge Deller
Browse files

prctl: Disable prctl(PR_SET_MDWE) on parisc



systemd-254 tries to use prctl(PR_SET_MDWE) for it's MemoryDenyWriteExecute
functionality, but fails on parisc which still needs executable stacks in
certain combinations of gcc/glibc/kernel.

Disable prctl(PR_SET_MDWE) by returning -EINVAL for now on parisc, until
userspace has catched up.

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Co-developed-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Reported-by: default avatarSam James <sam@gentoo.org>
Closes: https://github.com/systemd/systemd/issues/29775


Tested-by: default avatarSam James <sam@gentoo.org>
Link: https://lore.kernel.org/all/875y2jro9a.fsf@gentoo.org/
Cc: <stable@vger.kernel.org> # v6.3+
parent 6ad6e15a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment