<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/kern/sys_process.c, branch stable/2.1</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F2.1</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F2.1'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>1999-09-05T08:39:22Z</updated>
<entry>
<title>$Id$ -&gt; $FreeBSD$</title>
<updated>1999-09-05T08:39:22Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-09-05T08:39:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c0b6460abc80cd8953e4eda185c4cad96dcb39c8'/>
<id>urn:sha1:c0b6460abc80cd8953e4eda185c4cad96dcb39c8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge from -current: disallow debugger attachment when securelevel &gt; 0.</title>
<updated>1997-04-27T21:43:09Z</updated>
<author>
<name>Alexander Langer</name>
<email>alex@FreeBSD.org</email>
</author>
<published>1997-04-27T21:43:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3325376a4b822a4483ddc1dc613e4db950988f91'/>
<id>urn:sha1:3325376a4b822a4483ddc1dc613e4db950988f91</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove trailing whitespace.</title>
<updated>1995-05-30T08:16:23Z</updated>
<author>
<name>Rodney W. Grimes</name>
<email>rgrimes@FreeBSD.org</email>
</author>
<published>1995-05-30T08:16:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9b2e535452929d6f2f798a2c01b23b1f547a0b0f'/>
<id>urn:sha1:9b2e535452929d6f2f798a2c01b23b1f547a0b0f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>pread/pwrite() should be static.</title>
<updated>1995-05-12T21:39:48Z</updated>
<author>
<name>David Greenman</name>
<email>dg@FreeBSD.org</email>
</author>
<published>1995-05-12T21:39:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c4cf09ffe6c9b6b3f52e7e20c1dcb9da1ccb5cfa'/>
<id>urn:sha1:c4cf09ffe6c9b6b3f52e7e20c1dcb9da1ccb5cfa</id>
<content type='text'>
Submitted by:	sef
</content>
</entry>
<entry>
<title>Add and move declarations to fix all of the warnings from `gcc -Wimplicit'</title>
<updated>1995-03-16T18:17:34Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>1995-03-16T18:17:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b5e8ce9f12b66453759f254bdf8bfc53fe2b6948'/>
<id>urn:sha1:b5e8ce9f12b66453759f254bdf8bfc53fe2b6948</id>
<content type='text'>
(except in netccitt, netiso and netns) and most of the warnings from
`gcc -Wnested-externs'.  Fix all the bugs found.  There were no serious
ones.
</content>
</entry>
<entry>
<title>Truncate the pte address to a page boundry. This probably won't fix the</title>
<updated>1995-02-19T02:50:31Z</updated>
<author>
<name>David Greenman</name>
<email>dg@FreeBSD.org</email>
</author>
<published>1995-02-19T02:50:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9219d44e66c1d782d3704daeae5aafd5ce282014'/>
<id>urn:sha1:9219d44e66c1d782d3704daeae5aafd5ce282014</id>
<content type='text'>
panic, but at least it's more correct.
</content>
</entry>
<entry>
<title>Fixed botched previous change - use 'pageno' not initialized to NULL 'kva'.</title>
<updated>1995-02-16T00:41:16Z</updated>
<author>
<name>David Greenman</name>
<email>dg@FreeBSD.org</email>
</author>
<published>1995-02-16T00:41:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=eb2463e1fcef7db69e13790b02bd471ce09dddf6'/>
<id>urn:sha1:eb2463e1fcef7db69e13790b02bd471ce09dddf6</id>
<content type='text'>
Submitted by:	Lars Fredriksen
</content>
</entry>
<entry>
<title>Wire the page table before doing the vm_fault(). Fixes a panic that</title>
<updated>1995-02-10T22:36:11Z</updated>
<author>
<name>David Greenman</name>
<email>dg@FreeBSD.org</email>
</author>
<published>1995-02-10T22:36:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=914a63ebd41e9248eab70197c250250de1e9e38d'/>
<id>urn:sha1:914a63ebd41e9248eab70197c250250de1e9e38d</id>
<content type='text'>
happens when using gdb.

Submitted by:	John Dyson
</content>
</entry>
<entry>
<title>Fix security holes in sigreturn(), ptrace() and procfs.  sigreturn()</title>
<updated>1995-01-14T13:20:26Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>1995-01-14T13:20:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=20415301cdb107717cce8e836e6476346676af09'/>
<id>urn:sha1:20415301cdb107717cce8e836e6476346676af09</id>
<content type='text'>
attempted to check for insecure and fatal eflags and segment
selectors, but missed many cases and got the IOPL check back to
front.  The other syscalls didn't check at all.

sys_process.c, machdep.c:
Only allow PT_WRITE_U to write to the registers (ordinary and FP).

psl.h, locore.s, machdep.c:
Eliminate PSL_MBZ, PSL_MBO and PSL_USERCLR.  We are not supposed
to assume anything about the reserved bits.  Use PSL_USERCHANGE
and PSL_KERNEL instead.  Rename PSL_USERSET to PSL_USER.

exception.s:
Define a private label for use by doreti when returning to user
mode fails.

machdep.c:
In syscalls, allow changing only the eflags that can be changed on
486's in user mode (no longer attempt to allow benign IOPL changes;
allow changing the nasty PSL_NT; don't allow changing the i586
bits).

Don't attempt to check all the cases involving invalid selectors
and %eip's.  Just check for privilege violations and let the invalid
things cause a trap.

procfs_machdep.c:
Call the ptrace register functions to do all the work for reading
and writing ordinary registers and for single stepping.

trap.c:
Ignore traps caused by PSL_NT being set.  Previously, users could
cause a fatal trap in user mode by setting PSL_NT and executing an
iret, and a fatal trap in kernel mode by setting PSL_NT and making
a syscall.  PSL_NT was cleared too late and not in enough modes to
fix the problem.

Make all traps in user mode (except T_NMI) nonfatal.

Recover from traps caused by attempting to load invalid user
registers in doreti by restarting the traps so that they appear to
occur in user mode.
---

Fix bogons that I noticed while fixing the above:

psl.h:
Fix some comments.

Uniformize idempotency ifdef.

exception.s, machdep.c:
Remove rsvd[0-14].  rsvd0 hasn't been reserved since the 486 came
out.  Replace rsvd0 by `align'.  rsvd[0-11] used wrong (magic
non-unique) trap numbers.  Replace rsvd[1-14] by rsvd.

locore.s:
Enable alignment check flag on 486's and 586's.

machdep.c:
Use a better type for kstack[].

Use TFREGP() to find the registers.

Reformat ptrace functions from SEF to something closer to KNF.

procfs_machdep.c:
The wrong pointer to the registers got fixed as a side effect.

Implement reading and writing of FP registers.

/proc/*/*regs now work (only) for processes that are in memory.

Clean up comments.

trap.c, trap.h:
Remove unused trap types.
</content>
</entry>
<entry>
<title>While in the real world, I had a bad case of being swapped out for a lot of</title>
<updated>1994-09-25T19:34:02Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>1994-09-25T19:34:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bb56ec4a05a1131388e557b919e6ee6b2d0626c9'/>
<id>urn:sha1:bb56ec4a05a1131388e557b919e6ee6b2d0626c9</id>
<content type='text'>
cycles.  While waiting there I added a lot of the extra ()'s I have, (I have
never used LISP to any extent).  So I compiled the kernel with -Wall and
shut up a lot of "suggest you add ()'s", removed a bunch of unused var's
and added a couple of declarations here and there.  Having a lap-top is
highly recommended.  My kernel still runs, yell at me if you kernel breaks.
</content>
</entry>
</feed>
