]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoDocument net.inet.tcp.maxtcptw and net.inet.tcp.nolocaltimewait.
glebius [Wed, 13 Sep 2006 15:24:27 +0000 (15:24 +0000)]
Document net.inet.tcp.maxtcptw and net.inet.tcp.nolocaltimewait.

Wording by: Devon O'Dell

18 years agoRemove unessary includes and follow common ordering style.
andre [Wed, 13 Sep 2006 13:21:17 +0000 (13:21 +0000)]
Remove unessary includes and follow common ordering style.

18 years agoRewrite of TCP syncookies to remove locking requirements and to enhance
andre [Wed, 13 Sep 2006 13:08:27 +0000 (13:08 +0000)]
Rewrite of TCP syncookies to remove locking requirements and to enhance
functionality:

 - Remove a rwlock aquisition/release per generated syncookie.  Locking
   is now integrated with the bucket row locking of syncache itself and
   syncookies no longer add any additional lock overhead.
 - Syncookie secrets are different for and stored per syncache buck row.
   Secrets expire after 16 seconds and are reseeded on-demand.
 - The computational overhead for syncookie generation and verification
   is one MD5 hash computation as before.
 - Syncache can be turned off and run with syncookies only by setting the
   sysctl net.inet.tcp.syncookies_only=1.

This implementation extends the orginal idea and first implementation
of FreeBSD by using not only the initial sequence number field to store
information but also the timestamp field if present.  This way we can
keep track of the entire state we need to know to recreate the session in
its original form.  Almost all TCP speakers implement RFC1323 timestamps
these days.  For those that do not we still have to live with the known
shortcomings of the ISN only SYN cookies.  The use of the timestamp field
causes the timestamps to be randomized if syncookies are enabled.

The idea of SYN cookies is to encode and include all necessary information
about the connection setup state within the SYN-ACK we send back and thus
to get along without keeping any local state until the ACK to the SYN-ACK
arrives (if ever).  Everything we need to know should be available from
the information we encoded in the SYN-ACK.

A detailed description of the inner working of the syncookies mechanism
is included in the comments in tcp_syncache.c.

Reviewed by: silby (slightly earlier version)
Sponsored by: TCP/IP Optimization Fundraise 2005

18 years ago- Change the example CFLAGS entry to match our default in sys.mk.
ru [Wed, 13 Sep 2006 10:20:56 +0000 (10:20 +0000)]
- Change the example CFLAGS entry to match our default in sys.mk.
- Document that -fno-strict-aliasing is required for -O2.

Prodded by: users of stable@

18 years agoRemove duplicated code. Declare functions non-static that shouldn't be
scottl [Wed, 13 Sep 2006 09:35:59 +0000 (09:35 +0000)]
Remove duplicated code.  Declare functions non-static that shouldn't be
inlined.

18 years agodd a series of regression tests to validate that privilege requirements are
rwatson [Wed, 13 Sep 2006 09:05:39 +0000 (09:05 +0000)]
dd a series of regression tests to validate that privilege requirements are
implemented properly for a number of kernel subsystems.  In general, they
try to exercise the privilege first as the root user, then as a test user,
in order to determine when privilege is being checked.

Currently, these tests do not compare inside/outside jail, and probably
should be enhanced to do that.

Sponsored by: nCircle Network Security, Inc.
Obtained from: TrustedBSD Project

18 years agoFix a lock leak in an error case.
pjd [Wed, 13 Sep 2006 06:58:40 +0000 (06:58 +0000)]
Fix a lock leak in an error case.

Reported by: netchild
Reviewed by: rwatson

18 years agoinitialize variable (WARNS=6)
charnier [Wed, 13 Sep 2006 05:06:12 +0000 (05:06 +0000)]
initialize variable (WARNS=6)

18 years agocompile under WARNS=6
charnier [Wed, 13 Sep 2006 05:01:25 +0000 (05:01 +0000)]
compile under WARNS=6

18 years agoReduce the number of errors under WARNS=6
charnier [Wed, 13 Sep 2006 04:50:44 +0000 (04:50 +0000)]
Reduce the number of errors under WARNS=6

18 years agodocument that PAE kernels needs twice the value of non-PAE kernels
jmg [Wed, 13 Sep 2006 01:23:08 +0000 (01:23 +0000)]
document that PAE kernels needs twice the value of non-PAE kernels
for KVA_PAGES, and that it it likely needed for >4GB memory boxes..

MFC after: 3 days

