]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoIt is possible for bpf to return a length such that:
brooks [Tue, 26 Sep 2006 01:02:02 +0000 (01:02 +0000)]
It is possible for bpf to return a length such that:

length != BPF_WORDALIGN(length)

This meeans that it is possible for this to be true:

interface->rbuf_offset > interface->rbuf_len

Handle this case in the test for running out of packets.  While
OpenBSD's solution of setting interface->rbuf_len to
BPF_WORDALIGN(length) is safe due to the size of the buffer, I think
this solution results in less hidden assumptions.

This should fix the problem of dhclient running away and consuming 100%
CPU.

PR: bin/102226
Submitted by: Joost Bekkers <joost at jodocus.org>
MFC after: 3 days

17 years agoSI_ORDER_THIRD + 2, not SI_ORDER_FOURTH + 2.
rwatson [Tue, 26 Sep 2006 00:15:56 +0000 (00:15 +0000)]
SI_ORDER_THIRD + 2, not SI_ORDER_FOURTH + 2.

MFC after: 3 days
Submitted by: mlaier

17 years agoAdd "FreeBSD" trademark statement to copyright section of boot messages.
rwatson [Mon, 25 Sep 2006 23:19:01 +0000 (23:19 +0000)]
Add "FreeBSD" trademark statement to copyright section of boot messages.

MFC after: 3 days
Approved by: core, board at FreeBSDFoundation dot org

17 years agoDocument config_intrhook.
imp [Mon, 25 Sep 2006 20:12:13 +0000 (20:12 +0000)]
Document config_intrhook.

MFC After: 250 millifortnights

17 years agoFix a typo in af_inet6.c such that IPv6 addresses may be deleted
bms [Mon, 25 Sep 2006 18:20:56 +0000 (18:20 +0000)]
Fix a typo in af_inet6.c such that IPv6 addresses may be deleted
from interfaces.

PR: bin/102701
Submitted by: George Mitchell
MFC after: 3 days

17 years agoFix bug introduced in rev 1.23:
marck [Mon, 25 Sep 2006 15:06:24 +0000 (15:06 +0000)]
Fix bug introduced in rev 1.23:

pw_equal does not check crypted password field, so one cannot change
crypted password keeping other fields intact.

Approved by: des
MCF after: 3 days

17 years agoMerge OpenBSM 1.0 alpha 12 import changes into src/sys/bsm. New events
rwatson [Mon, 25 Sep 2006 12:22:07 +0000 (12:22 +0000)]
Merge OpenBSM 1.0 alpha 12 import changes into src/sys/bsm.  New events
for the Linuxulator.

MFC after: 3 days
Obtained from: TrustedBSD Project

17 years agoauditreduce now requires OpenBSM's config/config.h, so add that to the
rwatson [Mon, 25 Sep 2006 11:56:20 +0000 (11:56 +0000)]
auditreduce now requires OpenBSM's config/config.h, so add that to the
build include path.

MFC after: 3 days
Obtained from: TrustedBSD Project

17 years agoHook up additional OpenBSM man page aliases following OpenBSM 1.0 alpha 12
rwatson [Mon, 25 Sep 2006 11:53:58 +0000 (11:53 +0000)]
Hook up additional OpenBSM man page aliases following OpenBSM 1.0 alpha 12
import.  Most of these should have existed previously, but didn't.

MFC after: 3 days
Obtained from: TrustedBSD Project

17 years agoFix an incompatibility between CARP and IPv4 multicast routing, whereby
bms [Mon, 25 Sep 2006 11:53:54 +0000 (11:53 +0000)]
Fix an incompatibility between CARP and IPv4 multicast routing, whereby
the VRRPv2 advertisements will originate from the wrong source address.
This only affects kernels compiled with MROUTING and after the MRT_INIT
ioctl() has been issued.
Set imo_multicast_vif in carp's softc to the invalid value -1 after it is
zeroed by softc allocation, to stop the ip_output() path looking up the
incorrect source address thinking a vif is set.

PR: kern/100532
Submitted by: Bohus Plucinsky
MFC after: 1 week

17 years agoResolve conflicts from OpenBSM 1.0 alpha 12 import.
rwatson [Mon, 25 Sep 2006 11:53:06 +0000 (11:53 +0000)]
Resolve conflicts from OpenBSM 1.0 alpha 12 import.

Obtained from: TrustedBSD Project

17 years agoSpleling
bms [Mon, 25 Sep 2006 11:48:07 +0000 (11:48 +0000)]
Spleling

Submitted by: pjd

17 years agoUpdate the mfi module build with the mfi_debug.c file.
scottl [Mon, 25 Sep 2006 11:42:12 +0000 (11:42 +0000)]
Update the mfi module build with the mfi_debug.c file.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r162621,
rwatson [Mon, 25 Sep 2006 11:40:29 +0000 (11:40 +0000)]
This commit was generated by cvs2svn to compensate for changes in r162621,
which included commits to RCS files with non-trunk default branches.

