]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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 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 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 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.

17 years agoBump __FreeBSD_cc_version in case someone cares for differences between
kan [Thu, 21 Sep 2006 03:27:07 +0000 (03:27 +0000)]
Bump __FreeBSD_cc_version in case someone cares for differences between
GCC 3.4.4 and GCC 3.4.6 on -current.

17 years agoGet rid of extra const to pacify new GCC4 warnings.
emax [Thu, 21 Sep 2006 02:41:04 +0000 (02:41 +0000)]
Get rid of extra const to pacify new GCC4 warnings.

Submitted by: kan
MFC after: 1 week

17 years agoUse socklen_t instead of int32_t where appropriate to pacify new GCC4
emax [Thu, 21 Sep 2006 02:32:28 +0000 (02:32 +0000)]
Use socklen_t instead of int32_t where appropriate to pacify new GCC4
warnings.

Submitted by: kan
MFC after: 1 week

17 years agoPass "-Wtraditional -Wno-system-headers" to compiler as two separate
kan [Thu, 21 Sep 2006 02:05:38 +0000 (02:05 +0000)]
Pass "-Wtraditional -Wno-system-headers" to compiler as two separate
arguments. GCC4 was unhappy with them combined, while GCC 3.4 did
not care.

17 years agoDo not use int where socklen_t is expected.
kan [Thu, 21 Sep 2006 02:01:46 +0000 (02:01 +0000)]
Do not use int where socklen_t is expected.

17 years agoSilence GCC4 signed/unsigned pointer mismatch warning.
kan [Thu, 21 Sep 2006 01:48:47 +0000 (01:48 +0000)]
Silence GCC4 signed/unsigned pointer mismatch warning.

17 years agoIntroduce a new method ipv6if which attemptes to figure out if an
brooks [Thu, 21 Sep 2006 01:44:52 +0000 (01:44 +0000)]
Introduce a new method ipv6if which attemptes to figure out if an
interface is an IPv6 interface.

Use this method to decide if we should attempt to configure an interface
with an IPv6 address in pccard_ether.  The mechanism pccard_ether uses
to do this is unsuited to the task because it assumes the list of
interfaces it is passed is the full list of IPv6 interfaces and makes
decissions based on that.  This is at least a step in the right
direction and is probably about as much as we can MFC safely.

PR: conf/103428
MFC after: 3 days

17 years agoDo not use int where socklen_t is expected.
kan [Thu, 21 Sep 2006 01:41:03 +0000 (01:41 +0000)]
Do not use int where socklen_t is expected.

17 years agoUse __builtin_offsetof for GCC 4.1.
kan [Thu, 21 Sep 2006 01:38:58 +0000 (01:38 +0000)]
Use __builtin_offsetof for GCC 4.1.

17 years agoUse __builtin_va_start instead of __builtin_stdarg_start. GCC4 obsoletes
kan [Thu, 21 Sep 2006 01:37:02 +0000 (01:37 +0000)]
Use __builtin_va_start instead of __builtin_stdarg_start. GCC4 obsoletes
the former and  __builtin_va_start was present in all GCC version 3.1 and
later.

17 years agoSilence GCC4 warning.
kan [Thu, 21 Sep 2006 01:30:04 +0000 (01:30 +0000)]
Silence GCC4 warning.

strlen, strcmp live in <string.h> not <string.h>.

17 years agoIn the spirit of nanoBSD and PicoBSD, add TinyBSD.
julian [Wed, 20 Sep 2006 22:24:20 +0000 (22:24 +0000)]
In the spirit of nanoBSD and PicoBSD, add TinyBSD.
Submitted by jmeloatfreebsdbrasil,com-br
(Jean Milanez Melo)
As PicoBSD becomes slightly less useful, TinyBSD fills the gap below nanoBSD.

17 years agoBased on The Open Group Base Specifications Issue 6 IEEE Std 1003.1, our
csjp [Wed, 20 Sep 2006 20:55:02 +0000 (20:55 +0000)]
Based on The Open Group Base Specifications Issue 6 IEEE Std 1003.1, our
current implementation of df(1) is does not properly format the output under
certain conditions. Right now -kP and -Pk are not the same thing. Further,
when we set the BLOCKSIZE environment variable, we use "1k" instead of "1024",
making the header display incorrectly.

To quote the specification:

"When both the -k and -P options are specified, the following header line
 shall be written (in the POSIX locale):

