summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-10-27 10:15:58 +0000
committerkib <kib@FreeBSD.org>2009-10-27 10:15:58 +0000
commitfeb999713be0c5c7cf9239074dd5d49d5dff1fa0 (patch)
tree3db96f50949e0d11ed042308a247806c6d75a745 /sys/compat
parent10cb9d698c9cbeb3f32887483e1276e9290e7e39 (diff)
downloadFreeBSD-src-feb999713be0c5c7cf9239074dd5d49d5dff1fa0.zip
FreeBSD-src-feb999713be0c5c7cf9239074dd5d49d5dff1fa0.tar.gz
When protection of wired read-only mapping is changed to read-write,
install new shadow object behind the map entry and copy the pages from the underlying objects to it. This makes the mprotect(2) call to actually perform the requested operation instead of silently do nothing and return success, that causes SIGSEGV on later write access to the mapping. Reuse vm_fault_copy_entry() to do the copying, modifying it to behave correctly when src_entry == dst_entry. Reviewed by: alc MFC after: 3 weeks
Diffstat (limited to 'sys/compat')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud