NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/53232 (mprotect() modifications of stack pages)



Synopsis: mprotect() modifications of stack pages

State-Changed-From-To: open->closed
State-Changed-By: martin%NetBSD.org@localhost
State-Changed-When: Sun, 29 Apr 2018 19:30:25 +0000
State-Changed-Why:
Not a bug, even documented in mprotect(2): you can not mprotect to
something less restrictive than the original mmap(2) with pax mprotect
enabled.
Workaround: mmap with PROT_READ|PROT_WRITE and mprotect() to 0, then
later it is possible to mprotect(PROT_READ|PROT_WRITE) again.





Home | Main Index | Thread Index | Old Index