]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC contrib code and bmake changes for BIND version 9.4.2
dougb [Fri, 7 Dec 2007 08:31:23 +0000 (08:31 +0000)]
MFC contrib code and bmake changes for BIND version 9.4.2

Approved by: re (kensmith)

16 years agoMFC rev 1.136: Fix SACK
silby [Fri, 7 Dec 2007 05:52:24 +0000 (05:52 +0000)]
MFC rev 1.136: Fix SACK

No merges to branches prior to 7 are necessary; this is a 7 and above
bug only.

Approved by: re (gnn)

16 years ago Add padding for anticipated functionality
kmacy [Fri, 7 Dec 2007 05:46:09 +0000 (05:46 +0000)]
 Add padding for anticipated functionality
  - vimage
  - TOE
  - multiq
  - host rtentry caching

 Rename spare used by 80211 to if_llsoftc

 Reviewed by: rwatson, gnn
 Approved by: re(gnn)

16 years agoMFC r1.18:
kevlo [Fri, 7 Dec 2007 05:17:34 +0000 (05:17 +0000)]
MFC r1.18:

zic(8) should exit the loop when the end of the string is reached
due to the call to error(). The problem found by doing fuzz testing.

Approved by: re (kensmith)

16 years agoMFC r1.209
thompsa [Fri, 7 Dec 2007 03:46:23 +0000 (03:46 +0000)]
MFC r1.209

  Apply a workaround for the unkillable jail problem where some devices created
  within the jail are never freed.

Approved by: re (kensmith)

16 years agoMFC:
brooks [Thu, 6 Dec 2007 16:22:18 +0000 (16:22 +0000)]
MFC:
To reduce the impact of possible removal of the syscalls required by
libkse in FreeBSD 8.0, do not build or install static versions of libkse
(i.e. libkse*.a) in the default case.  Static versions will be built and
installed if libthr is not built or if libkse is the default threading
library.

Discussed on: freebsd-arch
Approved by: re (kensmith)

16 years agoMFC
kib [Thu, 6 Dec 2007 14:20:25 +0000 (14:20 +0000)]
MFC
rev 1.323 of src/sys/amd64/amd64/trap.c
rev 1.310 of src/sys/i386/i386/trap.c

Fix the ABI change of the signal delivered on the access to the page
with insufficient protection mode.

Approved by: re (kensmith)

16 years agoMFC
kib [Thu, 6 Dec 2007 14:19:43 +0000 (14:19 +0000)]
MFC
rev 1.182 of src/sys/kern/imgact_elf.c
rev 1.288 of src/sys/kern/init_main.c
rev 1.312 of src/sys/kern/kern_exec.c
rev 1.85 of src/sys/kern/kern_mib.c
rev 1.496 of src/sys/sys/proc.h
rev 1.262 of src/sys/sys/systm.h

Implement fetching of the __FreeBSD_version from the ELF ABI-tag note.
The value is read into the p_osrel member of the struct proc. p_osrel
is set to 0 for the binaries without the note.

Approved by: re (kensmith)

16 years agoMFC rev. 1.181:
kib [Thu, 6 Dec 2007 13:47:46 +0000 (13:47 +0000)]
MFC rev. 1.181:
Check for the program headers alignment of the ELF images before
dereferencing. Unaligned access could cause panic on strict alignment
architectures.

Approved by: re (kensmith)

16 years agoMFC rev. 1.5, 1.6:
kib [Thu, 6 Dec 2007 13:43:43 +0000 (13:43 +0000)]
MFC rev. 1.5, 1.6:
Restore the branding of the ELF executables. The structure was optimized out.

Approved by: re (kensmith)

16 years agoMFC: Fix exit code when using -l on a non-existent md(4) device.
flz [Thu, 6 Dec 2007 11:54:36 +0000 (11:54 +0000)]
MFC: Fix exit code when using -l on a non-existent md(4) device.

  src/sbin/mdconfig/mdconfig.c: rev 1.54 -> 1.55

PR: conf/116177
Submitted by: Remi Guyomarch <rguyom@pobox.com>
Approved by: re (kensmith)

16 years agoMFC r1.33: Add a cross-reference to newgrp(1).
philip [Thu, 6 Dec 2007 10:50:35 +0000 (10:50 +0000)]
MFC r1.33: Add a cross-reference to newgrp(1).

Approved by: re (kensmith)

16 years agoDisable support for /dev/ptmx in FreeBSD 7.0. While it's a good idea in
rwatson [Thu, 6 Dec 2007 10:15:29 +0000 (10:15 +0000)]
Disable support for /dev/ptmx in FreeBSD 7.0.  While it's a good idea in
principle, the current devfs-based cloning facilit makes the current
user<->kernel protocol for allocating new pts nodes difficult or
impossible to do without leading to resource leaks or race conditions.

We tentatively plan to reintroduce ptmx/pts support in FreeBSD 7.1 once
a fixed version has settled out in HEAD.  People who really want to run
with the current code can re-enable it but it will require tweaking
conf files and unifdef'ing it.  By removing it now before the release,
we avoid having to support the current allocation protocol in future
releases in order to provide backwards compatibility with older libc's.

Discussed with: cognet, erwin
Approved by: re (kensmith)

