Go to file
thorpej cf9b36ab1d Set up a kernel_map entry for the text segment with protection of
VM_PROT_READ|VM_PROT_EXECUTE.  The previous default (VM_PROT_ALL)
would cause the following scenario:
	- someone attempts to write kernel text (my test was writing
	  to an offset of /dev/kmem which was known to be in the text
	  segment, while in single-user mode).
	- enter trap() with MMU fault (because of RO pte).
	- trap() calls vm_fault(), which looks up vm_map_entry for
	  fauling address.
	- vm_fault interprets write fault and VM_PROT_WRITE (in VM_PROT_ALL)
	  as COW; new page allocated, data copied to new page, new page
	  mapped in at trunc_page(<faulting va>).
	- wow, look at the fireworks!
Fixes two potential symptoms:
	- kernacc() returns TRUE when checking for permission to write
	  an offset in kernel text, which is bogus, since the text has
	  been mapped RO by pmap_bootstrap().
	- Handling of a stray pointer that attempted to scribble into
	  kernel text would not be executed properly.
1996-10-19 08:51:33 +00:00
bin Remove leftover printf("here") from last change. 1996-10-19 02:38:36 +00:00
distrib add lots of shared libraries and _pic.a files 1996-10-18 20:01:03 +00:00
etc slight clean up of that last (fix some major numbers) 1996-10-18 21:53:27 +00:00
games Use ${INSTALL}. 1996-10-18 02:48:24 +00:00
gnu Use ${INSTALL}. 1996-10-18 02:52:59 +00:00
include Use ${INSTALL}. 1996-10-18 02:52:59 +00:00
lib Generate syscall functions which can never fail (getgid, getegid, geteuid, 1996-10-19 00:54:22 +00:00
libexec Use ${INSTALL}. 1996-10-18 05:45:01 +00:00
regress merge DB 1.85 changes 1996-05-03 21:50:36 +00:00
sbin Remove #ifdef tahoe conditionals. We have no tahoe port. There is 1996-10-18 07:16:02 +00:00
share Update bt.4 -> bha.4 change; closes pr port-i386/2862 with slightly different 1996-10-18 19:16:47 +00:00
sys Set up a kernel_map entry for the text segment with protection of 1996-10-19 08:51:33 +00:00
usr.bin Fix PR1542: gross inaccuracies in bdes.1 Reviewed by Perry 1996-10-19 00:59:26 +00:00
usr.sbin | -> } in manual page; closes pr bin/2858; mailed patch to author 1996-10-18 17:10:52 +00:00
Makefile allow builds to work if directory games is missing. Closes pr misc/1921 and 1996-08-10 23:29:00 +00:00