]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoFix build: s/mkunzip.8/mkuzip.8/
marcel [Sun, 12 Sep 2004 00:32:35 +0000 (00:32 +0000)]
Fix build: s/mkunzip.8/mkuzip.8/

19 years agoRemove unneeded TX channel wakeup from vge_txeof(). This was put
wpaul [Sat, 11 Sep 2004 22:13:25 +0000 (22:13 +0000)]
Remove unneeded TX channel wakeup from vge_txeof(). This was put
there for testing and forgotten. It's not really needed, and taking
it out saves a register access.

19 years agoCurrently when ipfw(8) generates the micro-instructions for rules which
csjp [Sat, 11 Sep 2004 19:44:29 +0000 (19:44 +0000)]
Currently when ipfw(8) generates the micro-instructions for rules which
contain O_UID, O_GID and O_JAIL opcodes, the F_NOT or F_OR logical
operator bits get clobbered. Making it impossible to use the ``NOT'' or
``OR'' operators with uid, gid and jail based constraints.

The ipfw_insn instruction template contains a ``len'' element which
stores two pieces of information, the size of the instruction
(in 32-bit words) in the low 6 bits of "len" with the 2 remaining
bits to implement OR and NOT.

The current code clobbers the OR and NOT bits by initializing the
``len'' element to the size, rather than OR'ing the bits. This change
fixes this by changing the initialization of cmd->len to an OR operation
for the O_UID, O_GID and O_JAIL opcodes.

This may be a MFC candidate for RELENG_5.

Reviewed by: andre
Approved by: luigi
PR: kern/63961 (partially)

19 years agoSystem maps are prohibited from mapping vnode-backed objects. Take
alc [Sat, 11 Sep 2004 18:49:59 +0000 (18:49 +0000)]
System maps are prohibited from mapping vnode-backed objects.  Take
advantage of this restriction to avoid acquiring and releasing Giant when
wiring pages within a system map.

In collaboration with: tegge@

19 years agoNormalize the manpage.
ru [Sat, 11 Sep 2004 18:39:01 +0000 (18:39 +0000)]
Normalize the manpage.

Reviewed by: sobomax

19 years agoNormalize the makefile.
ru [Sat, 11 Sep 2004 18:38:26 +0000 (18:38 +0000)]
Normalize the makefile.

Reviewed by: sobomax

19 years agoFix a problem that shows up if less than the full complement of
phk [Sat, 11 Sep 2004 17:58:53 +0000 (17:58 +0000)]
Fix a problem that shows up if less than the full complement of
lock sectors are defined ("number_of_keys" argument to gbde init being
less than 4 in the default compile).

19 years agoRespect that G_BDE_MAXKEYS is a compile time variable.
phk [Sat, 11 Sep 2004 17:57:51 +0000 (17:57 +0000)]
Respect that G_BDE_MAXKEYS is a compile time variable.

19 years agoAuto generate device listings for the following drivers: snd_csa(4) and
simon [Sat, 11 Sep 2004 15:26:58 +0000 (15:26 +0000)]
Auto generate device listings for the following drivers: snd_csa(4) and
snd_gusc(4).

MFC after: 3 days

19 years ago- Add snd_csa(4) and snd_gusc(4).
simon [Sat, 11 Sep 2004 15:20:48 +0000 (15:20 +0000)]
- Add snd_csa(4) and snd_gusc(4).

19 years agonge(4) works on alpha as well
brueffer [Sat, 11 Sep 2004 15:18:35 +0000 (15:18 +0000)]
nge(4) works on alpha as well

MFC after: 3 days

19 years agoMake a warning less cryptic.
simon [Sat, 11 Sep 2004 15:14:13 +0000 (15:14 +0000)]
Make a warning less cryptic.

19 years agoAdd a HARDWARE section which lists supported devices.
simon [Sat, 11 Sep 2004 15:00:07 +0000 (15:00 +0000)]
Add a HARDWARE section which lists supported devices.

19 years agoOne more round on the H/W supported checksum code: Fix NICs that can't do
mlaier [Sat, 11 Sep 2004 11:18:25 +0000 (11:18 +0000)]
One more round on the H/W supported checksum code: Fix NICs that can't do
the pseudo header. We really need the TCP packet length here. This happens
to end up in ip->ip_len in tcp_input.c, but here we should get it from the
len function variable instead.

Submitted by: yongari
Tested by: Nicolas Linard, yongari (sparc64 + hme)
MFC after: 5 days

