]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoSync with HEAD.
pjd [Wed, 5 Apr 2006 22:12:29 +0000 (22:12 +0000)]
Sync with HEAD.

Approved by: re (scottl)

18 years agoBack out the fan control changes that were merged in revision 1.2.2.5.
brueffer [Wed, 5 Apr 2006 21:53:42 +0000 (21:53 +0000)]
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)

18 years agoMFC: Always explicitly panic in propogate_priority() if we try to propogate
jhb [Wed, 5 Apr 2006 21:15:19 +0000 (21:15 +0000)]
MFC: Always explicitly panic in propogate_priority() if we try to propogate
a lock's priority to a sleeping thread.

Approved by: re (scottl)

18 years agoMFC 1.75: Fix a problem introduced by previous change, which causes
gad [Wed, 5 Apr 2006 21:01:31 +0000 (21:01 +0000)]
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)

18 years agoMFC brgphy.c rev.1.39, miidevs rev.1.31
oleg [Wed, 5 Apr 2006 20:41:47 +0000 (20:41 +0000)]
MFC brgphy.c rev.1.39, miidevs rev.1.31
- Add basic support for BCM5780 PHY.

Submitted by: grehan
Approved by: re (hrs)

18 years agoMFC the following change:
hrs [Wed, 5 Apr 2006 15:44:12 +0000 (15:44 +0000)]
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)

18 years agoMerge getfacl.1:1.10, getfacl.c:1.11 from HEAD to RELENG_6:
rwatson [Wed, 5 Apr 2006 08:25:46 +0000 (08:25 +0000)]
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

18 years agoMFen:
delphij [Wed, 5 Apr 2006 03:39:22 +0000 (03:39 +0000)]
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)

18 years agoMFC: ath config option additions/changes
sam [Tue, 4 Apr 2006 23:55:33 +0000 (23:55 +0000)]
MFC: ath config option additions/changes

Approved by: re (scottl)

18 years agoMFC thr_cancel.c revision 1.12
davidxu [Tue, 4 Apr 2006 23:23:50 +0000 (23:23 +0000)]
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)

18 years agoMFC revision 1.31.
davidxu [Tue, 4 Apr 2006 23:21:22 +0000 (23:21 +0000)]
MFC revision 1.31.

Approved by: re (scottl)

18 years agoMFC: Sync with HEAD
mnag [Tue, 4 Apr 2006 21:22:35 +0000 (21:22 +0000)]
MFC: Sync with HEAD

Approved by: re (scottl)

18 years agoMFC:
brueffer [Tue, 4 Apr 2006 21:03:08 +0000 (21:03 +0000)]
MFC:

Convert the SYNOPSIS section to look like the ones used in other driver
manpages, mention module support.

Approved by: re (hrs)

18 years agoMFC:
brueffer [Tue, 4 Apr 2006 21:02:17 +0000 (21:02 +0000)]
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)

18 years agoMFC: rev. 1.15
brueffer [Tue, 4 Apr 2006 21:01:05 +0000 (21:01 +0000)]
MFC: rev. 1.15

Convert the SYNOPSIS section to look like the ones used in other driver
manpages.

Approved by: re (hrs)

18 years agoMFC: rev. 1.12
brueffer [Tue, 4 Apr 2006 21:00:21 +0000 (21:00 +0000)]
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)

18 years agoMFC: rev. 1.22
brueffer [Tue, 4 Apr 2006 20:58:53 +0000 (20:58 +0000)]
MFC: rev. 1.22

Add a standard boilerplate to the SYNOPSIS section that mentions how
to load a kernel module.

Approved by: re (hrs)

18 years agoMFC 1.73->1.74: Fix the case where the user specifies an alternate
gad [Tue, 4 Apr 2006 20:31:26 +0000 (20:31 +0000)]
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)

18 years agoMFC pf.conf, 1.3:
mlaier [Tue, 4 Apr 2006 20:31:20 +0000 (20:31 +0000)]
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)