17 years agoVendor import TrustedBSD OpenBSM 1.0 alpha 12, with the following change
rwatson [Mon, 25 Sep 2006 11:40:29 +0000 (11:40 +0000)]
Vendor import TrustedBSD OpenBSM 1.0 alpha 12, with the following change
history notes since the last import:

OpenBSM 1.0 alpha 12

- Correct bug in auditreduce which prevented the -c option from working
  correctly when the user specifies to process successful or failed events.
  The problem stemmed from not having access to the return token at the time
  the initial preselection occurred, but now a second preselection process
  occurs while processing the return token.
- getacfilesz(3) API added to read new audit_control(5) filesz setting,
  which auditd(8) now sets the kernel audit trail rotation size to.
- auditreduce(1) now uses stdin if no file names are specified on the command
  line; this was the documented behavior previously, but it was not
  implemented.  Be more specific in auditreduce(1)'s examples section about
  what might be done with the output of auditreduce.
- Add audit_warn(5) closefile event so that administrators can hook
  termination of an audit trail file.  For example, this might be used to
  compress the trail file after it is closed.
- auditreduce(1) now uses regular expressions for pathname matching. Users can
  now supply one or more (comma delimited) regular expressions for searching
  the pathnames. If one of the regular expressions is prefixed with a tilde
  (~), and a path matches, it will be excluded from the search results.

MFC after: 3 days
Obtained from: TrustedBSD Project

17 years agoAdd the mfi_debug.c file and MFI_DEBUG option.
scottl [Mon, 25 Sep 2006 11:40:14 +0000 (11:40 +0000)]
Add the mfi_debug.c file and MFI_DEBUG option.

17 years agoAdd a command debugging module and a periodic watchdog timer.
scottl [Mon, 25 Sep 2006 11:35:34 +0000 (11:35 +0000)]
Add a command debugging module and a periodic watchdog timer.

Sponsored by: IronPort

17 years agoadd support for the ALI/ULI M5288 AHCI part.
sos [Mon, 25 Sep 2006 11:26:29 +0000 (11:26 +0000)]
add support for the ALI/ULI M5288 AHCI part.

patch by: Sven Petai

17 years agoForced commit to note this change should be MFCed.
bms [Mon, 25 Sep 2006 10:12:07 +0000 (10:12 +0000)]
Forced commit to note this change should be MFCed.

MFC after: 1 week

17 years agoAccount for output IP datagrams on the ifaddr where they originated from,
bms [Mon, 25 Sep 2006 10:11:16 +0000 (10:11 +0000)]
Account for output IP datagrams on the ifaddr where they originated from,
*not* the first ifaddr on the ifp.  This is similar to what NetBSD does.

PR: kern/72936
Submitted by: alfred
Reviewed by: andre

17 years agoif min is greater than max, prefer max over min... I managed to get a
jmg [Mon, 25 Sep 2006 07:22:39 +0000 (07:22 +0000)]
if min is greater than max, prefer max over min...  I managed to get a
retransmit timer that was going to take 19 days to trigger...

Reviewed by: silby

17 years agoremove unnecessary NULL check...
jmg [Mon, 25 Sep 2006 01:29:48 +0000 (01:29 +0000)]
remove unnecessary NULL check...

Coverity ID: 1545

17 years agoAdd a newline to the printf.
imp [Sun, 24 Sep 2006 19:24:26 +0000 (19:24 +0000)]
Add a newline to the printf.

17 years agoFix uninitialized variable warning.
netchild [Sun, 24 Sep 2006 17:37:03 +0000 (17:37 +0000)]
Fix uninitialized variable warning.

Submitted by: dhw
Reviewed by: ryanb

17 years agoSleep for one second after calling audit -t to give the audit daemon a
rwatson [Sun, 24 Sep 2006 17:31:04 +0000 (17:31 +0000)]
Sleep for one second after calling audit -t to give the audit daemon a
chance to actually terminate the audit service and exit.  Otherwise, on
an rc.d/auditd restart, the new audit daemon instance may try to start
auditing while the previous session is still running.  Likewise, this
ensures a chance for auditd to terminate the audit trail at system
shutdown.

Perhaps more ideally, the script would wait synchronously for auditd to
exit rather than for an arbitrary but short period of time.

MFC after: 3 days
Obtained from: TrustedBSD Project

17 years ago- move steps describing how to gain ipdivert support to SYNOPSIS and
danger [Sun, 24 Sep 2006 13:58:44 +0000 (13:58 +0000)]
- move steps describing how to gain ipdivert support to SYNOPSIS and
  follow the style of other section 4 manual pages
- add ipfw(4) to SEE ALSO section

Reviewed by: ru
Approved by: trhodes (mentor), keramida (mentor)

