]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoUse .Vt for struct xprison
matteo [Wed, 10 May 2006 14:26:53 +0000 (14:26 +0000)]
Use .Vt for struct xprison
Suggested by: keramida

18 years agoMove the call to cpu_setup() before the call to vm_ksubmap_init().
cognet [Wed, 10 May 2006 13:39:10 +0000 (13:39 +0000)]
Move the call to cpu_setup() before the call to vm_ksubmap_init().
vm_ksubmap_init() calls pmap_copy_page(), which uses the mini data cache
to do the copy, but we're running uncaching before cpu_setup().
For some reason it hasn't been a problem so far, but it is for the
PXA255.

Spotted out by: benno

18 years agoUse better order here.
pjd [Wed, 10 May 2006 06:50:44 +0000 (06:50 +0000)]
Use better order here.

18 years agomake tinderbox happy: GENERIC got ath and wlan added so we need to
sam [Wed, 10 May 2006 05:19:21 +0000 (05:19 +0000)]
make tinderbox happy: GENERIC got ath and wlan added so we need to
now mark these "nodevice" or we'll get undefined references

18 years agoFix LINSYSFS in the platform options files that I missed from the platform
ambrisko [Wed, 10 May 2006 03:25:45 +0000 (03:25 +0000)]
Fix LINSYSFS in the platform options files that I missed from the platform
split out change.