18 years agoBusmaster DMA address fix in VIA 6421 case.
sos [Tue, 12 Sep 2006 22:06:39 +0000 (22:06 +0000)]
Busmaster DMA address fix in VIA 6421 case.

18 years agoRemove redundant defines alerady set by Makefile.fe
kan [Tue, 12 Sep 2006 21:57:28 +0000 (21:57 +0000)]
Remove redundant defines alerady set by Makefile.fe

18 years agoFormat mask lacks one bit.
sos [Tue, 12 Sep 2006 20:37:22 +0000 (20:37 +0000)]
Format mask lacks one bit.

Reported by: jkim

18 years agoStyle sync.
obrien [Tue, 12 Sep 2006 19:24:01 +0000 (19:24 +0000)]
Style sync.

18 years agoPut the osta.c license on osta.h. The license is the same.
imp [Tue, 12 Sep 2006 19:02:34 +0000 (19:02 +0000)]
Put the osta.c license on osta.h.  The license is the same.

Approved by: scottl@

18 years agoAdd FBSDID, rename local variable time to not conflict with time()
charnier [Tue, 12 Sep 2006 17:54:35 +0000 (17:54 +0000)]
Add FBSDID, rename local variable time to not conflict with time()

18 years agoBump date, per ru@
imp [Tue, 12 Sep 2006 15:48:22 +0000 (15:48 +0000)]
Bump date, per ru@

18 years agoTrim some unneeded includes.
jhb [Tue, 12 Sep 2006 15:01:19 +0000 (15:01 +0000)]
Trim some unneeded includes.

18 years agoAdd my birthday to the calendar, sadly I am only the fifth youngest.
alexbl [Tue, 12 Sep 2006 09:05:00 +0000 (09:05 +0000)]
Add my birthday to the calendar, sadly I am only the fifth youngest.

Approved by: novel

18 years agoMove to more global Makefile.tgt vs. having to define in the leaves.
obrien [Tue, 12 Sep 2006 07:37:44 +0000 (07:37 +0000)]
Move to more global Makefile.tgt vs. having to define in the leaves.

18 years agoDefault to big endian ARM if "TARGET_BIG_ENDIAN" is defined, and set an ARM
obrien [Tue, 12 Sep 2006 07:37:02 +0000 (07:37 +0000)]
Default to big endian ARM if "TARGET_BIG_ENDIAN" is defined, and set an ARM
target default.

18 years agoDefault to big endian ARM if "TARGET_BIG_ENDIAN" is defined (& targeting ARM).
obrien [Tue, 12 Sep 2006 07:09:45 +0000 (07:09 +0000)]
Default to big endian ARM if "TARGET_BIG_ENDIAN" is defined (& targeting ARM).

18 years agoCraft the FreeBSD/ARM ABI by hacking the New ARM ABI source.
obrien [Tue, 12 Sep 2006 07:03:58 +0000 (07:03 +0000)]
Craft the FreeBSD/ARM ABI by hacking the New ARM ABI source.

Submitted by: cognet

18 years agoDefault vector to big endian ARM if "TARGET_BIG_ENDIAN" is defined.
obrien [Tue, 12 Sep 2006 07:02:15 +0000 (07:02 +0000)]
Default vector to big endian ARM if "TARGET_BIG_ENDIAN" is defined.

18 years agoBuild 'ld' supporting a big endian ARM if "TARGET_BIG_ENDIAN" is defined.
obrien [Tue, 12 Sep 2006 06:59:39 +0000 (06:59 +0000)]
Build 'ld' supporting a big endian ARM if "TARGET_BIG_ENDIAN" is defined.

18 years agoConfigure for for big endian if TARGET_BYTES_BIG_ENDIAN is defined.
obrien [Tue, 12 Sep 2006 06:39:27 +0000 (06:39 +0000)]
Configure for for big endian if TARGET_BYTES_BIG_ENDIAN is defined.

18 years agoWARNS=6 chocked on unitialized variable.
charnier [Tue, 12 Sep 2006 05:08:36 +0000 (05:08 +0000)]
WARNS=6 chocked on unitialized variable.

18 years agoIntroduce a new entry point, mac_create_mbuf_from_firewall. This entry point
csjp [Tue, 12 Sep 2006 04:25:13 +0000 (04:25 +0000)]
Introduce a new entry point, mac_create_mbuf_from_firewall. This entry point
exists to allow the mandatory access control policy to properly initialize
mbufs generated by the firewall. An example where this might happen is keep
alive packets, or ICMP error packets in response to other packets.

This takes care of kernel panics associated with un-initialize mbuf labels
when the firewall generates packets.