17 years agoRework the way errors are handled with respect to how audit records are
rwatson [Sun, 24 Sep 2006 13:35:58 +0000 (13:35 +0000)]
Rework the way errors are handled with respect to how audit records are
written to the audit trail file:

- audit_record_write() now returns void, and all file system specific
  error handling occurs inside this function.  This pushes error handling
  complexity out of the record demux routine that hands off to both the
  trail and audit pipes, and makes trail behavior more consistent with
  pipes as a record destination.

- Rate limit kernel printfs associated with running low on space.  Rate
  limit audit triggers for low space.  Rate limit printfs for fail stop
  events.  Rate limit audit worker write error printfs.

- Document in detail the types of limits and space checks we perform, and
  combine common cases.

This improves the audit subsystems tolerance to low space conditions by
avoiding toasting the console with printfs are waking up the audit daemon
continuously.

MFC after: 3 days
Obtained from: TrustedBSD Project

17 years agoRemove tcpslice files.
simon [Sun, 24 Sep 2006 10:57:34 +0000 (10:57 +0000)]
Remove tcpslice files.

17 years agoDisable an overly-verbose warning message by default.
hrs [Sun, 24 Sep 2006 09:39:17 +0000 (09:39 +0000)]
Disable an overly-verbose warning message by default.

Suggested by: njl
MFC after: 3 days

17 years agoDe-orbit burn tcpslice.
bms [Sun, 24 Sep 2006 09:18:36 +0000 (09:18 +0000)]
De-orbit burn tcpslice.

Reviewed by: sam, bmah

17 years agoDisconnect tcpslice from build.
bms [Sun, 24 Sep 2006 09:16:27 +0000 (09:16 +0000)]
Disconnect tcpslice from build.

Reviewed by: sam, bmah

17 years agohide kqueue_register from public view, and replace it w/ kqfd_register...
jmg [Sun, 24 Sep 2006 04:47:47 +0000 (04:47 +0000)]
hide kqueue_register from public view, and replace it w/ kqfd_register...
this eliminates a possible race in aio registering a kevent..

17 years agoreturn EBADF instead of successfully attaching (and then panicing) when
jmg [Sun, 24 Sep 2006 02:29:53 +0000 (02:29 +0000)]
return EBADF instead of successfully attaching (and then panicing) when
an fd is dieing..

Convinced by: jhb
PR: 103127

17 years agoadd KTRACE hooks into kevent... This will help people debug their kqueue
jmg [Sun, 24 Sep 2006 02:23:29 +0000 (02:23 +0000)]
add KTRACE hooks into kevent...  This will help people debug their kqueue
programs to find out exactly which events were registered and which were
returned...  This should be lower in kern_kevent, but that would require
special munging due to locks and the functions used to copyin/copyout
kevents...

If someone wants to teach ktrace how to output pretty kevents, I have a
kevent prety printer that can be used...

17 years agoCleanup sloppy ifdef.
imp [Sun, 24 Sep 2006 00:26:33 +0000 (00:26 +0000)]
Cleanup sloppy ifdef.

17 years agoFix our ancient tcpslice for >2GB limits.
bms [Sat, 23 Sep 2006 21:12:23 +0000 (21:12 +0000)]
Fix our ancient tcpslice for >2GB limits.

PR: bin/13691
MFC after: 1 week
Submitted by: Bruce A. Mah

17 years agoMFp4 the sound Google Summer of Code project:
netchild [Sat, 23 Sep 2006 20:45:47 +0000 (20:45 +0000)]
MFp4 the sound Google Summer of Code project:

The goal was to sync with the OSSv4 API 4Front Technologies uses in their
proprietary OSS driver. This was successful as far as possible. The part
of the API which is stable is implemented, for the rest there are some
stubs already.

New system ioctls:
 - SNDCTL_SYSINFO - obtain audio system info (version, # of audio/midi/
   mixer devices, etc.)
 - SNDCTL_AUDIOINFO - fetch details about a specific audio device
 - SNDCTL_MIXERINFO - fetch details about a specific mixer device

New audio ioctls:
 - Sync groups (SNDCTL_DSP_SYNCGROUP/SNDCTL_DSP_SYNCSTART) which allow
   triggered playback/recording on multiple devices (even across processes
   simultaneously).
 - Peak meters (SNDCTL_DSP_GETIPEAKS/SNDCTL_DSP_GETOPEAKS) - can query
   audio drivers for peak levels (needs driver support, disabled for now).
 - Per channel playback/recording levels -
   SNDCTL_DSP_{GET,SET}{PLAY,REC}VOL.  Note that these are still in name
   only, just wrapping around the AC97-style mixer at the moment. The next
   step is to push them down to the drivers.