19 years agoRevert the previous round of changes to td_pinned. The scheduler isn't
scottl [Sat, 11 Sep 2004 10:07:22 +0000 (10:07 +0000)]
Revert the previous round of changes to td_pinned.  The scheduler isn't
fully initialed when the pmap layer tries to call sched_pini() early in the
boot and results in an quick panic.  Use ke_pinned instead as was originally
done with Tor's patch.

Approved by: julian

19 years agoRemove orphaned comment about Meta data.
glebius [Sat, 11 Sep 2004 08:59:06 +0000 (08:59 +0000)]
Remove orphaned comment about Meta data.

19 years agoRemoval of the DA_OLD_QUIRKS option should be in "Disks and Storage"
hrs [Sat, 11 Sep 2004 08:28:25 +0000 (08:28 +0000)]
Removal of the DA_OLD_QUIRKS option should be in "Disks and Storage"
section.

Pointed out by: Xin LI (delphij at frontfree dot net)

19 years agoAdd nge. (I've used one for about a week in an XP1000.)
alc [Sat, 11 Sep 2004 07:26:50 +0000 (07:26 +0000)]
Add nge.  (I've used one for about a week in an XP1000.)

19 years agoAdd a threadcount field which we will need later for device removal
phk [Sat, 11 Sep 2004 07:09:48 +0000 (07:09 +0000)]
Add a threadcount field which we will need later for device removal
cleanup.  Adding it now and MT5'ing will preserve binary compatibility
if this code is later MFC'ed.

MT5 candidate.

19 years agoFix build if both of BKTR_USE_FREEBSD_SMBUS and BKTR_NEW_MSP34XX_DRIVER are
dwhite [Sat, 11 Sep 2004 04:32:55 +0000 (04:32 +0000)]
Fix build if both of BKTR_USE_FREEBSD_SMBUS and BKTR_NEW_MSP34XX_DRIVER are
defined.

Thanks to Damian Gerow <dgerow@afflictions.org> for pointing out this problem.
RELENG_5 candidate.

19 years agoAdd two spare fields to struct resource for some planned enhacenments
imp [Sat, 11 Sep 2004 04:28:46 +0000 (04:28 +0000)]
Add two spare fields to struct resource for some planned enhacenments
to make it possible to merge them w/o changing the size of struct resource
which some drivers unfortunately still need to know.

19 years agoDouble the number of kernel page tables for amd64 and for i386/PAE. The old
scottl [Sat, 11 Sep 2004 01:31:26 +0000 (01:31 +0000)]
Double the number of kernel page tables for amd64 and for i386/PAE.  The old
value was only enough for 8GB of RAM, the new value can do 16GB.  This still
isn't optimal since it doesn't scale.  Fixing this for amd64 looks to be
fairly easy, but for i386 will be quite difficult.

Reviewed by: peter

19 years agoRemove unneeded VGE_UNLOCK() in vge_detach().
wpaul [Sat, 11 Sep 2004 01:07:39 +0000 (01:07 +0000)]
Remove unneeded VGE_UNLOCK() in vge_detach().

19 years agoWhitespace fix
julian [Sat, 11 Sep 2004 00:33:51 +0000 (00:33 +0000)]
Whitespace fix

MFC after: 2 days

19 years agoTry committing from the right tree this time
julian [Sat, 11 Sep 2004 00:11:09 +0000 (00:11 +0000)]
Try committing from the right tree this time
MFC after: 2 days

19 years agoo Print more info in the verbose mode;
sobomax [Fri, 10 Sep 2004 23:16:05 +0000 (23:16 +0000)]
o Print more info in the verbose mode;

o use zlib(3) function which computes maximum length of the output
  buffer instead of rolling own version;

o allow size of input file to be not multiple of cluster size by applying
  zero padding.

19 years agoAdd vge(4) to the Hardware Notes.
simon [Fri, 10 Sep 2004 23:10:03 +0000 (23:10 +0000)]
Add vge(4) to the Hardware Notes.

19 years agoMake up my mind if cpu pinning is stored in the thread structure or the
julian [Fri, 10 Sep 2004 22:28:33 +0000 (22:28 +0000)]
Make up my mind if cpu pinning is stored in the thread structure or the
scheduler specific extension to it. Put it in the extension as
the implimentation details of how the pinning is done needn't be visible
outside the scheduler.

Submitted by: tegge  (of course!)   (with changes)
MFC after: 3 days

19 years agoClarify/extend in several places and make sure that everything matches reality.
sobomax [Fri, 10 Sep 2004 22:26:31 +0000 (22:26 +0000)]
Clarify/extend in several places and make sure that everything matches reality.

19 years agoBump WARNS level to 6.
trhodes [Fri, 10 Sep 2004 21:34:46 +0000 (21:34 +0000)]
Bump WARNS level to 6.

Submitted by: keramida
Tested on: i386, sparc64 (panther)

19 years agoAdd some code to allow threads to nominat a sibling to run if theyu are going to...
julian [Fri, 10 Sep 2004 21:04:38 +0000 (21:04 +0000)]
Add some code to allow threads to nominat a sibling to run if theyu are going to sleep.

MFC after: 1 week

19 years agoAdd a manual page for the vge(4) driver.
wpaul [Fri, 10 Sep 2004 20:58:38 +0000 (20:58 +0000)]
Add a manual page for the vge(4) driver.

19 years agoAdd device driver support for the VIA Networking Technologies
wpaul [Fri, 10 Sep 2004 20:57:46 +0000 (20:57 +0000)]
Add device driver support for the VIA Networking Technologies
VT6122 gigabit ethernet chip and integrated 10/100/1000 copper PHY.
The vge driver has been added to GENERIC for i386, pc98 and amd64,
but not to sparc or ia64 since I don't have the ability to test
it there. The vge(4) driver supports VLANs, checksum offload and
jumbo frames.

Also added the lge(4) and nge(4) drivers to GENERIC for i386 and
pc98 since I was in the neighborhood. There's no reason to leave them
out anymore.

19 years agoAdd two spare elements for planned but not yet implemented stuff related
phk [Fri, 10 Sep 2004 20:49:30 +0000 (20:49 +0000)]
Add two spare elements for planned but not yet implemented stuff related
to device driver unloading.  Adding these two now and MT5'ing them will
allow us to preserve binary compatibility on RELENG_5 when these facilities
are MFC'ed.

MT5 Candiate.

19 years agoAdd mkuzip(8), non-GPL utility to compress filesystem images for use with
sobomax [Fri, 10 Sep 2004 20:17:31 +0000 (20:17 +0000)]
Add mkuzip(8), non-GPL utility to compress filesystem images for use with
geom_uzip module. This is based on utility I wrote some 3 years ago for a
hack for md(4), which functionally was close to what geom_uzip does today.

Since I don't have a time to test that it compiles/works on other arches,
stick it to i386 only. Will do it later.

Unlike original cloop util, this one embedds FreeBSD-compatible shell code
into the generated image, not Linux one. Unfortunately severe space
restriction imposed by the CLOOP format doesn't allow to put conditional
code which will work both on Linux and FreeBSD. In fact it was quite a
challenge to fit necessary FreeBSD code into 127 bytes. ;-)

19 years agoFix oversight reported by Norikatsu Shigemura for the "sym" driver
se [Fri, 10 Sep 2004 19:35:44 +0000 (19:35 +0000)]
Fix oversight reported by Norikatsu Shigemura for the "sym" driver
(which was derived from the "ncr" driver) and add a MODULE_DEPEND
on "cam".

MT5 candidate, IMHO.
MFC after: 1 week

19 years agoAdd netrate (netreceive, netsend), a tool for generating (and sinking)
rwatson [Fri, 10 Sep 2004 19:09:50 +0000 (19:09 +0000)]
Add netrate (netreceive, netsend), a tool for generating (and sinking)
UDP packets of specified size at a fixed rate.  I've been using this for
netperf-related testing.

19 years agoMake it depend on PCI as well.
mjacob [Fri, 10 Sep 2004 18:39:02 +0000 (18:39 +0000)]
Make it depend on PCI as well.

Submitted by: Stefan eSSer

19 years agoMake sym depend, as a module, on cam.
mjacob [Fri, 10 Sep 2004 17:57:33 +0000 (17:57 +0000)]
Make sym depend, as a module, on cam.

Submitted by:"Norikatsu Shigemura" <nork@FreeBSD.org>

19 years agoRemove the debugging tunable, it was not being used.
trhodes [Fri, 10 Sep 2004 15:14:50 +0000 (15:14 +0000)]
Remove the debugging tunable, it was not being used.
Enable first match by default.[1]

We should: rwatson [1]

19 years agoI found "portsdb -u" dumps core with recent INDEX file, and this is
kuriyama [Fri, 10 Sep 2004 14:45:00 +0000 (14:45 +0000)]
I found "portsdb -u" dumps core with recent INDEX file, and this is
caused by refering broken (uninitialized?) pointer which is retrieved
from __bt_new() (and from mpool_new()).

I don't know why this linp[0] is read before stored because this
should be controlled by .lower and .upper member of PAGE structure
which are correctly initialized.

But this workaround fixes the problem on my environment and this
module has #ifdef PURIFY option which initializes new and reused
memory from mpool by memset(p, 0xff, size) like as I did.

Please feel free to fix the real bug instead of my workaround.

19 years agoSync with recent English versions
den [Fri, 10 Sep 2004 13:56:41 +0000 (13:56 +0000)]
Sync with recent English versions

MFC after: 2 days

19 years agoo Initialize a local variable and make gcc happy.
maxim [Fri, 10 Sep 2004 13:42:24 +0000 (13:42 +0000)]
o Initialize a local variable and make gcc happy.

PR: bin/71485
Submitted by: Jukka A. Ukkonen

19 years agoFix a type bug which sometimes wrote unusable lock sectors on the disk.
phk [Fri, 10 Sep 2004 12:16:54 +0000 (12:16 +0000)]
Fix a type bug which sometimes wrote unusable lock sectors on the disk.

19 years agoReduce the amount of memory reported to busdma.
sos [Fri, 10 Sep 2004 10:31:37 +0000 (10:31 +0000)]
Reduce the amount of memory reported to busdma.
This made the requirements for bouncebuffers too big with PAE.
Cleanup the way size defines for transfers are implemented.

19 years agoConvert sndstat_lock from a mutex to an sx lock. sndstat_read()
truckman [Fri, 10 Sep 2004 09:37:06 +0000 (09:37 +0000)]
Convert sndstat_lock from a mutex to an sx lock.  sndstat_read()
holds sndstat_lock across a call to uiomove(), which is not legal
to do with a  mutex because of the possibility that the data transfer
could sleep because of a page fault.  It is not possible to just
unlock the mutex for the uiomove() call without introducing another
locking mechanism to prevent the body of sndstat_read() from being
re-entered.  Converting sndstat_lock to an sx lock is the least
complicated change.

This is a candidate for RELENG_5.

LOR: 030
MFC after: 4 days

19 years agoRemove spare ")"
brueffer [Fri, 10 Sep 2004 07:54:05 +0000 (07:54 +0000)]
Remove spare ")"

MFC after: 3 days

19 years agoBetter fix the busdma problem exposed by ATA. With the CMD 646 for
marcel [Fri, 10 Sep 2004 07:00:28 +0000 (07:00 +0000)]
Better fix the busdma problem exposed by ATA. With the CMD 646 for
example the maximum segment size is 64K while the boundary is set
to 8K due to controller limitations. It is impossible to NOT cross
the boundary for any segment size that's larger than the boundary.
So, once we inherited the boundary from the parent tag, make sure
to reduce the maximum segment size to the boundary if it was larger.

MT5 candidate.

19 years agoFix a problem mentioned in the previous revision in a different,
ru [Fri, 10 Sep 2004 06:48:04 +0000 (06:48 +0000)]
Fix a problem mentioned in the previous revision in a different,
non-intrusive way.  This should also fix the PowerPC build that
broke due to this change.

19 years agoFix format strings to unbreak with -DDEBUG option.
kuriyama [Fri, 10 Sep 2004 05:44:17 +0000 (05:44 +0000)]
Fix format strings to unbreak with -DDEBUG option.

19 years agoThe previous commit, roughly one and a half years ago removed the
marcel [Fri, 10 Sep 2004 05:00:27 +0000 (05:00 +0000)]
The previous commit, roughly one and a half years ago removed the
branch prediction optimization for LINT, because the kernel was too
large. This commit now removes it altogether since it causes build
failures for GENERIC kernels and the various applicable trends are
such that one can expect that it these failure will cause more
problems than they're worth in the future. These trends include:
1. Alpha was demoted from tier 1 to tier 2 due to lack of active
   support. The number of people willing to fix build breakages
   is not likely to increase and those developers that do have the
   gumption to test MI changes on alpha are not likely to spend
   time fixing unexpected build failures first.
2. The kernel will only increase in size. Even though stripped-down
   kernels do link without problems now, compiler optimizations (like
   inlining) and new (non-optional) functionality will likely cause
   stripped-down kernels to break in the future as well.

So, with my asbestos suit on, get rid of potential problems before
they happen.

MT5 candidate.

19 years agoremove giant required from kqueue_close..
jmg [Fri, 10 Sep 2004 03:14:32 +0000 (03:14 +0000)]
remove giant required from kqueue_close..

Reported by: kuriyama
MFC after: 3 days

19 years ago- grammar fixes
brueffer [Fri, 10 Sep 2004 00:47:43 +0000 (00:47 +0000)]
- grammar fixes
- fix path to a source file

MFC after: 3 days

19 years agoConnect cnw.4 to the build.
brueffer [Fri, 10 Sep 2004 00:07:00 +0000 (00:07 +0000)]
Connect cnw.4 to the build.

MFC after: 5 days

19 years agoAdd a manpage for the cnw(4) driver, adopted from NetBSD.
brueffer [Thu, 9 Sep 2004 23:49:19 +0000 (23:49 +0000)]
Add a manpage for the cnw(4) driver, adopted from NetBSD.

MFC after: 5 days

19 years ago- add a HARDWARE section based on the driver README
brueffer [Thu, 9 Sep 2004 23:41:03 +0000 (23:41 +0000)]
- add a HARDWARE section based on the driver README
- capitalization fixes
- bump document date

MFC after: 3 days

19 years agoAdd the .h files to the .o dependency lists so the .h's are created before
obrien [Thu, 9 Sep 2004 20:47:58 +0000 (20:47 +0000)]
Add the .h files to the .o dependency lists so the .h's are created before
trying to build the .o's.

19 years agoAdd comments about why we're freeing subdevs (which is completely
imp [Thu, 9 Sep 2004 20:47:28 +0000 (20:47 +0000)]
Add comments about why we're freeing subdevs (which is completely
redundant at this point and should be retired).  Don't free subdevs if
we don't attach any devices.  This was leaving stale device_t's
around.  Don't touch the device if it isn't attached since the name
isn't meaningful then.  Switch from strncpy (properly used) to
strlcpy.