18 years agoMFC rev. 1.32: Add link status descriptions and related structures for userland
andre [Tue, 4 Apr 2006 20:24:19 +0000 (20:24 +0000)]
MFC rev. 1.32: Add link status descriptions and related structures for userland
applications.

Approved by: re

18 years agoMFC route.h rev. 1.65 and rtsock.c rev. 1.133:
andre [Tue, 4 Apr 2006 20:07:23 +0000 (20:07 +0000)]
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

18 years agoMFC rev. 1.19: Add definitions for MD5_BLOCK_LENGTH, MD5_DIGEST_LENGTH and
andre [Tue, 4 Apr 2006 19:59:52 +0000 (19:59 +0000)]
MFC rev. 1.19: Add definitions for MD5_BLOCK_LENGTH, MD5_DIGEST_LENGTH and
MD5_DIGEST_STRING_LENGTH.

Approved by: re

18 years agoMFC of import of OpenBSD's strtonum(3).
andre [Tue, 4 Apr 2006 19:56:46 +0000 (19:56 +0000)]
MFC of import of OpenBSD's strtonum(3).

Approved by: re

18 years agoMFC of import of OpenBSD's sys/sys/hash.h providing generic 32bit hash functions.
andre [Tue, 4 Apr 2006 19:50:02 +0000 (19:50 +0000)]
MFC of import of OpenBSD's sys/sys/hash.h providing generic 32bit hash functions.

Approved by: re

18 years agomfc: 1.117 src/sys/i386/i386/mem.c
ups [Tue, 4 Apr 2006 19:46:44 +0000 (19:46 +0000)]
mfc:  1.117  src/sys/i386/i386/mem.c
log: Fix race conditions.

Approved by: re (scottl)

18 years agoMFC: Eliminate softdep_flush() livelock by accounting for number of worklist
tegge [Tue, 4 Apr 2006 18:14:31 +0000 (18:14 +0000)]
MFC: Eliminate softdep_flush() livelock by accounting for number of worklist
     items marked as being in progress.

Approved by: re (hrs)

18 years agoMFC:
ariff [Tue, 4 Apr 2006 17:43:49 +0000 (17:43 +0000)]
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)

18 years agoMFC (revision 1.109)
ariff [Tue, 4 Apr 2006 17:37:51 +0000 (17:37 +0000)]
MFC (revision 1.109)
Pointer align should be generic enough to handle awkward byte size
especially for true 24bit format.

Approved by: re (scottl)

18 years agoMFC (revision 1.20)
ariff [Tue, 4 Apr 2006 17:34:10 +0000 (17:34 +0000)]
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)

18 years agoMFC (revision 1.37)
ariff [Tue, 4 Apr 2006 17:32:48 +0000 (17:32 +0000)]
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)

18 years agoMFC: kern_event.c v1.97
jmg [Tue, 4 Apr 2006 17:31:46 +0000 (17:31 +0000)]
MFC: kern_event.c v1.97
clear any action flags on the register knote

Approved by: re (scottl)

18 years agoMFC (revision 1.105)
ariff [Tue, 4 Apr 2006 17:30:59 +0000 (17:30 +0000)]
MFC (revision 1.105)
Fix memory leak in some failure cases.

CID: 429
Found with: Coverity Prevent(tm)
Approved by: re (scottl)

18 years agoMFC (revision 1.63)
ariff [Tue, 4 Apr 2006 17:27:57 +0000 (17:27 +0000)]
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)

18 years agoMFC (revision 1.6)
ariff [Tue, 4 Apr 2006 17:24:33 +0000 (17:24 +0000)]
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

18 years agoMFC (revision 1.39)
ariff [Tue, 4 Apr 2006 17:23:24 +0000 (17:23 +0000)]
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)

18 years agoMFC:
emax [Tue, 4 Apr 2006 17:03:44 +0000 (17:03 +0000)]
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)