[1] I modified this patch from it's original version, the initial patch
    introduced a number of entry points which were programmatically
    equivalent. So I introduced only one. Instead, we should leverage
    mac_create_mbuf_netlayer() which is used for similar situations,
    an example being icmp_error()

    This will minimize the impact associated with the MFC

Submitted by: mlaier [1]
MFC after: 1 week

This is a RELENG_6 candidate

18 years ago- Revert making bus_generic_add_child() the default for BUS_ADD_CHILD().
jhb [Mon, 11 Sep 2006 22:20:37 +0000 (22:20 +0000)]
- Revert making bus_generic_add_child() the default for BUS_ADD_CHILD().
  Instead, we want busses to explicitly specify an add_child routine if they
  want to support identify routines, but by default disallow having outside
  drivers add devices.
- Give smbus(4) an explicit bus_add_child() method.

Requested by: imp

18 years agoAdd note about identify routines needing to use BUS_ADD_CHILD rather
imp [Mon, 11 Sep 2006 22:17:18 +0000 (22:17 +0000)]
Add note about identify routines needing to use BUS_ADD_CHILD rather
than device_add_child.  The latter is only for busses adding children,
not children drivers telling a bus that they have an instance...

18 years agoFix issues found by Coverity (223392, 223393) due to TSO additions
pdeuskar [Mon, 11 Sep 2006 20:59:01 +0000 (20:59 +0000)]
Fix issues found by Coverity (223392, 223393) due to TSO additions

Submitted by: Matthew Jacob

18 years agoMinor overhaul of SMBus support:
jhb [Mon, 11 Sep 2006 20:52:41 +0000 (20:52 +0000)]
Minor overhaul of SMBus support:
- Change smbus_callback() to pass a void * rather than caddr_t.
- Change smbus_bread() to pass a pointer to the count and have it be an
  in/out parameter.  The input is the size of the buffer (same as before),
  but on return it will contain the actual amount of data read back from
  the bus.  Note that this value may be larger than the input value.  It
  is up to the caller to treat this as an error if desired.
- Change the SMB_BREAD ioctl to write out the updated struct smbcmd which
  will contain the actual number of bytes read in the 'count' field.  To
  preserve the previous ABI, the old ioctl value is mapped to SMB_OLD_BREAD
  which doesn't copy the updated smbcmd back out to userland.  I doubt anyone
  actually used the old BREAD anyway as it was rediculous to do a bulk-read
  but not tell the using program how much data was actually read.
- Make the smbus driver and devclass public in the smbus module and
  push all the DRIVER_MODULE()'s for attaching the smbus driver to
  various foosmb drivers out into the foosmb modules.  This makes all
  the foosmb logic centralized and allows new foosmb modules to be
  self-contained w/o having to hack smbus.c everytime a new smbus driver
  is added.
- Add a new SMB_EINVAL error bit and use it in place of EINVAL to return
  an error for bad arguments (such as invalid counts for bread and bwrite).
- Map SMB bus error bits to EIO in smbus_error().
- Make the smbus driver call bus_generic_probe() and require child drivers
  such as smb(4) to create device_t's via identify routines.  Previously,
  smbus just created one anonymous device during attach, and if you had
  multiple drivers that could attach it was just random chance as to which
  driver got to probe for the sole device_t first.
- Add a mutex to the smbus(4) softc and use it in place of dummy splhigh()
  to protect the 'owner' field and perform necessary synchronization for
  smbus_request_bus() and smbus_release_bus().
- Change the bread() and bwrite() methods of alpm(4), amdpm(4), and
  viapm(4) to only perform a single transaction and not try to use a
  loop of multiple transactions for a large request.  The framing and
  commands to use for a large transaction depend on the upper-layer
  protocol (such as SSIF for IPMI over SMBus) from what I can tell, and the
  smb(4) driver never allowed bulk read/writes of more than 32-bytes
  anyway.  The other smb drivers only performed single transactions.
- Fix buffer overflows in the bread() methods of ichsmb(4), alpm(4),
  amdpm(4), amdsmb(4), intpm(4), and nfsmb(4).
- Use SMB_xxx errors in viapm(4).
- Destroy ichsmb(4)'s mutex after bus_generic_detach() to avoid problems
  from child devices making smb upcalls that would use the mutex during
  their detach methods.

MFC after: 1 week
Reviewed by: jmg (mostly)

18 years agoAdd a new ddb command 'show lapic' to dump details about the local APIC
jhb [Mon, 11 Sep 2006 20:12:42 +0000 (20:12 +0000)]
Add a new ddb command 'show lapic' to dump details about the local APIC
registers for the current CPU.

