Commit Graph

86770 Commits

Author SHA1 Message Date
hsu
8133d4eddb Pass the right function to callout_reset() for a compressed
TIME-WAIT control block.
2003-02-24 00:48:12 +00:00
jake
5c99d4e544 Use the direct mapping of IdlePTD setup in locore for proc0's page directory,
instead of allocating another page of kva and mapping it in again.  This was
likely an oversight in revision 1.174 (cut and paste from pmap_pinit).

Discussed with:	peter, tegge
Sponsored by:	DARPA, Network Associates Laboratories
2003-02-24 00:39:50 +00:00
grehan
5bd49ab382 Add apple partition map GEOM module 2003-02-24 00:16:51 +00:00
obrien
1625e4bdfe Make the 'a' parameter of bus_space_write_multi_stream_*() a const pointer. 2003-02-24 00:11:15 +00:00
tegge
762ff6ef1c Allow machines with one CPU and a valid mp table to boot an SMP kernel. 2003-02-23 23:49:57 +00:00
dan
f302079cd8 Add support for Peppercon ROL-F Card.
Submitted by: Sascha Holzeiter <sascha@root-login.org>
PR: 48559
2003-02-23 23:35:35 +00:00
marcel
0ae2956720 Use the correct size for reading and writing the PCI config space.
Reading the PCI config space with the wrong (larger) size is not
a problem in this case, but writing can be as it clobbers unrelated
registers. In this case the clobbering is for reserved fields, which
too is mostly harmless... for now. Hence, this change is mostly
preventive in nature.
2003-02-23 23:09:17 +00:00
tegge
2072a48a93 Sync new socket nonblocking/async state with file flags in accept().
PR:		1775
Reviewed by:	mbr
2003-02-23 23:00:28 +00:00
obrien
9e9a8e4f69 There is no reason to be cute with ntohl(). Just call it directly rather
than use a macro that tries to do conversions in place.

Compile tested on:	sparc64
2003-02-23 22:26:39 +00:00
imp
76e7d7e7b7 Explain what exca is. 2003-02-23 22:22:29 +00:00
jake
e12ad10b6b Previous commit missed a 1 that should be NGPTD, and an NPDEPG that should
be NPDEPTD.  Grumble.

Sponsored by:	DARPA, Network Associates Laboratories
2003-02-23 22:12:08 +00:00
obrien
5678186922 This commit was generated by cvs2svn to compensate for changes in r111368,
which included commits to RCS files with non-trunk default branches.
2003-02-23 21:58:31 +00:00
obrien
eaf1f0ff8c Import Linux's linux/include/asm-sparc64/bitopts.h.
This is taken from the 2.4.3 Linux sources as shipped on Red Hat 7.1 Alpha.
2003-02-23 21:58:31 +00:00
obrien
268e9045b3 Import Linux's linux/include/asm-sparc64/bitopts.h.
This is taken from the 2.4.3 Linux sources as shipped on Red Hat 7.1 Alpha.
2003-02-23 21:58:31 +00:00
gshapiro
99b99437f7 Follow the (good) trend of returning import files to vendor versions
where possible for easier future imports.
2003-02-23 21:58:16 +00:00
gshapiro
c25e5a60be This local FreeBSD mod isn't needed now that we have the freebsd* ostype
files.
2003-02-23 21:53:16 +00:00
chris
46357b9840 o Improve vocabulary/wording
o Expand on MAC policy enforcement on network interfaces
o Add cross-references to su(1) and setfsmac(8) where appropriate
o Comment out mmap revocation sysctls as they are a bit too experimental
o Add the standard BUGS section

Prompted by:	rwatson
Sponsored by:	DARPA, Network Associates Laboratories
2003-02-23 21:47:03 +00:00
des
4531e083d4 If more than one argument were given on the command line, interpret the
additional arguments as a series of architectures to build.  This is
useful for running subsets of a particular configuration.
2003-02-23 21:24:08 +00:00
jake
c614cef2af - Added macros NPGPTD, NBPTD, and NPDEPTD, for dealing with the size of the
page directory.
- Use these instead of the magic constants 1 or PAGE_SIZE where appropriate.
  There are still numerous assumptions that the page directory is exactly
  1 page.

Sponsored by:	DARPA, Network Associates Laboratories
2003-02-23 21:20:00 +00:00
mini
9318f6d82c Insert threads interrupted by a signal while running onto the run queue. 2003-02-23 21:15:25 +00:00
mini
dd3fb86399 Add signal logic to the build. 2003-02-23 21:14:08 +00:00
green
339a4ba4db It seems that sound(4)'s feeder routines don't need to allocate memory
without waiting, since they are called from a system-call context only.
This appears to fix all sorts of problems with open("/dev/dsp", O_WRONLY)
randomly returning ENXIO.

Found by:	cognet
2003-02-23 20:49:45 +00:00
obrien
d0bb7e7afb The rest of our platforms make bus_space_write_multi_stream_2's 'a' a
const pointer.
2003-02-23 20:42:32 +00:00
obrien
3965f1d79a Add an empty bus_space_unmap() like Alpha has. puc(4) uses it. 2003-02-23 19:54:16 +00:00
obrien
7501a40564 PAGE_SIZE is unsigned on all our platforms, and is a long on some.
So cast to u_long before printing out and use a matching specifier.