18 years agoMFC:
sos [Tue, 4 Apr 2006 16:07:42 +0000 (16:07 +0000)]
MFC:
Make the ATAPI sense data accessible when using the ioctl interface
Approved by: re@ (scottl)

18 years agorick says:
cel [Tue, 4 Apr 2006 15:29:51 +0000 (15:29 +0000)]
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

18 years agoMFC:
flz [Tue, 4 Apr 2006 14:28:41 +0000 (14:28 +0000)]
MFC:

  - Replace awk parts with shell.

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

Approved by: re (scottl)

18 years agoTo fix build of newer RELENG_6 on older ones, add gensnmptree
glebius [Tue, 4 Apr 2006 14:24:03 +0000 (14:24 +0000)]
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)

18 years agoTeach sysinstall about MFI.
scottl [Tue, 4 Apr 2006 04:39:35 +0000 (04:39 +0000)]
Teach sysinstall about MFI.

Approved by: re

18 years agoAdd the mfi.4 man page.
scottl [Tue, 4 Apr 2006 04:14:09 +0000 (04:14 +0000)]
Add the mfi.4 man page.

Approved by: re

18 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Tue, 4 Apr 2006 04:11:56 +0000 (04:11 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

18 years agoHook the MFI driver up to the kernel build.
scottl [Tue, 4 Apr 2006 04:08:07 +0000 (04:08 +0000)]
Hook the MFI driver up to the kernel build.

Approved by: re

18 years agoAdd the MFI driver. Thanks to IronPort Systems, Dell, and Yahoo for their
scottl [Tue, 4 Apr 2006 03:24:49 +0000 (03:24 +0000)]
Add the MFI driver.  Thanks to IronPort Systems, Dell, and Yahoo for their
contributions towards this.

Approved by: re

18 years agoMFC 1.46: implement set(IEEE80211_IOC_STA_STATS) for hostapd
sam [Mon, 3 Apr 2006 17:21:05 +0000 (17:21 +0000)]
MFC 1.46: implement set(IEEE80211_IOC_STA_STATS) for hostapd

Approved by: re (hrs)

18 years agoMFC 1.37: stop device so we don't panic on card removal when active
sam [Mon, 3 Apr 2006 17:18:22 +0000 (17:18 +0000)]
MFC 1.37: stop device so we don't panic on card removal when active

Approved by: re (hrs)

18 years agoMFC 1.10: On ia64, the unaligned_print sysctl is a debugging knob.
marcel [Mon, 3 Apr 2006 04:34:47 +0000 (04:34 +0000)]
MFC 1.10: On ia64, the unaligned_print sysctl is a debugging knob.

Approved by: re (hrs)

18 years agoMFC rev. 1.109: In afd_describe(), don't initialize sizestring.
marcel [Sun, 2 Apr 2006 18:39:59 +0000 (18:39 +0000)]
MFC rev. 1.109: In afd_describe(), don't initialize sizestring.

Approved by: re (hrs@)

18 years agoMerge if_ppp.c:1.113 from HEAD to RELENG_6:
rwatson [Sun, 2 Apr 2006 11:10:38 +0000 (11:10 +0000)]
Merge if_ppp.c:1.113 from HEAD to RELENG_6:

  Add IFF_NEEDSGIANT to kernel PPP support.  I have no idea why this wasn't
  here, but it should have been.

Approved by: re (hrs)

18 years agoMFC: uart.4 v1.9
jmg [Sun, 2 Apr 2006 08:24:47 +0000 (08:24 +0000)]
MFC: uart.4 v1.9
document uart's dev files

Approved by: re (hrs)

18 years agoMFC: kern_event.c v1.96
jmg [Sun, 2 Apr 2006 08:22:43 +0000 (08:22 +0000)]
MFC: kern_event.c v1.96
fix race condition

Approved by: re (hrs)

18 years agoMFC: Fix version number when the feature was added.
hrs [Sun, 2 Apr 2006 08:07:14 +0000 (08:07 +0000)]
MFC: Fix version number when the feature was added.

Spotted by: ceri
Approved by: re (implicitly)

18 years agoMFC r1.57-58
thompsa [Sun, 2 Apr 2006 04:41:53 +0000 (04:41 +0000)]
MFC r1.57-58

 Use m_dup rather than m_copypacket as we need a writable mbuf

On behalf of: rik
Approved by: re (hrs)

18 years agoIf an NFS server returns more than a few EJUKEBOX errors for a given RPC
cel [Sun, 2 Apr 2006 04:11:23 +0000 (04:11 +0000)]
If an NFS server returns more than a few EJUKEBOX errors for a given RPC
request, the FreeBSD NFS client will quickly back off to a excessively
long wait (days, then weeks) before retrying the request.

Change the behavior of the FreeBSD NFS client to match the behavior of
the reference NFS client implementation (Solaris).  This provides a fixed
delay of 10 seconds between each retry by default.  A sysctl, called
nfs3_jukebox_delay, is now available to tune the delay.  Unlike Solaris,
the sysctl value on FreeBSD is in seconds, rather than in HZ.

MFC revision 1.136 to RELENG_6

Sponsored by:   Network Appliance, Incorporated
Reviewed by:    rick
Approved by:    re (kensmith), silby

18 years agobackout taskqueue changes
sam [Sun, 2 Apr 2006 00:14:57 +0000 (00:14 +0000)]
backout taskqueue changes

Approved by: re (scottl)

18 years agoMFC:
bz [Sat, 1 Apr 2006 15:22:44 +0000 (15:22 +0000)]
MFC:
rev. 1.3 src/sys/netipsec/xform.h, rev. 1.12 src/sys/netipsec/xform_ipip.c

  Fix more stack corruptions on amd64.

  Vararg functions have a different calling convention than regular
  functions on amd64. Casting a varag function to a regular one to
  match the function pointer declaration will hide the varargs from
  the caller and we will end up with an incorrectly setup stack.

  Entirely remove the varargs from these functions and change the
  functions to match the declaration of the function pointers.
  Remove the now unnecessary casts.

  Also change static struct ipprotosw[] to two independent
  protosw/ip6protosw definitions to remove an unnecessary cast.

PR: amd64/95008
Submitted and tested by: Mats Palmgren
Reviewed by: rwatson
Approved by: re (mux)

18 years agoMerge ipsec.c:1.44 from HEAD to RELENG_6:
rwatson [Sat, 1 Apr 2006 15:16:14 +0000 (15:16 +0000)]
Merge ipsec.c:1.44 from HEAD to RELENG_6:

  Remove manual assignment of m_pkthdr from one mbuf to another in
  ipsec_copypkt(), as this is already handled by the call to
  M_MOVE_PKTHDR(), which also knows how to correctly handle MAC m_tags.
  This corrects a panic when running with MAC and KAME IPSEC.

  PR:             kern/94599
  Submitted by:   zhouyi zhou <zhouyi04 at ios dot cn>
  Reviewed by:    bz, gnn

Approved by: re (mux)

18 years agoMFC: 1.32
marius [Fri, 31 Mar 2006 23:48:12 +0000 (23:48 +0000)]
MFC: 1.32

- We only lock the local per-CPU page in the local dTLB, so accessing the
  foreign per-CPU pages in cpu_ipi_send() in order to get the module IDs
  of the other CPUs can cause a page fault. If this happens when doing a
  TLB shootdown while dealing with another page fault this causes a panic
  due to the recursive page fault. As I don't spot other code that assumes
  or requires that accessing foreign per-CPU pages must not page fault
  solve this by adding a statically allocated (and therefore locked as
  part of the kernel pages) array which establishes a FreeBSD CPU ID ->
  module ID relation and use that in cpu_ipi_selected().
- Fix a potential race in cpu_ipi_send(); as we don't serialize the access
  to cpu_ipi_selected() between MI and MD use (only MI-MI and MD-MD) we
  might catch the NACK bit caused by sending another IPI. Solve this by
  checking the NACK bit in the contents of the interrupt dispatch status
  reg read while interrupts were still turned off instead of reading that
  reg anew after interrupts were turned on again. This is also what the
  CPU docs suggest to do.
- Add a workaround for the SpitFire erratum #54 bug (affecting interrupt
  dispatch). While public info regarding what this CPU bug actually causes
  is not available testing shows that with the workaround in place it's
  less likely to get a "couldn't send ipi" panic, it doesn't solve these
  panics entirely though.