MFC after: 3 days

18 years agoActually hook up the IPI_INVLCACHE IDT vectors backing
jhb [Mon, 11 Sep 2006 20:10:42 +0000 (20:10 +0000)]
Actually hook up the IPI_INVLCACHE IDT vectors backing
pmap_invalidate_cache() in the SMP case so pmap_mapdev() in multiuser
doesn't panic with a trap 30.  I broke this many months ago when I
added pmap_invalidate_cache() as early parts of the PAT work.

Patience from: jmg
Pointy hat: jhb

18 years agoFix a NULL pointer dereference of ro->ro_rt->rt_flags by checking for the
andre [Mon, 11 Sep 2006 19:56:10 +0000 (19:56 +0000)]
Fix a NULL pointer dereference of ro->ro_rt->rt_flags by checking for the
validity of ro->ro_rt first.  This prevents crashing on any non-normally
routed IP packet.

Coverity CID: 162 (incorrectly, it was re-introduced by previous commit)

18 years agoAdd support for a few more Serverworks and lookalikes chips.
sos [Mon, 11 Sep 2006 19:48:30 +0000 (19:48 +0000)]
Add support for a few more Serverworks and lookalikes chips.

18 years agoUpdate to fit latest USB cleanup crusade.
sos [Mon, 11 Sep 2006 19:47:53 +0000 (19:47 +0000)]
Update to fit latest USB cleanup crusade.

18 years agoAdd prototype for bus_generic_add_child() missed in previous commit.
jhb [Mon, 11 Sep 2006 19:42:27 +0000 (19:42 +0000)]
Add prototype for bus_generic_add_child() missed in previous commit.

18 years agoAdd a default method for BUS_ADD_CHILD() that just calls
jhb [Mon, 11 Sep 2006 19:41:31 +0000 (19:41 +0000)]
Add a default method for BUS_ADD_CHILD() that just calls
device_add_child_ordered().  Previously, a device driver that wanted to
add a new child device in its identify routine had to know if the parent
driver had a custom bus_add_child method and use BUS_ADD_CHILD() in that
case, otherwise use device_add_child().  Getting it wrong in either
direction would result in panics or failure to add the child device.  Now,
BUS_ADD_CHILD() always works isolating child drivers from having to know
intimate details about the parent driver.

Discussed with: imp
MFC after: 1 week

18 years agoAdd myself as OpenSSL janitor/maintainer.
simon [Mon, 11 Sep 2006 19:39:46 +0000 (19:39 +0000)]
Add myself as OpenSSL janitor/maintainer.

18 years agoGive the ACPI I/O rman's unique description strings to make 'devinfo -u'
jhb [Mon, 11 Sep 2006 19:32:54 +0000 (19:32 +0000)]
Give the ACPI I/O rman's unique description strings to make 'devinfo -u'
output less confusing.

MFC after: 3 days

18 years ago- Fix rman_manage_region() to be a lot more intelligent. It now checks
jhb [Mon, 11 Sep 2006 19:31:52 +0000 (19:31 +0000)]
- Fix rman_manage_region() to be a lot more intelligent.  It now checks
  for overlaps, but more importantly, it collapses adjacent free regions.
  This is needed to cope with BIOSen that split up ports for system devices
  (like IPMI controllers) across multiple system resource entries.
- Now that rman_manage_region() is not so dumb, remove extra logic in the
  x86 nexus drivers to populate the IRQ rman that manually coalesced the
  regions.

MFC after: 1 week

18 years agoCF devices are ATA not ATAPI.
sos [Mon, 11 Sep 2006 18:33:59 +0000 (18:33 +0000)]
CF devices are ATA not ATAPI.

18 years agoDefine build 'as' TARGET_BYTES_BIG_ENDIAN if "TARGET_BIG_ENDIAN" is defined.
obrien [Mon, 11 Sep 2006 18:07:09 +0000 (18:07 +0000)]
Define build 'as' TARGET_BYTES_BIG_ENDIAN if "TARGET_BIG_ENDIAN" is defined.
This is needed for bi-sex architectures.

18 years agonull commit to provide commit message to previous
mjacob [Mon, 11 Sep 2006 17:57:23 +0000 (17:57 +0000)]
null commit to provide commit message to previous
at the request of Sam Leffler: The previous commit
established min and maxtags for VMware pseudo disks
to fix a submitted PR.

18 years agoPR: 103130
mjacob [Mon, 11 Sep 2006 17:34:28 +0000 (17:34 +0000)]
PR: 103130
Submitted by: Shusuke Shinomiya
MFC after: 1 day

