117890 Commits

Author SHA1 Message Date
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
cperciva
801fe04163 Correct a man-in-the-middle SSL version rollback vulnerability.
Security:       FreeBSD-SA-05:21.openssl
Approved by:    re@ (scottl)
2005-10-11 11:53:03 +00:00
phk
5470b47e36 MFC:
Various adjustments.

Approved by:	re@ (scottl)
2005-10-11 06:42:02 +00:00
peadar
b6a59515a1 MFC revision 1.181
When breaking up a large request into smaller ones for the strategy
	routine, create all the child bio objects before starting the
	requests, rather than starting them as created. This closes a race
	whereby some number of child operations could complete before the
	rest were ever created, and prematurely freeing the parent bio.
	This fixes the panics installing in VMWare and qemu

Approved by: re (scottl@)
2005-10-09 21:24:11 +00:00
ps
29c6215782 MFC:
> revision 1.277
> date: 2005/10/03 12:49:54;  author: cperciva;  state: Exp;  lines: +8 -0
> If sufficiently bad things happen during a call to kern_execve(), it is
> possible for do_execve() to call exit1() rather than returning.  As a
> result, the sequence "allocate memory; call kern_execve; free memory"
> can end up leaking memory.
>
> This commit documents this astonishing behaviour and adds a call to
> exec_free_args() before the exit1() call in do_execve().  Since all
> the users of kern_execve() in the tree use exec_free_args() to free
> the command-line arguments after kern_execve() returns, this should
> be safe, and it fixes the memory leak which can otherwise occur.
>
> Submitted by:   Peter Holm
> MFC after:      3 days
> Security:       Local denial of service

Approved by:	re (scottl)
2005-10-09 17:28:12 +00:00
scottl
2474c1243b Move on to 6.0-RC1.
Approved by: re
2005-10-09 16:59:34 +00:00
delphij
24b61ed7a8 MFC (by des)
| Eliminate an unnecessary bcopy().
|
| Revision  Changes    Path
| 1.57      +15 -15    src/sys/fs/pseudofs/pseudofs_vnops.c

Approved by:	re (scottl)
No objection:	des
2005-10-09 08:59:34 +00:00
maxim
53f8761303 MFC rev. 1.234: teach sysctl_drop() how to deal with the sockets
in TIME_WAIT state.

Approved by:	re (scottl)
2005-10-09 08:21:34 +00:00
rik
47f527c6ee MFC:
----------------------------
	revision 1.281
	date: 2005/10/04 16:27:54;  author: rik;  state: Exp;  lines: +3 -1
	Use FILEDESC_UNLOCK(fdp) after FILE_UNLOCK(p), not before to avoid LOR.
	Slightly discussed on current@.

	LOR #055

Approved by:	re(scottl)
Requested by:	delphij
2005-10-09 08:13:56 +00:00
netchild
42d9558509 MFC:
Don't use the builtin vaalist for icc.

  Submitted by:	Igor Sysoev <is@rambler-co.ru>

Approved by:	re (scottl)
2005-10-09 07:48:48 +00:00
ume
a2ab4a826b MFC: be consistent on naming advanced API functions; use ip6_XXXpktopt(s).
sys/netinet6/ip6_output.c:	1.93
	sys/netinet6/ip6_var.h:		1.31
	sys/netinet6/mld6.c:		1.20
	sys/netinet6/raw_ip6.c:		1.51
	sys/netinet6/udp6_output.c:	1.20

Approved by:    re (scottl)
Committed at:   CBUG Meeting meets XCAST6 Festival
2005-10-09 06:51:11 +00:00
ume
c5c002ca03 MFC 1.92: NULL is not zero.
Approved by:    re (scottl)
Committed at:   CBUG Meeting meets XCAST6 Festival
2005-10-09 06:46:27 +00:00
ume
77e5d0b3fb MFC 1.49: do not hardcode if_mtu values in here, except for IFT_{ARC,FDDI} -
they need special handling.  makes it possible to take advantage of 9k ether
frames.

Approved by:    re (scottl)
Committed at:   CBUG Meeting meets XCAST6 Festival
2005-10-09 06:42:41 +00:00
scottl
e4b2748d1b MFC: Support new adapters and new communication protocol.
Submitted by: Adaptec, Inc.
Approved by: re
2005-10-09 06:39:21 +00:00
ume
af6b9d9bdc MFC: move RFC3542 related definitions into ip6.h.
sys/contrib/pf/net/pf_norm.c:	1.12
	sys/netinet/ip6.h:		1.15