Approved by: re (mux)

18 years agoMFC: 1.10
marius [Fri, 31 Mar 2006 23:40:42 +0000 (23:40 +0000)]
MFC: 1.10

Add convenience macros for the bits in ASI_ESTATE_ERROR_EN_REG (used
for ECC handling) and the additional uses of the ASIs 0x77 and 0x7f
as well as their bits (used for a CPU bug workaround).

Approved by: re (mux)

18 years agoMFC: 1.128
marius [Fri, 31 Mar 2006 23:40:05 +0000 (23:40 +0000)]
MFC: 1.128

- Add a comment describing why tick_init() is called before cninit().
- Fix a typo in another comment.

Approved by: re (mux)

18 years agoMFC: 1.21
marius [Fri, 31 Mar 2006 23:38:29 +0000 (23:38 +0000)]
MFC: 1.21

- Move the check for too high HZ values from tick_init() to tick_start()
  as we have to call tick_init() before cninit() in order to provide the
  low-level console drivers with a working DELAY() which in turn means we
  cannot use panic() in tick_init().
- s,to high, too high, in the panic string

Approved by: re (mux)

18 years agoMFC 1.4, 1.5, 1.6:
glebius [Fri, 31 Mar 2006 12:47:50 +0000 (12:47 +0000)]
MFC 1.4, 1.5, 1.6:
  - Do not point at bar.com.
  - Document how change polling interval for HC
    interface, counters.

