119180 Commits

Author SHA1 Message Date
scottl
2bb259b17a Belatedly move forward to 6.1-RC.
Approved by: re
2006-04-08 14:42:23 +00:00
pjd
0633ad44e0 Sync with HEAD.
Approved by:	re (scottl)
2006-04-05 22:20:44 +00:00
pjd
507348da3c MFC: sys/kern/md5c.c 1.27
Fix a panic on sparc64 related to inproper aligment - we cannot assume,
that 'unsigned char *' argument is 4 byte aligned.

Approved by:	re (scottl)
2006-04-05 22:15:00 +00:00
pjd
ac5e0fe84c Sync with HEAD.
Approved by:	re (scottl)
2006-04-05 22:12:29 +00:00
brueffer
f3d6320e30 Back out the fan control changes that were merged in revision 1.2.2.5.
The necessary changes to the driver haven't been merged yet, which won't
happen before 6.1-RELEASE.

Submitted by:   markus
Approved by:    re (scottl)
2006-04-05 21:53:42 +00:00
jhb
1fb84f1627 MFC: Always explicitly panic in propogate_priority() if we try to propogate
a lock's priority to a sleeping thread.

Approved by:	re (scottl)
2006-04-05 21:15:19 +00:00
gad
3a1853983d MFC 1.75: Fix a problem introduced by previous change, which causes
a seg-fault if the user specifies a keyword which is implemented as
an alias to some other keyword.

Submitted by:	Kostik Belousov
Approved by:	re (scottl)
2006-04-05 21:01:31 +00:00
oleg
7f9211510f MFC brgphy.c rev.1.39, miidevs rev.1.31
- Add basic support for BCM5780 PHY.

Submitted by:	grehan
Approved by:	re (hrs)
2006-04-05 20:41:47 +00:00
hrs
df66c06f82 MFC the following change:
Retire NETSMBCRYPTO as a kernel option and make its functionality
 enabled by default in NETSMB and smbfs.ko.

 With the most of modern SMB providers requiring encryption by
 default, there is little sense left in keeping the crypto part
 of NETSMB optional at the build time.

 This will also return smbfs.ko to its former properties users
 are rather accustomed to.

Submitted by:	yar
Approved by:	re (implicitly)
2006-04-05 15:44:12 +00:00
rwatson
b96b3993ef Merge getfacl.1:1.10, getfacl.c:1.11 from HEAD to RELENG_6:
Add "-q" argument to getfacl(1), which suppresses the per-file header
  comment listing the file name, owner, and group.

  Submitted by:   Jan Srzednicki <w at expro dot pl>

Approved by:	re (scottl)
Reminded by:	delphij
2006-04-05 08:25:46 +00:00
delphij
a2e9eab5e4 MFen:
hardware/common/dev.sgml 1.282.2.8 -> 1.282.2.9
	relnotes/common/new.sgml 1.883.2.12 -> 1.883.2.15

Obtained from:	FreeBSD Simplified Chinese Project
Approved by:	re (scottl)
2006-04-05 03:39:22 +00:00
sam
380b5c3b1d MFC: ath config option additions/changes
Approved by:	re (scottl)
2006-04-04 23:55:33 +00:00
davidxu
079331a84f MFC thr_cancel.c revision 1.12
thr_kern.c    revision 1.20
    thr_private.h revision 1.58
    thr_sig.c     revision 1.16, 1.17
    thr_rtld.c    revision 1.0-1.2

    Add rtld locking support.

Approved by: re (scottl)
2006-04-04 23:23:50 +00:00
davidxu
5298b1d72e MFC revision 1.31.
Approved by: re (scottl)
2006-04-04 23:21:22 +00:00
mnag
10bceb0150 MFC: Sync with HEAD
Approved by:	re (scottl)
2006-04-04 21:22:35 +00:00
brueffer
10ec59bf84 MFC:
Convert the SYNOPSIS section to look like the ones used in other driver
manpages, mention module support.

