117721 Commits

Author SHA1 Message Date
jkim
f5c5f62edb MFC: Fix 'grep -Fw' for encodings other than UTF-8 (RH bug #161700).
PR:		87969
Approved by:	re (scottl)
Obtained from:	Fedora (Tim Waugh)
2005-10-27 16:26:27 +00:00
suz
dff0767165 MFC rev 1.34
fixed a kernel crash when IPv6 PIM-SM routing is enabled and a PIM register message is received

Approved by: re(scottl)
2005-10-27 14:04:03 +00:00
peter
904c7279ad MFC: 1.2: don't set segment registers yet.
Approved by:  re
2005-10-26 22:07:03 +00:00
csjp
b559f044a4 MFC notes about ucred based rules and debug.mpsafenet requirements.
Approved by:	re (scottl)
2005-10-26 21:58:42 +00:00
ariff
e0694af956 Virtual channel default speed should be based on soundcard
capabilities. This solve various mysterious slowdown especially
for fixed-rate ac97 soundcards.

Approved by:	re (scottl), netchild (mentor)
Reviewed by:	andreas
2005-10-26 21:18:41 +00:00
ariff
d85b7d2c5a Rearrange sound unregister procedure to detect mixer busy
state and destroy it before anything else. This solve panic issue
during sound module unloading if the sound / mixer device being
held by external processes.

Approved by:	re (scottl), netchild (mentor)
Reviewed by:	andreas
2005-10-26 21:18:09 +00:00
ariff
0760e13e5f Track every mixer device closing for proper refcount calculation.
This solve device busy and panic issues during sound module
unloading.

Approved by:	re (scottl), netchild (mentor)
Reviewed by:	andreas
2005-10-26 21:17:40 +00:00
jkim
789c760d1b MFC: Fix a longstanding buglet in bz-prefixed grep(1).
PR:		gnu/72200
Approved by:	re
2005-10-26 21:13:30 +00:00
delphij
eba1d76119 MFC (by alc) changesets that addresses several race conditions that can
cause a kernel compiled with ZERO_COPY_SOCKETS to panic under certain
circumstances:
	sys/kern/uipc_cow.c:	1.24 - 1.26
	sys/vm/vm_object.c:	1.351

Approved by:	re (scottl)
2005-10-26 20:21:23 +00:00
peter
a15f17eca3 MFC: Fix fencepost error that made libkvm fail to read crashdumps.
Approved by: re
2005-10-26 00:07:25 +00:00
njl
5843aed747 MFC rev 1.12: set to 100% on boot
Approved by:	re (scottl)
2005-10-25 20:52:44 +00:00
njl
295c946ca7 MFC rev 1.216: Don't disable PCI link devices even when they're !enabled
Approved by:	re (scottl)
2005-10-25 20:51:25 +00:00
kris
053c63be2b MFC r1.650:
Default to mpsafevfs=1 on sparc64

Approved by:	re (scottl)
2005-10-25 20:42:06 +00:00
kris
2eda86bb49 MFC 1.73:
Reflect mpsafety of the underlying filesystem in the nullfs image.

Approved by:	re (scottl)
2005-10-25 20:33:31 +00:00
jhb
cfb43bdc67 MFC: Don't panic if a spin lock is initialized that isn't in our static
order list.  Just warn about it instead.

Approved by:	re (scottl)
2005-10-25 20:14:04 +00:00
jhb
4f9fa9b663 MFC: Rename 'traceall' to 'alltrace' and add a 'bt' alias for 'trace'.
Approved by:	re (scottl)
2005-10-25 20:10:56 +00:00
njl
548dc54d84 MFC: Warn, don't error out when we temporarily can't set the frequency.
Accept "maximum" and "minimum" keywords.  Set signals in the right place.

Approved by:	re (scottl)
2005-10-25 20:05:44 +00:00
imp
3315386261 MFC: 1.26 remove 'string' to avoid shadowing a variable we want to change.
Approved by: re@ (scottl)
2005-10-25 19:59:22 +00:00
cvs2svn
1ad5f43971 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-10-24 05:35:41 +00:00
imp
971bfd368d MFC: 1.2.
Mempage size needs to be 1k rather than 4k.  Prior versions of FreeBSD
used this value and it was recently increased to 4k.  This broke the
two 16-bit card at boot scenario.  Revert it back to 1k.

Approved by: re (scottl)
2005-10-23 18:22:16 +00:00
delphij
0e1eb2fee5 Remove a note that claims that the debugging options are turned on
by default, to match the reality that these has been turned off on
the 6-STABLE branch since 6.0-BETA6.

This is a direct commit against RELENG_6 since it is not applicable
for HEAD.

Approved by:	re (scottl)
2005-10-23 03:34:43 +00:00
thompsa
35a7273cfa MFC ng_ether support for if_bridge and cleanup of bridge hooks.
bridgestp.c; r1.8
 if_bridge.c; r1.25, 1.27
 if_bridgevar.h; r1.5
 if_ethersubr.c; r1.201, 1.202, 1.206
 ng_ether.c; r1.52 - 1.54

Approved by:	re (scottl)
2005-10-23 02:36:58 +00:00
glebius
e01fc073e8 Sync with HEAD. Revisions merged:
- rev. 1.76. Removed FreeBSD 4.x code.
  - rev. 1.77, 1.79. Together with rev. 1.71 (already merged) this
    fixes problems when some code is executed in driver when
    em_process_receive_interrupts() drops lock. This can occur
    at runtime, when polling(4) mode is changed to interrupt driver
    or vise versa, but more likely this can happen when administrator
    issues some ifconfig commands.
  - rev. 1.78. In em_process_receive_interrupts(), call bus_dmamap_sync()
    for the descriptors set each time we modify one descriptor, instead
    of doing it only at the function exit.
  - rev. 1.80. Loop in em_intr() until interrupt cause register is clear,
    don't mask overrun interrupt.
  - rev. 1.81. Several locking and other fixes.

See particular revision logs for more detailed information.

Approved by:	re
2005-10-22 21:20:17 +00:00
yar
4c02686eae MFC notes on ifconfig(8): -tunnel, -vlandev.
Approved by:	re (hrs)
2005-10-21 15:44:47 +00:00
suz
af06cff4f6 MFC 1.56 (added a missing unlock)
Approved by: re(scottl)
2005-10-20 11:49:25 +00:00
cvs2svn
e87417d77f This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-10-20 11:10:44 +00:00
ups
6293539098 MFC vm_machdep.c 1.261-1.263
Rev: 1.261

  Ensure that a thread stays on same CPU when calculating per CPU
  TLB shootdown requirements. Otherwise a CPU may not get the needed
  TLB invalidation.

  The PTE valid and access flags can not be used here to avoid TLB
  shootdowns unless sf->cpumask == all_cpus.
  ( Otherwise some CPUs may still hold an even older entry in the TLB)
  Since sf_buf_alloc mappings are normally always used this is
  also not really useful and presetting accessed and modified
  allows the CPU to speculatively load the entry into the TLB.

  Both bugs can cause random data corruption.

Rev: 1.262

  Restore optimizations to reduce TLB shootdowns.
  Alan Cox pointed out that they are really useful for
  sendfile().

Rev: 1.263
  Restore the UP optimization to reduce the number of TLB
  invalidations.  The
  previous revision only restored the MP optimization.

  Describe the optimization strategy for TLB invalidations in a comment.

Approved by:	re@ (scottl)
2005-10-20 01:03:23 +00:00
phk
484eb21391 MFC:
Use correct criteria to determine if dirent can be removed
	right away.

Approved by:	re@ (scottl)
2005-10-19 21:25:31 +00:00
thompsa
73007defbe MFC: if_bridge.c r1.26, if_ethersubr.c r1.205
>   Use bridge_ifdetach() to notify the bridge that a member has been detached.
>   The bridge can then remove it from its interface list and not try to send
>   out via a dead pointer.

Approved by:	re (scottl)
2005-10-19 20:46:16 +00:00
truckman
35158d47d9 MFC ufs_lookup.c 1.78 and 1.79.
Original commit messages:
  Modified files:
    sys/ufs/ufs          ufs_lookup.c
  Log:
  Close a race in the ufs_lookup() code that handles the ISDOTDOT
  case by saving the value of dp->i_ino before unlocking the vnode
  for the current directory and passing the saved value to VFS_VGET().

  Without this change, another thread can overwrite dp->i_ino after
  the current directory is unlocked, causing  ufs_lookup() to lock
  and return the wrong vnode in place of the vnode for its parent
  directory.  A deadlock can occur if dp->i_ino was changed to a
  subdirectory of the current directory because the root to leaf vnode
  lock ordering will be violated.  A vnode lock can be leaked if
  dp->i_ino was changed to point to the current directory, which
  causes the current vnode lock for the current directory to be
  recursed, which confuses lookup() into calling vrele() when it
  should be calling vput().

  The probability of this bug being triggered seems to be quite low
  unless the sysctl variable debug.vfscache is set to 0.

  Reviewed by:    jhb
  MFC after:      2 weeks

  Revision  Changes    Path
  1.78      +3 -1      src/sys/ufs/ufs/ufs_lookup.c

  Modified files:
    sys/ufs/ufs          ufs_lookup.c
  Log:
  Correct the type of the temporary variable used by ufs_lookup.c:1.78
  to fix the race condition in the ufs_lookup() ISDOTDOT code.

  Noticed by:     bde
  MFC after:      12 days

  Revision  Changes    Path
  1.79      +1 -1      src/sys/ufs/ufs/ufs_lookup.c

Approved by:	re (scottl)
2005-10-19 20:31:45 +00:00
truckman
ac3fe75ffe MFC nwfs_vnops.c 1.42
Original commit message:
  Modified files:
    sys/fs/nwfs          nwfs_vnops.c
  Log:
  Update nwfs_lookup() to match the current cache_lookup() API.
  cache_lookup() has returned a ref'ed and locked vnode since
  vfs_cache.c:1.96, dated Tue Mar 29 12:59:06 2005 UTC.  This change
  is similar to the change made to smbfs_lookup() in smbfs_vnops.c:1.58.

  Tested by:      "Antony Mawer" ant AT mawer.org
  MFC after:      2 weeks

  Revision  Changes    Path
  1.42      +11 -26    src/sys/fs/nwfs/nwfs_vnops.c

Approved by:	re (scottl)
2005-10-19 20:18:44 +00:00
cvs2svn
5e71b059f3 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-10-17 12:20:06 +00:00
imp
3159ac2409 MFC: Fixes for RTL8029 and qemu.
> imp         2005-10-13 22:06:02 UTC
>   Modified files:
>     sys/dev/ed           if_ed_rtl80x9.c
>   Log:
>   o Fix probing of rtl80x9 parts.  We shouldn't be calling
>     ed_probe_generic8390 where we're calling it.  It will be done as part
>     of ed_probe_Novel_generic after things are setup in a way that
>     ed_probe_generic8390 will grok.
>   o Fix operator precedence botch that causes a panic when setting the media
>     type for 10baseT connections.
>   o Save the type of device so that it prints with the rest of the probe.
>
>   # this should make it work with qemu again, but only if it has my patches
>   # to actually implement the RTL8029 specific registers.
>   Revision  Changes    Path
>   1.2       +6 -5      src/sys/dev/ed/if_ed_rtl80x9.c
>
>   Modified files:
>     sys/dev/ed           if_ed_pci.c
>   Log:
>   If we can't probe the RTL80x9 for some reason, fall back to probing it
>   as a Novell NE-2000.  This is necessary for unpatched qemu working
>   correctly.  qemu claims to be a RTL8029, but doesn't implement the
>   RTL8029 specific registers at this time.  I've created patches for
>   that, but there's no reason we can't use qemu's emulation w/o these
>   patches.  This should make life easier for those folks that boot
>   FreeBSD via qemu.
>   Revision  Changes    Path
>   1.48      +9 -2      src/sys/dev/ed/if_ed_pci.c

Approved by: re@ (kensmith)
2005-10-17 02:17:49 +00:00
kris
f8865b0e0a MFC r1.20:
Add a default value for VM_BCACHE_SIZE_MAX of 400MB.  This is copied from
amd64, and is a factor of 3 less than the value previously auto-sized on
a 12GB machine, which would cause an overflow in calculations involving the
maxbcache int, causing bufinit() to loop forever at boot.

Approved by:	 re (kensmith)
2005-10-17 00:19:00 +00:00
kris
ae517b7386 MFC r1.72: Partially revert r1.67 which changed maxbcache and maxswzone
from int to long without updating the <sys/buf.h> version.  This broke the
corresponding tunables on sparc.

Approved by:	re (kensmith)
2005-10-17 00:16:54 +00:00
delphij
c9d952495f MFC Release Notes Language Improvements
Approved by:	re (hrs)
2005-10-16 07:31:59 +00:00
rwatson
bf446dfcca Merge ufs_extattr.c:1.82 from HEAD to RELENG_6:
When performing a VOP_LOOKUP() as part of UFS1 extended attribute
  auto-start, set cnp.cn_lkflags to LK_EXCLUSIVE.  This flag must now
  be set so that lockmgr knows what kind of lock to acquire, and it
  will panic if not specified.  This resulted in a panic when using
  extended attributes on UFS1 as of locking work present in the 6.x
  branch.

  This is a RELENG_6_0 merge candidate.

  Reported by:    lofi

Approved by:	re (kensmith)
MFC after:	1 day
2005-10-15 18:32:55 +00:00
rwatson
4e2bc98699 Merge in.c:1.89,1.90 from HEAD to RELENG_6:
Acquire Giant conditionally in in_addmulti() and in_delmulti() based on
  whether the interface being accessed is IFF_NEEDSGIANT or not.  This
  avoids lock order reversals when calling into the interface ioctl
  handler, which could potentially lead to deadlock.

  The long term solution is to eliminate non-MPSAFE network drivers.

  Discussed with: jhb

  Unlock Giant symmetrically with respect to lock acquire order as that's
  generally nicer.

  Spotted by:     johan

RELENG_6_0 candidate.

MFC after:	1 day
Approved by:	re (kensmith)
2005-10-15 16:58:21 +00:00
jhb
c921ab0db7 MFC: Update the critical(9) manpage including dropping references to
cpu_critical_*() as they no longer exist.

Approved by:	re (kensmith)
2005-10-14 18:34:29 +00:00
joel
23bcbeb7ad MFC r1.1334:
snd_ess needs snd_sbc, so add a note about that.

Approved by:	re (hrs)
2005-10-14 18:25:41 +00:00
joel
d786c2e85d MFC r1.59:
Add support for ATI IXP[234]00.

Approved by:	re (hrs)
2005-10-14 18:17:13 +00:00
glebius
dc34959a86 Merge the 'kldstat -q' functionality, that is required for proper
operation of the /etc/rc.d/pfsync script, that was merged before
the RELENG_6_0 has been forked.

Approved by:	re (kensmith)
2005-10-14 14:02:25 +00:00
delphij
2f43cebbb6 MFC (by gibbs):
| Correct bug that caused the completed "recovery" scb to have its
| timer reset rather than the timer of an SCB still pending on the
| controller after recovery completed.  This should correct timeout
| loops seen in the field.
|
| Revision  Changes    Path
| 1.22      +2 -1      src/sys/dev/aic7xxx/aic79xx_osm.c
| 1.43      +2 -1      src/sys/dev/aic7xxx/aic7xxx_osm.c

Approved by:	re (kensmith)
2005-10-14 02:03:27 +00:00
cvs2svn
769ea47baf This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-10-13 18:12:47 +00:00
cvs2svn
8494e77c0e This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-10-13 17:57:35 +00:00
delphij
5d601b8b09 MFC Simplified Chinese translation of Release Documentations
Approved by:	re (hrs)
2005-10-13 17:30:59 +00:00
sos
80d71f6514 Disable RAID5 for the release.
The RIAD5 code is not complete, it does not use nor maintain the parity, so
it does actually only do RAID0. This is not wanted for a production release.

Approved by: re@ (scottl)
2005-10-13 08:15:48 +00:00
sos
c43f86ba12 MFC:
Add support for ATI IXP[234]00 series chipsets.

Approved by: re@ (scottl)
2005-10-13 08:07:46 +00:00
sos
4ecb87dfee MFC:
Properly react to allocation failures.
        Correct the former patch to the way it would have looked after review.

Approved by: re@ (scottl)
2005-10-12 20:17:34 +00:00
davidxu
cd55799acc MFC revision 1.24:
> The pthread_attr_set_createsuspend_np was broken, fix it by
 > replacing THR_FLAGS_SUSPENDED with THR_FLAGS_NEED_SUSPEND.

Approved by: re (scottl)
2005-10-11 23:24:25 +00:00