Commit Graph

99948 Commits

Author SHA1 Message Date
Garance A Drosehn
b7d4457608 Minor stylistic improvements in the SPECIAL_INSTALLCHECKS section, mainly
to reduce the number of wrapped lines.

Suggested by:	bde
2004-03-04 18:41:35 +00:00
Bruce A. Mah
9203287aef Rewrite TCP segment reassembly note to mention SA-04:04, note MFC,
relocate to security advisory section.
2004-03-04 17:06:30 +00:00
Takanori Watanabe
fe27a95e90 Make unprivilaged user can see battery info. 2004-03-04 17:03:49 +00:00
Søren Schmidt
c5df0d743e Only setup sii_reset on sii311[24]. 2004-03-04 16:39:59 +00:00
Peter Pentchev
dc980a6553 Forced commit to note that last commit was...
Approved by:	silence on -audit
2004-03-04 15:54:34 +00:00
Peter Pentchev
c0f7cd1a2a Make rpc.lockd bind to a reserved port, since there are NFS clients
which ignore NLM requests not coming from a reserved port.

PR:		56500
Submitted by:	Jonathan Lennox <lennox@cs.columbia.edu>
MFC after:	1 week
2004-03-04 15:52:28 +00:00
Mike Makonnen
662713f2a8 Rev. 1.32 moved a comment to the wrong line. The hack refered to
in the comment applies to a decision that needs to be made in relation
to the year 2000.

In fact, that statement probably should be changed to be
more generic (getting the year from the current time perhaps). Otherwise,
starting in 2069 two digit year conversions in date(1) will start assuming
1900 instead of 2000. hehe.
2004-03-04 15:46:14 +00:00
Thomas Quinot
71fe368a83 Use auto-sense data provided by the lowlevel ATA code. 2004-03-04 15:37:39 +00:00
Hajimu UMEMOTO
e1c8270fe7 move in6_addmulti()/in6_delmulti() into mld6.c
Obtained from:	KAME
2004-03-04 15:07:42 +00:00
Bruce M Simpson
5f5a4d72d6 Nursemaid: Fix tinderbox builds by removing the shadowing of the global
preprocessor macro DEBUG. DEBUG() -> CTAU_DEBUG().
2004-03-04 14:16:12 +00:00
Poul-Henning Kamp
1e0e79c993 Just because the timecounter reads the same value on two samples
after each other doesn't mean that nothing happened.
2004-03-04 14:14:23 +00:00
Hideyuki KURASHINA
302799e4e8 &release.current; security fix branch does not exist, it should be
&release.prev; security fix branch.
2004-03-04 13:59:45 +00:00
Bruce M Simpson
48fbb40803 Add an MLINKS entry for radiotap(9). 2004-03-04 12:54:22 +00:00
Bruce M Simpson
3f3f4cdba2 Initial import of documentation for net80211 interface code.
Of particular interest here is the ieee80211_radiotap(9) man page.

TODO: Flesh out ieee80211_node.9, ieee80211_proto.9.