From a patch submitted by Peter Pentchev

19 years agoWe don't need a uhub_child_detached() routine now that we don't detach
imp [Thu, 9 Sep 2004 20:43:49 +0000 (20:43 +0000)]
We don't need a uhub_child_detached() routine now that we don't detach
device_t instances when no driver attaches.  They are left around, and
we need to remember them.

# The usbd_device_handle->subdevs[] array likely is completely bogus
# at this point, but one change at a time, since its removal will need
# to have similar code replace it extracted from newbus.

Part of the patch submitted by Peter Pentchev after an excellent
analysis of the underlying problems.

MFC After: 1 week

19 years agoTeach the stack trace code how to step across a double fault when stepping
jhb [Thu, 9 Sep 2004 20:39:31 +0000 (20:39 +0000)]
Teach the stack trace code how to step across a double fault when stepping
across frames.  Basically, if the current frame is for the
'dblfault_handler' function, then get the next %eip and %ebp values to use
from the original TSS of the thread that has the saved state when the
double fault triggered.

MFC after: 4 days

19 years agoShame on me. I screwed up product ID for the 3COM Bluetooth PC-Card.
emax [Thu, 9 Sep 2004 18:48:09 +0000 (18:48 +0000)]
Shame on me. I screwed up product ID for the 3COM Bluetooth PC-Card.
It's 0x0040 not 0x0400.