Approved by:	re (hrs)
2006-04-04 21:03:08 +00:00
brueffer
2d8035d442 MFC:
Convert the SYNOPSIS section to look like the ones used in other driver
manpages, mention module support.
Also add the crypto and cryptodev devices as the drivers are kind of useless
without them.

Approved by:	re (hrs)
2006-04-04 21:02:17 +00:00
brueffer
b1320f117b MFC: rev. 1.15
Convert the SYNOPSIS section to look like the ones used in other driver
manpages.

Approved by:	re (hrs)
2006-04-04 21:01:05 +00:00
brueffer
5d252fc5d0 MFC: rev. 1.12
Convert the SYNOPSIS section to look like the ones used in other driver
manpages.  Don't mention the include file, it's not important for the
operation of this driver.

Approved by:	re (hrs)
2006-04-04 21:00:21 +00:00
brueffer
bd0f636b7b MFC: rev. 1.22
Add a standard boilerplate to the SYNOPSIS section that mentions how
to load a kernel module.

Approved by:	re (hrs)
2006-04-04 20:58:53 +00:00
gad
7b10031fcc MFC 1.73->1.74: Fix the case where the user specifies an alternate
heading for some output-format keyword, and the keyword they picked
is an alias to some other keyword.

PR:		bin/57833
Approved by:	re (scottl)
2006-04-04 20:31:26 +00:00
mlaier
bbe7409e6e MFC pf.conf, 1.3:
Document the user/group LOR in our sample pf.conf

  Submitted by:	Devon H. O'Dell

Reminded by:	delphij
Approved by:	re (scottl)
2006-04-04 20:31:20 +00:00
andre
e4ab72006f MFC rev. 1.32: Add link status descriptions and related structures for userland
applications.

Approved by:	re
2006-04-04 20:24:19 +00:00
andre
81064650ad MFC route.h rev. 1.65 and rtsock.c rev. 1.133:
- Fill in the correct rtm_index for RTM_ADD and RTM_CHANGE messages.

  - Allow RTM_CHANGE to change a number of route flags as specified by
    RTF_FMASK.

  - The unused rtm_use field in struct rt_msghdr is redesignated as
    rtm_fmask field to communicate route flag changes in RTM_CHANGE
    messages from userland.  The use count of a route was moved to
    rtm_rmx a long time ago.  For source code compatibility reasons
    a define of rtm_use to rtm_fmask is provided.

Approved by:	re
2006-04-04 20:07:23 +00:00
andre
05ebec8257 MFC rev. 1.19: Add definitions for MD5_BLOCK_LENGTH, MD5_DIGEST_LENGTH and
MD5_DIGEST_STRING_LENGTH.

Approved by:	re
2006-04-04 19:59:52 +00:00
andre
0cbadcf68d MFC of import of OpenBSD's strtonum(3).
Approved by:	re
2006-04-04 19:56:46 +00:00
andre
95720c6256 MFC of import of OpenBSD's sys/sys/hash.h providing generic 32bit hash functions.
Approved by:	re
2006-04-04 19:50:02 +00:00
ups
56d4126628 mfc: 1.117 src/sys/i386/i386/mem.c
log:	Fix race conditions.

Approved by:	re (scottl)
2006-04-04 19:46:44 +00:00
tegge
ecdb468bf8 MFC: Eliminate softdep_flush() livelock by accounting for number of worklist
items marked as being in progress.

Approved by:	re (hrs)
2006-04-04 18:14:31 +00:00
ariff
ac59bb07b4 MFC:
dsp.c		revision 1.95
	mixer.c		revision 1.49
	sound.c		revision 1.103
	sound.h		revision 1.68
	vchan.c		revision 1.24

MEGA Fixes / Cleanup
--------------------

Fix severe 8bit integer overflow during channel creation and
destruction, especially for vchans. It turns out that channel
numbering always depend on d->devcount counter (which keep
increasing), while PCMMKMINOR() truncate everything to 8bit length.
At some point the truncation cause the newly created character device
overlapped with the existed one, causing erratic overall system
behaviour and panic. Easily reproduce with something like:

	(Luckily, only root can reproduce this)

	while : ; do
		sysctl hw.snd.pcm0.vchans=200
		sysctl hw.snd.pcm0.vchans=100
	done