16 years agoMFC r1.13:
philip [Thu, 6 Dec 2007 09:53:42 +0000 (09:53 +0000)]
MFC r1.13:

  Fix a use-after-free.

Submitted by: Ilja van Sprundel <ilja -at- netric.org>
Reviewed by: secteam
Approved by: re (kensmith)

16 years agoMFC r1.34:
philip [Thu, 6 Dec 2007 09:52:28 +0000 (09:52 +0000)]
MFC r1.34:

  Plug two potential (root-only, local) information leaks.  buf is not
  initialized before use and returned integrally instead of up to size.

Submitted by: Ilja van Sprundel <ilja -at- netric.org>
Reviewed by: secteam
Approved by: re (kensmith)

16 years agoMFC r1.59:
philip [Thu, 6 Dec 2007 09:50:48 +0000 (09:50 +0000)]
MFC r1.59:

  Plug two potential (root-only, local) information leaks.  buf is not
  initialized before use and returned integrally instead of up to size.

Submitted by: Ilja van Sprundel <ilja -at- netric.org>
Reviewed by: secteam
Approved by: re (kensmith)

16 years agoMFC: Always assume type #1 PCI config transactions for amd64 and relax the
jhb [Thu, 6 Dec 2007 08:27:03 +0000 (08:27 +0000)]
MFC: Always assume type #1 PCI config transactions for amd64 and relax the
probe for type #1 on i386.

Approved by: re (kensmith)

16 years agoMFC: Change pci_cfgdisable() into a nop for type #1 similar to what other
jhb [Thu, 6 Dec 2007 08:13:52 +0000 (08:13 +0000)]
MFC: Change pci_cfgdisable() into a nop for type #1 similar to what other
OSs do.

Approved by: re (kensmith)

16 years agoMFC: Don't delete files in the X11 socket directories under /tmp.
jhb [Thu, 6 Dec 2007 08:11:19 +0000 (08:11 +0000)]
MFC: Don't delete files in the X11 socket directories under /tmp.

Approved by: re (kensmith)

16 years agoMFC: Properly sort 'sync' in the list of options passed to -o.
jhb [Thu, 6 Dec 2007 08:08:04 +0000 (08:08 +0000)]
MFC: Properly sort 'sync' in the list of options passed to -o.

Approved by: re (kensmith)

16 years agoMFC if_re.c, rev 1.98 to RELENG_7
yongari [Thu, 6 Dec 2007 06:00:58 +0000 (06:00 +0000)]
MFC if_re.c, rev 1.98 to RELENG_7
Always honor promiscuous flag prior to programming Rx multicast
filter. This fixes a regression introduced in rev 1.89.

PR: 114632
Approved by: re (kensmith)

16 years agoFix audio playback aborted with SNDCTL_DSP_SETTRIGGER, affecting
ariff [Thu, 6 Dec 2007 05:21:39 +0000 (05:21 +0000)]
Fix audio playback aborted with SNDCTL_DSP_SETTRIGGER, affecting
PortAudio version 19.

PR: kern/118395
Submitted by: Henrik Gulbrandsen <henrik at gulbra dot net>
Approved by: re (kensmith)

16 years agoHeadphone / speakers automute fixup for Acer Aspire 4710 @ ALC268 laptop.
ariff [Thu, 6 Dec 2007 05:21:07 +0000 (05:21 +0000)]
Headphone / speakers automute fixup for Acer Aspire 4710 @ ALC268 laptop.

Tested by: Liyu, She
Approved by: re (kensmith)

16 years agoMFC if_nfe.c, rev 1.22 to RELENG_7
yongari [Thu, 6 Dec 2007 04:05:56 +0000 (04:05 +0000)]
MFC if_nfe.c, rev 1.22 to RELENG_7
  Apparently some NVIDIA NICs store ethernet address in reverse order
  while other variants have inorder ethernet address for the same
  chipset. Override ethernet address ordering if we already know how
  it was stored. This fixes the use of inversed ethernet address on
  MCP67.

Approved by: re (kensmith)

16 years agoMFC: 1.126: Revise the markup.
ru [Wed, 5 Dec 2007 14:29:07 +0000 (14:29 +0000)]
MFC: 1.126: Revise the markup.

Approved by: re (kensmith)

16 years agoMFC rev. 1.79:
kib [Wed, 5 Dec 2007 13:31:57 +0000 (13:31 +0000)]
MFC rev. 1.79:
Implement read_default_ldt in linux_modify_ldt().

Approved by: re (kensmith)

16 years agoMFC: rev. 1.143 sys/netinet/tcp_output.c
bz [Wed, 5 Dec 2007 10:37:17 +0000 (10:37 +0000)]
MFC: rev. 1.143 sys/netinet/tcp_output.c

    Make TSO work with IPSEC compiled into the kernel.

    The lookup hurts a bit for connections but had been there anyway
    if IPSEC was compiled in. So moving the lookup up a bit gives us
    TSO support at not extra cost.

Approved by:    re (kensmith)

16 years agoMFC r1.126
thompsa [Wed, 5 Dec 2007 02:53:44 +0000 (02:53 +0000)]
MFC r1.126

 Hide a debug printf.

Approved by: re (kensmith)

