Date: Tue, 17 Nov 2009 18:38:00 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/vm vm_fault.c vm_map.c Message-ID: <200911171838.nAHIcHTo055235@repoman.freebsd.org>
index | next in thread | raw e-mail
kib 2009-11-17 18:38:00 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
sys/vm vm_fault.c vm_map.c
Log:
SVN rev 199416 on 2009-11-17 18:38:00Z by kib
MFC r198505:
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.
Revision Changes Path
1.254.2.4 +46 -16 src/sys/vm/vm_fault.c
1.419.2.3 +10 -4 src/sys/vm/vm_map.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911171838.nAHIcHTo055235>