- Enforce channel/chardev numbering within 8bit boundary. Return
  E2BIG if necessary.
- Traverse d->channels SLIST and try to reclaim "free" counter during
  channel creation. Don't rely on d->devcount at all.
- Determine open direction using 'flags', not 'mode'. This bug exist
  since past 4 years.
- Don't allow opening the same device twice, be it in a same or
  different direction.
- O_RDWR is allowed, provided that it is done by a single open (for
  example by mixer(8)) and the underlying hardware support true
  full-duplex operation.
- Seal the fate of long standing memory leak (4 years, 7 months)
  during pcm_unregister(). While destroying cdevs, scan / detect
  possible children and free its SLIST placeholder properly.
- Optimize channel allocation / numbering even further. Do brute
  cyclic checking only if the channel numbering screwed.
- Mega vchan create/destroy cleanup:
  o Implement pcm_setvchans() so everybody can use it freely instead
    of implementing their own, be it through sysctl or channel auto
    allocation.
  o Increase vchan creation/destruction resiliency:
    + it's possible to increase/decrease total vchans even during
      busy playback/recording. Busy channel will be left alone,
      untouched. Abusive test sample:
      # play whatever...
      #
         while : ; do
           sysctl hw.snd.pcm0.vchans=1
           sysctl hw.snd.pcm0.vchans=10
           sysctl hw.snd.pcm0.vchans=100
           sysctl hw.snd.pcm0.vchans=200
         done
      # Play something else, leave above loop running frantically.
    + Seal another 4 years old bug where it is possible to destroy
      (virtual) channel even when its cdevs being referenced by other
      process.  The "First Come First Served" nature of dsp_clone() is
      the main culprit of this issue, and usually manifest itself as
      dangling channel <-> process association. Ensure that all of its
      cdevs are free from being referenced before destroying it
      (through ORPHAN_CDEVT() macross).

Approved by:	re (scottl)
2006-04-04 17:43:49 +00:00
ariff
099c2353ce MFC (revision 1.109)
Pointer align should be generic enough to handle awkward byte size
especially for true 24bit format.

Approved by:	re (scottl)
2006-04-04 17:37:51 +00:00
ariff
43b0a49f7a MFC (revision 1.20)
Convert NULL checks into KASSERT (and move them before the first
dereferencing) since a NULL value would be a bug here.

Note: Both affected functions look very similar. A refactoring may
be beneficial.

CID:		483, 485
Found with:	Coverity Prevent(tm)
Approved by:	re (scottl)
2006-04-04 17:34:10 +00:00
ariff
cd62bf713d MFC (revision 1.37)
A pointer was checked for NULL after dereferencing it. The check is
not needed here, except there's a bug which results in detaching the
device twice.

Move the NULL pointer check to the beginning of the function and
convert it into a KASSERT.

CID:		483
Found with:	Coverity Prevent(tm)
Approved by:	re (scottl)
2006-04-04 17:32:48 +00:00
jmg
54d356d5da MFC: kern_event.c v1.97
clear any action flags on the register knote

Approved by:	re (scottl)
2006-04-04 17:31:46 +00:00
ariff
b6b8be2791 MFC (revision 1.105)
Fix memory leak in some failure cases.

CID:		429
Found with:	Coverity Prevent(tm)
Approved by:	re (scottl)
2006-04-04 17:30:59 +00:00
ariff
48df6e8bae MFC (revision 1.63)
Don't set primary resume interrupt flag during channel initialization
since it can cause high interrupt rate (storm) and slowdown the entire
system.

Note: Please report back to me if this commit cause any abnormal
      behaviour, especially during suspend / resume.

Reported/Submitted by:	[1] Daan Vreeken [PA4DAN] <Danovitsch_at_vitsch dot net>
Reported/Confirmed by:	[2] Angka H. K. <harikurniawan at gmail dot com>

MFC (revision 1.64)
Add device ID for nForce 410 MCP audio controller.

