Matt Jacob [Thu, 21 Feb 2002 01:56:08 +0000 (01:56 +0000)]
Fix a problem where a local loop disk logs out- and we get a PORT LOGGED
OUT status. We are, apparently, required to force the f/w to log back in
if we want to try and talk to that disk again. This means either issuing
a LOGIN LOCAL LOOP PORT mailbox command, or by issuing a LIP. I've elected
to issue a LIP because this has a better chance of waking up the disk which
clearly just crashed and burned.
These should not occur at all. If they do, they should be darned rare.
Peter Wemm [Wed, 20 Feb 2002 23:35:56 +0000 (23:35 +0000)]
Commit some infrastructure for turning on -Werror for kernel compiles.
It doesn't actually do it yet though. This adds a flag to config so
that we can exclude certain vendor files from this even when the rest
of the kernel has it on. make -DNO_WERROR would also bypass all of it.
Peter Wemm [Wed, 20 Feb 2002 22:25:54 +0000 (22:25 +0000)]
Pass me the pointy hat please. Be sure to return a value in a non-void
function. I've been running with this buried in the mountains of compiler
output for about a month on my desktop.
David E. O'Brien [Wed, 20 Feb 2002 19:41:54 +0000 (19:41 +0000)]
Allow for better control over the GCC front-end when building a cross
compiler.
* Undo the diking out of cross compiler logic from gcc.c rev 1.16.
* Add the `CROSS_STARTFILE_PREFIX' knob.
* Add our own definition of `STANDARD_INCLUDE_DIR'. This should have been
included in freebsd-native.h rev 1.5.
* Minimize a little bit more, things we dike out in the FREEBSD_NATIVE case.
Luigi Rizzo [Wed, 20 Feb 2002 17:15:57 +0000 (17:15 +0000)]
BUGFIX: make use of the pointer to the target of skipto rules,
so that after the first time we can follow the pointer instead
of having to scan the list.
This was the intended behaviour from day one.
Jonathan Lemon [Wed, 20 Feb 2002 16:47:11 +0000 (16:47 +0000)]
When expanding a syncache entry into a socket, inherit the socket options
from the current listen socket instead of the cached (and possibly stale)
TCB pointer.
Warner Losh [Wed, 20 Feb 2002 16:20:27 +0000 (16:20 +0000)]
Check the status of the card bridge first thing, rather than last in
the loop. This fixes the "my card is in the laptop on boot, but
doesn't attach" problem.
Add u_int16 prodext value in CISTPL_MANF_ID. This gets a fifth byte
when manufacturer id tuple length is 5. This change is for xe driver.
This is a dirty hack. But there is no better idea.
Andrew R. Reiter [Wed, 20 Feb 2002 14:30:02 +0000 (14:30 +0000)]
- Style.9 formatting fix; this commit is mostly white space related with
the next commit actually doing the:
return val; -> return (val);
changes. This commit was done in preparation for getting ``struct
modules'' locked down.
Crist J. Clark [Wed, 20 Feb 2002 10:31:01 +0000 (10:31 +0000)]
There is no reason to demand the administrator set 'natd_interface'
when running natd(8) out of the rc-files. It is perfectly valid for
the interface or alias address to be set in a natd(8) configuration
file, not on the command line. Also, loosen up the restrictions on
identifying an IP address argument in 'natd_interface.'
Fix the documentation, rc.conf(5), to reflect this change.
Take the bogus default for 'natd_interface' out of /etc/defaults/rc.conf.
David E. O'Brien [Wed, 20 Feb 2002 03:10:54 +0000 (03:10 +0000)]
Do not define a 'MD_EXEC_PREFIX'. It is not needed, not used in the
cross case, and just ends up causing "/usr/libexec" being added to the
library search path.
Also remove misleading comment about 'STANDARD_EXEC_PREFIX'. It is needed
if one does not set 'MD_EXEC_PREFIX'.
Robert Watson [Wed, 20 Feb 2002 00:11:57 +0000 (00:11 +0000)]
More cleanups relating to vm object allocation failure: make sure we
call VOP_CLOSE() with vp unlocked; clean up the return path a little,
in as much as our namei/vnode operation return paths can be cleared
up. For a return case that was apparently never taken, this sure
is ugly.
Tor Egge [Tue, 19 Feb 2002 23:19:30 +0000 (23:19 +0000)]
Add a page queue, PQ_HOLD, that temporarily owns pages with nonzero hold
count that would otherwise be on one of the free queues. This eliminates a
panic when broken programs unmap memory that still has pending IO from raw
devices.
Mike Silbersack [Tue, 19 Feb 2002 18:34:02 +0000 (18:34 +0000)]
Changes to make the OOM killer much more effective:
- Allow the OOM killer to target processes currently locked in
memory. These very often are the ones doing the memory hogging.
- Drop the wakeup priority of processes currently sleeping while
waiting for their page fault to complete. In order for the OOM
killer to work well, the killed process and other system processes
waiting on memory must be allowed to wakeup first.
Murray Stokely [Tue, 19 Feb 2002 12:10:40 +0000 (12:10 +0000)]
Resolve conflicts.
* Space the output consistently. (r1.19)
* Use the cleaner "-n" syntax instead of comparing against "". (r1.17)
* Fix arp invocation. (r1.13)
Warner Losh [Tue, 19 Feb 2002 07:05:22 +0000 (07:05 +0000)]
Put the stard/end adjustments back. They are needed. Also make start
== 0 a special case. I hope this fixes the real problem that phk and
others were seeing.
Mike Silbersack [Tue, 19 Feb 2002 03:15:28 +0000 (03:15 +0000)]
A few misc forkbomb defenses:
- Leave 10 processes for root-only use, the previous
value of 1 was insufficient to run ps ax | more.
- Remove the printing of "proc: table full". When the table
really is full, this would flood the screen/logs, making
the problem tougher to deal with.
- Force any process trying to fork beyond its user's maximum
number of processes to sleep for .5 seconds before returning
failure. This turns 2000 rampaging fork monsters into 2000
harmlessly snoozing fork monsters.
Andrew Gallatin [Tue, 19 Feb 2002 03:13:39 +0000 (03:13 +0000)]
MFi386: merge changes from i386/trap.c rev 1.212
If the credential on an incoming thread is correct, don't bother
reaquiring it. In the same vein, don't bother dropping the thread cred
when going to userland. We are guaranteed to need it when we come back,
(which we are guaranteed to do).
Julian Elischer [Tue, 19 Feb 2002 02:19:36 +0000 (02:19 +0000)]
Add 5 KSE syscalls. Two will be implemented with the next KSE
step and the others are reservations for coming code.
All will be stubbed in this kernel in the next commit.
This will allow people to easily make KSE binaries for userland testing
(the syscalls will be in libc) but they will still need a real KSE kernel
to test it. (libc looks in /sys to decide what it should add stubs for).
Julian Elischer [Tue, 19 Feb 2002 02:12:36 +0000 (02:12 +0000)]
Add the first shot at minimum KSE interface definitions.
This is to allow people to start playing with userland code.
I will also add some stub syscalls in a minute.