18 years agoRegen.
ru [Mon, 11 Sep 2006 13:56:28 +0000 (13:56 +0000)]
Regen.

18 years agoDocument the new know, WITHOUT_ASSERT_DEBUG.
ru [Mon, 11 Sep 2006 13:55:27 +0000 (13:55 +0000)]
Document the new know, WITHOUT_ASSERT_DEBUG.

18 years ago- Utilize the "showconfig" top-level target.
ru [Mon, 11 Sep 2006 13:39:44 +0000 (13:39 +0000)]
- Utilize the "showconfig" top-level target.
- Pass __MAKE_CONF=/dev/null to get a pristine output.

18 years agoMake it possible again to build -CURRENT snapshots on -STABLE.
ru [Mon, 11 Sep 2006 13:15:09 +0000 (13:15 +0000)]
Make it possible again to build -CURRENT snapshots on -STABLE.

Reported by: Angelo Turetta

18 years agoAdd support for MCP61 and MCP65 adaptors.
obrien [Mon, 11 Sep 2006 07:31:55 +0000 (07:31 +0000)]
Add support for MCP61 and MCP65 adaptors.

Submitted by: Peer Chen at nVIDIA

18 years agoThe run_filter() procedure is a means of working around DMA engine bugs in
scottl [Mon, 11 Sep 2006 06:48:53 +0000 (06:48 +0000)]
The run_filter() procedure is a means of working around DMA engine bugs in
old/broken hardware.  Unfortunately, it adds cache pressure and possible
mispredicted branches to the fast path of the bus_dmamap_load collection of
functions.  Since it's meant for slow path exception processing, de-inline
it and allow its conditions to be pre-computed at tag_create time and thus
short-circuited at runtime.

While here, cut down on the size of _bus_dmamap_load_buffer() by pushing the
bounce page logic into a non-inlined function.  Again, this helps with
cache pressure and mispredicted branches.

According to the TSC, this shaves off a few cycles on average.  Unfortunately,
the data varies quite a bit due to interrupts and preemption, so it's hard to
get a good measurement.  Real world measurements of network PPS are welcomed.
A merge to amd64 and other arches is pending more testing.

18 years agoAdd a knob for compiling the tree -DNDEBUG. This turns off all the
imp [Mon, 11 Sep 2006 05:35:57 +0000 (05:35 +0000)]
Add a knob for compiling the tree -DNDEBUG.  This turns off all the
asserts and makes binaries smaller.  The binaries also become
repeatable again.  As it was, without this md5's of binaries built
with different paths differed.

# Where do I document this?

18 years agoFix three whitespace nits.
imp [Mon, 11 Sep 2006 05:12:12 +0000 (05:12 +0000)]
Fix three whitespace nits.

I think these are from kan@...

18 years agoFix a typo
brian [Sun, 10 Sep 2006 20:41:33 +0000 (20:41 +0000)]
Fix a typo

18 years agoCorrect incorrect PKCS#1 v1.5 padding validation in crypto(3).
simon [Sun, 10 Sep 2006 20:16:43 +0000 (20:16 +0000)]
Correct incorrect PKCS#1 v1.5 padding validation in crypto(3).

Obtained from: OpenSSL project
Security: FreeBSD-SA-06:19.openssl

18 years agoFix style(9) issues in the TSO specific changes.
pdeuskar [Sun, 10 Sep 2006 19:23:27 +0000 (19:23 +0000)]
Fix style(9) issues in the TSO specific changes.

Pointed out by: jmallett

18 years agomake use of the host route's mtu for processing. This means we can now
jmg [Sun, 10 Sep 2006 17:49:09 +0000 (17:49 +0000)]
make use of the host route's mtu for processing.  This means we can now
support a network w/ split mtu's by assigning each host route the correct
mtu.  an aspiring programmer could write a daemon to probe hosts and find
out if they support a larger mtu.

18 years agoNew sockets created by incoming connections into listen sockets should
andre [Sun, 10 Sep 2006 17:08:06 +0000 (17:08 +0000)]
New sockets created by incoming connections into listen sockets should
inherit all settings and options except listen specific options.

Add the missing send/receive timeouts and low watermarks.
Remove inheritance of the field so_timeo which is unused.

Noticed by: phk
Reviewed by: rwatson
Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 days