Approved by: re (scottl)

18 years agoSync bsnmpd with HEAD.
glebius [Fri, 31 Mar 2006 12:44:51 +0000 (12:44 +0000)]
Sync bsnmpd with HEAD.

Approved by: re (scottl)
Approved by: harti

18 years agoMFC r1.89:
kris [Fri, 31 Mar 2006 07:39:24 +0000 (07:39 +0000)]
MFC r1.89:

 - LK_RETRY means nothing when passed to VOP_LOCK.  Call vn_lock instead.
 - Move the vn_lock of the dvp until after we've unbusied the filesystem
   to avoid a LOR with the mount point lock.
 - In the v_mountedhere while loop we acquire a new instance of giant each
   time through without releasing the first.  This would cause us to leak
   Giant.

Sponsored by:   Isilon Systems, Inc.
Approved by: re (scottl)

18 years agoMFC r1.137:
kris [Fri, 31 Mar 2006 07:13:09 +0000 (07:13 +0000)]
MFC r1.137:

Fix a bug in the NFS/TCP retransmission path.

The bug was that earlier, if a request was retransmitted,
we would do subsequent retransmits every 10 msecs.

This can cause data corruption under moderate loads by reordering
operations as seen by the client NFS attribute cache, and on the
server side when the retransmission occurs after the original request
has left the duplicate cache, since the operation will be committed
for a second time.

Further work on retransmission handling is needed (e.g. they are still
being done sent too often since they are scaled by HZ, and the size of
the dup cache is too small and easily overwhelmed on busy servers).

Submitted by:   mohans
Approved by: re (mux)

18 years agoMFC: 1.36: honor tunable when starting up task q threads
sam [Thu, 30 Mar 2006 22:59:12 +0000 (22:59 +0000)]
MFC: 1.36: honor tunable when starting up task q threads

Approved by: re (scottl)