MFC after: 3 days

19 years agoFor the moment, back out my back out of green's 1.87 commit. While it
imp [Thu, 9 Sep 2004 17:49:53 +0000 (17:49 +0000)]
For the moment, back out my back out of green's 1.87 commit.  While it
produced better results for a test program I had here, it didn't
substantially change the number of crashes that I saw.  Both the old
code and the new code seemed to produce the same crashes from the usb
layer.  Since the new code also solves a close() crash, go with it
until the underlying issues wrt devices going away can be addressed.

19 years agoUse the recently introduced RES_DFLRETRY parameter instead of a well-hidden
yar [Thu, 9 Sep 2004 17:42:18 +0000 (17:42 +0000)]
Use the recently introduced RES_DFLRETRY parameter instead of a well-hidden
constant for the default number of retries.

19 years agoAdd the macro RES_DFLRETRY long-promised by resolver(5).
yar [Thu, 9 Sep 2004 17:39:47 +0000 (17:39 +0000)]
Add the macro RES_DFLRETRY long-promised by resolver(5).
It specifies the default number of retries per a name server.
This makes the code consistent with the manpage and allows to
kill another constant in res_init.c that should have been a
#define'd parameter.  (This appears to be a case when the manpage
was better than the code, so the latter was to be fixed.)

