Date: Tue, 27 Oct 2009 10:15:58 +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: <200910271016.n9RAGB9v075192@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2009-10-27 10:15:58 UTC FreeBSD src repository Modified files: sys/vm vm_fault.c vm_map.c Log: SVN rev 198505 on 2009-10-27 10:15:58Z by kib 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 Revision Changes Path 1.257 +46 -16 src/sys/vm/vm_fault.c 1.421 +10 -4 src/sys/vm/vm_map.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910271016.n9RAGB9v075192>