18 years agoMFC 1.144 tty_pty.c
csjp [Thu, 30 Mar 2006 16:46:56 +0000 (16:46 +0000)]
MFC 1.144 tty_pty.c

Allow root to open jail PTYs from the host environment. This un-breaks using
utilities like watch(8) (or other programs which use snp(4)) to monitor
behavior within prisons from the host environment. This regression was
introduced when we changed the ioctl(SNPSTTY) to use a file descriptor
instead of a dev_t

Approved by: re (hrs)

18 years agoDocument 06:13.sendmail, 06:12.opie, 06:11.ipsec, and 06:10.nfs.
hrs [Thu, 30 Mar 2006 15:31:36 +0000 (15:31 +0000)]
Document 06:13.sendmail, 06:12.opie, 06:11.ipsec, and 06:10.nfs.

Submitted by: delphij
Approved by: re (implicitly)

18 years agoMFC authpf.8 rev. 1.2
mlaier [Thu, 30 Mar 2006 08:14:55 +0000 (08:14 +0000)]
MFC authpf.8 rev. 1.2
  Document authpf's requirement for a mounted fdescfs(5).

  PR: docs/89635

Approved by: re (hrs)

18 years agoMFC 1.39
brd [Thu, 30 Mar 2006 04:15:40 +0000 (04:15 +0000)]
MFC 1.39
Fix a typo.

Approved by: re@, ceri@

18 years agoMFC Rev 1.15
suz [Wed, 29 Mar 2006 21:06:50 +0000 (21:06 +0000)]
MFC Rev 1.15
 fixed a potential memory leak

Approved by: re(hrs)

18 years agoMFC Rev 1.64
suz [Wed, 29 Mar 2006 21:05:11 +0000 (21:05 +0000)]
MFC Rev 1.64
   fixed a memory leak when net.inet6.icmp6.nd6_maxqueuelen is greater than 1

Approved by: re(hrs)

18 years agoFix a bug in NFSv3 READDIRPLUS reply processing
cel [Wed, 29 Mar 2006 18:11:32 +0000 (18:11 +0000)]
Fix a bug in NFSv3 READDIRPLUS reply processing

The client's READDIRPLUS logic skips the attributes and
filehandle of the ".." entry.  If the server doesn't send
attributes but does send a filehandle for "..", the
client's logic doesn't account for the extra "value
Fix a bug in NFSv3 READDIRPLUS reply processing

The client's READDIRPLUS logic skips the attributes and
filehandle of the ".." entry.  If the server doesn't send
attributes but does send a filehandle for "..", the
client's logic doesn't account for the extra "value
follows" field that indicates whether the filehandle is
present, causing the remaining entries in the reply
to be ignored.

This is an MFC of 1.264 in the CURRENT branch.

Sponsored by:   Network Appliance, Inc.
Reviewed by:    rick, mohans
Approved by:    re, silby

18 years agoMerge ip_ip.c:1.43,1.44 from HEAD to RELENG_6:
rwatson [Wed, 29 Mar 2006 12:42:43 +0000 (12:42 +0000)]
Merge ip_ip.c:1.43,1.44 from HEAD to RELENG_6:

   When the kernel is compiled with options IPXIP, run the network stack
   with Giant, as there is current unsafety in the IPX tunneled over IP
   code.  There have been no reports of trouble, but there probably would
   be if anyone were running this code at high speed on SMP systems.

   Include kernel.h to get NET_NEEDS_GIANT() definition, which for some
   reason compiled fine here.  I may be running with other include file
   changes locally.

Approved by: re (kensmith)

18 years agoMFC: Add sendmail 8.13.4 -> 8.13.6 release note entry.
gshapiro [Wed, 29 Mar 2006 07:56:10 +0000 (07:56 +0000)]
MFC: Add sendmail 8.13.4 -> 8.13.6 release note entry.

Approved by: re (kensmith)