18 years agoFix locking race in ttymodem(). The locking of the proctree happens too late
mbr [Sun, 10 Sep 2006 16:51:56 +0000 (16:51 +0000)]
Fix locking race in ttymodem(). The locking of the proctree happens too late
and opens a small race window before tp->t_session->s_leader is accessed. In case
tp->t_session has just been set to NULL elsewhere, we get a panic().

This fix is a bandaid until someone else fixes the whole locking in the tty subsystem.
Definitly more work needs to be done.

MFC after: 1 week
Reviewed by: mlaier
PR: kern/103101

18 years agoYank FreeBSD specific code out from under ifdef.
trhodes [Sun, 10 Sep 2006 15:20:39 +0000 (15:20 +0000)]
Yank FreeBSD specific code out from under ifdef.
Remove compatibility ifdefs.

Reviewed/Ok'ed by: imp

18 years agoThe Linux unlink syscall uses a different errno value when trying to unlink
netchild [Sun, 10 Sep 2006 13:47:56 +0000 (13:47 +0000)]
The Linux unlink syscall uses a different errno value when trying to unlink
a directory.

PR: 102897 [1]
Noticed by: Knut Anders Hatlen <kahatlen@gmail.com>, testrun with LTP [1]
Submitted by: Marcin Cieslak <saper@SYSTEM.PL>
Tested by: netchild (LTP test run)

18 years agoDelay an orphan event if provider has still in-flight I/O requests.
pjd [Sun, 10 Sep 2006 09:11:54 +0000 (09:11 +0000)]
Delay an orphan event if provider has still in-flight I/O requests.
This way GEOM classes can safely detach from provider when an orphan
event is received. This fixes 'detach with active requests' panic for
gstripe/gconcat under load.

PR: kern/102766
Submitted by: mjacob
OK'ed by: phk
MFC after: 1 week

18 years agoFix the manual build.
obrien [Sun, 10 Sep 2006 08:58:47 +0000 (08:58 +0000)]
Fix the manual build.

18 years agoSync with NetBSD rev. 1.16 + 1.17
mbr [Sat, 9 Sep 2006 22:33:21 +0000 (22:33 +0000)]
Sync with NetBSD rev. 1.16 + 1.17

Coverity CID 2292: Plug memory leak.
Coverity CID 2291: Move function call before allocating storage to prevent
memory leak on error.

MFC after:    1 month

18 years agoSync with NetBSD rev. 1.29
mbr [Sat, 9 Sep 2006 22:32:07 +0000 (22:32 +0000)]
Sync with NetBSD rev. 1.29

Coverity CID 2293: Fix memory leak.

MFC after: 1 month

18 years agoSync with NetBSD rev. 1.6 + 1.7
mbr [Sat, 9 Sep 2006 22:29:16 +0000 (22:29 +0000)]
Sync with NetBSD rev. 1.6 + 1.7

Coverity CID 779 + 780: Avoid NULL pointer dereference.

MFC after:    1 month

18 years agoSync with NetBSD rev. 1.20 + 1.21
mbr [Sat, 9 Sep 2006 22:26:47 +0000 (22:26 +0000)]
Sync with NetBSD rev. 1.20 + 1.21

Coverity CID 2284: Fix multiple memory leaks.
Coverity CID 710: Remove unreachable code.

MFC after:    1 month

18 years agoSync with NetBSD rev. 1.10
mbr [Sat, 9 Sep 2006 22:22:39 +0000 (22:22 +0000)]
Sync with NetBSD rev. 1.10

Coverity CID 2276: Don't leak memory on error.

MFC after:    1 month

18 years agoSync with NetBSD rev. 1.15
mbr [Sat, 9 Sep 2006 22:21:15 +0000 (22:21 +0000)]
Sync with NetBSD rev. 1.15

Coverity CID 2275: Avoid memory leak on error.

MFC after:    1 month

18 years agoSync part of NetBSD rev. 1.14
mbr [Sat, 9 Sep 2006 22:18:57 +0000 (22:18 +0000)]
Sync part of NetBSD rev. 1.14

Fix unpaired sigblock which possibly leaves the process with all
signals blocked.

MFC after: 2 weeks

18 years agoSync with NetBSD rev. 1.16 + 1.17
mbr [Sat, 9 Sep 2006 22:14:42 +0000 (22:14 +0000)]
Sync with NetBSD rev. 1.16 + 1.17

Coverity CID 3651: Don't leak ifaddrs on getaddrinfo failure.
Coverity CID 2283: Don't leak sys_auth on error.

MFC after:    1 month

18 years agomove created/detected/activated under debug level 1 to quiet the common case..
jmg [Sat, 9 Sep 2006 21:45:37 +0000 (21:45 +0000)]
move created/detected/activated under debug level 1 to quiet the common case..