16 years agoMFC revision 1.3: Add /root/, /.cshrc, and /.profile to the default
cperciva [Tue, 4 Dec 2007 22:49:18 +0000 (22:49 +0000)]
MFC revision 1.3: Add /root/, /.cshrc, and /.profile to the default
UpdateIfUnmodified directive in order to avoid overwriting these when
users upgrade to future versions of FreeBSD.

Approved by: re (kensmith)

16 years agoMFC: less v416
delphij [Tue, 4 Dec 2007 22:37:28 +0000 (22:37 +0000)]
MFC: less v416

Approved by: re (kensmith)

16 years agoMFC: sys/sparc64/pci/ofw_pcibus.c 1.17;
marius [Tue, 4 Dec 2007 21:40:47 +0000 (21:40 +0000)]
MFC: sys/sparc64/pci/ofw_pcibus.c 1.17;
     sys/sparc64/pci/psycho.c 1.71, 1.72;
     sys/sparc64/pci/psychovar.h 1.17

- Add the PCI side of the HOST-PCI bridge itself to the bus. This
  is required by the X.Org PCI domains code and additionally needs
  a workaround for Hummingbird and Sabre bridges as these don't
  allow their config headers to be read at any width, which is an
  unusual behavior.
- In psycho(4) take advantage of DEFINE_CLASS_0 and use more
  appropriate types for some softc members.

Approved by: re (kensmith)

16 years agoMFC stack(9) up through revision 1.3 from HEAD to RELENG_7.
rwatson [Tue, 4 Dec 2007 15:22:31 +0000 (15:22 +0000)]
MFC stack(9) up through revision 1.3 from HEAD to RELENG_7.