18 years agoMFC: Add new libsm file from sendmail 8.13.6
gshapiro [Wed, 29 Mar 2006 07:34:59 +0000 (07:34 +0000)]
MFC: Add new libsm file from sendmail 8.13.6

Approved by: re (kensmith)

18 years agoMFC: sendmail 8.13.6
gshapiro [Wed, 29 Mar 2006 07:34:35 +0000 (07:34 +0000)]
MFC: sendmail 8.13.6

Approved by: re (kensmith)

18 years agoMFC:
ume [Wed, 29 Mar 2006 03:38:58 +0000 (03:38 +0000)]
MFC:

  - When res_send() fails, we should reserve an error code.
  - When res_nquerydomain() returns SERVFAIL, we should try next domain.

src/lib/libc/net/getaddrinfo.c: 1.75, 1.76
src/lib/libc/resolv/res_query.c: 1.3

Approved by: re (hrs)

18 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_6'.
cvs2svn [Tue, 28 Mar 2006 23:59:08 +0000 (23:59 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_6'.

18 years agoMFC revision 1.71:
ceri [Tue, 28 Mar 2006 15:52:12 +0000 (15:52 +0000)]
MFC revision 1.71:
The rpc.pcnfsd server was in the base for a little over seven
minutes back in 1994.  Change the example entry to point at the
port, as per the entries for uucpd et al.

Approved by: re (kensmith)

18 years agoMFC pf_norm.c rev. 1.17:
mlaier [Tue, 28 Mar 2006 15:06:03 +0000 (15:06 +0000)]
MFC pf_norm.c rev. 1.17:
  Loopback pf_norm.c rev. 1.106 from OpenBSD:
      fixup IP checksum when modifying IP header fields

  PR: kern/93849
  Obtained from: OpenBSD

Approved by: re (kensmith)

18 years agoMerge fifo_vnops.c:1.134 from HEAD to RELENG_6:
rwatson [Tue, 28 Mar 2006 12:42:20 +0000 (12:42 +0000)]
Merge fifo_vnops.c:1.134 from HEAD to RELENG_6:

  Add a_fdidx to comment prototype for fifo_open().

  Submitted by:   Kostik Belousov <kostikbel at gmail dot com>

Approved by: re (mux)

18 years agoMFC (by scottl@):
delphij [Tue, 28 Mar 2006 06:28:37 +0000 (06:28 +0000)]
MFC (by scottl@):
> Free the newtag if we exit with a failure from alloc_bounce_zone().
>
> Found by: Coverity Prevent(tm)
>
> Revision  Changes    Path
> 1.73      +3 -1      src/sys/amd64/amd64/busdma_machdep.c
> 1.76      +6 -1      src/sys/i386/i386/busdma_machdep.c

Approved by: re (mux)

18 years agoMFC (by scottl@):
delphij [Tue, 28 Mar 2006 06:25:11 +0000 (06:25 +0000)]
MFC (by scottl@):
>
> Don peril sensitive sunglasses and jack up the MAX_BPAGES limit to 8192
> on amd64.  If you're going to stuff >4GB into your box, reserving 32MB for
> bonce pages amounts to a rounding error in the overall scheme of things.
>
> Revision  Changes    Path
> 1.72      +1 -1      src/sys/amd64/amd64/busdma_machdep.c

Approved by: re (mux)

18 years agoMFC (by le@):
delphij [Tue, 28 Mar 2006 06:23:00 +0000 (06:23 +0000)]
MFC (by le@):

> sys/amd64/amd64/busdma_machdep.c,v 1.71
> sys/i386/i386/busdma_machdep.c,v 1.75

Fix typos.

Approved by: re (mux)

18 years agoNew release notes:
hrs [Sun, 26 Mar 2006 16:28:59 +0000 (16:28 +0000)]
New release notes:
FreeBSD-SA-06:10.nfs,
FreeBSD-SA-06:11.ipsec,
FreeBSD-SA-06:12.opie, and
FreeBSD-SA-06:13.sendmail.

Submitted by: delphij
Approved by: re (implicitly)

18 years agoMFC revision 1.232, 1.233, fix thread suspension race.
davidxu [Sun, 26 Mar 2006 01:29:55 +0000 (01:29 +0000)]
MFC revision 1.232, 1.233, fix thread suspension race.

Approved by: re (kensmith)

18 years agoMFC: 1.2
marius [Sat, 25 Mar 2006 12:20:41 +0000 (12:20 +0000)]
MFC: 1.2

- Add info regarding the watchdog part of the MK48Txx.
- Add a missing .Tn before Mostek.

Approved by: re (hrs)

18 years agoMFC: 1.11
marius [Sat, 25 Mar 2006 12:17:23 +0000 (12:17 +0000)]
MFC: 1.11

For E250 and E450 enable the watchdog part of the MK48Txx as it just
works there.

Approved by: re (hrs)

18 years ago- Clear the interrupt source flags before processing the interrupt
marius [Sat, 25 Mar 2006 12:13:21 +0000 (12:13 +0000)]
- Clear the interrupt source flags before processing the interrupt
  events and turn off NIC interrupts while in the interrupt handler.
  This fixes the device timeouts seen with the VMware LANCE.
- Relax the watchdog timer somewhat; don't enable it until the last
  packet is enqueued and if there is a TX interrupt but there are
  still outstanding ones reload the timer.

Approved by: re (hrs)

18 years agoMFC 1.26: Correct the calculation of the report size and only look
iedowse [Sat, 25 Mar 2006 04:46:52 +0000 (04:46 +0000)]
MFC 1.26: Correct the calculation of the report size and only look
at reports that have the specified kind, instead of assuming that
there is only one report of the right kind in the report descriptor.

Approved by: re (kensmith)

18 years agoMFC: Sony DSC cameras with revision number 6.0 require the same
iedowse [Fri, 24 Mar 2006 21:42:02 +0000 (21:42 +0000)]
MFC: Sony DSC cameras with revision number 6.0 require the same
quirk as those reporting revision 5.0.

Approved by: re (mux)

18 years agoMFC: Serialize access to the info/dir file; needed for parallel installs.
ru [Fri, 24 Mar 2006 19:28:38 +0000 (19:28 +0000)]
MFC: Serialize access to the info/dir file; needed for parallel installs.

Approved by: re (kensmith)

18 years agoMFC Rev 1.27 (avoid heap overrun)
suz [Fri, 24 Mar 2006 14:53:53 +0000 (14:53 +0000)]
MFC Rev 1.27 (avoid heap overrun)

Approved by: re(kensmith)

18 years agoMFC: rev. 1.64
brueffer [Fri, 24 Mar 2006 05:44:32 +0000 (05:44 +0000)]
MFC: rev. 1.64

Document JMicron JMB361, 365 and 366 support.

Approved by: re (hrs)

18 years agoMFC 1.263: a typo fix (diff reduction against -HEAD)
delphij [Fri, 24 Mar 2006 04:48:42 +0000 (04:48 +0000)]
MFC 1.263: a typo fix (diff reduction against -HEAD)

Approved by: re (hrs)

18 years agoMFC: update for v0.4.8 import of wpa_supplicant and hostapd
sam [Fri, 24 Mar 2006 01:43:18 +0000 (01:43 +0000)]
MFC: update for v0.4.8 import of wpa_supplicant and hostapd

Approved by: re (hrs)

18 years agoMFC v0.4.8 import of hostapd
sam [Fri, 24 Mar 2006 01:42:36 +0000 (01:42 +0000)]
MFC v0.4.8 import of hostapd

Approved by: re (hrs)

18 years agoMFC v0.4.8 import of wpa_supplicant
sam [Fri, 24 Mar 2006 01:41:10 +0000 (01:41 +0000)]
MFC v0.4.8 import of wpa_supplicant

Approved by: re (hrs)