add count of active and total components to the launched line so you can
see at a glance if your mirror/raid3 is complete...

now:
GEOM_MIRROR: Device mirror/sam launched (2/2).

Reviewed by: pjd

18 years agoSecond attempt at fixing module build
pdeuskar [Sat, 9 Sep 2006 20:05:24 +0000 (20:05 +0000)]
Second attempt at fixing module build

Pointyhat: pdeuskar

18 years agoFix build breakage while compiling em as a module.
pdeuskar [Sat, 9 Sep 2006 19:55:13 +0000 (19:55 +0000)]
Fix build breakage while compiling em as a module.

18 years agoBuild linprocfs and linsysfs as modules on amd64.
netchild [Sat, 9 Sep 2006 16:58:22 +0000 (16:58 +0000)]
Build linprocfs and linsysfs as modules on amd64.

Sponsored by: Google SoC 2006
Submitted by: rdivacky

18 years ago- Extend the coverage of PROC_LOCK to cover wakeup(&p->p_emuldata);
netchild [Sat, 9 Sep 2006 16:55:55 +0000 (16:55 +0000)]
- Extend the coverage of PROC_LOCK to cover wakeup(&p->p_emuldata);
- Lock the emuldata in a case when we just created it.

Sponsored by: Google SoC 2006
Submitted by: rdivacky
Suggested by: jhb

18 years agoAdd struct msg to the forwarded declared data structures in mac_policy.h.
rwatson [Sat, 9 Sep 2006 16:35:44 +0000 (16:35 +0000)]
Add struct msg to the forwarded declared data structures in mac_policy.h.

Obtained from: TrustedBSD Project