Submitted by:	bms (with help from Darron Broad)
2004-03-04 12:52:10 +00:00
Hajimu UMEMOTO
d483b7825e missing splx().
Obtained from:	KAME
MFC after:	3 days
2004-03-04 12:08:25 +00:00
Bruce Evans
623089f4ee Fixed the XXX'ed namespace pollution in rev.1.54 by using
<machine/limits.h> and __CHAR_BIT instead of <sys/limits.h> and CHAR_BIT.
some reason I didn't use the BSD spelling NBBY.
2004-03-04 11:35:30 +00:00
Bruce Evans
47e600b575 Don't manually optimize for 20 year old compilers by casting to u_int
to get a free check for negative ints.  Rev.1.35 got my request to
remove the cast mostly backwards.
2004-03-04 11:20:02 +00:00
Bruce Evans
92babce456 Fixed some style bugs (mainly misformatting, and pointers to `struct thread'
named p).
2004-03-04 11:11:59 +00:00
Bruce Evans
9e7514ca3a Fixed insertion sort errors in includes and prototypes. This was more
than a style bug for the includes -- queue.h is a prerequisite for
_lock.h and _mutex.h but was included after them.

Removed bogus prototype for fget_locked().  The prototype was originally
needed to support K&R but was bogotified by converting the function header
to new-style.
2004-03-04 10:56:29 +00:00
Pawel Jakub Dawidek
32d7144dbc Correct year in copyrights. 2004-03-04 10:22:42 +00:00
Bruce Evans
61ecb14af6 Record exactly where this file was copied from. It wasn't repo-copied so
this is not very obvious.

Fixed some style bugs (mainly missing parentheses around return values).
2004-03-04 10:18:17 +00:00
Bruce Evans
c8564ad433 Fixed some style bugs (mainly English usage errors in comments). 2004-03-04 09:56:29 +00:00
Bruce Evans
01e3f3ae4f Fixed some style bugs (mainly misplaced comments, and totally disordered
declarations in acct_process()).
2004-03-04 09:47:09 +00:00
Bruce Evans
dcbcd518e0 Minor style fixes. In vm_daemon(), don't fetch the rss limit long before
it is needed.
2004-03-04 09:36:46 +00:00
Bruce Evans
9565bbf3b1 Improved the description of the installkernel targets.
Don't hide what we do to force failures for the installkernel targets
or other targets.
2004-03-04 09:14:30 +00:00
Mike Makonnen
901912aa26 Document the virecover_enable knob.
From the PR:
	Certain MTA configurations mean that the notifications from
	virecover keep bouncing; so here's a patch to allow administrators
	to turn them off.

PR:		conf/54910
Reminded by:	ru
2004-03-04 08:25:53 +00:00
MIHIRA Sanpei Yoshiro
d7bd2883ec Sync to 1.165 of usbdevs 2004-03-04 07:22:30 +00:00
MIHIRA Sanpei Yoshiro
a439ea6c55 Add support SimpleTech UCF-100 USB CompactFlash reader(OnSpec Electronic, Inc.)
PR:		kern/63619
Submitted by:	Greg Rivers <gcr@sa.fedex.com>
MFC after:	1 week
2004-03-04 07:20:48 +00:00
MIHIRA Sanpei Yoshiro
3a746efdd0 Add support PLANEX COMMUNICATIONS Inc. GN-1200TC (8169S) 2004-03-04 06:42:46 +00:00
Nate Lawson
4ed391b8d7 Fix an off-by-one error and rework our EC space handler. Writing to address
0xFF would fail previously as AE_BAD_PARAMETER.  It's unknown if this caused
any actual problems.
2004-03-04 05:58:50 +00:00
Nate Lawson
d64168a5a2 Part 2 of Project Evil: Pretend to be Windows 2000 for buggy ASL that
always expects to be running on some MS OS.  A survey of ASL shows that
this is the 2nd most common expected OS value.  (1st is Win98 and we don't
emulate its buggy ACPI support.)  Our ACPI support is similar to Win2k,
also.  Put this behavior under ACPICA_PEDANTIC so we can get back to our
previous behavior for OSV testing.
2004-03-04 05:57:41 +00:00
Maxim Konovalov
d6567e01c4 Add NetBSD 1.6.2. 2004-03-04 05:34:29 +00:00
Nate Lawson
c181b89bc1 Don't disable Cx support and throttling on machines with a P_BLK_LEN != 6
even though the spec mandates this.  Some have a value of 5 to indicate
throttling + C2 and some have 7 to indicate an extra C3 state.  Support
throttling if the value is >= 4, C2 for >= 5, and C3 for >= 6.
2004-03-04 05:17:52 +00:00
Nate Lawson
4e376d58dc Add a "quirks" value to disable quirks handling for a given boot.
Also, disable quirks if booting with a custom DSDT.  Add a quirk
to disable loading ACPI so known bad systems can be completely
blacklisted.
2004-03-04 04:42:59 +00:00
Bruce M Simpson
c203da27d5 Add a new option to mountd(8), -p <port>. This allows the user to specify
a known port for use in firewall rulesets; otherwise the port is chosen
at run-time by bindresvport().

MFC after:	1 week
2004-03-04 04:42:52 +00:00
Alan Cox
45ad3d59ed Remove some long unused definitions. 2004-03-04 04:26:14 +00:00
Robert Watson
0b759971a2 Remove unneeded label 'done2' from socket(). We now grab Giant
only around socreate(), and don't need it for file descriptor
accesses.

Submitted by:	sam
2004-03-04 01:57:48 +00:00
Christian Brueffer
0e9efd1904 s/considred/considered/ 2004-03-04 00:52:16 +00:00
Bill Paul
a787e5ecf8 Add sanity checks to the ndis_packet and ndis_buffer pool handling
routines to guard against problems caused by (possibly) buggy drivers.

The RealTek 8180 wireless driver calls NdisFreeBuffer() to release
some of its buffers _after_ it's already called NdisFreeBufferPool()
to destroy the pool to which the buffers belong. In our implementation,
this error causes NdisFreeBuffer() to touch stale heap memory.

If you are running a release kernel, and hence have INVARIANTS et al
turned off, it turns out nothing happens. But if you're using a
development kernel config with INVARIANTS on, the malloc()/free()
sanity checks will scribble over the pool memory with 0xdeadc0de
once it's released so that any attempts to touch it will cause a
trap, and indeed this is what happens. It happens that I run 5.2-RELEASE
on my laptop, so when I tested the rtl8180.sys driver, it worked fine
for me, but people trying to run it with development systems checked
out or cvsupped from -current would get a page fault on driver load.

I can't find any reason why the NDISulator would cause the RealTek
driver to do the NdisFreeBufferPool() prematurely, and the same driver
obviously works with Windows -- or at least, it doesn't cause a crash:
the Microsoft documentation for NdisFreeBufferPool() says that failing
to return all buffers to the pool before calling  NdisFreeBufferPool()
causes a memory leak.

I've written to my contacts at RealTek asking them to check if this
is indeed a bug in their driver. In the meantime, these new sanity checks
will catch this problem and issue a warning rather than causing a trap.
The trick is to keep a count of outstanding buffers for each buffer pool,
and if the driver tries to call NdisFreeBufferPool() while there are still
buffers outstanding, we mark the pool for deletion and then defer
destroying it until after the last buffer has been reclaimed.
2004-03-04 00:17:14 +00:00
Dag-Erling Smørgrav
86b5e56351 Use different dummy wait channels to avoid panic in msleep().
Reviewed by:	jhb
2004-03-03 23:03:18 +00:00
Garance A Drosehn
8dcb5306ef [this is just a forced commit to say:] The time_t-specific safety measure
added by the sparc64_installcheck target is mostly from Marcel, although
it includes some adjustments of my own...
2004-03-03 22:56:41 +00:00
Pawel Jakub Dawidek
a88ae49f98 - Remove d_valid field, we can use d_consumer field to check if disk
is valid.
- Use SYSCTL_DECL() instead of using own, ugly extern.
2004-03-03 22:29:24 +00:00
Pawel Jakub Dawidek
bf25fb037e Add regression tests for geom_concat class. 2004-03-03 21:52:49 +00:00
Johan Karlsson
496ba967ae Make this WARNS=2 clean by:
- including <timeconv.h> to get _long_to_time prototype
	- removing an unused variable

Bump WARNS to it keep clean.

Approved by:	ume on ipfw@
2004-03-03 20:21:15 +00:00
Garance A Drosehn
2c7b777c65 (that should be: "assuming NO major problems are found", of course...)
Also note that these three files are intended to be short-term aids for
making this specific transition.  They will probably disappear after
5.3-release (although the installworld_*k scripts do include some
general-purpose ideas that we might want to consider at a later date).
2004-03-03 19:48:52 +00:00
Garance A Drosehn
afc6f08629 Commit the first set of files for changing time_t on freebsd/sparc64
from a 32-bit value to a 64-bit value.  This commit does not actually
change anything.  It merely provides instructions, scripts, and a safety
measure in Makefile.inc1 for people who want to make the change.

The real change to 64-bit time_t's on sparc64 is scheduled to happen
on March 10th, assuming that so major problems are found between now
and then by early-adopters.

Reviewed by:	freebsd-sparc64
2004-03-03 19:36:20 +00:00
Nate Lawson
c310653ea1 Change to acpi_{Get,Set}Integer to provide both methods. Convert all
callers to the new API.

Submitted by:	Mark Santcroos <marks@ripe.net>
2004-03-03 18:34:42 +00:00
Bill Paul
db2585fd12 Add proper support for DbgPrint(): only print messages if bootverbose
is set, since some drivers with debug info can be very chatty.

Also implement DbgBreakPoint(), which is the Windows equivalent of
Debugger(). Unfortunately, this forces subr_ntoskrnl.c to include
opt_ddb.h.
2004-03-03 17:57:05 +00:00
Ruslan Ermilov
38639d5191 Fixed "make clean". 2004-03-03 17:04:49 +00:00
Nate Lawson
e2a643ee75 Add acpi_video(4) man page.
PR:
Submitted by:	Mark Santcroos <marks@ripe.net>
Reviewed by:
Approved by:
Obtained from:
MFC after:
2004-03-03 16:34:03 +00:00