Tested on:	sparc64
2003-02-23 19:49:30 +00:00
obrien
1b31cacb04 Pass 'nodevice' onto the final output. 2003-02-23 19:40:45 +00:00
obrien
a5c4e25f0e Add adv_adj_endian_qdone_info() & adv_adj_scsiq_endian()
so this at least compiles on big-endian machines.
2003-02-23 19:16:53 +00:00
ru
919bdd6598 At least we don't need the whole <bsd.prog.mk> glue.
(I did test build the original change, but apparently
forgot to include it to LOCAL_PATCHES.  It happens.)
2003-02-23 19:15:55 +00:00
phk
bc0387ab5b NO_GEOM cleanup:
Move to "struct disk *" centered API.

Fix some minor nits.
2003-02-23 19:15:34 +00:00
silby
2f99c6cb31 Improve the security and performance of syncookies:
Security improvements:
- Increase the size of each syncookie secret from 32 to 128 bits
  in order to make brute force attacks on the secrets much more
  difficult.
- Always return the lowest order dword from the MD5 hash; this
  allows us to expose 2 more bits of the cookie and makes ACK
  floods which seek to guess the cookie value more difficult.

Performance improvements:
- Increase the lifetime of each syncookie from 4 seconds to 16
  seconds.  This increases the usefulness of syncookies during
  an attack.
- From Yahoo!: Reduce the number of calls to MD5Update; this
  results in a ~17% increase in cookie generation time here.

Reviewed by:	hsu, jayanth, jlemon, nectar
MFC After:	15 seconds
2003-02-23 19:04:23 +00:00
phk
479f597455 NO_GEOM cleanup:
Move ida driver to "struct disk *" centric api.

Retire major number 109.
2003-02-23 18:45:50 +00:00
phk
4ecb873996 Fix the detach code to actually detach the disk instance created
during attach.
2003-02-23 18:31:17 +00:00
phk
5d296f914c Remove a goto the very next statement. 2003-02-23 18:20:03 +00:00
phk
89e4bfc84d Mark major 102 unused now that the fla driver no longer needs a major number. 2003-02-23 18:12:41 +00:00
phk
af9c7adfc3 Bracket the kern.vnode sysctl in #ifdef notyet because it results
in massive locking issues on diskless systems.

It is also not clear that this sysctl is non-dangerous in its
requirements for locked down memory on large RAM systems.
2003-02-23 18:09:05 +00:00
dwmalone
0298089e64 A few improvements suggested by nectar. 2003-02-23 17:22:20 +00:00
dwmalone
dff9ad9d44 Under some unusual conditions, inetd can leak a open file discriptor
into a child process. Rather than closing the discriptors manually,
mark all discriptors as close-on-exec.

PR:		47694
Submitted by:	Max Okumoto <okumoto@ucsd.edu>
Obtained from:	NetBSD
MFC after:	2 weeks
2003-02-23 16:54:19 +00:00
dwmalone
1825d6d17d After calling login_getclass, be sure to call login_close so that
we don't leak memory. Only one of these two cases (reconfig) actually
causes a leak because the other is usually followed by an exec.

PR:		46845
Reviewed by:	David Wang <dsw@juniper.net>
MFC after:	2 weeks
2003-02-23 16:49:14 +00:00
sos
c5067989e2 Temporarily disable tagged queueing while I figure out why it broke. 2003-02-23 16:43:26 +00:00
sos
4134863978 Fix chipset setup problem on older ALI chips. 2003-02-23 16:36:21 +00:00
dwmalone
5cbd92e9a8 Add a section on different types of randomness, what the library
functions we provide are good for and how /dev/random fits into
this picture.

   Reviewed by:    markm
2003-02-23 16:28:58 +00:00
jlemon
b55b232427 Yesterday just wasn't my day. Remove testing delta that crept into the diff.
Pointy hat provided by: sam
2003-02-23 15:40:36 +00:00
sos
386a107f4e Fix timeout when using UDMA speeds, bad chip setup. 2003-02-23 15:05:04 +00:00
rwatson
3bf9482fa0 Add an implementation of strdup() to libkern. Allocated memory is of
type M_STRING, now defined in malloc.h.  Useful when string parsing
must occur using the kernel strsep() and we want to avoid toasting
the source string.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-02-23 14:30:17 +00:00
grehan
2e05ab323f Doh. Forgot to remove _KERNEL version. 2003-02-23 13:47:44 +00:00
phk
699d720e80 OK, I was too sleepy there...
Pointy hat over here!
2003-02-23 13:45:55 +00:00
nyan
d3b652a668 Add NOTES for pc98. 2003-02-23 13:34:21 +00:00
nyan
24d5b420f1 Move MD devices to <machine>/conf/NOTES. 2003-02-23 13:32:33 +00:00
nyan
f92296e8fd Merged from sys/dev/syscons/syscons.c revision 1.393. 2003-02-23 13:29:59 +00:00
nyan
ae2c0d1ce2 Fix compile error with FB_INSTALL_CDEV option. 2003-02-23 13:28:44 +00:00