Approved by:    re (scottl)
Committed at:   CBUG Meeting meets XCAST6 Festival
2005-10-09 05:50:43 +00:00
ume
5960dca5d2 MFC 1.18: add missing RFC3542 definition.
Approved by:    re (scottl)
Committed at:   CBUG Meeting meets XCAST6 Festival
2005-10-09 05:34:33 +00:00
ume
3c63662444 MFC: update comments:
- RFC2292bis -> RFC3542
    - typo fixes

	sys/netinet/icmp6.h		1.17
	sys/netinet/ip6.h:		1.14
	sys/netinet6/in6.h:		1.37
	sys/netinet6/ip6_input.c:	1.82
	sys/netinet6/ip6_mroute.h:	1.7
	sys/netinet6/ip6_output.c:	1.91

Approved by:    re (scottl)
Committed at:   CBUG Meeting meets XCAST6 Festival
2005-10-09 05:21:18 +00:00
delphij
741522667a MFC (by stefanf)
| Fix a comment.
|
| Submitted by:   Liam J. Foy
|
| Revision  Changes    Path
| 1.20      +1 -1      src/bin/sleep/sleep.c

Approved by:	re (scottl)
2005-10-09 04:39:07 +00:00
delphij
6dbb98c55a MFC (by le)
| Set the G_PF_WITHER flag on the subdisk provider that is about to
| be destroyed.  That way the GEOM system handles all deallocations
| and we don't have to do it ourselves.
|
| Revision  Changes    Path
| 1.8       +1 -34     src/sys/geom/vinum/geom_vinum_rm.c

Approved by:	re (scottl)
2005-10-09 04:37:34 +00:00
delphij
e27db9d6b8 MFC (by le)
|  Prevent that sync operations can be started when they are already
|  in progress, and be a bit more user friendly in terms of error
|  messages returned from the kernel.
|
|  Revision  Changes    Path
|  1.11      +81 -71    src/sys/geom/vinum/geom_vinum_init.c

Approved by:	re (scottl)
2005-10-09 04:36:44 +00:00
delphij
5cd27adb61 MFC (by le)
| Correct the check if a plex is accessible in case it is not up.
| This makes degraded RAID5 plexes actually work.
|
| Revision  Changes    Path
| 1.10      +1 -1      src/sys/geom/vinum/geom_vinum_volume.cle

Approved by:	re (scottl)
2005-10-09 04:35:42 +00:00
ume
30c69abdde MFC 1.16: stop RFC 4193 address on the outside interface.
Approved by:	re (scottl)
Committed at:	CBUG Meeting meets XCAST6 Festival
2005-10-09 04:35:10 +00:00
delphij
18a5a36c5c MFC (by le)
| Shuffle around the order in which the components are compiled.
|
| This way, the VINUMDRIVE class is loaded before the VINUM class,
| but since geom does the tasting for newly arrived classes
| last-in-first-out, the VINUM class tastes first.
|
| This removes the need to call gv_parse_config() in the drive
| taste path.
|
| Revision  Changes    Path
| 1.20      +4 -14     src/sys/geom/vinum/geom_vinum_drive.c
| 1.2       +1 -1      src/sys/modules/geom/geom_vinum/Makefile

Approved by:	re (scottl)
2005-10-09 04:34:29 +00:00
delphij
23924d685f MFC (by jhb)
| - Add an assertion to panic if one tries to call mtx_trylock() on a spin
|   mutex.
| - Don't panic if a spin lock is held too long inside _mtx_lock_spin() if
|   panicstr is set (meaning that we are already in a panic).  Just keep
|   spinning forever instead.
|
|   Revision  Changes    Path
|   1.157     +4 -1      src/sys/kern/kern_mutex.c

Approved by:	re (scottl)
2005-10-09 04:30:31 +00:00
delphij
780fed3f51 MFC (by andre)
| Use the correct mbuf type for MGET().
|
| Revision  Changes    Path
| 1.304     +1 -1      src/sys/netinet/ip_input.c
| 1.246     +1 -1      src/sys/netinet/ip_output.c
| 1.232     +1 -1      src/sys/netinet/tcp_subr.c
| 1.97      +1 -1      src/sys/netinet6/ip6_output.c