Audio ioctls still under development by 4Front (for which stubs may exist
in this commit):
 - SNDCTL_GETNAME, SNDCTL_{GET,SET}{SONG,LABEL}
 - SNDCTL_DSP_{GET,SET}_CHNORDER
 - SNDCTL_MIX_ENUMINFO, SNDCTL_MIX_EXTINFO - (might be documented enough in
   the OSS releases to work on this.  These ioctls cover the cool "twiddle
   any knob on your card" features.)

Missing:
 - SNDCTL_DSP_COOKEDMODE -- this ioctl is used to give applications direct
   access to a card's buffers, bypassing the feeder architecture.  It's
   a toughy -- "someone" needs to decide :
   (a) if this is desireable, and (b) if it's reasonably feasible.

Updates for driver writers:
 So far, only two routines to the channel class (in channel_if.m) are added.
 One is for fetching a list of discrete supported playback/recording rates
 of a channel, and the other is for fetching peak level info (useful for
 drawing peak meters).  Interested parties may want to help pushing down
 SNDCTL_DSP_{GET,SET}{PLAY,REC}VOL into the drivers.

To use the new stuff you need to rebuild the sound drivers or your kernel
(depending on if you use modules or not) and to install soundcard.h (a
buildworld/installworld handles this).

Sponsored by: Google SoC 2006
Submitted by: ryanb
Many thanks to: 4Front Technologies for their cooperation, explanations
and the nice license of their soundcard.h.

17 years agonow that we don't automagicly increase the MTU of host routes, when we copy
jmg [Sat, 23 Sep 2006 19:24:10 +0000 (19:24 +0000)]
now that we don't automagicly increase the MTU of host routes, when we copy
the loopback interface, copy it's mtu also..  This means that we again have
large mtu support for local ip addresses...

17 years agoMFp4:
netchild [Sat, 23 Sep 2006 19:06:54 +0000 (19:06 +0000)]
MFp4:
- Linux returns ENOPROTOOPT in a case of not supported opt to setsockopt.
- Return EISDIR in pread() when arg is a directory.
- Return EINVAL instead of EFAULT when namelen is not correct in accept().
- Return EINVAL instead of EACCESS if invalid access mode is entered in
  access().
- Return EINVAL instead of EADDRNOTAVAIL in a case of bad salen param
  to bind().

Submitted by: rdivacky
Tested with: LTP (vfork01 fails now, but it seems to be a race and
not caused by those changes)
MFC after: 1 week

17 years agoAdd documentation on the new bge tunable. Also put the tunable docs into a
scottl [Sat, 23 Sep 2006 19:04:01 +0000 (19:04 +0000)]
Add documentation on the new bge tunable.  Also put the tunable docs into a
separate section.

17 years agoAllow the ASF feature to be disabled via a tunable. On one of my systems,
scottl [Sat, 23 Sep 2006 18:55:49 +0000 (18:55 +0000)]
Allow the ASF feature to be disabled via a tunable.  On one of my systems,
bringing up the bge interface results in a complete system freeze when
this feature is enabled.  Leave it enabled by default.

17 years agoProtect enterpgrp() against another tty/proc race case until the tty locking work
mbr [Sat, 23 Sep 2006 17:35:24 +0000 (17:35 +0000)]
Protect enterpgrp() against another tty/proc race case until the tty locking work
has been fixed.

MFC after: 1 week

17 years agoAlways set the IP version in the TCP input path, to preserve
bms [Sat, 23 Sep 2006 16:26:31 +0000 (16:26 +0000)]
Always set the IP version in the TCP input path, to preserve
the header field for possible later IPSEC SPD lookup, even
when the kernel is built without 'options INET6'.

PR: kern/57760
MFC after: 1 week
Submitted by: Joachim Schueth

17 years agoRename "-a" flag to "-A" in order to avoid conflicting with the "-a" flag
rwatson [Sat, 23 Sep 2006 15:43:29 +0000 (15:43 +0000)]
Rename "-a" flag to "-A" in order to avoid conflicting with the "-a" flag
as found on Solaris.

Requested by: ceri
MFC after: 3 days

17 years agoCheck for tp->t_refcnt == 0 before doing anything in tty_open().
mbr [Sat, 23 Sep 2006 14:52:46 +0000 (14:52 +0000)]
Check for tp->t_refcnt == 0 before doing anything in tty_open().

PR: 103520
MFC after: 1 week

17 years agoKeep compatible parts in sync with OpenBSD v1.21, add some comments.
ache [Sat, 23 Sep 2006 14:48:31 +0000 (14:48 +0000)]
Keep compatible parts in sync with OpenBSD v1.21, add some comments.
No functional changes.

17 years agoIf /dev/tty gets opened after your controlling terminal has been revoked
mbr [Sat, 23 Sep 2006 14:44:14 +0000 (14:44 +0000)]
If /dev/tty gets opened after your controlling terminal has been revoked
you can't call tty_clone afterwords. OpenBSD and NetBSD both fail the
open call in that case, so we should do so as well. This can
be done in ctty_clone by returning with *dev==NULL. Admittedly this
causes open to return ENOENT, instead of ENXIO as on the other BSDs,
but this way requires the least touching of code.

Submitted by:  Nate Eldredge <nge@cs.hmc.edu>
PR:            83375

MFC:           1 week

17 years agoStop reloading %fs and %gs, since it causes the base address from
davidxu [Sat, 23 Sep 2006 13:42:09 +0000 (13:42 +0000)]
Stop reloading %fs and %gs, since it causes the base address from
GDT to be loaded into FS.base and GS.base, these values of course
are not the values set by sysarch() with I386_SET_FSBASE and
I386_SET_GSBASE, the change fixed a crash for 32bit libthr after
signal handler returned and normal code is accessing thread pointer,
for example: movl %gs:8, %eax.

17 years agoAdd a -a argument to id(1), which causes id(1) to print out process
rwatson [Sat, 23 Sep 2006 12:30:31 +0000 (12:30 +0000)]
Add a -a argument to id(1), which causes id(1) to print out process
audit properties, including the audit user id.  This can be quite
helpful in debugging audit problems.

Obtained from: TrustedBSD Project
MFC after: 3 days

17 years agoRegenerate.
davidxu [Sat, 23 Sep 2006 00:27:53 +0000 (00:27 +0000)]
Regenerate.

17 years agoEnable sigwait.
davidxu [Sat, 23 Sep 2006 00:27:11 +0000 (00:27 +0000)]
Enable sigwait.

17 years agoMap pmap_{un,}mapbios() to pmap_{un,}mapdev() on 6.x and earlier.
jhb [Fri, 22 Sep 2006 22:16:20 +0000 (22:16 +0000)]
Map pmap_{un,}mapbios() to pmap_{un,}mapdev() on 6.x and earlier.

17 years agoUpdate the ipmi(4) driver:
jhb [Fri, 22 Sep 2006 22:11:29 +0000 (22:11 +0000)]
Update the ipmi(4) driver:
- Split out the communication protocols into their own files and use
  a couple of function pointers in the softc that the commuication
  protocols setup in their own attach routine.
- Add support for the SSIF interface (talking to IPMI over SMBus).
- Add an ACPI attachment.
- Add a PCI attachment that attaches to devices with the IPMI interface
  subclass.
- Split the ISA attachment out into its own file: ipmi_isa.c.
- Change the code to probe the SMBIOS table for an IPMI entry to just use
  pmap_mapbios() to map the table in rather than trying to setup a fake
  resource on an isa device and then activating the resource to map in the
  table.
- Make bus attachments leaner by adding attach functions for each
  communication interface (ipmi_kcs_attach(), ipmi_smic_attach(), etc.)
  that setup per-interface data.
- Formalize the model used by the driver to handle requests by adding an
  explicit struct ipmi_request object that holds the state of a given
  request and reply for the entire lifetime of the request.  By bundling
  the request into an object, it is easier to add retry logic to the various
  communication backends (as well as eventually support BT mode which uses
  a slightly different message format than KCS, SMIC, and SSIF).
- Add a per-softc lock and remove D_NEEDGIANT as the driver is now MPSAFE.
- Add 32-bit compatibility ioctl shims so you can use a 32-bit ipmitool
  on FreeBSD/amd64.
- Add ipmi(4) to i386 and amd64 NOTES.

Submitted by: ambrisko (large portions of 2 and 3)
Sponsored by: IronPort Systems, Yahoo!
MFC after: 6 days

17 years agoRevert r1.80 as the ethernet header was inadvertently stripped from ARP
thompsa [Fri, 22 Sep 2006 21:57:52 +0000 (21:57 +0000)]
Revert r1.80 as the ethernet header was inadvertently stripped from ARP
packets. Reimplement this correctly and use a sysctl that defaults to off so
the user doesnt get any suprises if ipfw blocks the ARP packet.

MFC after: 3 days

17 years agoUpdate a comment about M_VLANTAG.
ru [Fri, 22 Sep 2006 19:50:04 +0000 (19:50 +0000)]
Update a comment about M_VLANTAG.

17 years agoRemove code #ifndef'ed in prev. commit to stay in sync with OpenBSD
ache [Fri, 22 Sep 2006 18:59:03 +0000 (18:59 +0000)]
Remove code #ifndef'ed in prev. commit to stay in sync with OpenBSD
v1.21 which just do that.

17 years agoBe more GNU compatible:
ache [Fri, 22 Sep 2006 17:01:38 +0000 (17:01 +0000)]
Be more GNU compatible:
don't be greedy on the GNU "::" extension when arg separated by whitespace
and POSIX_CORRECTLY is set. From POSIX point of view this is unclear
situation, so minimal assumption looks right.

17 years agoFix a case where socket I/O atomicity is violated due to not dropping
bms [Fri, 22 Sep 2006 15:34:16 +0000 (15:34 +0000)]
Fix a case where socket I/O atomicity is violated due to not dropping
the entire record when a non-data mbuf is removed in the soreceive() path.
This only triggers a panic directly when compiled with INVARIANTS.

PR: 38495
Submitted by: James Juran
MFC after: 1 week

17 years agoReduce diffs with file generated by FSF configure.
kan [Fri, 22 Sep 2006 15:08:07 +0000 (15:08 +0000)]
Reduce diffs with file generated by FSF configure.

17 years agoRegenerate.
davidxu [Fri, 22 Sep 2006 15:05:34 +0000 (15:05 +0000)]
Regenerate.

17 years agoAdd compatible code to let 32bit libthr work on 64bit kernel.
davidxu [Fri, 22 Sep 2006 15:04:28 +0000 (15:04 +0000)]
Add compatible code to let 32bit libthr work on 64bit kernel.

17 years agoFix umtx command order error for freebsd 32bit.
davidxu [Fri, 22 Sep 2006 14:59:10 +0000 (14:59 +0000)]
Fix umtx command order error for freebsd 32bit.

17 years agoUse usbd_clear_endpoint_stall_async() when clearing endpoint stalls in
cognet [Fri, 22 Sep 2006 12:45:42 +0000 (12:45 +0000)]
Use usbd_clear_endpoint_stall_async() when clearing endpoint stalls in
an interrupt context.

Obtained from: NetBSD
MFC after: 1 week

17 years agoThe fix in revision 1.152 converted in the wrong direction.
alc [Fri, 22 Sep 2006 07:16:36 +0000 (07:16 +0000)]
The fix in revision 1.152 converted in the wrong direction.

Fix a typo in a comment.

Submitted by: Michael Plass

17 years agoThe sparc64/sparc64/pmap.c implementations of pmap_remove(),
alc [Fri, 22 Sep 2006 07:02:15 +0000 (07:02 +0000)]
The sparc64/sparc64/pmap.c implementations of pmap_remove(),
pmap_protect(), and pmap_copy() have optimizations for regions
larger than PMAP_TSB_THRESH (which works out to 16MB).  This
caused a panic in tsb_foreach for kernel mappings, since
pm->pm_tsb is NULL in that case.  This fix teaches tsb_foreach
to use the kernel's tsb in that case.

Submitted by: Michael Plass
MFC after: 3 days

17 years agoDo not declare __evOptMonoTime static in one place and extern
kan [Fri, 22 Sep 2006 01:52:26 +0000 (01:52 +0000)]
Do not declare __evOptMonoTime static in one place and extern
in another. GCC4 does not like that.

17 years agofixed a bug that IPv6 packets arriving to stf are not accepted.
suz [Fri, 22 Sep 2006 01:42:22 +0000 (01:42 +0000)]
fixed a bug that IPv6 packets arriving to stf are not accepted.
(a degrade introduced in in6.c Rev 1.61)

PR: kern/103415
Submitted by: JINMEI Tatuya
MFC after: 1 week

17 years agofixed a bug that local IPv6 traffic (to an address configured on an
suz [Fri, 22 Sep 2006 01:31:22 +0000 (01:31 +0000)]
fixed a bug that local IPv6 traffic (to an address configured on an
interface other than lo0) does not show up properly on any bpf.

Reported by: mlaier
Reviewed by: gnn, csjp
MFC after: 1 week

17 years agoRegenerate.
davidxu [Fri, 22 Sep 2006 00:53:43 +0000 (00:53 +0000)]
Regenerate.

17 years agoAdd umtx support for 32bit process on AMD64 machine.
davidxu [Fri, 22 Sep 2006 00:52:54 +0000 (00:52 +0000)]
Add umtx support for 32bit process on AMD64 machine.

17 years agoSlight tunups to the config files.
julian [Thu, 21 Sep 2006 22:17:04 +0000 (22:17 +0000)]
Slight tunups to the config files.

17 years agoConnect up a QUEUE FULL event with CAM and adjust openings.
mjacob [Thu, 21 Sep 2006 20:35:12 +0000 (20:35 +0000)]
Connect up a QUEUE FULL event with CAM and adjust openings.

Unfortunately, the QUEUE FULL event only tells you Bus && Target.
It doesn't tell you lun. In order for the XPT_REL_SIMQ action to
work, we have to have a real lun. But which one? For now, just
iterate over MPT_MAX_LUNS.

Practically speaking, this is only going to be happening for lower
quality SAS or SATA drives behind the SAS controller, which means
only lun 0, so it's not so bad.

Helpful Reminder Nagging from: John Baldwin, Fred Whiteside

MFC after: 5 days

17 years agoMove the initialization of the hardware capabilities in em_init_locked()
andre [Thu, 21 Sep 2006 19:14:51 +0000 (19:14 +0000)]
Move the initialization of the hardware capabilities in em_init_locked()
before em_setup_transmit_structures() as it needs this information to
properly set up TSO parameters.

Reviewed by: jfv

17 years agoFix a sign bug in acpi_release_resource(). acpi_sysres_find() returns !=
jhb [Thu, 21 Sep 2006 18:56:03 +0000 (18:56 +0000)]
Fix a sign bug in acpi_release_resource().  acpi_sysres_find() returns !=
NULL if the specified resource is a sub-alloc of a system resource.

17 years agoDo not bypass WARNS machinery by hadcoding -Werror into CFLAGS.
kan [Thu, 21 Sep 2006 18:16:22 +0000 (18:16 +0000)]
Do not bypass WARNS machinery by hadcoding -Werror into CFLAGS.

17 years agoPacify new GCC4 warnings.
emax [Thu, 21 Sep 2006 17:16:37 +0000 (17:16 +0000)]
Pacify new GCC4 warnings.

Submitted by: kan
MFC after: 1 week

17 years agoRegenerate.
rwatson [Thu, 21 Sep 2006 16:20:38 +0000 (16:20 +0000)]
Regenerate.

17 years agoUse AUE_CREAT instead of AUE_O_CREAT for linux_creat().
rwatson [Thu, 21 Sep 2006 16:18:33 +0000 (16:18 +0000)]
Use AUE_CREAT instead of AUE_O_CREAT for linux_creat().

Obtained from: TrustedBSD Project

17 years agoRegenerate.
rwatson [Thu, 21 Sep 2006 16:13:16 +0000 (16:13 +0000)]
Regenerate.

17 years agoUse AUE_GETDIRENTRIES instead of AUE_O_GETDENTS and AUE_NULL for a number
rwatson [Thu, 21 Sep 2006 16:12:58 +0000 (16:12 +0000)]
Use AUE_GETDIRENTRIES instead of AUE_O_GETDENTS and AUE_NULL for a number
of directory reading system calls.

Respell a mis-spelled event name.

Clean up white space/line wraps in a couple of places.

Assign event numbers to some new system call entries that have turned
up in the list since audit support was added.

Obtained from: TrustedBSD Project

17 years agoUse correct type in va_arg argument.
kan [Thu, 21 Sep 2006 14:40:20 +0000 (14:40 +0000)]
Use correct type in va_arg argument.

17 years agonetwork_ipv6 also does some interface configuration so require it to run
brooks [Thu, 21 Sep 2006 14:29:32 +0000 (14:29 +0000)]
network_ipv6 also does some interface configuration so require it to run
before starting devd so they don't trip over each other.

PR: conf/103428

17 years agoBack out rev. 1.258. The real race cause has been fixed
mbr [Thu, 21 Sep 2006 14:09:26 +0000 (14:09 +0000)]
Back out rev. 1.258. The real race cause has been fixed
in rev. 1.241 of kern_proc.c.

Requested by: jhb

17 years agoatomic_fetchadd_int is used by mb_free_ext(), but it
rrs [Thu, 21 Sep 2006 09:55:43 +0000 (09:55 +0000)]
atomic_fetchadd_int is used by mb_free_ext(), but it
returns the previous value that the "add" effected (In
this case we are adding -1), afterwhich we compare it
to '0'... to see if we free the mbuf... we should
be comparing it to '1'... Note that this only effects
when there is contention since there is a first part
to the comparison that checks to see if its '1'. So
this bug would only crop up if two CPU's are trying
to free the same mbuf refcount at the same time. This
will happen in SCTP but I doubt can happen in TCP or
UDP.
PR: N/A
Submitted by: rrs
Reviewed by: gnn,sam
Approved by: gnn,sam

17 years agoRemoved these from HEAD as well.
ru [Thu, 21 Sep 2006 07:55:28 +0000 (07:55 +0000)]
Removed these from HEAD as well.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r162512,
ru [Thu, 21 Sep 2006 07:54:02 +0000 (07:54 +0000)]
This commit was generated by cvs2svn to compensate for changes in r162512,
which included commits to RCS files with non-trunk default branches.

17 years agoPrepare to pick up manpages from their new location.
ru [Thu, 21 Sep 2006 07:52:41 +0000 (07:52 +0000)]
Prepare to pick up manpages from their new location.

17 years agoThis commit was generated by cvs2svn to compensate for changes in r162509,
ru [Thu, 21 Sep 2006 07:45:37 +0000 (07:45 +0000)]
This commit was generated by cvs2svn to compensate for changes in r162509,
which included commits to RCS files with non-trunk default branches.

17 years agoUpdated manpages for 3.4.6 release.
ru [Thu, 21 Sep 2006 07:45:37 +0000 (07:45 +0000)]
Updated manpages for 3.4.6 release.

OK'ed by: kan
Obtained from: gcc-3.4.6.tar.bz2

17 years agoMerge OpenBSM 1.0 alpha 11 changes into src/sys/bsm and src/sys/security;
rwatson [Thu, 21 Sep 2006 07:27:02 +0000 (07:27 +0000)]
Merge OpenBSM 1.0 alpha 11 changes into src/sys/bsm and src/sys/security;
primarily, add new event identifiers and update trigger names.

Obtained from: TrustedBSD Project

17 years agoUpdate config.h for OpenBSM 1.0 alpha 11 import: strlcat is now detected
rwatson [Thu, 21 Sep 2006 07:14:41 +0000 (07:14 +0000)]
Update config.h for OpenBSM 1.0 alpha 11 import: strlcat is now detected
by configure.

17 years agoResolve conflicts from OpenBSM 1.0 alpha 11 vendor import: we have locally
rwatson [Thu, 21 Sep 2006 07:12:33 +0000 (07:12 +0000)]
Resolve conflicts from OpenBSM 1.0 alpha 11 vendor import: we have locally
added $FreeBSD$ to /etc configuration files to assist mergemaster.

17 years agoVendor import of OpenBSM 1.0 alpha 11, with the following change history
rwatson [Thu, 21 Sep 2006 07:07:33 +0000 (07:07 +0000)]
Vendor import of OpenBSM 1.0 alpha 11, with the following change history
notes since the last import:

OpenBSM 1.0 alpha 11

- Reclassify certain read/write operations as having no class rather than the
  fr/fw class; our default classes audit intent (open) not operations (read,
  write).
- Introduce AUE_SYSCTL_WRITE event so that BSD/Darwin systems can audit reads
  and writes of sysctls as separate events.  Add additional kernel
  environment and jail events for FreeBSD.
- Break AUDIT_TRIGGER_OPEN_NEW into two events, AUDIT_TRIGGER_ROTATE_USER
  (issued by the user audit(8) tool) and AUDIT_TRIGGER_ROTATE_KERNEL (issued
  by the kernel audit implementation) so that they can be distinguished.
- Disable rate limiting of rotate requests; as the kernel doesn't retransmit
  a dropped request, the log file will otherwise grow indefinitely if the
  trigger is dropped.
- Improve auditd debugging output.
- Fix a number of threading related bugs in audit_control file reading
  routines.
- Add APIs au_poltostr() and au_strtopol() to convert between text
  representations of audit_control policy flags and the flags passed to
  auditon(A_SETPOLICY) and retrieved from auditon(A_GETPOLICY).
- Add API getacpol() to return the 'policy:' entry from audit_control, an
  extension to the Solaris file format to allow specification of policy
  persistent flags.
- Update audump to print the audit_control policy field.
- Update auditd to read the audit_control policy field and set the kernel
  policy to match it when configuring/reconfiguring.  Remove the -s and -h
  arguments as these policies are now set via the configuration file.  If a
  policy line is not found in the configuration file, continue with the
  current default of setting AUDIT_CNT.
- Fix bugs in the parsing of large execve(2) arguments and environmental
  variable tokens; increase maximum parsed argument and variable count.
- configure now detects strlcat(), used by policy-related functions.
- Reference token and record sample files added to test tree.

Obtained from: TrustedBSD Project

17 years agoThis commit was generated by cvs2svn to compensate for changes in r162503,
rwatson [Thu, 21 Sep 2006 07:07:33 +0000 (07:07 +0000)]
This commit was generated by cvs2svn to compensate for changes in r162503,
which included commits to RCS files with non-trunk default branches.

17 years agoRegenerate.
davidxu [Thu, 21 Sep 2006 04:50:38 +0000 (04:50 +0000)]
Regenerate.

17 years agosync with master.
davidxu [Thu, 21 Sep 2006 04:49:36 +0000 (04:49 +0000)]
sync with master.

17 years agoremove thr_getscheduler, thr_setscheduler, thr_setschedparam,
davidxu [Thu, 21 Sep 2006 04:22:46 +0000 (04:22 +0000)]
remove thr_getscheduler, thr_setscheduler, thr_setschedparam,
add rtprio_thread.

17 years agouse rtprio_thread system call to get or set thread priority.
davidxu [Thu, 21 Sep 2006 04:21:30 +0000 (04:21 +0000)]
use rtprio_thread system call to get or set thread priority.

17 years agoRegenerate.
davidxu [Thu, 21 Sep 2006 04:19:48 +0000 (04:19 +0000)]
Regenerate.

17 years agoReplace system call thr_getscheduler, thr_setscheduler, thr_setschedparam
davidxu [Thu, 21 Sep 2006 04:18:46 +0000 (04:18 +0000)]
Replace system call thr_getscheduler, thr_setscheduler, thr_setschedparam
with rtprio_thread, while rtprio system call is for process only, the new
system call rtprio_thread is responsible for LWP.