PR: bin/62139 (in the audit trail)

19 years agoImprove the description of "timeout" and "attempts" resolver
yar [Thu, 9 Sep 2004 17:19:27 +0000 (17:19 +0000)]
Improve the description of "timeout" and "attempts" resolver
options to avoid user confusion from now on.

PR: bin/62139 (inspired by)

19 years agosparc64 is not ready for PREEMPTION, so turn it off for now.
scottl [Thu, 9 Sep 2004 17:03:53 +0000 (17:03 +0000)]
sparc64 is not ready for PREEMPTION, so turn it off for now.

19 years agoRestore NetBSD SCM ID.
obrien [Thu, 9 Sep 2004 16:41:55 +0000 (16:41 +0000)]
Restore NetBSD SCM ID.

Submitted by: delphij@beastie.frontfree.net

19 years agoRelease the hold on ata_delayed_attach earlier so we can use tsleep
sos [Thu, 9 Sep 2004 13:25:46 +0000 (13:25 +0000)]
Release the hold on ata_delayed_attach earlier so we can use tsleep
in the boot probe as well.

Suggested by: gibbs

19 years agoCheck flag do_bridge always, even if kernel was compiled without
glebius [Thu, 9 Sep 2004 12:34:07 +0000 (12:34 +0000)]
Check flag do_bridge always, even if kernel was compiled without
BRIDGE support. This makes dynamic bridge.ko working.

