COPY ON WRITE FOR TEXT PAGES
authorPaul Kranenburg <pk@cs.few.eur.nl>
Fri, 4 Sep 1992 00:00:00 +0000 (00:00 +0000)
committerPaul Kranenburg <pk@cs.few.eur.nl>
Fri, 4 Sep 1992 00:00:00 +0000 (00:00 +0000)
commit711e1c6cff27beedd7220b1ca1ef316e11bdde0a
tree1bf7f6364221221268bcd5d17ea7e9b2f274c1c0
parent7882093a909f57569303e26c3511f16a51f1d83b
COPY ON WRITE FOR TEXT PAGES

The 386 does not generate a page protection fault while it is
executing in supervisor mode :-(, so copy on write handling never takes
place when the kernel stuffs data into a process's text- or any other
non-anonymous segment.  So these cases must be explicitly checked for.

NOTE: This is a security hole where it is possible for any
normal user with access to the debugger and read access
to any suid root program to become root!  You should
apply this patch immediately!

AUTHOR: Paul Kranenburg (pk@cs.few.eur.nl)
386BSD-Patchkit: patch00011
usr/src/sys.386bsd/kern/sys_process.c