]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoTARGET_BIG_ENDIAN isn't appropriate here. __ARMEB__ is sufficient and
imp [Thu, 14 Sep 2006 06:36:13 +0000 (06:36 +0000)]
TARGET_BIG_ENDIAN isn't appropriate here.  __ARMEB__ is sufficient and
besides, TARGET_BIG_ENDIAN isn't defined anyway.

17 years agoinitialize unitialized variables (WARNS=6)
charnier [Thu, 14 Sep 2006 04:45:44 +0000 (04:45 +0000)]
initialize unitialized variables (WARNS=6)

17 years agoOnly treat positive values as errors...
jmg [Thu, 14 Sep 2006 03:47:59 +0000 (03:47 +0000)]
Only treat positive values as errors...

Pointed out by: wsk
Message-ID: <45060FC4.2090308@gddsn.org.cn>

17 years agoWhen building WITHOUT_ASSERT_DEBUG, we need to disable -Werror as its easy
obrien [Wed, 13 Sep 2006 23:27:21 +0000 (23:27 +0000)]
When building WITHOUT_ASSERT_DEBUG, we need to disable -Werror as its easy
to see "warning: unused variable `foo'".

17 years agoCorrect include path.
jhb [Wed, 13 Sep 2006 21:11:13 +0000 (21:11 +0000)]
Correct include path.

17 years agoRemove reference to T/TCP.
joel [Wed, 13 Sep 2006 19:48:00 +0000 (19:48 +0000)]
Remove reference to T/TCP.

Reviewed by: andre

17 years agointpm(4) meet style(9). style(9) meet intpm(4).
jhb [Wed, 13 Sep 2006 18:56:39 +0000 (18:56 +0000)]
intpm(4) meet style(9).  style(9) meet intpm(4).

17 years agoFixes up the handling of shared vnode lock lookups in the NFS client,
mohans [Wed, 13 Sep 2006 18:39:09 +0000 (18:39 +0000)]
Fixes up the handling of shared vnode lock lookups in the NFS client,
adds a FS type specific flag indicating that the FS supports shared
vnode lock lookups, adds some logic in vfs_lookup.c to test this flag
and set lock flags appropriately.

- amd on 6.x is a non-starter (without this change). Using amd under
  heavy load results in a deadlock (with cascading vnode locks all the
  way to the root) very quickly.
- This change should also fix the more general problem of cascading
  vnode deadlocks when an NFS server goes down.

Ideally, we wouldn't need these changes, as enabling shared vnode lock
lookups globally would work. Unfortunately, UFS, for example isn't
ready for shared vnode lock lookups, crashing pretty quickly.

This change is the result of discussions with Stephan Uphoff (ups@).

Reviewed by: ups@

17 years agoBump .Dd.
joel [Wed, 13 Sep 2006 18:34:32 +0000 (18:34 +0000)]
Bump .Dd.

Noticed by: danger

17 years agoRemove references to the pam(8) manual page. It does not exist.
joel [Wed, 13 Sep 2006 17:46:20 +0000 (17:46 +0000)]
Remove references to the pam(8) manual page.  It does not exist.

Requested by: novel
Discussed with: brueffer, simon

17 years agoIntroduce a spinlock for synchronizing access to the video output hardware
scottl [Wed, 13 Sep 2006 15:48:15 +0000 (15:48 +0000)]
Introduce a spinlock for synchronizing access to the video output hardware
in syscons.  This replaces a simple access semaphore that was assumed to be
protected by Giant but often was not.  If two threads that were otherwise
SMP-safe called printf at the same time, there was a high likelyhood that
the semaphore would get corrupted and result in a permanently frozen video
console.  This is similar to what is already done in the serial console
drivers.

17 years agoBack out one of the Giant removals from revision 1.272. Giant was not here to
csjp [Wed, 13 Sep 2006 15:47:53 +0000 (15:47 +0000)]
Back out one of the Giant removals from revision 1.272. Giant was not here to
protect the vnode, it was present to synchronize access to TTY session
information between exit(2) and the TTY code. While we are here, note that
Giant is required for TTY protection.

Clue from: bde
Discussed with: jhb
MFC after: 1 week

17 years agoFix markup bug in last commit.
glebius [Wed, 13 Sep 2006 15:47:26 +0000 (15:47 +0000)]
Fix markup bug in last commit.

Submitted by: ru

17 years agoFix synchronization in gmirror and graid3 which I broken. Synchronization
pjd [Wed, 13 Sep 2006 15:46:49 +0000 (15:46 +0000)]
Fix synchronization in gmirror and graid3 which I broken. Synchronization
request can still have bio_to set to sc_provider (this is READ part of a
synchronization request) and in this case g_{mirror,raid3}_sync() wasn't
called as it should be.

MFC after: 1 week

17 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

17 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.

17 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

17 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@

17 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.

17 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

17 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

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

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

17 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

17 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

17 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.

17 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

17 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

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

17 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@

17 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()

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

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

17 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

17 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.

17 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.

17 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).

17 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

17 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.

17 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.

17 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.

17 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.

17 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

17 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

17 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...

17 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

17 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)

17 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

17 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

17 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)

17 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.

17 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.

17 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.

17 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

17 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.

17 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

17 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

17 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.

17 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.

17 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.

17 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

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

17 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.

17 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.

17 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

17 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

17 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.

17 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?

17 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@...

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

17 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

17 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

17 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.

17 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

17 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

17 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

17 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)

17 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

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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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.

17 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

17 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

17 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

17 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

17 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.

17 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>

17 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]

17 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

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

MFC after: 3 days

17 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