"Filesystem 1024-blocks Used Available Capacity Mounted on\n"

- If -P has been specified, check to make sure that -k has not already been
  specified, if so, simply break instead of clobbering the previous blocksize
- Use 1024 instead of 1k to make the header POSIX compliant

Reported by: Andriy Gapon
Discussed with: bde, ru
MFC after: 1 week

17 years agoCorrect 'interrupt interrupt' -> 'interrupt' in the comment.
wkoszek [Wed, 20 Sep 2006 20:52:11 +0000 (20:52 +0000)]
Correct 'interrupt interrupt' -> 'interrupt' in the comment.

Requested by: jhb
Approved by: cognet (mentor)

17 years agoFlushing all IPv4 routes when an interface is removed or unconfigured
brooks [Wed, 20 Sep 2006 19:48:31 +0000 (19:48 +0000)]
Flushing all IPv4 routes when an interface is removed or unconfigured
makes no sense.  Remove the undocumented removable_route_flush feature
from pccard_ether.

X-MFC after: never

17 years agoSearch the list of up interfaces provided by "ifconfig -ul" instead of
brooks [Wed, 20 Sep 2006 19:45:30 +0000 (19:45 +0000)]
Search the list of up interfaces provided by "ifconfig -ul" instead of
greping for UP in "ifconfig $ifn".  This eliminates a dependancy on
/usr.

17 years agostyle(9)
netchild [Wed, 20 Sep 2006 19:27:11 +0000 (19:27 +0000)]
style(9)

While I'm here add a MFC reminder, I forgot it in the previous commit.

Noticed by: ssouhlal
MFC after: 1 week

17 years agoAdd a new 'bce_mgmt_init_locked' function to enable the minimal parts
ambrisko [Wed, 20 Sep 2006 18:55:16 +0000 (18:55 +0000)]
Add a new 'bce_mgmt_init_locked' function to enable the minimal parts
of the chip to let ASF/IPMI firmware to respond to IPMI after attaching
and when the chip is down.  David looked at it but could really say
what they right minimal config. stuff would be.  It's not documented.
I figured this out via trial and error.

Reviewed by: davidch

17 years agoAllow hw.mfi.event_locale/hw.mfi.event_class to be set via loader.
ambrisko [Wed, 20 Sep 2006 18:49:35 +0000 (18:49 +0000)]
Allow hw.mfi.event_locale/hw.mfi.event_class to be set via loader.
If an event doesn't match the criteria then don't print it.  Some
events are not saved in the log (<0 class events).

17 years agoBring the i386 linux mmap code more into line with how linux (2.4.x)
netchild [Wed, 20 Sep 2006 17:24:20 +0000 (17:24 +0000)]
Bring the i386 linux mmap code more into line with how linux (2.4.x)
behaves. This fixes a lot of test which failed before. For amd64 there
are still some problems, but without any testers which apply patches
and run some predefines tests we can't do more ATM.

Submitted by: Marcin Cieslak <saper@SYSTEM.PL> (minor fixups by myself)
Tested with: LTP

17 years agoIn setifcap() only set/unset those capabilities the interface actually
andre [Wed, 20 Sep 2006 15:38:37 +0000 (15:38 +0000)]
In setifcap() only set/unset those capabilities the interface actually
supports.

17 years agoRemove MAC_DEBUG + MPRINTF debugging from System V IPC. This no longer
rwatson [Wed, 20 Sep 2006 13:40:00 +0000 (13:40 +0000)]
Remove MAC_DEBUG + MPRINTF debugging from System V IPC.  This no longer
appears to be serving a useful purpose, as it was used during initial
development of MAC support for System V IPC.

MFC after: 1 month
Obtained from: TrustedBSD Project
Suggested by: Christopher dot Vance at SPARTA dot com

17 years agoRemove MAC_DEBUG label counters, which were used to debug leaks and
rwatson [Wed, 20 Sep 2006 13:33:41 +0000 (13:33 +0000)]
Remove MAC_DEBUG label counters, which were used to debug leaks and
other problems while labels were first being added to various kernel
objects.  They have outlived their usefulness.

MFC after: 1 month
Suggested by: Christopher dot Vance at SPARTA dot com
Obtained from: TrustedBSD Project