Reviewed by: sam
Approved by: julian (mentor)
MFC after: 1 week

19 years agoDo not call xl_init_locked() unconditionally when we are bringed UP. Call
glebius [Thu, 9 Sep 2004 12:16:29 +0000 (12:16 +0000)]
Do not call xl_init_locked() unconditionally when we are bringed UP. Call
it only if we weren't UP before. In some cases xl_init causes long media
re-negotiation, and ppp(8) fails to open PPPoE connection because it sets
IFF_UP every time before opening PPPoE connection.

PR: kern/69133
Patch by: mdodd
Approved by: wpaul, julian (mentor)
MFC after: 1 week

19 years agobump .Dd
alfred [Thu, 9 Sep 2004 10:54:08 +0000 (10:54 +0000)]
bump .Dd

requested by: ru

19 years agoThe disk labels generated by bsdlabel can no address more than
brooks [Thu, 9 Sep 2004 07:46:53 +0000 (07:46 +0000)]
The disk labels generated by bsdlabel can no address more than
0xffffffff sectors.  Document this limit and avoid installing bogus
labels on disks with more sectors.

Allowing the installation of labels addressing as much of the disk as
possiable may be a useful addition in some situations, but this was easy
to implement and should reduce confusion.

PR: bin/71408

19 years agoHard code witness lock order for BPF locks.
rwatson [Thu, 9 Sep 2004 05:01:37 +0000 (05:01 +0000)]
Hard code witness lock order for BPF locks.

19 years agoReformulate bpf_dettachd() to acquire the BIF_LOCK() as well as
rwatson [Thu, 9 Sep 2004 04:11:12 +0000 (04:11 +0000)]
Reformulate bpf_dettachd() to acquire the BIF_LOCK() as well as
BPFD_LOCK() when removing a descriptor from an interface descriptor
list.  Hold both over the operation, and do a better job at
maintaining the invariant that you can't find partially connected
descriptors on an active interface descriptor list.

This appears to close a race that resulted in the kernel performing
a NULL pointer dereference when BPF sessions are detached during
heavy network activity on SMP systems.

RELENG_5 candidate.

19 years agoPlug an fd leak by using autoh_freeall(3).
alfred [Thu, 9 Sep 2004 01:26:11 +0000 (01:26 +0000)]
Plug an fd leak by using autoh_freeall(3).
Refuse to run unless root.
Check in /etc, /usr/local/etc and ./ for the "autotab" configuration
file.
Add more debug statements.

19 years agoAdd/document autoreq_getxid(3), which gets the autofs request
alfred [Thu, 9 Sep 2004 01:23:27 +0000 (01:23 +0000)]
Add/document autoreq_getxid(3), which gets the autofs request
transaction id from the request, this is useful for debugging.

Fix the autoh_freeall(3) function to properly free the array of
auto handles.  Before it was freeing individual members of the list
OK, however it was then advancing the pointer and freeing the wrong
data for the whole list.

19 years agoReformulate use of linked lists in 'struct bpf_d' and 'struct bpf_if'
rwatson [Thu, 9 Sep 2004 00:19:27 +0000 (00:19 +0000)]
Reformulate use of linked lists in 'struct bpf_d' and 'struct bpf_if'
to use queue(3) list macros rather than hand-crafted lists.  While
here, move to doubly linked lists to eliminate iterating lists in
order to remove entries.  This change simplifies and clarifies the
list logic in the BPF descriptor code as a first step towards revising
the locking strategy.