Approved by: re (kensmith)

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_7'.
cvs2svn [Mon, 3 Dec 2007 11:38:29 +0000 (11:38 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_7'.

16 years agoMFC r1.6:
jkoshy [Mon, 3 Dec 2007 10:50:58 +0000 (10:50 +0000)]
MFC r1.6:
"Revert revision 1.4.

 Intel CPUs with family 0x6, model 0xE and later (i.e., Intel Core(TM))
 have a PMC architecture that differs somewhat from previous CPUs in
 family 0x6.  Even though the basic programming model is similar, the
 documented set of legal values that may be loaded into their PMC MSRs
 differs from that of the previous PMCs in family 0x6 and reusing bit
 values legal for the older PMCs could result in undefined behaviour in
 the general case."

Approved by: re (gnn)

16 years agoMFC:
cognet [Sun, 2 Dec 2007 14:44:34 +0000 (14:44 +0000)]
MFC:
libthread_db bits for arm.

Approved by: re (kensmith)

16 years agoMFC:
cognet [Sun, 2 Dec 2007 14:38:21 +0000 (14:38 +0000)]
MFC:
gnu/usr.bin/gdb/arch/arm/nm-fbsd.h rev 1.2
gnu/usr.bin/gdb/arch/arm/Makefile rev 1.2
gnu/usr.bin/gdb/arch/arm/armfbsd-nat.c 1.2
gnu/usr.bin/gdb/arch/arm/armfbsd-tdep.c rev 1.2
gnu/usr.bin/gdb/arch/arm/init.c rev 1.2
Allow gdb to attach live process.
Thread support for arm.

Approved by: re (kensmith)

16 years agoMFC:
cognet [Sun, 2 Dec 2007 14:21:27 +0000 (14:21 +0000)]
MFC:
arm/at91/kb920x_machdep.c rev 1.24, 1.25 and 1.26
arm/at91/std.at91 rev 1.4
arm/at91/std.kb920x rev 1.5
arm/at91/at91rm92reg.h rev 1.6
conf/options.arm 1.18
Small tweaks to be able to load the kernel at a different address than
0x20000000 + add an option to override the default value of the master clock
frequency.
arm/at91/if_ate.c rev 1.21:
In ate_get_mac(), try to get the mac address in the right order, at least
in the same order as it's set in ate_set_mac.

arm/conf/HL200: config file for the Hot-e HL200

Approved by: re (kensmith)

16 years agoMFC rev 1.94:
cognet [Sun, 2 Dec 2007 13:24:43 +0000 (13:24 +0000)]
MFC rev 1.94:
date: 2007/11/05 23:08:34;  author: cognet;  state: Exp;  lines: +4 -0
Switch arm to -O until the -O2 issues are resolved.

Approved by: re (kensmith)

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_7'.
cvs2svn [Sun, 2 Dec 2007 13:10:45 +0000 (13:10 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_7'.

16 years agoMFC: rev. 1.303 sys/netinet/tcp_subr.c [1]
bz [Sun, 2 Dec 2007 10:32:49 +0000 (10:32 +0000)]
MFC: rev. 1.303 sys/netinet/tcp_subr.c [1]
     rev. 1.135 sys/netinet/tcp_syncache.c
     rev. 1.145 sys/netinet/tcp_output.c

   Unbreak TCP-MD5 signature calculations.

   Submitted by:   Nick Hilliard (see net@) [1]
   Tested by:      Nick Hilliard (see net@)
   Tested by:      tools/regression/netinet/tcpconnect

Approved by: re (kensmith)

16 years agoMFC: rev. 1.144 sys/netinet/tcp_output.c
bz [Sun, 2 Dec 2007 10:17:30 +0000 (10:17 +0000)]
MFC: rev. 1.144 sys/netinet/tcp_output.c
   Let opt be an array.  Though &opt[0] == opt == &opt, &opt is highly
   confusing and hard to understand so change it to just opt and
   remove the extra cast no longer/not needed.

Approved by: re (kensmith)

16 years agoMFC: Make sure GSS-API mechanisms are loaded if gss_acquire_cred is called
dfr [Sun, 2 Dec 2007 10:06:59 +0000 (10:06 +0000)]
MFC: Make sure GSS-API mechanisms are loaded if gss_acquire_cred is called
     with a null mechanism list.`

Approved by: re (hrs)

16 years agoGet ready for BETA4 builds.
kensmith [Sun, 2 Dec 2007 09:12:03 +0000 (09:12 +0000)]
Get ready for BETA4 builds.

Approved by: re (implicit)

16 years agoMFC rev 1.29 atacontrol.8
remko [Sun, 2 Dec 2007 08:49:23 +0000 (08:49 +0000)]
MFC rev 1.29 atacontrol.8

  Expand the EXAMPLES section for atacontrol.8

  PR:             docs/117310
  Submitted by:   Ted Mittelstaedt <tedm at ipinc dot net>
                  with minor modifications by me.

Approved by: re (hrs)

16 years agoMFC rev 1.64 sysctl.8
remko [Sun, 2 Dec 2007 08:48:30 +0000 (08:48 +0000)]
MFC rev 1.64 sysctl.8

  Remove mentionings of kern.dumpdev which is no longer available.

  PR:             docs/113570
  Submitted by:   lawrance
  MFC After:      3 days (where applicable)

Approved by: re (hrs)

16 years agoMFC rev 1.41, 1.42 mdconfig.8
remko [Sun, 2 Dec 2007 08:47:28 +0000 (08:47 +0000)]
MFC rev 1.41, 1.42 mdconfig.8

  Sync with md(4)'s information regarding the swap backend.

  PR:             docs/115721
  Submitted by:   Stefan Lambrev <stefan.lambrev@moneybookers.com>
  MFC After:      3 days

  Every newline should start on it's own line. I didn't do that in the
  previous commit, so make it happen now.

  Prodded by:     brueffer

Approved by: re (hrs)

16 years agoMFC rev 1.9 nfe.4
remko [Sun, 2 Dec 2007 08:45:57 +0000 (08:45 +0000)]
MFC rev 1.9 nfe.4

  The nfe driver will first appear in 7.0 and not in 6.x

  PR:             i386/118264
  Submitted by:   "Julian H. Stacey" <jhs at berklix dot org>
  Nod from:       yongari

Approved by: re (hrs)

16 years agoMFC rev 1.7 newsyslog.conf.5
remko [Sun, 2 Dec 2007 08:45:05 +0000 (08:45 +0000)]
MFC rev 1.7 newsyslog.conf.5

  s/effect/affect/

  PR:             docs/118266
  Submitted by:   "Kim Scarborough" <sluggo at unknown dot nu>
  MFC After:      3 days

Approved by: re (hrs)

16 years agoMFC rev 1.8 ichsmb.4
remko [Sun, 2 Dec 2007 08:42:16 +0000 (08:42 +0000)]
MFC rev 1.8 ichsmb.4

  Add information about the ICH6 and ICH7 being supported since recently.

MFC rev 1.20 ichsmb_pci.c

  Add the Intel 82801FB (ICH6) SMBus controller and the
  Intel 82801GB (ICH7) SMBus controller.

  PR:             85106 [1]
  PR:             99663 [2]
  Approved by:    imp (mentor), jhb
  Submitted by:   Oliver Fromme <olli at lurza.secnetix dot de>, [1]
                  Arthur Hartwig <arthur dot hartwig at nokia dot com>, [1]
                  Lowell Gilbert <lgfbsd at be-well dot ilk dot org> [2]@
  MFC After:      3 days

Approved by: re (hrs), imp (mentor, implicit)

16 years agoMFC rev 1.45 rl.4
remko [Sun, 2 Dec 2007 08:38:32 +0000 (08:38 +0000)]
MFC rev 1.45 rl.4

  Add the Planex FNW-3603TX card to the list.

MFC rev 1.172 if_rl.c
MFC rev 1.68  if_rlreg.h

  Add the FNW3603TX Planex NIC.

  PR:             76081
  Approved by:    imp (mentor)
  Submitted by:   umi at pocke dot org
  MFC After:      3 days

Approved by: re (hrs), imp (mentor, implicit)

16 years ago MFC rev 1.11 agp.4
remko [Sat, 1 Dec 2007 17:24:18 +0000 (17:24 +0000)]
  MFC rev 1.11 agp.4

    Add information about the 845M card that I recently committed support
    for.

Approved by: re (hrs)

16 years agoMFC rev 1.11 agp.4
remko [Sat, 1 Dec 2007 16:24:23 +0000 (16:24 +0000)]
MFC rev 1.11 agp.4

  Add information about the 845M card that I recently committed support
  for.

MFC rev 1.44 agp_i810.c

  Add the 845M GMCH controller.

  PR:             114802
  Approved by:    imp (mentor), anholt (private mail)
  Submitted by:   Alex Goncharov <algo1 at comcast dot net>
  MFC After:      3 days

Approved by: re (hrs), imp (mentor, implicit)

16 years agoMFC kern_mutex.c rev. 1.201 and kern_rwlock.c rev. 1.32:
attilio [Sat, 1 Dec 2007 11:28:37 +0000 (11:28 +0000)]
MFC kern_mutex.c rev. 1.201 and kern_rwlock.c rev. 1.32:
Simplify adaptive spinning algorithm which should make things faster
when sleeping / waking up waiters.
Also fix a bug with rw_try_upgrade() when adaptive spinning is enabled
as turnstile_lookup() will recurse on ts_lock that will never be
released [1].

[1] Reported by: jeff with Nokia help
Tested by: pho, kris (earlier, bugged version of rwlock part)
Discussed with: jhb, jeff
Approved by: re

16 years agoMFC(1.86): Eliminating an unnecessary check on an_gone inside
avatar [Sat, 1 Dec 2007 07:01:45 +0000 (07:01 +0000)]
MFC(1.86): Eliminating an unnecessary check on an_gone inside
an_stats_update() since a properly locked callout_stop(9) does do the
right thing.

Approved by: re (kensmith)

16 years agoMFC:
darrenr [Sat, 1 Dec 2007 00:53:41 +0000 (00:53 +0000)]
MFC:
Fix 3 issues relating to the use of "auth" rules in IPFilter, from sourceforge:
1837014 Kernel panics after authentication of an outgoing packet
1836992 Potential bugs in packet auth code (w/patches)
1836967 Kernel panic when using auth rule with keep state
and another reported only to FreeBSD by Andiry (see PR)

PR:             kern/118251
Submitted by:   Andriy Syrovenko <andriys@gmail.com>
Reviewed by:    darrenr
Approved by:    re

16 years agoMerge from HEAD to RELENG_7
emaste [Fri, 30 Nov 2007 15:55:50 +0000 (15:55 +0000)]
Merge from HEAD to RELENG_7
src/sys/dev/aac/aac_pci.c 1.63
src/share/man/man4/aac.4 1.37, 1.38

  Add PCI IDs from Adaptec's driver version b11669:

  Adaptec RAID 3085
  Adaptec RAID 31205
  Adaptec RAID 31605
  Adaptec RAID 5085
  Adaptec RAID 51205
  Adaptec RAID 51605
  Adaptec RAID 5445
  Adaptec RAID 5805
  IBM ServeRAID 8s
  ICP RAID ICP5045BL
  ICP RAID ICP5085BL
  ICP RAID ICP5085SL
  ICP RAID ICP5125BR
  ICP RAID ICP5125SL
  ICP RAID ICP5165BR
  ICP RAID ICP5165SL
  ICP RAID ICP5445SL
  ICP RAID ICP5805BL
  ICP RAID ICP5805SL
  ICP9067MA SATA RAID

Approved by: re (kensmith)

16 years agoMFC:
ariff [Fri, 30 Nov 2007 15:39:22 +0000 (15:39 +0000)]
MFC:

- Remove magic number and fit max rx buffer size accurately.
- Patch registers CR47 and CR157 on devices that require it.
- Fix power calibration setting on ZD1211B.

Obtained from:  OpenBSD

- Fix multicast transfer by properly reprogram multicast global
  hash table, which in turns fix promiscuous mode and IPv6
  autoconfiguration / local networking.

Reviewed by: sam, Weongyo Jeong
Tested using: Aztech WL230 , Belkin F5D7050, Unicorn WL-54G,
              3COM 3CRUSB10075
Approved by: re (kensmith)

16 years agoMFC: (revision 1.121)
brix [Fri, 30 Nov 2007 15:35:18 +0000 (15:35 +0000)]
MFC: (revision 1.121)

Add usr/lib/libgssapi_krb5.so.8 to the list of old libs from the
20071120 shared library version bump.

Approved by: re (kensmith), erwin (mentor)

16 years agoMFC: (revision 1.47, 1.48)
ariff [Fri, 30 Nov 2007 15:12:06 +0000 (15:12 +0000)]
MFC: (revision 1.47, 1.48)

- Add missing MCP65 id which was accidentally removed in previous commit.
- Add Analog Devices AD1984 codec id.
- Enable pcbeep control for Acer + ALC268 (nid 29). Give enough (fake)
  hints so the parser will grab it and allocate "speaker" control.
- Fix regression while preparing DAC and ADC for multichannel
  format. Since playback policy is to output to every possible path,
  ensure that each DAC is started.

Reported / Tested by: Guy Brand
Approved by: re (kensmith)

16 years agoNew release note: SA-07:09.random.
bmah [Fri, 30 Nov 2007 05:19:24 +0000 (05:19 +0000)]
New release note:  SA-07:09.random.

Approved by: re (implicitly)

16 years agoUse 7.0-stable base system and 7.2 X.org manpages.
bmah [Fri, 30 Nov 2007 05:11:58 +0000 (05:11 +0000)]
Use 7.0-stable base system and 7.2 X.org manpages.

Approved by: re (implicitly)

16 years agoMFC: ieee80211_find_channel_byieee for use with sta mode scanning
sam [Thu, 29 Nov 2007 21:23:22 +0000 (21:23 +0000)]
MFC: ieee80211_find_channel_byieee for use with sta mode scanning
  changes to handle off-channel beacons

Approved by: re (kensmith)

16 years agoRestore RFC 1724 hack for interface selection to RELENG_7, as routed and
rwatson [Thu, 29 Nov 2007 20:16:42 +0000 (20:16 +0000)]
Restore RFC 1724 hack for interface selection to RELENG_7, as routed and
other routing daemons still rely on this interface and otherwise do not
function on 7.0.  It has not been restored to 8-CURRENT, so this is not
an MFC.

Reviewed by: bms
Submitted by: Marko Zec <zec icir org>
Tested by: kensmith
Approved by: re (kensmith)

16 years agoMFC r1.22
thompsa [Thu, 29 Nov 2007 19:05:22 +0000 (19:05 +0000)]
MFC r1.22

 Have the lagg interface generate link up/down events, this fixes using
 carp+lagg together.

Approved by: re (kensmith)

16 years agoMFC 1.8: be more careful handling off-channel frames
sam [Thu, 29 Nov 2007 19:05:09 +0000 (19:05 +0000)]
MFC 1.8: be more careful handling off-channel frames

Approved by: re (kensmith)

16 years agoMFC rev. 1.23: do not leak inodes hash table at module unload.
maxim [Thu, 29 Nov 2007 19:02:05 +0000 (19:02 +0000)]
MFC rev. 1.23: do not leak inodes hash table at module unload.

Approved by: re (kensmith)

16 years agoMFC rev. 1.204: fix a typo in ipfw table usage example.
maxim [Thu, 29 Nov 2007 18:42:15 +0000 (18:42 +0000)]
MFC rev. 1.204: fix a typo in ipfw table usage example.

Approved by: re (kensmith)

16 years agoMFC aac.c v1.121:
emaste [Thu, 29 Nov 2007 18:38:31 +0000 (18:38 +0000)]
MFC aac.c v1.121:
  Correct calculation of aac_sg_tablesize.

  Obtained from:  Adaptec, via driver b11669

Approved by: re (kensmith)

16 years agoCorrect a random value disclosure in random(4).
simon [Thu, 29 Nov 2007 16:06:54 +0000 (16:06 +0000)]
Correct a random value disclosure in random(4).

Security: FreeBSD-SA-07:09.random
Approved by: re (kensmith)

16 years agoFix -jX when makefiles are remade.
fjoe [Thu, 29 Nov 2007 04:20:19 +0000 (04:20 +0000)]
Fix -jX when makefiles are remade.

Approved by: re (kensmith)

16 years agoMFC(1.14): Fixing a double free bug which will cause tail to dump core when
avatar [Thu, 29 Nov 2007 03:54:56 +0000 (03:54 +0000)]
MFC(1.14): Fixing a double free bug which will cause tail to dump core when
there's no tailing newline(\n) character.

PR: bin/118267
Reviewed by: kib
Approved by: re (kensmith)

16 years agoLatest driver version added to RELEASE.
jfv [Wed, 28 Nov 2007 23:52:14 +0000 (23:52 +0000)]
Latest driver version added to RELEASE.

Approved by: re

16 years agoMFC of the New em driver from HEAD
jfv [Wed, 28 Nov 2007 23:24:38 +0000 (23:24 +0000)]
MFC of the New em driver from HEAD

Approved by:re

16 years agoBack out previous commit; i.e., turn hyperthreading back on by default.
cperciva [Wed, 28 Nov 2007 23:24:07 +0000 (23:24 +0000)]
Back out previous commit; i.e., turn hyperthreading back on by default.

Newer Intel processors have better hyperthreading implementations than
the original ones, and FreeBSD's SMP and scheduler code has greatly
improved between 6.x and 7.x; so hyperthreading now provides a
non-trivial performance win.

Note that security issues involving shared caches and other
microarchitectural features (e.g., dynamic branch prediction tables)
still exist; consequently, it is recommended that hyperthreading be
turned off on systems with untrusted local users.  This can be
performed by setting machdep.hyperthreading_allowed=0 in
/boot/loader.conf.

Hyperthreading will continue to be disabled by default on FreeBSD 6.x.

Requested by: core
Approved by: re (kensmith)
Security: See FreeBSD-SA-05:09.htt for background information.

16 years agoMFC revision 1.360
alc [Wed, 28 Nov 2007 22:23:35 +0000 (22:23 +0000)]
MFC revision 1.360
  When reactivating a cached page, reset the page's pool to the default
  pool.  (Not doing this before was a performance pessimization but not
  a cause for panic.)

Approved by: re (kensmith)

16 years agoMFC: fix situation where GDB gives incorrect backtraces when a signal
obrien [Wed, 28 Nov 2007 16:55:39 +0000 (16:55 +0000)]
MFC: fix situation where GDB gives incorrect backtraces when a signal
     handler is in the call chain.

Approved by: re(kensmith)

16 years agoMFC: sta mode setup for 11n devices
sam [Wed, 28 Nov 2007 06:15:03 +0000 (06:15 +0000)]
MFC: sta mode setup for 11n devices

Approved by: re (kensmith)

16 years agoMFC 1.91: correct re-association indicator dispatched in node join event
sam [Wed, 28 Nov 2007 06:13:23 +0000 (06:13 +0000)]
MFC 1.91: correct re-association indicator dispatched in node join event

Approved by: re (kensmith)

16 years agoMFC: WMM packet classification fixes
sam [Wed, 28 Nov 2007 06:12:30 +0000 (06:12 +0000)]
MFC: WMM packet classification fixes

Approved by: re (kensmith)

16 years agoMFC 1.45: update default wme parameters to latest WiFi test plans
sam [Wed, 28 Nov 2007 06:11:18 +0000 (06:11 +0000)]
MFC 1.45: update default wme parameters to latest WiFi test plans

Approved by: re (kensmith)

16 years agoMFC: add the Planex GW-US54GXS adapter
sam [Wed, 28 Nov 2007 06:10:16 +0000 (06:10 +0000)]
MFC: add the Planex GW-US54GXS adapter

Approved by: re (kensmith)

16 years ago* Fix support for followings:
ariff [Tue, 27 Nov 2007 23:37:48 +0000 (23:37 +0000)]
* Fix support for followings:
  o Acer Aspire 4520 laptop
    - jack sensing / automute
  o Toshiba Satellite A135-S4527 laptop
    - jack sensing / automute
      Tested by: lioux
  o Apple Macbook 3 (is it?)
    - require gpio0 (for speakers) and ovref50 (for headphone)
      to make it works
    - jack sensing / automute
      Tested by: Ed Schouten
* Add Nvidia MCP67 controller ids.
* Be sensible about simmilar controller with multiple pci ids.
* Connect unused DAC/ADC to stream#0 rather than forcing each of them
  managing their own stream.

Approved by: re (kensmith)

16 years agoMFC 1.928:
simon [Tue, 27 Nov 2007 21:04:06 +0000 (21:04 +0000)]
MFC 1.928:

  Remove kernel and module symbol files from disc1 (and the livecd if it
  is enabled).  This saves around 80MB (for i386) on the ISO images.

  Note that this is only from the install media, not the installed
  system where the symbols are still installed, if part of the release.

  Should anybody want the symbols which match disc1/livecd, they can
  just be extracted from the kernel distribution files.

Approved by: re (kensmith)

16 years agoMFC: Bump up the number of ttys supported by pty(4) to 512.
jhb [Tue, 27 Nov 2007 18:43:09 +0000 (18:43 +0000)]
MFC: Bump up the number of ttys supported by pty(4) to 512.

Approved by: re (kensmith)

16 years agoMFC revision 1.31:
marck [Tue, 27 Nov 2007 17:00:35 +0000 (17:00 +0000)]
MFC revision 1.31:

devinfo(8) manual page refers to pciconfr(8).  Add back reference for
completeness.

Approved by: re (kensmith)

16 years agoMFC sx.9 rev. 1.12 and rwlock.9 rev. 1.43:
attilio [Tue, 27 Nov 2007 14:08:14 +0000 (14:08 +0000)]
MFC sx.9 rev. 1.12 and rwlock.9 rev. 1.43:
- Introduce rw_init_flags() and relative flags for it
- Introduce sx_slock_sig() and sx_xlock_sig()

Approved by: re

16 years agoPartially MFC subr_witness.c rev. 1.238:
attilio [Tue, 27 Nov 2007 13:18:54 +0000 (13:18 +0000)]
Partially MFC subr_witness.c rev. 1.238:
- add missing spinlock scrlock in the static table

Approved by: re

16 years agoMerge aac_debug.c:1.23 from HEAD to RELENG_7:
rwatson [Tue, 27 Nov 2007 12:23:29 +0000 (12:23 +0000)]
Merge aac_debug.c:1.23 from HEAD to RELENG_7:

  Respell 'Conatainer' as 'Container'.

  Reported by:    Toomas Aas <toomas dot aas at raad dot tartu dot ee>

Approved by: re (kensmith)

16 years agoMerge tcp_subr.c:1.302 from HEAD to RELENG_7:
rwatson [Tue, 27 Nov 2007 12:22:17 +0000 (12:22 +0000)]
Merge tcp_subr.c:1.302 from HEAD to RELENG_7:

  More carefully handle various cases in sysctl_drop(), such as unlocking
  the inpcb when there's an inpcb without associated timewait state, and
  not unlocking when the inpcb has been freed.  This avoids a kernel panic
  when tcpdrop(8) is run on a socket in the TIMEWAIT state.

  Reported by:    Rako <rako29 at gmail dot com>

Approved by: re (kensmith)

16 years agoMerge nfs_vnops.c:1.277 from HEAD to RELENG_7:
rwatson [Tue, 27 Nov 2007 12:20:58 +0000 (12:20 +0000)]
Merge nfs_vnops.c:1.277 from HEAD to RELENG_7:

  Remove hacks from the NFSv2/3 client intended to handle a lack of a
  server-side RPC retranmission cache for non-idempotent operations: these
  hacks substituted 0 (success) for the expected EEXIST in the event that
  a target name already existed for LINK, SYMLINK, and MKDIR operations,
  under the assumption that EEXIST represented a second application of the
  original RPC rather than a true failure.

  Background: certain NFS operations (in this case, LINK, SYMLINK, and
  MKDIR) are not idempotent, as they leave behind persisting state on the
  server that prevents them from being replayed without an error;if an UDP
  RPC reply is lost leading to a retransmission by theclient, the second
  reply will return EEXIST rather than success, asthe new object has
  already been created.  The NFS client previouslysilently mapped the
  EEXIST return into success to paper over thisproblem.

  However, in all modern NFS server implementations, a reply cache is kept
  in order to retransmit the original reply to a retransmitted request,
  rather than performing the operation a second time, allowing this hack
  to be avoided.  This allows link()-based filelocking over NFS to operate
  correctly, as an application requestingthe creation of a new link for a
  file to tell if it succeededatomically or not.

  Other NFS clients, including Solaris and Linux, generally follow this
  behavior for the same reasons.  Most clients also now default to TCP,
  which also helps avoid the issue of retransmitted but non-idempotent
  requests in most cases.

  Reported by:    Adam McDougall <mcdouga9 at egr dot msu dot edu>,
                  Timo Sirainen <tss at iki dot fi>
  Reviewed by:    mohans

Approved by: re (kensmith)

16 years agoModified release notes: Fix an error with freebsd-update(8) upgrade
bmah [Mon, 26 Nov 2007 23:27:37 +0000 (23:27 +0000)]
Modified release notes: Fix an error with freebsd-update(8) upgrade
note [1].

MFCs noted:  ipfwpcap(8), IPFilter 4.1.28.

Approved by: re (implicitly)
Noticed by: cperciva [1]

16 years agoMFC: UPDATING 1.512, sys/sparc64/conf/DEFAULTS 1.11
marius [Mon, 26 Nov 2007 20:07:20 +0000 (20:07 +0000)]
MFC: UPDATING 1.512, sys/sparc64/conf/DEFAULTS 1.11

Let sunkbd(4) emulate an AT keyboard by default.
This has the following benefits:
- allows to use the AT keyboard maps in share/syscons/keymaps with
  sunkbd(4),
- allows to use kbdmux(4) with sunkbd(4),
- allows Sun RS232 keyboards to be configured and used the same
  way as Sun USB keyboards driven by ukbd(4) (which also does AT
  keyboard emulation) with X.Org, putting an end to the problem
  of native support for the former in X.Org being broken over and
  over again.

Approved by: re (kensmith)

16 years agoMFC of device support for Intel S7000FC4UR
jfv [Mon, 26 Nov 2007 18:21:42 +0000 (18:21 +0000)]
MFC of device support for Intel S7000FC4UR

Approved by: re

16 years agoMFC: 1.356
jkim [Mon, 26 Nov 2007 17:37:24 +0000 (17:37 +0000)]
MFC: 1.356

Make VPD register access more robust:

- Implement timing out of VPD register access.
- Fix an off-by-one error of freeing malloc'd space when checksum is invalid.
- Fix style(9) bugs, i.e., sizeof cannot be followed by space.
- Retire now obsolete 'hw.pci.enable_vpd' tunable.

Approved by: re (kensmith)

16 years agoMFC: 1.199
jkim [Mon, 26 Nov 2007 17:33:28 +0000 (17:33 +0000)]
MFC: 1.199

Do not report MAC, TX, and RX stats via sysctl(8) with BCM5705+.
The register layout is little different from memory-mapped stats
in the previous generation chips.  In fact, it is bad because
registers in this range are cleared after reading them.

Approved by: re (kensmith)

16 years agoMFC: expand critical section coverage so that shared fast and ithread handlers
scottl [Mon, 26 Nov 2007 16:14:45 +0000 (16:14 +0000)]
MFC: expand critical section coverage so that shared fast and ithread handlers
don't stall.

Approved by: re

16 years agoMFC: expand critical section coverage so that shared fast and ithread handlers
scottl [Mon, 26 Nov 2007 15:06:50 +0000 (15:06 +0000)]
MFC: expand critical section coverage so that shared fast and ithread handlers
don't stall.

Approved by: re

16 years agoMFC MFp4: Several fixes to tmpfs which makes it to survive from pho@'s
delphij [Mon, 26 Nov 2007 06:46:44 +0000 (06:46 +0000)]
MFC MFp4: Several fixes to tmpfs which makes it to survive from pho@'s
strees2 suite, to quote his letter, this change:

1. It removes the tn_lookup_dirent stuff. I think this cannot be fixed,
   because nothing protects vnode/tmpfs node between lookup is done, and
   actual operation is performed, in the case the vnode lock is dropped.
   At least, this is the case with the from vnode for rename.

   For now, we do the linear lookup in the parent node. This has its own
   drawbacks. Not mentioning speed (that could be fixed by using hash), the
   real problem is the situation where several hardlinks exist in the dvp.
   But, I think this is fixable.

2. The patch restores the VV_ROOT flag on the root vnode after it became
   reclaimed and allocated again. This fixes MPASS assertion at the start
   of the tmpfs_lookup() reported by many.

Submitted by:   kib
Approved by: re (kensmith)

16 years agoMFC revision 1.13
delphij [Mon, 26 Nov 2007 06:45:31 +0000 (06:45 +0000)]
MFC revision 1.13
date: 2007/11/18 04:40:42;  author: delphij;  state: Exp;  lines: +12 -19
MFp4: Fix several style(9) bugs.

Submitted by:   des
Approved by: re (kensmith)

16 years agoMFC revision 1.27:
davidxu [Mon, 26 Nov 2007 02:44:05 +0000 (02:44 +0000)]
MFC revision 1.27:
In _pthread_key_create() ensure that libkse is initialized.

Approved by: re (kensmith)