18 years agoIncrease the minimum chunk size by a power of two (32kB --> 64kB, assuming
jasone [Wed, 10 May 2006 00:07:45 +0000 (00:07 +0000)]
Increase the minimum chunk size by a power of two (32kB --> 64kB, assuming
4kB pages), in order to avoid dangerous rounding error when calculating
fullness limits during run promotion/demotion.

Convert a structure bitfield to a normal field in areana_run_t.  This should
have been changed along with the other fields in revision 1.120.

18 years agoBring the call to softdep_releasefile() within the region protected by
tegge [Tue, 9 May 2006 22:33:43 +0000 (22:33 +0000)]
Bring the call to softdep_releasefile() within the region protected by
vn_start_secondary_write() since it might cause file system write activity
(e.g. ffs_snapremove()).

18 years agoAdd in linsysfs. A linux 2.6 like sys filesystem to pacify the Linux
ambrisko [Tue, 9 May 2006 22:27:01 +0000 (22:27 +0000)]
Add in linsysfs.  A linux 2.6 like sys filesystem to pacify the Linux
LSI MegaRAID SAS utility.

Sponsored by: IronPort Systems
Man page help from: brueffer

18 years agoIt seems I forgot to commit the removal of the linux and linprocfs
netchild [Tue, 9 May 2006 20:33:59 +0000 (20:33 +0000)]
It seems I forgot to commit the removal of the linux and linprocfs
modules at the time I axed the linuxolator on Alpha.

Noticed by: kris

18 years agoif a jail fails to start, don't add its jid to /var/run and print a message with...
matteo [Tue, 9 May 2006 17:50:16 +0000 (17:50 +0000)]
if a jail fails to start, don't add its jid to /var/run and print a message with the error.

PR: conf/97024
MFC after: 1 week

18 years agoFix build (s:pc98/cbus/cbus.h:pc98/pc98/pc98_machdep.h:)
nyan [Tue, 9 May 2006 14:20:17 +0000 (14:20 +0000)]
Fix build (s:pc98/cbus/cbus.h:pc98/pc98/pc98_machdep.h:)

Pointyhat to: nyan

18 years agoUse wakeup_one to avoid thundering herd.
davidxu [Tue, 9 May 2006 13:00:46 +0000 (13:00 +0000)]
Use wakeup_one to avoid thundering herd.

Tested by: kris

18 years agoo FreeBSD 6.1 added.
maxim [Tue, 9 May 2006 09:04:03 +0000 (09:04 +0000)]
o FreeBSD 6.1 added.

18 years agoGo figure this error...
wilko [Tue, 9 May 2006 08:28:16 +0000 (08:28 +0000)]
Go figure this error...

Submitted by: Thomas Beha

18 years agoCorrect typo (CIRD -> CIDR)
delphij [Tue, 9 May 2006 06:01:32 +0000 (06:01 +0000)]
Correct typo (CIRD -> CIDR)

18 years agoUse a dedicated mutex to protect aio queues, the movation is to reduce
davidxu [Tue, 9 May 2006 00:10:11 +0000 (00:10 +0000)]
Use a dedicated mutex to protect aio queues, the movation is to reduce
lock contention with other parts.

18 years agoAdd myself to the freebsd calendar.
cokane [Mon, 8 May 2006 23:48:26 +0000 (23:48 +0000)]
Add myself to the freebsd calendar.

18 years agoreplace all the 660 with 650 in the cut-n-pasted line, rather than
imp [Mon, 8 May 2006 22:59:33 +0000 (22:59 +0000)]
replace all the 660 with 650 in the cut-n-pasted line, rather than
just some of them.

Noticed by: brooks

18 years agoAnother NEW MEDIA .WAVjammer.
imp [Mon, 8 May 2006 22:31:38 +0000 (22:31 +0000)]
Another NEW MEDIA .WAVjammer.

18 years agoAdd (back) the D-Link DE-650. Not sure why it was deleted.
imp [Mon, 8 May 2006 22:23:45 +0000 (22:23 +0000)]
Add (back) the D-Link DE-650.  Not sure why it was deleted.

18 years agoThe D-Link DE-650 that I got in the last bulk PC Card purchase needs an
imp [Mon, 8 May 2006 22:22:25 +0000 (22:22 +0000)]
The D-Link DE-650 that I got in the last bulk PC Card purchase needs an
entry.  Add it (back).

18 years agoAdd myself.
itetcu [Mon, 8 May 2006 20:28:38 +0000 (20:28 +0000)]
Add myself.

Approved by: tmclaugh (mentor)

18 years agoquiet tindexbox complaints about passing BUS_SPACE_MAXADDR as
sam [Mon, 8 May 2006 20:11:09 +0000 (20:11 +0000)]
quiet tindexbox complaints about passing BUS_SPACE_MAXADDR as
a bus_size_t to bus_dma_tag_create; when PAE is enabled this
does not work

Cluebat by: scottl
MFC after: 2 weeks

18 years agodocument security.jail.list sysctl in jail(8)
matteo [Mon, 8 May 2006 19:55:17 +0000 (19:55 +0000)]
document security.jail.list sysctl in jail(8)

PR: docs/96807
MFC after: 3

18 years agoNew release note: iostat(8) -x/-z [1].
bmah [Mon, 8 May 2006 18:07:36 +0000 (18:07 +0000)]
New release note:  iostat(8) -x/-z [1].

Fix typo:  s/archiecture/architecture/ [2].

Requested by: maxim [1]
Pointed out by: ceri [2]

18 years ago- Fix quoting.
flz [Mon, 8 May 2006 17:32:45 +0000 (17:32 +0000)]
- Fix quoting.

Reported by: Dirk Engling <erdgeist@erdgeist.org>
Pointyhat to: self

18 years agoNew release note: find(1) birthtime-related primaries.
bmah [Mon, 8 May 2006 17:29:54 +0000 (17:29 +0000)]
New release note:  find(1) birthtime-related primaries.

Submitted by: ceri

18 years agoNew release notes: Linuxulator for alpha removed, em(4) 5.1.5,
bmah [Mon, 8 May 2006 17:05:31 +0000 (17:05 +0000)]
New release notes:  Linuxulator for alpha removed, em(4) 5.1.5,
bridge(4) removed, dhclient(8) now sends hostname, du(1) -n,
getent(1) added.

Updated release note:  GNOME 2.14.1.

18 years agoRemove the Alpha specific linuxolator files.
netchild [Mon, 8 May 2006 15:20:12 +0000 (15:20 +0000)]
Remove the Alpha specific linuxolator files.

18 years agoRemove unneeded include.
nyan [Mon, 8 May 2006 12:05:04 +0000 (12:05 +0000)]
Remove unneeded include.

18 years ago- Move defines for PC-98 machine type from pc98/cbus/cbus.h into
nyan [Mon, 8 May 2006 12:03:58 +0000 (12:03 +0000)]
- Move defines for PC-98 machine type from pc98/cbus/cbus.h into
  pc98/pc98/pc98_machdep.h.
- Fix PC98_SYSTEM_PARAMETER_SIZE.
- Remove unused defines.

18 years agoAdd the ath and the wlan crypto support.
nyan [Mon, 8 May 2006 11:55:57 +0000 (11:55 +0000)]
Add the ath and the wlan crypto support.

18 years agoadd a diff line so you can check your commit before hitting enter...
jmg [Mon, 8 May 2006 06:47:59 +0000 (06:47 +0000)]
add a diff line so you can check your commit before hitting enter...

18 years agomatch w/ prototype...
jmg [Mon, 8 May 2006 04:25:35 +0000 (04:25 +0000)]
match w/ prototype...

MFC after: 3 days

18 years agofix braino that broke building on amd64
sam [Mon, 8 May 2006 04:04:06 +0000 (04:04 +0000)]
fix braino that broke building on amd64

Submitted by: Pascal Hofstee
MFC after: 2 weeks

18 years agoBe more like Windows and Linux and send our hostname in the host-name
brooks [Sun, 7 May 2006 23:31:10 +0000 (23:31 +0000)]
Be more like Windows and Linux and send our hostname in the host-name
option if none is given in the config file.  Also add #ifdefd out
support for sending a client ID based on our MAC address.

PR: bin/94743, bin/76401
Submitted by: Frank Behrens <frank at pinky dot sax dot de>
X-MFC after: 6.1-RELEASE

18 years ago- Check for some mandatory variables.
flz [Sun, 7 May 2006 23:15:39 +0000 (23:15 +0000)]
- Check for some mandatory variables.

Approved by: cperciva (mentor)
MFC after: 1 week

18 years agoCall vn_finished_write() before calling the coredump handler which will
tegge [Sun, 7 May 2006 22:50:22 +0000 (22:50 +0000)]
Call vn_finished_write() before calling the coredump handler which will
indirectly call vn_start_write() as necessary for each write.

18 years agoo Add acpi_ibm to the build.
maxim [Sun, 7 May 2006 20:13:18 +0000 (20:13 +0000)]
o Add acpi_ibm to the build.

PR: kern/96940
Submitted by: Rong-En Fan

18 years ago- change the example of compiling only specific modules to not contain
netchild [Sun, 7 May 2006 18:12:18 +0000 (18:12 +0000)]
- change the example of compiling only specific modules to not contain
  the linux module, since it is not cross-platform
- move linprocfs from "files" and "options" to architecture specific files,
  since it only makes sense to build this for those architectures, where we
  also have a linuxolator
- disable the build of the linuxolator on our tier-2 architecture "Alpha":
  * we don't have a linux_base port which supports Alpha and at the
    same time is not outdated/obsoleted upstream/in a good condition/
    currently working
  * the upcomming new default linux base port is based upon Fedora
    Core 3 (security support via http://www.fedoralegacy.org), which
    isn't available for Alpha (like the current default linux base
    port which is based upon Red Hat 8)
  * nobody answered my request for testing it ~1 month ago on
    current@ and alpha@ (it doesn't surprises me, see above)
  * a SoC student wouldn't have to waste time on something which
    nobody is willing to test

This does not remove the alpha specific MD files of the linuxolator yet.

Discussed on: arch (mostly silence)
Spiritual support by: scottl

18 years agoIn order to let new binutils can compile it, replace movl with
davidxu [Sun, 7 May 2006 08:19:04 +0000 (08:19 +0000)]
In order to let new binutils can compile it, replace movl with
movw for segment saving and restoring.

Submitted by: Diego 'Flameeyes' Petteno flameeyes at gentoo dot org

18 years agoAdd myself
sat [Sun, 7 May 2006 07:45:39 +0000 (07:45 +0000)]
Add myself

Approved by: krion

18 years agoDon't attach special devices in the order they appear in the AML tree.
njl [Sun, 7 May 2006 03:28:10 +0000 (03:28 +0000)]
Don't attach special devices in the order they appear in the AML tree.
If the embedded controller exists before the sysresource devices, for
example, it will be attached first.  Instead, let the normal device
order function work as we first desired. [1]

There still remained a problem where we couldn't allocate resources in
acpi0 that were passed up by the sysresource pseudo-devices.  These
devices had to probe/attach first to give their resources to acpi, then
acpi would allocate them before probing/attaching other devices.  To
work around this, we attach them from acpi_sysres_alloc().  A better
approach would be to implement multi-pass probe/attach in newbus but
that's a much bigger task.

Suggested by: jhb [1]
Hardware from: Centaur Technologies
MFC after: 1 week

18 years agoPickup locks for the BPF interface structure. It's quite possible that
csjp [Sun, 7 May 2006 03:21:43 +0000 (03:21 +0000)]
Pickup locks for the BPF interface structure. It's quite possible that
bpf(4) descriptors can be added and removed on this interface while we
are processing stats.

MFC after: 2 weeks

18 years agoNew release note: Dual-core processors handled correctly.
bmah [Sun, 7 May 2006 01:06:58 +0000 (01:06 +0000)]
New release note:  Dual-core processors handled correctly.

This note is a candidate for the 6.1-RELEASE errata notes (the code
change was previously merged to RELENG_6_1 but this note is appearing
too late to be merged).

18 years agofix style nit
obrien [Sun, 7 May 2006 00:40:00 +0000 (00:40 +0000)]
fix style nit

18 years agoFix package name typo in KDE3 release note.
bmah [Sat, 6 May 2006 23:51:04 +0000 (23:51 +0000)]
Fix package name typo in KDE3 release note.

Submitted by: moose - opera - com

18 years agoforce type coercion for bus tag+handle when calling ath_hal_attach
sam [Sat, 6 May 2006 23:23:39 +0000 (23:23 +0000)]
force type coercion for bus tag+handle when calling ath_hal_attach
to ensure we match the type signature; we cannot assume HAL_BUS_TAG
and HAL_BUS_HANDLE correspond to bus_space_tag_t and bus_space_handle_t
(should probably do this for HAL_SOFTC too but leave that for now)

MFC after: 1 month

18 years agofix build on sparc
sam [Sat, 6 May 2006 23:14:19 +0000 (23:14 +0000)]
fix build on sparc

MFC after: 1 month

18 years agoo Implement "-n" flag: ignore files and directories with user "nodump"
maxim [Sat, 6 May 2006 22:04:59 +0000 (22:04 +0000)]
o Implement "-n" flag: ignore files and directories with user "nodump"
flag set.  Useful for calculation dump -h dump size.

PR: bin/96864
Submitted by: Dmitry Kazarov
Obtained from: NetBSD (man page)
MFC after: 1 month

18 years agoffs_syncvnode() might skip some of the blocks due to them being locked,
tegge [Sat, 6 May 2006 20:51:31 +0000 (20:51 +0000)]
ffs_syncvnode() might skip some of the blocks due to them being locked,
assuming them to be inflight write buffers.  This is not always the case.
bufdaemon might hold the buffer lock and give up writing the buffer due to it
having dependencies, the file system being suspended or the vnode lock being
held by another thread.  When bufdaemon decides to write the buffer there is
still a window before bufobj_wref() has been called, allowing other threads to
believe that the vnode has no dirty buffers or inflight writes.

Try harder to flush first block of new subdirectory to get rid of MKDIR_BODY
dependency.

18 years agoo Take an account a media sectorsize for medium and bigsize calculation.
maxim [Sat, 6 May 2006 19:52:25 +0000 (19:52 +0000)]
o Take an account a media sectorsize for medium and bigsize calculation.
o Introduce -r and -w keys which allow to load and save a worklist.
o Replace README by man page.

PR: bin/96677
Submitted by: Ulrich Spoerlein
Approved by: phk
MFC after: 1 month

18 years agoForgot the amd/linux32 part since sys/*/linux didn't match :-(
ambrisko [Sat, 6 May 2006 17:26:45 +0000 (17:26 +0000)]
Forgot the amd/linux32 part since sys/*/linux didn't match :-(

Pointed out by: Alexander (thanks)

18 years agoModify UDP to use sosend_dgram() instead of sosend(). This allows
rwatson [Sat, 6 May 2006 11:24:59 +0000 (11:24 +0000)]
Modify UDP to use sosend_dgram() instead of sosend().  This allows
for signicantly optimized UDP socket I/O when using a single UDP
socket from many threads or processes that share it, by avoiding
significant locking and other overhead in the general sosend()
path that isn't necessary for simple datagram sockets.  Specifically,
this change results in a significant performance improvement for
threaded name service in BIND9 under load.

Suggested by: Jinmei_Tatsuya at isc dot org

18 years agoReturn error if vnode was reclaimed while it was temporarily unlocked.
tegge [Fri, 5 May 2006 21:27:31 +0000 (21:27 +0000)]
Return error if vnode was reclaimed while it was temporarily unlocked.
Add missing calls to vn_finished_write() in error handling.

18 years agoTemporarily unlock vnode for new image being executed to avoid lock order
tegge [Fri, 5 May 2006 20:25:05 +0000 (20:25 +0000)]
Temporarily unlock vnode for new image being executed to avoid lock order
reversals that can lead to deadlocks.  Normally vn_close(), namei() or vrele()
should not be called while holding vnode locks.

18 years agoAdd Russell Cattelan to list of pre-commit reviewers for changes to XFS.
rodrigc [Fri, 5 May 2006 20:12:30 +0000 (20:12 +0000)]
Add Russell Cattelan to list of pre-commit reviewers for changes to XFS.

Requested by: Russell Cattelan <cattelan at xfs dot org>

18 years agoTurn off disk quotas for snapshot files.
tegge [Fri, 5 May 2006 20:10:04 +0000 (20:10 +0000)]
Turn off disk quotas for snapshot files.

18 years agoAvoid locking overhead when snapshots are disabled.
tegge [Fri, 5 May 2006 19:58:36 +0000 (19:58 +0000)]
Avoid locking overhead when snapshots are disabled.

18 years agoAvoid dereferencing NULL pointer.
tegge [Fri, 5 May 2006 19:32:35 +0000 (19:32 +0000)]
Avoid dereferencing NULL pointer.

18 years agoSetting the rid of the resource is a good idea, but we still need to return
cognet [Fri, 5 May 2006 19:14:57 +0000 (19:14 +0000)]
Setting the rid of the resource is a good idea, but we still need to return
the resource after.

18 years agoCheck for VFS_STATFS() failure in _xfs_mount() and abort the mount
keramida [Fri, 5 May 2006 18:41:56 +0000 (18:41 +0000)]
Check for VFS_STATFS() failure in _xfs_mount() and abort the mount
on errors.

Found by: Coverity Prevent
Approved by: rodrigc, Russell Cattelan
MFC after: 4 weeks

18 years agoFix a snafu caused while patching the previous fix from another branch.
mohans [Fri, 5 May 2006 18:12:13 +0000 (18:12 +0000)]
Fix a snafu caused while patching the previous fix from another branch.

18 years agoFix for a NFS/TCP client bug which would cause the NFS/TCP stream to get
mohans [Fri, 5 May 2006 18:04:53 +0000 (18:04 +0000)]
Fix for a NFS/TCP client bug which would cause the NFS/TCP stream to get
out of sync under heavy loads, forcing frequent reconnets, causing EBADRPC
errors etc.

18 years agoFix the the duplicate cut-n-paste in linux_fstat64 pointed out by
ambrisko [Fri, 5 May 2006 16:17:59 +0000 (16:17 +0000)]
Fix the the duplicate cut-n-paste in linux_fstat64 pointed out by
Alexander Leidinger.  I forget to fix it in this version.

18 years agoEnhance the Linux emulation layer to make MegaRAID SAS managements tool happy.
ambrisko [Fri, 5 May 2006 16:10:45 +0000 (16:10 +0000)]
Enhance the Linux emulation layer to make MegaRAID SAS managements tool happy.
Add back in a scheme to emulate old type major/minor numbers via hooks into
stat, linprocfs to return major/minors that Linux app's expect.  Currently
only /dev/null is always registered.  Drivers can register via the Linux
type shim similar to the ioctl shim but by using
linux_device_register_handler/linux_device_unregister_handler functions.
The structure is:

    struct linux_device_handler {
        char    *bsd_driver_name;
        char    *linux_driver_name;
        char    *bsd_device_name;
        char    *linux_device_name;
        int     linux_major;
        int     linux_minor;
        int     linux_char_device;
    };

Linprocfs uses this to display the major number of the driver.  The
soon to be available linsysfs will use it to fill in the driver name.
Linux_stat uses it to translate the major/minor into Linux type values.

Note major numbers are dynamically assigned via passing in a -1 for
the major number so we don't need to keep track of them.

This is somewhat needed due to us switching to our devfs.  MegaCli
will not run until I add in the linsysfs and mfi Linux compat changes.

Sponsored by: IronPort Systems

18 years agoIf perform-actual-lookups is enabled, getservbyname() matches an entry
ume [Fri, 5 May 2006 15:01:25 +0000 (15:01 +0000)]
If perform-actual-lookups is enabled, getservbyname() matches an entry
even when proto is not valid.

Submitted by: Michael Bushkov <bushman__at__rsu.ru>

18 years agoRemove hand-rolled cross-build glue. Normal cross-build infrastructure
scottl [Fri, 5 May 2006 14:26:28 +0000 (14:26 +0000)]
Remove hand-rolled cross-build glue.  Normal cross-build infrastructure
in FreeBSD likely supports this without any extra work.

18 years ago- Set bio_done directly to NULL to indicate that we want to wait for the bio.
pjd [Fri, 5 May 2006 10:06:22 +0000 (10:06 +0000)]
- Set bio_done directly to NULL to indicate that we want to wait for the bio.
- Use biowait() instead of copying the code.

MFC after: 1 month

18 years agoMake sure the ip data pointer is correct before touching it again
bz [Fri, 5 May 2006 07:31:03 +0000 (07:31 +0000)]
Make sure the ip data pointer is correct before touching it again
after ipsec4_output processing else KAME IPSec using the handbook
configuration with gif(4) will panic the kernel.

Problem reported by:    t. patterson <tp lot.org>
Tested by:              t. patterson <tp lot.org>

18 years agoOnly return (tw) from tcp_twclose() if reuse is passed, otherwise
rwatson [Fri, 5 May 2006 06:50:23 +0000 (06:50 +0000)]
Only return (tw) from tcp_twclose() if reuse is passed, otherwise
return NULL.  In principle this shouldn't change the behavior, but
avoids returning a potentially invalid/inappropriate pointer to
the caller.

Found with: Coverity Prevent (tm)
Submitted by: pjd
MFC after: 3 months

18 years agoForce commit to provide correct commit message:
pjd [Fri, 5 May 2006 06:36:30 +0000 (06:36 +0000)]
Force commit to provide correct commit message:

Set 'fp' variable to NULL after freeing it, so it won't be dereferenced
later.

Found by: Coverity Prevent analysis tool
CID: 993
MFC after: 2 weeks

18 years ago/tmp/cvsTXPIwQ
pjd [Fri, 5 May 2006 06:24:34 +0000 (06:24 +0000)]
/tmp/cvsTXPIwQ

18 years agoAllow the HTTP_PROXY environment variable to be (mis)spelled as
cperciva [Fri, 5 May 2006 04:47:00 +0000 (04:47 +0000)]
Allow the HTTP_PROXY environment variable to be (mis)spelled as
"http_proxy", since some people apparently do this and fetch(3)
allows it.

18 years agoAH_REGOPS_FUNC is needed for sparc
sam [Fri, 5 May 2006 04:19:36 +0000 (04:19 +0000)]
AH_REGOPS_FUNC is needed for sparc

MFC after: 2 weeks

18 years agoFix the test for whether ${HTTP_PROXY} is set -- I got it backwards.
cperciva [Fri, 5 May 2006 03:44:13 +0000 (03:44 +0000)]
Fix the test for whether ${HTTP_PROXY} is set -- I got it backwards.

Pointy hat to: cperciva
Pointed out by: pjd

18 years agocorrect type
sam [Fri, 5 May 2006 03:21:13 +0000 (03:21 +0000)]
correct type

MFC after: 2 weeks

18 years agoo Make it possible to compile find-sb on non-FreeBSD system (MacOS X in my
sobomax [Fri, 5 May 2006 00:19:24 +0000 (00:19 +0000)]
o Make it possible to compile find-sb on non-FreeBSD system (MacOS X in my
  case). Can be useful for recovering in some cases;

o use SBLOCK_UFS2 instead of SBLOCK_UFS1 to calculate likely start of the UFS2
  partition from the beginning of disk.

18 years agoFix binary upgrades by accounting for the schg flag on /var/empty.
ceri [Thu, 4 May 2006 20:10:34 +0000 (20:10 +0000)]
Fix binary upgrades by accounting for the schg flag on /var/empty.

PR: 96711, 96780
Submitted by: Nobuyuki Koganemaru, Martin Jackson
Approved by: re (scottl)
MFC after: 1 day

18 years agoAssert ip6_forward_rt protected by Giant adding GIANT_REQUIRED to
bz [Thu, 4 May 2006 18:41:08 +0000 (18:41 +0000)]
Assert ip6_forward_rt protected by Giant adding GIANT_REQUIRED to
functions not yet asserting it but working on global ip6_forward_rt
route cache which is not locked and perhaps should go away in the
future though cache hit/miss ration wasn't bad.

It's #if 0ed in frag6 because the code working on ip6_forward_rt is.

18 years agoIn rtrequest and rtinit check for sa_len != 0 for the given
bz [Thu, 4 May 2006 18:33:37 +0000 (18:33 +0000)]
In rtrequest and rtinit check for sa_len != 0 for the given
destination. These checks are needed so we do not install
a route looking like this:
(0)                192.0.2.200        UH       tun0 =>

When removing this route  the kernel will start to walk
the address space which looks like a hang on 64bit platforms
because it'll take ages while on 32bit you should see a panic
when kernel debugging options are turned on.

The problem is in rtrequest1:
if (netmask) {
rt_maskedcopy(dst, ndst, netmask);
} else
bcopy(dst, ndst, dst->sa_len);

In both cases the len might be 0 if the application forgot to
set it.  If so ndst will be all-zero  leading to above
mentioned strange routes.

This is an application error but we must not fail/hang/panic
because of this.

Looks ok: gnn
No objections: net@ (silence)
MFC after: 8 weeks

18 years agoUse G_RAID3_FOREACH_SAFE_BIO() macro instead of G_RAID3_FOREACH_BIO() in
pjd [Thu, 4 May 2006 13:01:16 +0000 (13:01 +0000)]
Use G_RAID3_FOREACH_SAFE_BIO() macro instead of G_RAID3_FOREACH_BIO() in
two places where g_io_request() is called. g_io_request() can free bio
structure so we can't reference it after and G_RAID3_FOREACH_BIO() macro
was doing this.

Found by: Coverity Prevent analysis tool (with my new models)
MFC after: 1 day

18 years agoThe port number must be network byte order.
ume [Thu, 4 May 2006 11:28:16 +0000 (11:28 +0000)]
The port number must be network byte order.

18 years agoo style: WARNS= -> WARNS?=.
maxim [Thu, 4 May 2006 09:01:54 +0000 (09:01 +0000)]
o style: WARNS= -> WARNS?=.

Spotted by: ru

18 years agoo By popular demand import getent(1) utility: a program retrieves
maxim [Thu, 4 May 2006 08:44:44 +0000 (08:44 +0000)]
o By popular demand import getent(1) utility: a program retrieves
and displays entries from the administrative database specified by
database, using the lookup order specified in nsswitch.conf(5).

PR: bin/79903, bin/88460, bin/96536
Submitted by: Julien Gabel, Dan Nelson, Daniel J. O'Connor
Obtained from: NetBSD
Discussed with: ume, soc-bushman
MFC after: 1 month

18 years agoFix three more bugs in bfe:
silby [Thu, 4 May 2006 07:41:01 +0000 (07:41 +0000)]
Fix three more bugs in bfe:

- Fix bfe_encap so that it will pass the address of the mbuf back up to its
  caller if/when it modifies it, as it does when doing a m_defrag on a mbuf chain.
- Make sure to unload the dmamap for ALL fragments of a packet, not just the first
- Use BUS_DMA_NOWAIT for all bus_dmamap_load calls so that the allocation of the
  map is not delayed - this driver is not set up to handle such delays.
- Reduce the number of RX and TX buffers bfe uses so that it does not use more
  bounce buffers than busdma is willing to allow it to use

With these changes, the driver now works properly for a user with a 2GB system,
and it also works on my system when the acceptable address range is lowered to 128MB.
Previously, both of these setups would act up after a few minutes of activity.

18 years agoMove the formatting of the NICE column to a new function format_nice()
bde [Thu, 4 May 2006 03:56:31 +0000 (03:56 +0000)]
Move the formatting of the NICE column to a new function format_nice()
so that it can be more easily unbroken and extended.

Try to use `static', `const' (as appropriate), prototypes declared together,
and parameter names in prototypes for all private functions, not just the
new one.

18 years agoBelatedly add 2 entries relating to the introduction of scc(4) and
marcel [Thu, 4 May 2006 03:48:06 +0000 (03:48 +0000)]
Belatedly add 2 entries relating to the introduction of scc(4) and
the overhaul of puc(4). On sparc64 people may end up without serial
console if they upgrade without adding scc(4) to their kernel
configuration file.

18 years agoFixed some style bugs (mainly missing and wrong splitting of long lines).
bde [Thu, 4 May 2006 03:00:13 +0000 (03:00 +0000)]
Fixed some style bugs (mainly missing and wrong splitting of long lines).

18 years agoAdd 4Gb Fibre Channel support.
mjacob [Thu, 4 May 2006 02:35:04 +0000 (02:35 +0000)]
Add 4Gb Fibre Channel support.
Work sponsored by LSI-Logic.

18 years agoRemove MPT_PRT_INVARIANT- it was a silly idea.
mjacob [Thu, 4 May 2006 02:34:18 +0000 (02:34 +0000)]
Remove MPT_PRT_INVARIANT- it was a silly idea.

18 years agoGratuitous tag alignment. It bugged me.
mjacob [Thu, 4 May 2006 00:34:07 +0000 (00:34 +0000)]
Gratuitous tag alignment. It bugged me.

18 years agoRemove two lines of debugging which I forgot to remove before the last
cperciva [Wed, 3 May 2006 22:09:42 +0000 (22:09 +0000)]
Remove two lines of debugging which I forgot to remove before the last
commit.

Noticed by:     simon

18 years agoThe approach portsnap uses of "pick a random HTTP mirror" doesn't
cperciva [Wed, 3 May 2006 21:29:01 +0000 (21:29 +0000)]
The approach portsnap uses of "pick a random HTTP mirror" doesn't
interact very nicely with HTTP proxies: Since proxies do not know
that all the files on portsnap1.freebsd.org are identical to the
files with the same names on portsnap2.freebsd.org, said proxies end
up downloading and storing files in duplicate.

This commit uses the HTTP_PROXY environment variable, if set, to
generate a random number seed for use in selecting a mirror.  This
means that if several systems all have the same HTTP_PROXY value set,
they will ask the proxy to fetch files from the same mirror (unless
that mirror fails, in which case all the systems will use the same
second choice, et cetera).

Portsnap still doesn't interact very well with "transparent" HTTP
proxies, but there's nothing I can do about those.

Requested by: simon
Sponsored by:   FreeBSD security development fundraiser

18 years agoInstead of selecting a mirror and failing if it is inaccessible, keep
cperciva [Wed, 3 May 2006 21:19:43 +0000 (21:19 +0000)]
Instead of selecting a mirror and failing if it is inaccessible, keep
track of which mirrors we have tried and try a different mirror if we
fail when trying to download the SSL public key or the snapshot
signature.

Failures later in the download process will not result in switching to
a different mirror, for two reasons:
1. If is very unlikely that a mirror will fail partway through the
process of downloading updates.
2. If we switched from a more recently updated mirror to a less
recently updated mirror partway through the download process, we would
end up failing anyway because we would be trying to fetch files which
the second mirror didn't have yet.

PR: bin/96288
Requested by: lots of people
Sponsored by: FreeBSD security development fundraiser

18 years agoHide another common print under bootverbose.
scottl [Wed, 3 May 2006 21:08:39 +0000 (21:08 +0000)]
Hide another common print under bootverbose.

18 years agoo Document security.jail.jailed sysctl.
maxim [Wed, 3 May 2006 20:13:33 +0000 (20:13 +0000)]
o Document security.jail.jailed sysctl.

PR: docs/94711
Submitted by: Andreas Kohn
MFC after: 2 weeks

18 years agoadd ath and wlan crypto support
sam [Wed, 3 May 2006 18:15:36 +0000 (18:15 +0000)]
add ath and wlan crypto support

MFC after: 1 month

18 years agoadd ath and wlan crypto support
sam [Wed, 3 May 2006 18:13:11 +0000 (18:13 +0000)]
add ath and wlan crypto support

Requested by: many
MFC after: 1 month

18 years agoA few minor wording changes and a clarification about error conditions.
bsd [Wed, 3 May 2006 17:33:29 +0000 (17:33 +0000)]
A few minor wording changes and a clarification about error conditions.