RELENG_5 candidate.

Reviewed by: fenner

19 years agoCompare/set pointers using NULL not 0.
rwatson [Thu, 9 Sep 2004 00:11:50 +0000 (00:11 +0000)]
Compare/set pointers using NULL not 0.

19 years agoadd support for documented readonly option...
jmg [Wed, 8 Sep 2004 20:28:29 +0000 (20:28 +0000)]
add support for documented readonly option...
also print out the option that is unknow so that the user knows what (s)he
did wrong..

MFC after: 3 days

19 years agoRemove debug output.
alfred [Wed, 8 Sep 2004 20:08:18 +0000 (20:08 +0000)]
Remove debug output.

19 years agoFix a .Fn that should be an .Fa.
alfred [Wed, 8 Sep 2004 19:47:29 +0000 (19:47 +0000)]
Fix a .Fn that should be an .Fa.
Clear up the spelling and language when describing how to select/poll for
an autofs event.

19 years agoClean up rev 1.49 by using the temperature conversion for _PSV also and
njl [Wed, 8 Sep 2004 19:36:07 +0000 (19:36 +0000)]
Clean up rev 1.49 by using the temperature conversion for _PSV also and
wrap a long line.

19 years agoUse atomic ops in pmap_clear_ptes() to prevent SMP races that could
alc [Wed, 8 Sep 2004 18:58:29 +0000 (18:58 +0000)]
Use atomic ops in pmap_clear_ptes() to prevent SMP races that could
result in the loss of an accessed or modified bit from the pte.

In collaboration with: tegge@

MT5 candidate

19 years agoDo not compile in zlib.c. Add a dependency on module instead.
fjoe [Wed, 8 Sep 2004 17:27:31 +0000 (17:27 +0000)]
Do not compile in zlib.c. Add a dependency on module instead.

19 years agoShow current status of mirror device directly.
pjd [Wed, 8 Sep 2004 16:37:22 +0000 (16:37 +0000)]
Show current status of mirror device directly.

Suggested by: Krzysztof CiepĀ³ucha <kris@home.pl>

19 years agoMake the output more suitable for use in a frameset.
des [Wed, 8 Sep 2004 16:04:38 +0000 (16:04 +0000)]
Make the output more suitable for use in a frameset.

19 years agoReduce the size of struct defid's defid_dirclust, defid_dirofs and
tjr [Wed, 8 Sep 2004 13:03:19 +0000 (13:03 +0000)]
Reduce the size of struct defid's defid_dirclust, defid_dirofs and
(disabled) defid_gen members from u_long to u_int32_t so that alignment
requirements don't cause the structure to become larger than struct fid
on LP64 platforms. This fixes NFS exports of msdos filesystems on at
least amd64.

PR: 71173

19 years agoBack out v1.24. v1.40 of sys/sparc64/sparc64/bus_machdep.c fixes the
kensmith [Wed, 8 Sep 2004 12:52:45 +0000 (12:52 +0000)]
Back out v1.24.  v1.40 of sys/sparc64/sparc64/bus_machdep.c fixes the
problem this hack was put in place for.

MFC to be done if the fix to bus_machdep.c is MFC-ed.