PR:		kern/95257
Submitted by:	cenix <cenixxx at gmail dot com>

Approved by:	re (scottl)
2006-04-04 17:27:57 +00:00
ariff
af646f32ba MFC (revision 1.6)
Misc. fixups:

- [1] Make the driver friendly towards kernel without PREEMPTION.
  Use msleep(9) instead of simple unlock-check_variable-lock
  mechanisme since the later not really effective in non-preemptible
  kernel (especially during codec detection routine).
- Free most driver resources in a sane manner to avoid possible
  double free and panics especially during device detach and codec
  detection failure.

Approved by:	re (scottl)

[1] http://lists.freebsd.org/pipermail/freebsd-questions/2006-March/116515.html
2006-04-04 17:24:33 +00:00
ariff
a277c3add0 MFC (revision 1.39)
Recover (?) support for AD1815 based ISA soundcards.

PR:		kern/94388
Submitted by:	Krzysztof Kotlenga <piernik at gmail dot com>
Approved by:	re (scottl)
2006-04-04 17:23:24 +00:00
emax
2a40fc7d0a MFC:
Add kbdmux(4) to GENERIC on i386 and amd64.

Remove the USB keyboard hack now that KBDMUX is enabled by default.
Allow it to be disabled if Safe Mode is selected.

Requested by:	scottl
Approved by:	re (scottl)
2006-04-04 17:03:44 +00:00
sos
0c9e2e4dab MFC:
Make the ATAPI sense data accessible when using the ioctl interface
Approved by: re@ (scottl)
2006-04-04 16:07:42 +00:00
cel
8351a39507 rick says:
The following bug was just identified in OpenBSD and it looks like the same
bug exists in the other BSDen NFS servers.

A Linux client (don't know which version, but you can look at
        http://bugzilla.kernel.org/show_bug.cgi?id=6256)
does a Setattr of mtime to the server's time, where the file is mode 0664 and
the client user has group access (ie. caller is not the file owner).

The BSD servers fail the Setattr with EPERM, since the VA_UTIMES_NULL flag
isn't set before doing the VOP_SETATTR.

It seems to me that this should be allowed, since it is allowed for a local
utimes(2). If so, the fix is to set VA_UTIMES_NULL for the
"set-time-to-server-time" cases of setting atime and/or mtime.

MFC of revision 1.140 to RELENG_6.

Submitted by:   rick@snowhite.cis.uoguelph.ca
Reviewed by:	cel
Approved by:	re (scottl), silby
2006-04-04 15:29:51 +00:00
flz
c9a9964ef8 MFC:
- Replace awk parts with shell.

      src/etc/rc.d/nsswitch: rev 1.5 -> 1.6

Approved by:	re (scottl)
2006-04-04 14:28:41 +00:00
glebius
5200ffbf03 To fix build of newer RELENG_6 on older ones, add gensnmptree
to the list of bootstrap-tools.

Submitted by:	ru
Tested by:	osa
Approved by:	re (scottl)
2006-04-04 14:24:03 +00:00
scottl
35fc225482 Teach sysinstall about MFI.
Approved by: re
2006-04-04 04:39:35 +00:00
scottl
b929a7a682 Add the mfi.4 man page.
Approved by: re
2006-04-04 04:14:09 +00:00
cvs2svn
4b6b4cf9d9 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-04-04 04:11:56 +00:00
scottl
603b6f9dcd Hook the MFI driver up to the kernel build.
Approved by: re
2006-04-04 04:08:07 +00:00
scottl
6a659ab690 Add the MFI driver. Thanks to IronPort Systems, Dell, and Yahoo for their
contributions towards this.

Approved by: re
2006-04-04 03:24:49 +00:00
sam
927d42ef69 MFC 1.46: implement set(IEEE80211_IOC_STA_STATS) for hostapd
Approved by:	re (hrs)
2006-04-03 17:21:05 +00:00
sam
8241f51974 MFC 1.37: stop device so we don't panic on card removal when active
Approved by:	re (hrs)
2006-04-03 17:18:22 +00:00