18 years agoChange futex lock from mutex to sx. Make futex_get atomic (protected by the
netchild [Sat, 9 Sep 2006 16:25:25 +0000 (16:25 +0000)]
Change futex lock from mutex to sx. Make futex_get atomic (protected by the
futex lock).

Sponsored by: Google SoC 2006
Submitted by: rdivacky
Suggested by: jhb

18 years agoRemove slightly oddly placed suser() call from the KTR/ALQ setup sysctl:
rwatson [Sat, 9 Sep 2006 16:09:01 +0000 (16:09 +0000)]
Remove slightly oddly placed suser() call from the KTR/ALQ setup sysctl:
it was present only in the enable path, not the disable path, which one
presumes would be equally of interest.  Either way, it was not needed,
as the sysctl framework already calls suser() if the operation is a
write operation, which configuration requests are.

Sponsored by: nCircle Network Security, Inc.

18 years agoFix the check where we want to use the end of the supported range if the
netchild [Sat, 9 Sep 2006 14:43:03 +0000 (14:43 +0000)]
Fix the check where we want to use the end of the supported range if the
value is out of the supported range.

Noticed by: Ed Schouten <ed@fxq.nl>
Reviewed by: Kazuhito HONDA <kazuhito@ph.noda.tus.ac.jp>

18 years ago- don't wake every sleeper just the first one [1]
netchild [Sat, 9 Sep 2006 13:04:28 +0000 (13:04 +0000)]
- don't wake every sleeper just the first one [1]
- remove debuging printf [2]

Submitted by: intron <mag@intron.ac> [1], rdivacky [2]

18 years agoAdd a BSM conversion switch case for AUE_GETCWD, so that a console
rwatson [Sat, 9 Sep 2006 10:23:44 +0000 (10:23 +0000)]
Add a BSM conversion switch case for AUE_GETCWD, so that a console
warning isn't generated when __getcwd() is invoked.

MFC after: 3 days
Obtained from: TrustedBSD Project

18 years agoSmall style cleanup.
rwatson [Sat, 9 Sep 2006 10:23:00 +0000 (10:23 +0000)]
Small style cleanup.

MFC after: 3 days

18 years agoAudit sysarch() operation argument.
rwatson [Sat, 9 Sep 2006 10:20:31 +0000 (10:20 +0000)]
Audit sysarch() operation argument.

MFC after: 3 days

18 years agoCatch up to xchat and samba package changes
kris [Sat, 9 Sep 2006 07:25:40 +0000 (07:25 +0000)]
Catch up to xchat and samba package changes

18 years agoAdd support for TSO. Thanks to Andre for adding support in the stack
pdeuskar [Sat, 9 Sep 2006 06:19:20 +0000 (06:19 +0000)]
Add support for TSO. Thanks to Andre for adding support in the stack
and Jack Vogel for driver changes.

Submitted by: Jack Vogel

18 years agoBump __FreeBSD_version for rev. 1.117 of libexec/rtld-elf/rtld.c.
kib [Sat, 9 Sep 2006 04:41:40 +0000 (04:41 +0000)]
Bump __FreeBSD_version for rev. 1.117 of libexec/rtld-elf/rtld.c.

Requested by: jkim
Approved by: kan (mentor)

18 years agoAdd support to bge(4) to not break IPMI support when the driver attaches
ambrisko [Sat, 9 Sep 2006 03:36:57 +0000 (03:36 +0000)]
Add support to bge(4) to not break IPMI support when the driver attaches
to it.  Try to co-operate with the IPMI/ASF firmware accessing the PHY.
One we get link we don't mess with the PHY.  If we do then over time
the NIC will go off line.  It would be nice if we could tell if IPMI
was enabled on the chip but I can't figure out a reliable way to do
that.  The scheme I tried worked on a Dell PE850 but not on an HP machine.
So we assume any NIC that has ASF capability needs to deal with it.

The code was inspired by the support in Linux from kernel.org and Broadcom.
Broadcom did give me some info. but it is rather limited and is mostly
just what is in the Linux driver.  Thanks to the numerous people that
helped debug the many prior versions and that I didn't break other
bge(4) HW.

Reviewed by: several people
Tested by: even more

18 years agoThe following functions need not to be reimplemented, reuse 64bit
davidxu [Sat, 9 Sep 2006 01:22:13 +0000 (01:22 +0000)]
The following functions need not to be reimplemented, reuse 64bit
syscalls instead:
sigqueue, thr_set_name, thr_setscheduler, thr_getscheduler,
thr_setschedparam.

18 years agoFix style nits. No md5 changes in .o's. ;-)
jkim [Fri, 8 Sep 2006 21:46:01 +0000 (21:46 +0000)]
Fix style nits.  No md5 changes in .o's. ;-)

18 years agoStop cutting the tarball names to eight symbols. This makes
ru [Fri, 8 Sep 2006 19:54:37 +0000 (19:54 +0000)]
Stop cutting the tarball names to eight symbols.  This makes
it possible to e.g. distribute kernels with config names larger
than eight symbols, without the clash.  Previousy, LALALALA
and LALALALA-SMP would be the same tarball.  (I think this
comes from the old days where tarballs were put on the MS-DOS
formatted diskettes.)

MFC after: 3 days

18 years agoChange the way base allocation is done for internal malloc data
jasone [Fri, 8 Sep 2006 17:52:15 +0000 (17:52 +0000)]
Change the way base allocation is done for internal malloc data
structures, in order to avoid the possibility of attempted recursive
lock acquisition for chunks_mtx.

Reported by: Slawa Olhovchenkov <slw@zxy.spb.ru>

18 years agoMF6: Attach if_bce.ko to the build.
ru [Fri, 8 Sep 2006 15:40:36 +0000 (15:40 +0000)]
MF6: Attach if_bce.ko to the build.

Noticed by: davidch

18 years agoTemporarily put ugly workaround in place to make sparc64 build happy.
emax [Fri, 8 Sep 2006 15:05:38 +0000 (15:05 +0000)]
Temporarily put ugly workaround in place to make sparc64 build happy.
panther is down at the moment, so better fix will follow later.

18 years agoWhen looking up the symbol by dlsym, look it not only in the object
kib [Fri, 8 Sep 2006 14:59:54 +0000 (14:59 +0000)]
When looking up the symbol by dlsym, look it not only in the object
given as dso handle, but also in the implicit dependencies of that dso.

Also, const-ify the read-only parameter objlist of symlook_list.

Reported by: "Simon 'corecode' Schubert" <corecode at fs ei tum de>
Approved by: kan (mentor)
X-MFC-After: 6.2

18 years agoDocument that bits are numbered from 1 in the %b format argument.
ru [Fri, 8 Sep 2006 14:05:03 +0000 (14:05 +0000)]
Document that bits are numbered from 1 in the %b format argument.

18 years agoRe-word the description of the "async" flag.
danger [Fri, 8 Sep 2006 13:47:39 +0000 (13:47 +0000)]
Re-word the description of the "async" flag.

Suggested by: Milos Vyletel (mv@rulez.sk)
Reviewed by: ru
Approved by: keramida (mentor), trhodes (mentor)

18 years agoFix format character.
pjd [Fri, 8 Sep 2006 13:46:18 +0000 (13:46 +0000)]
Fix format character.

Reported by: andre