Approved by:	re (scottl)
2005-10-09 04:24:45 +00:00
delphij
c54b3c27f5 MFC (by andre)
| Use the correct mbuf type for MGET().
|
| Revision  Changes    Path
| 1.28      +1 -1      src/sys/netatalk/ddp_output.c

Approved by:	re (scottl)
2005-10-09 04:22:03 +00:00
delphij
bc89d0daf4 MFC (by andre)
| Test the mbuf flags against the correct constant.  The previous
| version worked as intended but only by chance.
|
| MT_HEADER == M_PKTHDR == 0x2.
|
| Revision  Changes    Path
| 1.85      +1 -1      src/sys/compat/ndis/kern_ndis.c

Approved by:	re (scottl)
2005-10-09 04:21:11 +00:00
delphij
7164a33da2 MFC (by ru)
| Fix "struct ifnet" leak if attach() fails in the middle.
|
| Revision  Changes    Path
| 1.39      +2 -0      src/sys/contrib/dev/oltr/if_oltr.c
| 1.94      +1 -0      src/sys/dev/fe/if_fe.c
| 1.114     +3 -1      src/sys/dev/lnc/if_lnc.c
| 1.11      +3 -1      src/sys/dev/nve/if_nve.c
| 1.12      +3 -1      src/sys/dev/patm/if_patm_attach.c

Approved by:	re (scottl)
2005-10-09 04:18:18 +00:00
delphij
44895bc543 MFC (by ru)
| Avoid deferencing NULL in if_free().
|
| Revision  Changes    Path
| 1.16      +2 -3      src/sys/dev/ral/if_ral.c

Approved by:	re (scottl)
2005-10-09 04:15:59 +00:00
delphij
112fbfa0fd MFC (by ru)
| Fix "struct ifnet" leaks when attach() fails in the middle.
|
| Revision  Changes    Path
| 1.28      +4 -5      src/sys/dev/bfe/if_bfe.c
| 1.95      +3 -2      src/sys/dev/bge/if_bge.c
| 1.21      +2 -0      src/sys/dev/cnw/if_cnw.c
| 1.261     +2 -1      src/sys/dev/ed/if_ed.c
| 1.38      +9 -2      src/sys/dev/en/if_en_pci.c
| 1.59      +3 -1      src/sys/dev/ex/if_ex.c
| 1.26      +4 -3      src/sys/dev/hatm/if_hatm.c
| 1.105     +2 -1      src/sys/dev/ie/if_ie.c
| 1.17      +2 -1      src/sys/dev/vge/if_vge.c

Approved by:	re (scottl)
2005-10-09 04:15:12 +00:00
delphij
3527f35222 MFC (by ru)
| Fix "struct ifnet" leaks when attach() fails in the middle, e.g.
| when mii_phy_probe() or bus_setup_intr() fails.  For drivers that
| call their detach() in this case, call if_free() there to cover
| this case too.
|
| Revision  Changes    Path
| 1.168     +2 -2      src/sys/pci/if_dc.c
| 1.75      +2 -2      src/sys/pci/if_pcn.c
| 1.156     +3 -5      src/sys/pci/if_rl.c (already merged)
| 1.87      +2 -2      src/sys/pci/if_sf.c
| 1.136     +2 -3      src/sys/pci/if_sis.c
| 1.110     +2 -3      src/sys/pci/if_sk.c
| 1.89      +2 -2      src/sys/pci/if_ste.c
| 1.110     +2 -2      src/sys/pci/if_ti.c
| 1.103     +2 -2      src/sys/pci/if_tl.c
| 1.107     +2 -2      src/sys/pci/if_vr.c
| 1.83      +2 -2      src/sys/pci/if_wb.c
| 1.196     +2 -2      src/sys/pci/if_xl.c

Approved by:	re (scottl)
2005-10-09 04:11:20 +00:00
delphij
1fbf99add2 MFC (by ru)
| Fix "struct ifnet" leak on detach.
|
| Revision  Changes    Path
| 1.104     +1 -0      src/sys/dev/ath/if_ath.c

Approved by:	re (scottl)
2005-10-09 04:00:47 +00:00