19 years agoMerge from NetBSD:
tjr [Wed, 8 Sep 2004 11:25:41 +0000 (11:25 +0000)]
Merge from NetBSD:
Fix a problem in previous: we can't blindly assume that we have
wincnt entries available at the offset the file has been found. If the dos
directory entry is not preceded by appropriate number of long name
entries (happens e.g. when the filesystem is corrupted, or when
the filename complies to DOS rules and doesn't use any long name entry),
we would overwrite random directory entries.

There are still some problems, the whole thing has to be revisited and solved
right.

Submitted by: Xin LI

19 years agoMerge from NetBSD:
tjr [Wed, 8 Sep 2004 10:57:09 +0000 (10:57 +0000)]
Merge from NetBSD:
Fix a panic that occurred when trying to traverse a corrupt msdosfs
filesystem.  With this particular corruption, the code in pcbmap()
would compute an offset into an array that was way out of bounds,
so check the bounds before trying to access and return an error if
the offset would be out of bounds.

Submitted by: Xin LI

19 years agosync with private code:
alfred [Wed, 8 Sep 2004 08:44:14 +0000 (08:44 +0000)]
sync with private code:

fix a 5.x'ism that 4.x needs protection from.
make this code compile standalone.

19 years agoFixed sound-related hints. (Yes, this is ambiguous but matches reality.)
ru [Wed, 8 Sep 2004 08:42:36 +0000 (08:42 +0000)]
Fixed sound-related hints.  (Yes, this is ambiguous but matches reality.)

Reviewed by: matk, cg (an earlier version)
MT5 after: 3 days

19 years agoUpdate sound-related manpages to account for the recent change in
ru [Wed, 8 Sep 2004 08:28:02 +0000 (08:28 +0000)]
Update sound-related manpages to account for the recent change in
device and module naming.  The following files were repo-copied:

csa.4 -> snd_csa.4
gusc.4 -> snd_gusc.4
maestro3.4 -> snd_maestro3.4
sbc.4 -> snd_sbc.4
uaudio.4 -> snd_uaudio.4

The pcm(4) manpage wasn't renamed to sound(4) as there are nearby
plans to rename "device sound" to "device snd", to address the
ambiguity in naming, so pcm.4 is linked to sound.4 for the moment.
(We also mumble something about the future plans in the manpage.)

Removed links from pcm.4 to als4000.4 and emu10k1.4 -- they now
have their own snd_*.4 manpages.

Fixes for recent snd_*.4 manpages: added missing "device sound"
to the SYNOPSIS, fixed hints (they are still "hint.pcm.<unit>"
in most cases).

MT5 after: 3 days

19 years agoFix/clean up return values checking.
pjd [Wed, 8 Sep 2004 07:57:14 +0000 (07:57 +0000)]
Fix/clean up return values checking.

19 years agoBack out 1.88.
imp [Wed, 8 Sep 2004 07:13:39 +0000 (07:13 +0000)]
Back out 1.88.

The reference counts are there to block detach until the sleepers in
read/write/ioctl have gotten out, not to prevent the open device from
going away.  Restore the old behavior so that we have a chance to wake
up sleepers when the usb device goes away, so they can properly return
EIO back to the caller when this happens.

Otherwise, we have a guarnateed panic waiting to happen when a device
detaches with an active read channel.

This should be merged to 5 asap.

19 years agoCorrect a typo in a comment.
ru [Wed, 8 Sep 2004 06:05:19 +0000 (06:05 +0000)]
Correct a typo in a comment.

Submitted by: Xin LI

19 years agoFix a problem with tag->boundary inheritence that has existed since day one
scottl [Wed, 8 Sep 2004 04:54:19 +0000 (04:54 +0000)]
Fix a problem with tag->boundary inheritence that has existed since day one
and was propagated to nearly every platform.  The boundary of the child needs
to consider the boundary of the parent and pick the minimum of the two, not
the maximum.  However, if either is 0 then pick the appropriate one.
This bug was exposed by a recent change to ATA, which should now be fixed by
this change.  The alignment and maxsegsz tag attributes likely also need
a similar review in the near future.

This is a MT5 candidate.

Reviewed by: marcel
Submitted by: sos (in part)

19 years agoRe-add ifi_epoch, to struct if_data, this time replacing ifi_unused
brooks [Wed, 8 Sep 2004 04:50:55 +0000 (04:50 +0000)]
Re-add ifi_epoch, to struct if_data, this time replacing ifi_unused
to avoid ABI changes.  It is set to the last time the interface
counters were zeroed, currently the time if_attach() was called.  It is
intentended to be a valid value for RFC2233's ifCounterDiscontinuityTime
and to make it easier for applications to verify that the interface they
find at a given index is the one that was there last time they looked.

Due to space constraints ifi_epoch is a time_t rather then a struct
timeval.  SNMP would prefer higher precision, but this unlikely to be
useful in practice.

19 years agoSync the busdma code with i386. The most tangible upshot is that
marcel [Wed, 8 Sep 2004 02:55:04 +0000 (02:55 +0000)]
Sync the busdma code with i386. The most tangible upshot is that
the alignment and boundary constraints are being respected, which
fixes the reported ATA problems with SiI chips.
I consider the busdma implementation worrisome nonetheless. Not
only is there too much MI code duplicated in MD files, there's a
lot of questionable code. I smell a wholesale, cross-platform
overhaul coming...

MT5 candidate.

19 years agoRemove vinum from the list. I no longer have the time and energy to
grog [Wed, 8 Sep 2004 02:08:33 +0000 (02:08 +0000)]
Remove vinum from the list.  I no longer have the time and energy to
even review changes.