Commit Graph

57717 Commits

Author SHA1 Message Date
alc
c7a9a4fc15 Use the kthread API to create and destroy AIO daemons.
Submitted by:	jhb
2001-03-09 06:27:01 +00:00
jhb
f9e6abac73 Add a new informative KASSERT to ensure that a process is in the SRUN state
before we return it to cpu_switch().
2001-03-09 03:59:50 +00:00
jhb
8b63a08ab0 Document how to compile KTR into the kernel, tweak its behavior, and
examine the event logs in ddb(4).
2001-03-09 03:43:18 +00:00
jhb
2a04346236 Document the ithread_* API used to manage interrupt threads and their
list of handlers.
2001-03-09 03:30:20 +00:00
jhb
f3bae11011 Add 2001 to copyright. 2001-03-09 03:17:18 +00:00
babkin
095a13973a The new version of the daylight time saving support. This time it works
for any change of the time zone offset from GMT. To enable use the
option -s.
2001-03-09 03:14:09 +00:00
jhb
abd0a49968 - Add 2001 to copyright.
- Kthread functions return an error status, they don't set errno to an
  error status.
- Remove the BUGS section as all the bugs listed have been fixed now.
2001-03-09 03:09:30 +00:00
jhb
96fc368a01 The 'gdb' command works on the alpha as well as the i386. 2001-03-09 03:07:53 +00:00
obrien
5fba41da9b newfs with `-m 1'
This is needed even with `-o space' as the kernel decides to be "helpful"
and not really do space optimization.  Looking at src/sys/ufs/ffs/ffs_alloc.c
we see why:		if (fs->fs_minfree <= 5 ||
		            fs->fs_cstotal.cs_nffree >
		            (off_t)fs->fs_dsize * fs->fs_minfree / (2 * 100))
			            break;
	            log(LOG_NOTICE, "%s: optimization changed from SPACE to TIME\n"

I have picked `1' vs. `0' just incase some code somewhere has the assumption
the %free can never be `0'.

Helped with understanding why -m 1 made a different:	imp
2001-03-09 01:03:15 +00:00
sanpei
a8e0bfe6a6 Stick the I-O DATA PCLA/TE PC Card adapter entry in the right sort order. 2001-03-09 00:30:48 +00:00
brian
d2ab739e87 Talk a little more about the differences between PPPoE on FreeBSD & OpenBSD. 2001-03-09 00:12:09 +00:00
brian
20774849ad MAXPATHLEN -> PATH_MAX
Don't assume MAXHOSTNAMELEN includes the NUL
Correct a diagnostic
Use "localhost" in our prompt instead of ""
2001-03-08 23:51:50 +00:00
archie
7269664fad Fix potential crash caused by packets with bogus ACK's.
Reported by:	Fabien THOMAS <fabient@netasq.com>
2001-03-08 20:10:02 +00:00
bmilekic
4145a94569 Fix is a similar race condition as existed in the mbuf code. When we go
into an interruptable sleep and we increment a sleep count, we make sure
that we are the thread that will decrement the count when we wakeup.
Otherwise, what happens is that if we get interrupted (signal) and we
have to wake up, but before we get our mutex, some thread that wants
to wake us up detects that the count is non-zero and so enters wakeup_one(),
but there's nothing on the sleep queue and so we don't get woken up. The
thread will still decrement the sleep count, which is bad because we will
also decrement it again later (as we got interrupted) and are already off
the sleep queue.
2001-03-08 19:21:45 +00:00
iedowse
853980c173 It was possible for ip_forward() to supply to icmp_error()
an IP header with ip_len in network byte order. For certain
values of ip_len, this could cause icmp_error() to write
beyond the end of an mbuf, causing mbuf free-list corruption.
This problem was observed during generation of ICMP redirects.

We now make quite sure that the copy of the IP header kept
for icmp_error() is stored in a non-shared mbuf header so
that it will not be modified by ip_output().

Also:
- Calculate the correct number of bytes that need to be
  retained for icmp_error(), instead of assuming that 64
  is enough (it's not).
- In icmp_error(), use m_copydata instead of bcopy() to
  copy from the supplied mbuf chain, in case the first 8
  bytes of IP payload are not stored directly after the IP
  header.
- Sanity-check ip_len in icmp_error(), and panic if it is
  less than sizeof(struct ip). Incoming packets with bad
  ip_len values are discarded in ip_input(), so this should
  only be triggered by bugs in the code, not by bad packets.

This patch results from code and suggestions from Ruslan, Bosko,
Jonathan Lemon and Matt Dillon, with important testing by Mike
Tancsa, who could reproduce this problem at will.

Reported by:	Mike Tancsa <mike@sentex.net>
Reviewed by:	ru, bmilekic, jlemon, dillon
2001-03-08 19:03:26 +00:00
dwmalone
831901afd7 Make the wait for sendfile buffers interruptable. Stops one process
consuming them all and then getting stuck.

Reviewed by:	dg
Reviewed by:	bmilekic
Observed by:	Andreas Persson <pap@garen.net>
2001-03-08 16:28:10 +00:00
gallatin
7597b843e0 Take the KINFO_PROC_SIZE back down to 912 on alpha.
Since the compiler lays out the stuct so that pointers are naturally
(8-byte) aligned aligned, adding the int ki_layout didn't change the size of
the stuct; it just converted the alignment padding to a usable struct
field.
2001-03-08 15:17:38 +00:00
kato
4f7092532b Replaced p (undeclared) with curproc (after i386/isa/npx.c). 2001-03-08 14:25:51 +00:00
dec
6a881538c0 Submitted by: Ian Dowse <iedowse@maths.tcd.ie>, David Cross <dec@freebsd.org>
Reviewed by:	David Cross <dec@freebsd.org>, jkh <jkh@freebsd.org>
Approved by:	jkh <jkh@freebsd.org>
Obtained from:	Ian Dowse <iedowse@maths.tcd.ie>, David Cross <dec@freebsd.org>
We have been running this patch on a production NIS server for 2.5 weeks now.
Normally we would have ypserv die at least once a week, and often many times
a day.

This patch treats and error from select as zeroing out the FD_SET to indicate
that no fds are ready for reading.  This is safe because the rpc code
always re-inits the FDSET before calling select.
2001-03-08 13:57:41 +00:00
jkh
a6bf572ca6 Fix a paste-o which introduced a syntax error. 2001-03-08 10:41:40 +00:00
brian
c62886557e TUNSIFINFO now requires uid 0 to change the interface MTU.
Reviewed by:	Mark Knight <markk@knigma.org>
2001-03-08 10:33:30 +00:00
jkh
d17d484792 Fix some of the security profile messages to be more explanatory
and also obey most of the rules of english in their construction.

Add a help screen for the security menu which gives the user a rough idea
just what the various security profiles do.
2001-03-08 10:16:56 +00:00
obrien
f2343bb153 Move _PATH_DEFTAPE to <paths.h> to remove all the duplication of definitons,
and remove leading `r'(aw) from it.
2001-03-08 09:04:40 +00:00
kris
74c02eee4f MFS: Belatedly bump SHLIB_MAJOR corresponding to OpenSSL 0.9.6 2001-03-08 07:57:49 +00:00
jkh
928ab95b8d Change check_sign to proper "pkg_sign" reference.
Noted by:	Andrew Hesford <ajh3@chmod.ath.cx>
2001-03-08 02:26:33 +00:00
billf
2fb7c26395 zeropad mac address ouput
PR:		bin/25584
Submitted by:	David Xu <davidx@viasoft.com.cn>
Reviewed by:	wollman, billf
2001-03-08 01:52:49 +00:00
mdodd
d7a2c22e1e Move configuration of work_memory to oltr_init() rather than
oltr_pci_attach().  This only affects the OC-3139 and OC-3540.

MFC candidate.

PR:		kern/24074
2001-03-08 01:38:58 +00:00
tmm
526876863d Make the SYSCTL_OUT handlers sysctl_old_user() and sysctl_old_kernel()
more robust. They would correctly return ENOMEM for the first time when
the buffer was exhausted, but subsequent calls in this case could cause
writes ouside of the buffer bounds.

Approved by:	rwatson
2001-03-08 01:20:43 +00:00
tmm
12a08323f2 Fix two bugs in null suffix handling. Both occured only after the suffix
list was cleared.
Rules with null suffixes would not be rebuilt when the suffixes were
added again.
Adding null suffix rules would fail when a rule for the same source was
declared before the suffix list was cleared.

PR:		23328, 24102
Reviewed by:	will
Approved by:	rwatson
2001-03-08 00:55:08 +00:00
wpaul
1fcaee7fa4 Remember to actually program the MAC address into the unicast filter
in vr_init(). The VIA Rhine chip happens to be able to automatically
read its station address from the EEPROM automatically when reset,
so you don't need to program the filter if you want to keep using the
factory default address, but if you want to change it with "ifconfig vr0
ether xx:xx:xx:xx:xx:xx" then we need to manually set it in the init
routine.
2001-03-07 18:52:22 +00:00
iwasaki
b7b587b172 Bring our local hack for wakeup back from
sys/contrib/dev/acpica/Subsystem/Hardware/Attic/hwxface.c to the proper
location after AcpiEnterSleepState().

 - Wait for the WAK_STS bit
 - Evaluate the _WAK method and check result code
2001-03-07 15:22:14 +00:00
sanpei
8d8af7f2f4 Add GVC1601 - Rockwell V.34 Plug & Play Modem
PR:		kern/25204
Submitted by:	Victor Ivanov <v0rbiz@icon.bg>
2001-03-07 14:27:56 +00:00
sanpei
b8e65b01f8 Add IOD0081 - I-O DATA DEVICE,INC. IFML-560
PR:		kern/25173
Submitted by:	Yohsuke Fujikawa <yohsuke@mx2.nisiq.net>
2001-03-07 14:19:55 +00:00
sanpei
80f98f35a2 add PC-Card entry
Corega KK Wireless LAN PCCA-11
	NEC WL11C (PC-WL/11C)
	NEC Corporation PK-WL001

Submitted by:	[bsd-nomads:15128] [bsd-nomads:15159]
		[bsd-nomads:15176] [bsd-nomads:15283]
		YAMAMOTO Shigeru <shigeru@iij.ad.jp>
		NAKAGAWA Yoshihisa <y-nakaga@nwsl.mesh.ad.jp>
2001-03-07 13:30:44 +00:00
sanpei
8a9b3f9200 add PC-Card entry, Panasonic Flash ATA BN-040ABP3
pccardd[358]: Card "Panasonic"("ATA") [BN-040AB-M   1.00        ] [(null)]
              matched "Panasonic" ("ATA") [BN-040AB-M ] [(null)]
ata2 at port 0x240-0x24f irq 10 slot 0 on pccard0
ad4: 39MB <BN-040AB-M 1.00                         >
[625/8/16] at ata2-master BIOSPIO

Submitted by:	[bsd-nomads:15261]
		<m-kawata@cd.jp.nec.com>
2001-03-07 13:23:08 +00:00
ru
ced286fdd0 MFS: update HISTORY, synch dates. 2001-03-07 12:52:53 +00:00
peter
2cee486f7f Properly detach at startup. We could be passing revoked fd's to
child processes or starting children with no fd 0 (stdin) at all etc.
This is currently breaking on hub.freebsd.org.
2001-03-07 10:38:46 +00:00
dcs
f18d132785 Goodbye vn, welcome md. 2001-03-07 09:42:41 +00:00
ru
24357bd9f5 Replace custom type of comments here too. 2001-03-07 09:26:18 +00:00
dmlb
62ac5f3713 replace the custom type of comments (`'\"'') with the standard one (`.\" '').
remove the duplicate $FreeBSD$ tag.

Submitted by:	ru
2001-03-07 09:17:26 +00:00
scottl
cf99267396 Set si_iosize_max to 64K, even though the adapter seems to be able to do more.
This puts us safely in line with Adaptec documentation and shouldn't really
affect anything.

MFC candidate for 4.3
2001-03-07 08:37:49 +00:00
sos
b2bed05051 Update woith latest chipsets and options 2001-03-07 08:12:24 +00:00
jkh
ed3cf69b79 Set NO_X during release build so the doc ports don't try to build XFree86. 2001-03-07 07:39:32 +00:00
mckusick
f01ec099d7 Fixes to track snapshot copy-on-write checking in the specinfo
structure rather than assuming that the device vnode would reside
in the FFS filesystem (which is obviously a broken assumption with
the device filesystem).
2001-03-07 07:09:55 +00:00
mckusick
2679d9c3cf Bitch more loudly when someone botches changes to kinfo_proc
in the hopes that they will actually *read* the comment above
it and *follow* the instructions so as to cause all the rest
of us less a lot less grief.
2001-03-07 06:52:12 +00:00
mckusick
6f7fda292b Apply i386 fix in 1.32 for the alpha too. 2001-03-07 06:48:41 +00:00
des
8e7ac80ae9 If SIGINFO is received during the transfer, print a status line similar
to the summary shown at the end of the transfer.

Some days, I really hate Unix...

Suggested by:	cracauer
2001-03-07 05:33:50 +00:00
jhb
7520059833 Unrevert the pmap_map() changes. They weren't broken on x86.
Sense beaten into me by:	peter
2001-03-07 05:29:21 +00:00
jhb
7d66948cf0 - Don't hold the proc lock across VREF and the fd* functions to avoid lock
order reversals.
- Add some preliminary locking in the !RF_PROC case.
- Protect p_estcpu with sched_lock.
2001-03-07 05:21:47 +00:00
des
f37ee25c50 Don't remember an EINTR, since the caller may want to restart the call. 2001-03-07 05:12:14 +00:00