17 years agoRather than allocating all buffer memory for the completed BSM record
rwatson [Wed, 20 Sep 2006 13:23:40 +0000 (13:23 +0000)]
Rather than allocating all buffer memory for the completed BSM record
when allocating the record in the first place, allocate the final buffer
when closing the BSM record.  At that point, more size information is
available, so a sufficiently large buffer can be allocated.

This allows the kernel to generate audit records in excess of
MAXAUDITDATA bytes, but is consistent with Solaris's behavior.  This only
comes up when auditing command line arguments, in which case we presume
the administrator really does want the data as they have specified the
policy flag to gather them.

Obtained from: TrustedBSD Project
MFC after: 3 days

17 years agoAdd missing white space in au_to_exec_{args,env}().
rwatson [Wed, 20 Sep 2006 13:14:47 +0000 (13:14 +0000)]
Add missing white space in au_to_exec_{args,env}().

MFC after:  3 days

17 years agoExport tcps_rcvmemdrop available in 'struct tcpstat' with netstat(1).
wkoszek [Wed, 20 Sep 2006 12:29:12 +0000 (12:29 +0000)]
Export tcps_rcvmemdrop available in 'struct tcpstat' with netstat(1).

Requested by: Tomasz Pilat <tomasz.pilat (at) axelspringer.pl>
Approved by: andre

17 years agoFix 'interrupt interrupt' -> 'interrupt' in the comment.
wkoszek [Wed, 20 Sep 2006 12:23:33 +0000 (12:23 +0000)]
Fix 'interrupt interrupt' -> 'interrupt' in the comment.

Approved by: cognet (mentor)

17 years agoDon't forget to set internal error message in kvm_nlist().
wkoszek [Wed, 20 Sep 2006 12:09:21 +0000 (12:09 +0000)]
Don't forget to set internal error message in kvm_nlist().

Approved by: cognet (mentor)

17 years agoRevert back to always using *(int *)arg for now. While this
ru [Wed, 20 Sep 2006 11:43:36 +0000 (11:43 +0000)]
Revert back to always using *(int *)arg for now.  While this
is incorrect, and causes endianness bugs on 64-bit big-endian
machines (sparc64), it's the best choice for now, as many of
these IOCTLs are used inside the kernel, and bogusly pass an
argument as "int *" which results in unaligned access panics
on sparc64 when attempting to dereference them via *(intptr_t *).

(Several of us are working on a real fix, which is uneasy.)

17 years agoFix the glitch introduced in rev. 1.93. In softdep_sync_metadata(),
kib [Wed, 20 Sep 2006 07:49:28 +0000 (07:49 +0000)]
Fix the glitch introduced in rev. 1.93. In softdep_sync_metadata(),
switch by worklist type contains two for() loops, for D_INDIRDEP and
D_PAGEDEP. On error, these loops are exited by break, where the switch
actually shall be leaved. Use goto instead of break to reach the error
handling code.

Reported by: Peter Holm
Reviewed by: tegge
Approved by: pjd (mentor)
MFC after: 2 weeks

17 years agoThere is no need to set 'sp' to NULL anymore.
pjd [Wed, 20 Sep 2006 07:27:05 +0000 (07:27 +0000)]
There is no need to set 'sp' to NULL anymore.

17 years agoChange some variable names and update some comments to help clarify some
scottl [Wed, 20 Sep 2006 06:58:02 +0000 (06:58 +0000)]
Change some variable names and update some comments to help clarify some
confusing issues.

17 years agospell PCIS_CRYPTO_ENTERTAIN properly...
jmg [Wed, 20 Sep 2006 06:47:14 +0000 (06:47 +0000)]
spell PCIS_CRYPTO_ENTERTAIN properly...

MFC after: 3 days

17 years agoCopy stat information from mount structure before it can change identity.
tegge [Wed, 20 Sep 2006 00:32:07 +0000 (00:32 +0000)]
Copy stat information from mount structure before it can change identity.

17 years agoDon't try to obtain a reference to a nonexisting (NULL) mount structure in
tegge [Wed, 20 Sep 2006 00:27:02 +0000 (00:27 +0000)]
Don't try to obtain a reference to a nonexisting (NULL) mount structure in
default VOP_GETWRITEMOUNT().

17 years agoAdd missing parentheses to fix a segmentation fault that is easily
iedowse [Tue, 19 Sep 2006 22:11:43 +0000 (22:11 +0000)]
Add missing parentheses to fix a segmentation fault that is easily
reproducable with `jot -s " " 400 1 | column -t'. The bug was present
in the the original CSRG 'column -t' added in 1989.

17 years agoFix races between tty.c and sessrele() / doenterpgrp() / leavepgrp(). The tty
mbr [Tue, 19 Sep 2006 19:25:11 +0000 (19:25 +0000)]
Fix races between tty.c and sessrele() / doenterpgrp() / leavepgrp(). The tty
code is still under giant lock, but the session/pgrp release code just used
proctree_locks. This explains why moving the proctree_lock in sys/kern/tty.c
rev. 1.258 did fix the panics in our SMP systems.

This should also fix some race panics with revoked ttys.

Reviewed by: jhb
MFC after: 1 week

17 years agoClean up white spaces and fix style(9).
jkim [Tue, 19 Sep 2006 16:48:08 +0000 (16:48 +0000)]
Clean up white spaces and fix style(9).

17 years agoCorrect multiple vulnerabilities in gzip(1).
simon [Tue, 19 Sep 2006 14:06:20 +0000 (14:06 +0000)]
Correct multiple vulnerabilities in gzip(1).

Security: FreeBSD-SA-06:21.gzip

17 years agoFix the bug in rev. 1.232. If vfs_suser returned false, coveredvp shall be
kib [Tue, 19 Sep 2006 14:04:12 +0000 (14:04 +0000)]
Fix the bug in rev. 1.232. If vfs_suser returned false, coveredvp shall be
unlocked only if it really exists.

Found with: Coverity Prevent(tm)
CID: 1535
Approved by: pjd (mentor)

17 years agoFix the bug in rev. 1.134. In devfs_allocv_drop_refs(), when not_found == 2
kib [Tue, 19 Sep 2006 14:03:02 +0000 (14:03 +0000)]
Fix the bug in rev. 1.134. In devfs_allocv_drop_refs(), when not_found == 2
and drop_dm_lock is true, no unlocking shall be attempted. The lock is
already dropped and memory is freed.

Found with: Coverity Prevent(tm)
CID: 1536
Approved by: pjd (mentor)

17 years agoMake typecast expressions comply with style(9).
ru [Tue, 19 Sep 2006 13:03:09 +0000 (13:03 +0000)]
Make typecast expressions comply with style(9).

17 years agoThis time, really fix endian bugs accessing ioctl arguments that
ru [Tue, 19 Sep 2006 13:01:20 +0000 (13:01 +0000)]
This time, really fix endian bugs accessing ioctl arguments that
are passed by value.  These are KDSKBMODE, KDSETLED, KDSKBSTATE,
and KDSETRAD.

Tested on: amd64, sparc64 (demo code)

17 years agoFix the buggy rev. 1.117. dagmembers are only initialized for dlopen'ed
kib [Tue, 19 Sep 2006 12:47:13 +0000 (12:47 +0000)]
Fix the buggy rev. 1.117. dagmembers are only initialized for dlopen'ed
dso that are actually loading. If dso a.so depends on b.so, then dlsym
with handle from dlopen("b.so") will fail unconditionally.

Correct implementation shall use the Obj_Entry.needed list to walk
dependencies DAG.

Test provided by: jkim
Tested (prev. version) by: jkim, Nicolas Blais <nb_root at videotron ca>, h.blanke at chello nl
Pointy hat to: kib
Approved by: kan (mentor)

17 years agoMove readonly.t regression tests file to where it belongs.
pjd [Tue, 19 Sep 2006 11:28:06 +0000 (11:28 +0000)]
Move readonly.t regression tests file to where it belongs.
I accidentally added it to a wrong directory.

17 years agoBack out revision 1.8. The only thing it did was to break LEDs (and
ru [Tue, 19 Sep 2006 09:34:25 +0000 (09:34 +0000)]
Back out revision 1.8.  The only thing it did was to break LEDs (and
some other less noticeable things) on little-endian 64-bit platforms
such as amd64.

PR: kern/101931
Discussed with: emax, marius
MFC after: 1 day

17 years agoHook up au_open.3 man page (and its symlinks), apparently missed during
rwatson [Tue, 19 Sep 2006 08:30:34 +0000 (08:30 +0000)]
Hook up au_open.3 man page (and its symlinks), apparently missed during
initial OpenBSM merge.

Obtained from: TrustedBSD Project
MFC after: 3 days

17 years agoDon't forget to add curly braces when doing more than one line of actions
andre [Mon, 18 Sep 2006 23:44:12 +0000 (23:44 +0000)]
Don't forget to add curly braces when doing more than one line of actions
after a 'if' statement.

Pointy hat to: andre

17 years agoDo not try to call keyboard callback unless keyboard is active and busy.
emax [Mon, 18 Sep 2006 22:56:59 +0000 (22:56 +0000)]
Do not try to call keyboard callback unless keyboard is active and busy.
This should fix 'kbdcontrol -K < /dev/console' panic on sparc64 with sunkbd(4).

PR: sparc64/96798
MFC after: 1 week

17 years agoDo not strip VLAN tag in promiscuous mode.
jkim [Mon, 18 Sep 2006 22:18:21 +0000 (22:18 +0000)]
Do not strip VLAN tag in promiscuous mode.

17 years agoSimplify promiscuous mode check and make ALLMULTI independent from it.
jkim [Mon, 18 Sep 2006 20:54:40 +0000 (20:54 +0000)]
Simplify promiscuous mode check and make ALLMULTI independent from it.

17 years agoUpdate prototype for smbus callback change.
jhb [Mon, 18 Sep 2006 20:17:42 +0000 (20:17 +0000)]
Update prototype for smbus callback change.

Reported by: Ian FREISLICH <if at hetzner dot co dot za>

17 years agoo Add pthread_yield.3 man page.
maxim [Mon, 18 Sep 2006 18:07:49 +0000 (18:07 +0000)]
o Add pthread_yield.3 man page.

PR: docs/100083
Reviewed by: deischen, ru
Obtained from: OpenBSD
MFC after: 2 weeks

17 years agoMake sure that lutimes(2) gets processed and converted into a BSM record.
csjp [Mon, 18 Sep 2006 17:55:32 +0000 (17:55 +0000)]
Make sure that lutimes(2) gets processed and converted into a BSM record.

Submitted by: rwatson
MFC after: 1 day

17 years agoremove local change
sam [Mon, 18 Sep 2006 17:23:35 +0000 (17:23 +0000)]
remove local change

Spotted by: Gavin Atkinson

17 years agoAdd additional support for generating code for the arm. There's still
imp [Mon, 18 Sep 2006 17:08:32 +0000 (17:08 +0000)]
Add additional support for generating code for the arm.  There's still
a few issues in other parts of the tree, but those will be resolved
separately.

Submitted by: cogenet@
Reviewed by: kan@, obrien@
MFC After: 5 days

17 years agoremove this from HEAD too since it got taken off the vendor branch
sam [Mon, 18 Sep 2006 17:01:35 +0000 (17:01 +0000)]
remove this from HEAD too since it got taken off the vendor branch

17 years agofixup build after move of ah_osdep.?
sam [Mon, 18 Sep 2006 16:50:59 +0000 (16:50 +0000)]
fixup build after move of ah_osdep.?

MFC after: 2 weeks

17 years agoThis commit was generated by cvs2svn to compensate for changes in r162413,
sam [Mon, 18 Sep 2006 16:49:15 +0000 (16:49 +0000)]
This commit was generated by cvs2svn to compensate for changes in r162413,
which included commits to RCS files with non-trunk default branches.

17 years agoo move ath hal os glue code from the hal to the driver: this code was
sam [Mon, 18 Sep 2006 16:49:15 +0000 (16:49 +0000)]
o move ath hal os glue code from the hal to the driver: this code was
  part of the hal distribution early on when the hal was built for
  each os but it's been portable for a long time so move the os-specific
  code out (and off the vendor branch)
o correct the copyright on ah_osdep.?; it was mistakenly given a
  restricted license and not a dual-bsd/gpl license
o remove the module api definition as it was never used
o fixup include paths for move of ah_osdep.h

MFC after: 2 weeks

17 years agoo Don't leak fd on error.
maxim [Mon, 18 Sep 2006 16:39:23 +0000 (16:39 +0000)]
o Don't leak fd on error.
o parselength() returns 0 or -1 so int is enough for its return type.

Submitted by: Ighighi Ighighi, sheldonh
MFC after: 3 weeks

17 years agonuke unused support for building ath hal from src code
sam [Mon, 18 Sep 2006 16:30:28 +0000 (16:30 +0000)]
nuke unused support for building ath hal from src code

MFC after: 1 week