]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC r216848:
bz [Fri, 31 Dec 2010 18:16:15 +0000 (18:16 +0000)]
MFC r216848:

  Happy New Year 2011.

  Approved by:  core (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216849 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r216510
rmacklem [Fri, 31 Dec 2010 14:03:57 +0000 (14:03 +0000)]
MFC: r216510
Fix two vnode locking problems in nfsd_recalldelegation() in the
experimental NFSv4 server. The first was a bogus use of VOP_ISLOCKED()
in a KASSERT() and the second was the need to lock the vnode for the
nfsrv_checkremove() call. Also, delete a "__unused" that was bogus,
since the argument is used.

git-svn-id: svn://svn.freebsd.org/base/stable/8@216841 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216242:
bschmidt [Fri, 31 Dec 2010 12:59:17 +0000 (12:59 +0000)]
MFC r216242:
Implement NdisGetRoutineAddress and MmGetSystemRoutineAddress used in
newer Ralink drivers.

Submitted by: Paul B Mahol <onemda at gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@216839 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216050:
bschmidt [Fri, 31 Dec 2010 12:53:07 +0000 (12:53 +0000)]
MFC r216050:
Add a dummy for IoOpenDeviceRegistryKey().

With that change the Atheros 9xxx driver is actually usable and does not
panic anymore.

Submitted by: Paul B Mahol <onemda at gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@216838 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216049:
bschmidt [Fri, 31 Dec 2010 12:48:43 +0000 (12:48 +0000)]
MFC r216049:
Some drivers rely on the existence of certain keys. The Atheros 9xxx
driver for example requests the NetCfgInstanceId but doesn't check the
returned status code and will happily access random memory instead.

Submitted by: Paul B Mahol <onemda at gmail.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@216837 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216477,r216478,r216479,r216494,r216721,r216722:
pjd [Thu, 30 Dec 2010 09:46:45 +0000 (09:46 +0000)]
MFC r216477,r216478,r216479,r216494,r216721,r216722:

r216477:

Log the fact of launching and include protocol version number.

r216478:

Don't ignore errors from remote requests.

r216479:

Improve problems logging.

r216494:

The 'ret' variable is of type ssize_t and we use proper format for it (%zd), so
no (bogus) cast is needed.

r216721:

When node-specific configuration is missing in resource section, provide
more useful information. Instead of:

hastd: remote address not configured for resource foo

Print the following:

No resource foo configuration for this node (acceptable node names: freefall, freefall.freebsd.org, 44333332-4c44-4e31-4a30-313920202020).

r216722:

Detect when resource is configured more than once.

git-svn-id: svn://svn.freebsd.org/base/stable/8@216816 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216565,r216631,r216632,r216633,r216774:
pjd [Thu, 30 Dec 2010 09:45:26 +0000 (09:45 +0000)]
MFC r216565,r216631,r216632,r216633,r216774:

r216565:

Reduce lock scope a little.

r216631:

On error, unbusy file system and jump to the end, so we won't try to unlock
NULL *vpp.

Reviewed by: kib

r216632:

- Move pubflag and lockflag handling from nfsrv_fhtovp() to nfs_namei() -
  this is the only place that is different from all the other nfsrv_fhtovp()
  consumers.
  This simplifies nfsrv_fhtovp() a bit and also eliminates one
  vn_lock/VOP_UNLOCK() cycle in case of NFSv3.
- Implement NFSRV_FLAG_BUSY flag for nfsrv_fhtovp() that tells it to leave
  mount point busy.

Reviewed by: kib

r216633:

Use newly added NFSRV_FLAG_BUSY flag for nfsrv_fhtovp() to keep mount point
busy. This fixes a race where we can pass invalid mount point to VFS_VGET()
via vp->v_mount when exported file system was forcibly unmounted between
nfsrv_fhtovp() and VFS_VGET().

Reviewed by: kib

r216774:

ZFS might not return monotonically increasing directory offset cookies,
so turn off UFS-specific hack that assumes so in ZFS case.
Before the change we can miss returning some directory entries to a
NFS client.

I believe that the hack should be moved to ufs_readdir(), but until we find
somebody who will do it, turn it off for ZFS in NFS server code.

Submitted by: rmacklem
Discussed with: rmacklem, mckusick

git-svn-id: svn://svn.freebsd.org/base/stable/8@216815 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r203802:
pjd [Thu, 30 Dec 2010 09:32:39 +0000 (09:32 +0000)]
MFC r203802:
      - Implement -q option for pgrep(1).
- Add regression test to test -q option.

git-svn-id: svn://svn.freebsd.org/base/stable/8@216814 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216725:
simon [Wed, 29 Dec 2010 12:25:45 +0000 (12:25 +0000)]
MFC r216725:

Fix deprecated warning about -L which said -i was deprecated.

git-svn-id: svn://svn.freebsd.org/base/stable/8@216797 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r216691
rmacklem [Wed, 29 Dec 2010 02:54:41 +0000 (02:54 +0000)]
MFC: r216691
Since VOP_READDIR() for ZFS does not return monotonically
increasing directory offset cookies, disable the UFS related
loop that skips over directory entries at the beginning of
the block for the experimental NFS server. This loop is
required for UFS since it always returns directory entries
starting at the beginning of the block that
the requested directory offset is in. In discussion with pjd@
and mckusick@ it seems that this behaviour of UFS should maybe
change, with this fix being an interim patch until then.
This patch only fixes the experimental server, since pjd@ is
working on a patch for the regular server.

git-svn-id: svn://svn.freebsd.org/base/stable/8@216786 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 203532: Fix gcore so that it can have the '-s' flag without hanging.
jhb [Tue, 28 Dec 2010 18:56:55 +0000 (18:56 +0000)]
MFC 203532: Fix gcore so that it can have the '-s' flag without hanging.

git-svn-id: svn://svn.freebsd.org/base/stable/8@216768 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r213265:
oleg [Tue, 28 Dec 2010 11:34:59 +0000 (11:34 +0000)]
MFC r213265:

Fix handling of initial credit for an idle pipe.  This fixes the bug where
setting bw > 1 MTU/tick resulted in infinite bandwidth if io_fast=1

PR: kern/147245, kern/148429
Obtained from: Riccardo Panicucci

git-svn-id: svn://svn.freebsd.org/base/stable/8@216757 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216432:
kevlo [Tue, 28 Dec 2010 02:45:24 +0000 (02:45 +0000)]
MFC r216432:
Fix a memory leak on the error condition

Reviewed by: rpaulo

git-svn-id: svn://svn.freebsd.org/base/stable/8@216752 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216431:
kevlo [Tue, 28 Dec 2010 02:43:28 +0000 (02:43 +0000)]
MFC r216431:
Check return value of malloc().

Reviewed by: hselasky

git-svn-id: svn://svn.freebsd.org/base/stable/8@216751 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216106:
kevlo [Tue, 28 Dec 2010 02:25:32 +0000 (02:25 +0000)]
MFC r216106:
Don't error out while searching for empty directories.

Submitted by: Bakul Shah <bakul at bitblocks dot com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@216750 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge three revisions from head:
wollman [Mon, 27 Dec 2010 23:46:47 +0000 (23:46 +0000)]
Merge three revisions from head:

  r214583 | wollman | 2010-10-30 22:36:05 -0400 (Sat, 30 Oct 2010) | 6 lines
  Changed paths:
     M /head/usr.bin/locate/locate/locate.rc
     M /head/usr.bin/locate/locate/updatedb.sh

  Make it possible to exclude directories by name no matter where they
  are in the filesystem from the locate database.  By default, exclude
  ".zfs" directories, as users who who have set snapdir=visible and are
  taking frequent snapshots most likely do not want the snapshots
  included in the locate database.

  ------------------------------------------------------------------------
  r214613 | wollman | 2010-10-31 21:51:47 -0400 (Sun, 31 Oct 2010) | 7 lines
  Changed paths:
     M /head/usr.bin/locate/locate/updatedb.sh

  jilles@ pointed out that using ${PRUNEDIRS:=".zfs"} in updatedb.sh
  made it impossible to override PRUNEDIRS to make it empty.  Use the
  non-colon form to only set PRUNEDIRS if it is completely unset.  (For
  parallelism, the other configuration defaults here could be done the
  same way, but that could be more obviously accomplished by disabling
  updatedb in periodic.conf, so leave them alone for now.)

  ------------------------------------------------------------------------
  r214615 | wollman | 2010-10-31 22:20:18 -0400 (Sun, 31 Oct 2010) | 6 lines
  Changed paths:
     M /head/usr.bin/locate/locate/updatedb.sh

  Style cleanup: make this look more like a 21st-century shell script
  and not something out of the early 1980s.  Make sure all error
  messages go to stderr, not stdout.  Since there's error-handling code
  to handle empty SEARCHPATHS and FILESYSTEMS, use the initialization
  form that allows this error to be diagnosed.  (hat tip: jilles@)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216745 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years ago- route(8) manual page update: no longer supports RTF_CLONING and
hrs [Mon, 27 Dec 2010 16:01:39 +0000 (16:01 +0000)]
- route(8) manual page update: no longer supports RTF_CLONING and
  RTF_LLINFO (MFC from r196833)

- Remove -cloning flag from network.subr[*]

PR: conf/144842 [*]
Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216739 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216513:
attilio [Mon, 27 Dec 2010 12:57:38 +0000 (12:57 +0000)]
MFC r216513:
Add Exar octal PCI UART.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@216736 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215868, 215918, 216266, 216298:
attilio [Mon, 27 Dec 2010 12:52:35 +0000 (12:52 +0000)]
MFC r215868, 215918, 216266, 216298:
- Advertise when the reboot came from a watchdog-induced reset
- Fix a bug where TCO_BOOT_STS was supposed to be cleared after
  TCO_SECOND_TO_STS
- Use macros for max and min value capping when re-arming the
  watchdog timeout

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@216735 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215679:
attilio [Mon, 27 Dec 2010 12:39:24 +0000 (12:39 +0000)]
MFC r215679:
Add the ability for GDB to printout the thread name along with other thread
specific informations.
In order to achieve that, for both on-line debugging and core analysis,
a new member to PT_LWPINFO ptrace(2) interface is added and a new
ELF note (NT_THRMISC) as well.

Sponsored by: Sandvine Incorporated

git-svn-id: svn://svn.freebsd.org/base/stable/8@216734 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r203548:
oleg [Mon, 27 Dec 2010 06:59:59 +0000 (06:59 +0000)]
MFC r203548:

Propagate the vlan events to the underlying interfaces/members so they
can do initialization of hw related features.

PR: kern/141646

git-svn-id: svn://svn.freebsd.org/base/stable/8@216730 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216249
thompsa [Sun, 26 Dec 2010 18:15:18 +0000 (18:15 +0000)]
MFC r216249

 Re-add a status check which sneaked out during r214804.
 This change can fix some USB error messages showing up
 during bootup.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216718 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC c216502:
tuexen [Sun, 26 Dec 2010 17:21:47 +0000 (17:21 +0000)]
MFC c216502:
Fix a flightsize bug related to the processing of PKTDRP reports.

Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/8@216714 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216557:
bschmidt [Sun, 26 Dec 2010 14:09:06 +0000 (14:09 +0000)]
MFC r216557:
Fix panic while trying to use monitor mode. The iwn_cmd() calls issued by
iwn_config() want to msleep() on the mutex.

PR: kern/138427
Submitted by: Henry Hu <henry.hu.sh at gmail.com>
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216709 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216453:
kib [Sun, 26 Dec 2010 13:57:05 +0000 (13:57 +0000)]
MFC r216453:
Add the missed 'p' flag to getopt() optstring argument.

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216708 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216572:
kib [Sun, 26 Dec 2010 13:20:10 +0000 (13:20 +0000)]
MFC r216572:
Restore the ABI of struct kinfo_proc32 after r213536.

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216454:
kib [Sun, 26 Dec 2010 13:14:36 +0000 (13:14 +0000)]
MFC r216454:
VOP_ISLOCKED() should not be used to determine if the vnode is locked.
Explicitely track the locked status of the vnode.

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216704 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216469:
nwhitehorn [Wed, 22 Dec 2010 14:46:38 +0000 (14:46 +0000)]
MFC r216469:

Fix the overflowing livefs ISO by removing man pages from the HFS part of
the hybrid disk. This is a stopgap until a better solution can be found,
but lets the powerpc release build complete for the time being.

Approved by: re (kensmith)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216659 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoAdd the packages directories that will be used for the upcoming
kensmith [Wed, 22 Dec 2010 14:31:42 +0000 (14:31 +0000)]
Add the packages directories that will be used for the upcoming
8.2/7.4 releases.

Approved by: re (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216655 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoAdjust __FreeBSD_version to reflect we're past the point of branching
kensmith [Wed, 22 Dec 2010 14:29:42 +0000 (14:29 +0000)]
Adjust __FreeBSD_version to reflect we're past the point of branching
releng/8.2 in preparation for the FreeBSD 8.2 release.

Approved by: re (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216654 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMisc. 8.1 -> 8.2 shifts as part of progress with FreeBSD 8.2 release.
kensmith [Wed, 22 Dec 2010 14:27:13 +0000 (14:27 +0000)]
Misc. 8.1 -> 8.2 shifts as part of progress with FreeBSD 8.2 release.

Approved by: re (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216653 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoAdjust the version of FreeBSD printed on the manual pages.
kensmith [Wed, 22 Dec 2010 14:25:56 +0000 (14:25 +0000)]
Adjust the version of FreeBSD printed on the manual pages.

Approved by: re (implicit)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216652 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC c216495:
tuexen [Tue, 21 Dec 2010 10:43:51 +0000 (10:43 +0000)]
MFC c216495:

Bugfix: Take also the nr-mapping array into account when detecting
       gaps.
Approved by: re@

git-svn-id: svn://svn.freebsd.org/base/stable/8@216613 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216371:
thompsa [Tue, 21 Dec 2010 09:31:48 +0000 (09:31 +0000)]
MFC r216371:
 Fix race in devfs by using LIST_FIRST() instead of
 LIST_FOREACH_SAFE() when freeing the devfs private
 data entries.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216611 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoAdd 2 missing bus_dmamap_sync() calls. Those fix random 'scan timeout',
bschmidt [Tue, 21 Dec 2010 09:16:42 +0000 (09:16 +0000)]
Add 2 missing bus_dmamap_sync() calls. Those fix random 'scan timeout',
'could not set power mode', 'device config failed' and other errors due
reading invalid memory.

Approved by: re (kib)
Obtained from: OpenBSD

git-svn-id: svn://svn.freebsd.org/base/stable/8@216610 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoFix association on 5GHz channels. The device is initially configured using
bschmidt [Tue, 21 Dec 2010 09:14:59 +0000 (09:14 +0000)]
Fix association on 5GHz channels. The device is initially configured using
a 2GHz channel with appropriate flags set to sc->config. Due to not zeroing
sc->config for auth/assoc those flags are still set while trying to connect
on a 5GHz channel.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216609 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoFix a panic while disabling the RF kill button, caller of the
bschmidt [Tue, 21 Dec 2010 09:13:24 +0000 (09:13 +0000)]
Fix a panic while disabling the RF kill button, caller of the
wpi_rfkill_resume() function will take care of the lock.

PR: kern/14489
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216608 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC Xen-related commits r215470, r215472, r215525, r215663, r215813, r215819,
cperciva [Mon, 20 Dec 2010 20:39:49 +0000 (20:39 +0000)]
MFC Xen-related commits r215470, r215472, r215525, r215663, r215813, r215819,
r215844, r216041, r216241, r216280, r216382, and r216385.

* Make blkfront not advertise a larger maximum I/O size than it can handle
  for unaligned data (r216241)
* Correctly reserve CPU #0's DPCPU pages (r216041)
* Make machdep.independent_wallclock do what it claims (r216382)
* Don't round xen timecounter to the nearest tick (r215663), but decrease
  its frequency to avoid wrapping at ~4.3s (r216385)
* Remove debugging code which caused a massing slowdown in fork-heavy
  workloads (r215813)
* Add a missing page table flush before invalidating TLBs in pmap_qremove
  (r215819+215844)
* In pmap_release, don't unpin pages which weren't pinned (r215525) and don't
  KASSERT page mappings which don't exist (r215470); but do pmap_qremove all
  the relevant pages (r215472)
* Don't unmask an event channel until after we register the interrupt handler
  for it (r216280)

Approved by: re (rwatson)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216602 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoRecord merge-info for r216355,216364 previously merged as r216573.
bz [Mon, 20 Dec 2010 20:25:42 +0000 (20:25 +0000)]
Record merge-info for r216355,216364 previously merged as r216573.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216601 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 216504:
jhb [Mon, 20 Dec 2010 17:08:22 +0000 (17:08 +0000)]
MFC 216504:
Add back a bounds check on valid idle priorities that was lost in an
earlier commit.  While here, move the thread lock down in rtp_to_pri().
It is not needed for all of the priority value checks and the computation
of newpri.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216593 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoPull svn:mergeinfo up from subdirectories and files onto etc/ where it
dougb [Sun, 19 Dec 2010 21:51:11 +0000 (21:51 +0000)]
Pull svn:mergeinfo up from subdirectories and files onto etc/ where it
belongs.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216574 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoFix __retval vs. retval confusion: retval is meant to store the (userland)
joerg [Sun, 19 Dec 2010 21:33:28 +0000 (21:33 +0000)]
Fix __retval vs. retval confusion: retval is meant to store the (userland)
pointer where data is to be returned by ibask() (currently unimplemented),
while __retval holds the value returned by the libgpib ibfoo() functions.

The confusion resulted in the ibfoo() functions returning an uninitialized
value except in situations where the GPIB activity has been terminated
abnormally.

Implement more of __ibsta: END and SRQI status bits (taken out of the
uPD7210 IRQ status).

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216573 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216187:
dougb [Sun, 19 Dec 2010 20:12:17 +0000 (20:12 +0000)]
MFC r216187:

Add MAKEDEV.8

Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216570 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215824:
dougb [Sun, 19 Dec 2010 20:10:48 +0000 (20:10 +0000)]
MFC r215824:

Add a sync to the shutdown step. In the common case this will be
harmless at worst. On a heavily loaded server it will give the fs a
chance to do its business without the axe hanging over its head.

Submitted by: ivoras

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216568 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216335:
mlaier [Sun, 19 Dec 2010 06:07:35 +0000 (06:07 +0000)]
MFC r216335:
  Fix a long standing (from the original 4.4BSD lite sources) race between
  vmspace_fork and vm_map_wire that would lead to "vm_fault_copy_wired: page
  missing" panics.  While faulting in pages for a map entry that is being
  wired down, mark the containing map as busy.  In vmspace_fork wait until
  the map is unbusy, before we try to copy the entries.

  Sponsored by: Isilon Systems, Inc.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216553 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge xen.4 man page from head to stable/8; revs r216419, r216420, r216428,
rwatson [Sat, 18 Dec 2010 23:03:01 +0000 (23:03 +0000)]
Merge xen.4 man page from head to stable/8; revs r216419, r216420, r216428,
r216429, r216497, r216500, r216501, r216509.

Approved by: re (kib)
Sponsored by: DARPA, AFRL

git-svn-id: svn://svn.freebsd.org/base/stable/8@216545 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 216480:
tuexen [Sat, 18 Dec 2010 11:45:54 +0000 (11:45 +0000)]
MFC 216480:
Add a missing cast. Reported by blade_ly at yahoo.com.cn.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216517 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216130:
delphij [Fri, 17 Dec 2010 19:48:54 +0000 (19:48 +0000)]
MFC r216130:

Decode IPC_CREAT and IPC_EXCL for semget(2).

PR: bin/152781
Submitted by: Anton Yuzhaninov <citrin citrin ru>
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216506 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216407:
brucec [Thu, 16 Dec 2010 14:57:06 +0000 (14:57 +0000)]
MFC r216407:

USB probing often takes a long time and finishes finding devices after init
has started. In the case of sysinstall, this means that it has already built
its list of devices before probing finishes. Add a hint for users who have
booted from a USB stick only to find that sysinstall can't find it.

Approved by: re (kensmith)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216484 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216397:
tuexen [Thu, 16 Dec 2010 10:58:45 +0000 (10:58 +0000)]
MFC r216397:
Bugfix: Do correct accounting using the MIB counters when an
        association is aborted via sctp_abort_association().

Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/8@216481 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216173
jfv [Wed, 15 Dec 2010 22:59:50 +0000 (22:59 +0000)]
MFC r216173

Remove the test for a minimum frame size from the IPV6 TX context
descriptor setup, when using VLANs and HW TAGGING the length of
an ICMP6 frame will fail this test and be discarded.

Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/8@216467 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoRecord merge-info for r216171 previously merged as r216366.
bz [Wed, 15 Dec 2010 16:21:59 +0000 (16:21 +0000)]
Record merge-info for r216171 previously merged as r216366.
Record merge-info for r216172,216176 previously merged as r216440.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216460 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216255:
kib [Wed, 15 Dec 2010 15:25:56 +0000 (15:25 +0000)]
MFC r216255:
Update some comments related to use of amd64 full context switch.
In exec_linux_setregs(), use locally cached pointer to pcb to set
pcb_full_iret.
In set_regs(), note that full return is needed when code that sets
segment registers is enabled.

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216458 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216253:
kib [Wed, 15 Dec 2010 15:23:25 +0000 (15:23 +0000)]
MFC r216253:
Retire write-only PCB_FULLCTX pcb flag on amd64.

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216457 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209230 (pjd):
mm [Wed, 15 Dec 2010 15:19:17 +0000 (15:19 +0000)]
MFC r209230 (pjd):

Remove redundant assignment.

Approved by: re (kib), pjd, delphij (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216456 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216394:
kib [Wed, 15 Dec 2010 15:15:42 +0000 (15:15 +0000)]
MFC r216394:
In fpudna()/npxdna(), mark FPU context initialized and optionally
mark user FPU context initialized, if current context is user context.
It was reversed in r215865, by inadequate change of this code fragment
to a call to fpuuserinited()/npxuserinited().

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216455 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216309:
mav [Wed, 15 Dec 2010 08:27:17 +0000 (08:27 +0000)]
MFC r216309:
Add IDs of HighPoint RocketRAID 62x cards (Marvell 88SE9128 chips).

PR:             kern/152926
Submitted by:   Mike Tancsa <mike@sentex.net>
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216452 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r210780
jkim [Tue, 14 Dec 2010 20:19:41 +0000 (20:19 +0000)]
MFC: r210780

Rearrange struct pcb to make better use of cache lines.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216446 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216172, r216176:
jfv [Tue, 14 Dec 2010 19:59:39 +0000 (19:59 +0000)]
MFC r216172, r216176:

Correct the RX discard and refresh_mbuf logic to match igb, the old
discard code could cause panics due to a bad pointer, now simply
have discard always free mbufs and depend on refresh. In the refresh
code, make sure the mbuf and soft buf struct are properly reset.

Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/8@216440 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208683, r210999, r212385:
mm [Tue, 14 Dec 2010 15:36:47 +0000 (15:36 +0000)]
MFC r208683, r210999, r212385:

MFC r208683 (pjd):
Fix a bug where resilver is not started automatically on pool import or load.
If disk was missing on pool load or import and on next pool load or import
it was present, resilver wasn't started automatically and ZFS reported all
disks as ONLINE and healthy. Then, when another disk died, pool became
unaccessible, because if it was 2-way mirror or RAIDZ1 two vdevs were
out of sync.

To fix the problem, start resilver automatically on pool load or import.

Obtained from: OpenSolaris

MFC r210999 (pjd):
In FreeBSD we use 'jailed' property.

MFC r212385 (pjd):
On FreeBSD we can log from pool that have multiple top-level vdevs or log
vdevs, so don't deny adding new vdevs if bootfs property is set.

Approved by: re (kib), pjd, delphij (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210044, r214622:
mm [Tue, 14 Dec 2010 15:33:59 +0000 (15:33 +0000)]
MFC r210044, r214622:

MFC r210044 (pjd):
MFp4 180933:

Initialize rw_count properly so that zdb(8) doesn't trigger assertion in
rw_enter():

ASSERT(rwlp->rw_count == 0);

While here, assert that rw_count is 0 when destroying the lock.

MFC r214622 (pjd):
1. Remove invalid assertion.
2. Properly recalculate delta in case pthread_cond_timedwait() is interrupted.
3. Style fix.

Reported by: [1] App Deb <appdebgr@gmail.com>

Approved by: re (kib), pjd, delphij (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216434 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216351:
tijl [Tue, 14 Dec 2010 15:33:48 +0000 (15:33 +0000)]
MFC r216351:

Add a .note.ABI-tag section to ia64 startup files by linking crtbrand.c
in crt1.o. On other architectures crtbrand.c is included from crt1.c,
but that's not a C source code file on ia64. Instead it is compiled
separately and included in crt1.o using incremental linking.

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

git-svn-id: svn://svn.freebsd.org/base/stable/8@216433 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r216330
rmacklem [Tue, 14 Dec 2010 13:45:57 +0000 (13:45 +0000)]
MFC: r216330
Disable attempts to establish a callback connection from the
experimental NFSv4 server to a NFSv4 client when delegations are not
being issued, even if the client advertises a callback path.
This avoids a problem where a Linux client advertises a
callback path that doesn't work, due to a firewall, and then
times out an Open attempt before the FreeBSD server gives up
its callback connection attempt. (Suggested by
drb at karlov.mff.cuni.cz.) The server should probably have
a 1sec timeout on callback connection attempts when there are
no delegations issued to the client, but that patch will require
changes to the krpc and this serves as a work around until then.

Tested by: drb at karlov.mff.cuni.cz
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216237:
bschmidt [Mon, 13 Dec 2010 17:56:31 +0000 (17:56 +0000)]
MFC r216237:
Fixes for monitor mode:
- Do not call iwn_calib_reset() for monitor mode. We do not want to query
  information and do runtime calibration while in monitor mode. Poking the
  firmware with adjustments for calibration results in firmware asserts.
  This could happened on RUN -> RUN transition only.
- Adjust blink rate for monitor mode. It's supposed to not freak out and
  turn off after a while.
- While here, remove one useless assignment of calib.state, it gets
  overwritten later in the function.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216412 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216238:
bschmidt [Mon, 13 Dec 2010 17:53:41 +0000 (17:53 +0000)]
MFC r216238:
Fix scanning after loosing a connection. The firmware assumes that as long
as an association ID is set any scan is supposed to be a background scan.
This implies that the firmware will switch back to the associated channel
after a certain threshold, though, we are not notified about that. We
currently catch this case by a timer which will reset the firmware after
a 'scan timeout', though, upper layers are not notified about that and
will simply hang until manual intervention. Fix this by resetting the
firmware's knowledge about any association on RUN -> ASSOC and
!INIT -> SCAN transitions.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216411 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge r216365 from head to stable/8:
rwatson [Mon, 13 Dec 2010 12:34:35 +0000 (12:34 +0000)]
Merge r216365 from head to stable/8:

  Derive the XENHVM kernel from GENERIC, adding only the options required
  to support PV drivers (such as xenpci), and non-adptive locking (along
  with a comment about why).

  This change eliminates the synchronisation problem between GENERIC and
  XENHVM, which had become severely rotted in HEAD, and in 8-STABLE
  included non-production kernel debugging features such as WITNESS.

  However, it comes at the cost of enabling devices and options that may
  not be present under Xen (such as random ethernet cards).  For now, opt
  for a simpler kernel configuration file rather than using nooptions/
  nodevice to enumerate and eliminate them.  This leads to a somewhat
  larger XENHVM kernel.

  This is an MFC candidate for 8-STABLE before 8.2, in order to provide
  a production-worthy XENHVM kernel configuration for amd64.

  Discussed with:       gibbs, cperciva
  Reported by:          Piete Brooks <Piete.Brooks at cl.cam.ac.uk>
  Sponsored by:         DARPA, AFRL

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216406 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216231:
kib [Mon, 13 Dec 2010 10:40:16 +0000 (10:40 +0000)]
MFC r216231:
Do not leak %rdx value in the previous image to the new image after
execve(2).

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216403 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216188:
tuexen [Mon, 13 Dec 2010 10:27:35 +0000 (10:27 +0000)]
MFC r216188:

Fix a bug where also the number of non-renegable gap reports
was considered to be potentially renegable.

Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/8@216402 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216195:
bschmidt [Sun, 12 Dec 2010 10:27:11 +0000 (10:27 +0000)]
MFC r216195:
For 6000 series and newer devices the DC calibration results are no
longer requested of the boot firmware. Instead of sending those results
to the runtime firmware the firmware is told to do the DC calibration
itself.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216392 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216291, r216293:
mm [Sat, 11 Dec 2010 23:48:10 +0000 (23:48 +0000)]
MFC r216291, r216293:

MFC r216291:
Do not print OpenSolaris hint to use (non-existing) installgrub(1) command
if creating a mirror by attaching a new vdev to a root pool.

MFC r216293:
Print message with information about updating the boot code if a new
vdev is attached to a root pool (e.g. when creating a mirrored boot pool).

Reported by: James R. Van Artsdalen (on freebsd-fs@freebsd.org)
Reviewed by: pjd
Approved by: re (kib), delphij (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216386 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoRemove bogus logic in the TX path, when using
jfv [Fri, 10 Dec 2010 22:59:09 +0000 (22:59 +0000)]
Remove bogus logic in the TX path, when using
VLANs and HW_TAGGING in IPv6 the tag is not yet
in the frame, and thus an ICMP6 packet fails this
condition and does not get sent.

Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/8@216366 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216277:
bz [Fri, 10 Dec 2010 15:37:54 +0000 (15:37 +0000)]
MFC r216277:

  Loosen the locking in nd6-free() again after r216022 (r216118 in stable/8)
  to avoid a LOR and a recursed lock.

  Reported by: delphij
  Tested by: delphij
PR: kern/148857
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216359 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216192:
bz [Fri, 10 Dec 2010 14:06:50 +0000 (14:06 +0000)]
MFC r216192:

  Use correct field to track statistics counting error as bad header length.
  This assimilates the code to what ip_input has been doing since r1.1 in
  this case.

  Submitted by: Rozhuk Ivan (rozhuk.im gmail.com)

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216356 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216151:
kib [Fri, 10 Dec 2010 11:02:59 +0000 (11:02 +0000)]
MFC r216151:
Extend the unix gc regression test to cover the case of r216150.

Approved by:    re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216354 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216150, r216158:
kib [Fri, 10 Dec 2010 10:48:54 +0000 (10:48 +0000)]
MFC r216150, r216158:
If unix socket has a unix socket attached as the rights that has a
unix socket attached as the rights that has a unix socket attached as
the rights ... Kernel may overflow the stack on attempt to close such
socket.

Only close the rights file in the context of the current close if the
file is not unix domain socket. Otherwise, postpone the work to
taskqueue, preventing unlimited recursion.

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216353 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216149:
kib [Fri, 10 Dec 2010 10:37:53 +0000 (10:37 +0000)]
MFC r216149:
Add SLIST_SWAP() macro.

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216352 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r213254 by luigi:
ae [Fri, 10 Dec 2010 05:18:37 +0000 (05:18 +0000)]
MFC r213254 by luigi:
   fix breakage in in-kernel NAT: the code did not honor
   net.inet.ip.fw.one_pass and always moved to the next rule
   in case of a successful nat.

   This should fix several related PR (waiting for feedback
   before closing them)

   PR: 145167 149572 150141

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216348 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r206494 by luigi:
ae [Fri, 10 Dec 2010 05:15:47 +0000 (05:15 +0000)]
MFC r206494 by luigi:
  fix a buffer overflow with large (100k+) number of input lines.

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216346 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216040:
delphij [Fri, 10 Dec 2010 00:52:54 +0000 (00:52 +0000)]
MFC r216040:

Make German formal clause to be consistent with the keymap counterpart.

Submitted by: arundel
Approved by: re (kensmith, bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216344 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216166, r216167:
simon [Thu, 9 Dec 2010 22:03:53 +0000 (22:03 +0000)]
MFC r216166, r216167:

Merge in OpenSSL 0.9.8q.

Approved by: re (kib)
Security: CVE-2010-4180
Security: http://www.openssl.org/news/secadv_20101202.txt

git-svn-id: svn://svn.freebsd.org/base/stable/8@216341 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216229:
brucec [Thu, 9 Dec 2010 15:26:38 +0000 (15:26 +0000)]
MFC r216229:

Revert r209469: it causes the rest of the function to be bypassed.

Approved by: re (kensmith)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216326 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216243:
brucec [Thu, 9 Dec 2010 15:24:59 +0000 (15:24 +0000)]
MFC r216243:

Ignore any failures with the "local" distribution since it's not present
on release CDs and so will normally fail.
installCommit() returns a DITEM_ value, not a Boolean.
distExtractAll() returns a Boolean, not a DITEM_ value.

Approved by: re (kensmith)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216325 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoUpdate to version 9.6-ESV-R4, the latest from ISC, which addresses
dougb [Wed, 8 Dec 2010 19:59:53 +0000 (19:59 +0000)]
Update to version 9.6-ESV-R4, the latest from ISC, which addresses
the following security vulnerabilities.

For more information regarding these issues please see:
http://www.isc.org/announcement/guidance-regarding-dec-1st-2010-security-advisories

1. Cache incorrectly allows ncache and rrsig for the same type

   http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-3613

   Affects resolver operators whose servers are open to potential
   attackers. Triggering the bug will cause the server to crash.

   This bug applies even if you do not have DNSSEC enabled.

2. Key algorithm rollover

   http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-3614

   Affects resolver operators who are validating with DNSSEC, and
   querying zones which are in a key rollover period. The bug will
   cause answers to incorrectly be marked as insecure.

Approved by: re (kensmith)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216307 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216194 / MFamd64 r206610: Enforce stronger alignment semantics in
cperciva [Wed, 8 Dec 2010 19:48:29 +0000 (19:48 +0000)]
MFC r216194 / MFamd64 r206610: Enforce stronger alignment semantics in
order to unbreak the Xen blkfront driver.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216305 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216065:
dougb [Wed, 8 Dec 2010 07:00:22 +0000 (07:00 +0000)]
MFC r216065:

Update the description of green_saver.ko

Improvements to my suggested text from: jhb

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216286 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216084:
trasz [Tue, 7 Dec 2010 22:00:48 +0000 (22:00 +0000)]
MFC r216084:

Don't panic when we read an empty ACL from ZFS.  Apparently this may happen
with filesystems created under MacOS X ZFS port.  This is kind of filesystem
corruption (we don't allow for setting empty ACLs), so make acl_get_file(3)
and related syscalls fail with EINVAL in that case.  In theory, we could
return empty ACL to userland, but I'm afraid this would break some code.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216271 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216111:
yongari [Tue, 7 Dec 2010 19:14:18 +0000 (19:14 +0000)]
MFC r216111:
  If RX lockup workaround is enabled, fxp(4) will periodically reset
  the controller to workaround silicon bug of i82557. Each reset will
  re-establish link which in turn triggers MII status change
  callback. The callback will try to reconfigure controller if the
  controller is not i82557 to enable flow-control. This caused
  endless link UP/DOWN when the workaround was enabled on non-i82557
  controller.

  To fix the issue, apply RX lockup workaround only for i82557.
  Previously it blindly checked undocumented EEPROM location such
  that it sometimes enabled the workaround for other controllers. At
  this time, only i82557 is known to have the silicon bug.
  This fixes a regression introduced in r215906 which enabled flow
  control support for all controllers except i82557.

  Reported by: Karl Denninger (karl <> denninger dot net)
  Tested by: Karl Denninger (karl <> denninger dot net)
  Approved by: re (kensmith)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216264 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r216159
jkim [Tue, 7 Dec 2010 18:14:38 +0000 (18:14 +0000)]
MFC: r216159

Do not change CPU ticker frequency if TSC is P-state invariant.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216261 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215195
emax [Mon, 6 Dec 2010 22:45:29 +0000 (22:45 +0000)]
MFC r215195

Add firmware downloader for Atheros AR3011 based USB Bluetooth devices.

Hardware donated by: Rusty Nejdl rnejdl at ringofsaturn dot com
Tested by: Rusty Nejdl rnejdl at ringofsaturn dot com
Tested by: Andrzej Tobola ato at iem dot pw dot edu dot pl
Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/8@216245 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215105: Uninitialized buffers considered harmful.
cperciva [Fri, 3 Dec 2010 22:47:53 +0000 (22:47 +0000)]
MFC r215105: Uninitialized buffers considered harmful.

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216164 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r209463:
kib [Fri, 3 Dec 2010 22:07:07 +0000 (22:07 +0000)]
MFC r209463:
Fix bugs on pc98, use npxgetuserregs() instead of npxgetregs() for
get_fpcontext(), and npxsetuserregs() for set_fpcontext). Also,
note that usercontext is not initialized anymore in fpstate_drop().

Systematically replace references to npxgetregs() and npxsetregs()
by npxgetuserregs() and npxsetuserregs() in comments.

MFC r215865:
Remove npxgetregs(), npxsetregs(), fpugetregs() and fpusetregs()
functions, they are unused. Remove 'user' from npxgetuserregs()
etc. names.

For {npx,fpu}{get,set}regs(), always use pcb->pcb_user_save for FPU
context storage.

MFC r216012:
Calling fill_fpregs() for curthread is legitimate, and ELF coredump
does this.

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216162 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216120:
kib [Fri, 3 Dec 2010 21:52:01 +0000 (21:52 +0000)]
MFC r216120:
For /proc/<pid>/{regs,fpregs} read access, require the thread to be in
stopped state. Otherwise, return EBUSY as is done for write case.

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216160 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215864:
kib [Fri, 3 Dec 2010 16:40:47 +0000 (16:40 +0000)]
MFC r215864:
MFaesni r215427:
Only save FPU context when not executing in the context of the crypto
thread.

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216155 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216077: Teach crashinfo(8) about the kern.bootfile sysctl.
cperciva [Fri, 3 Dec 2010 16:21:12 +0000 (16:21 +0000)]
MFC r216077: Teach crashinfo(8) about the kern.bootfile sysctl.

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216152 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 215820:
jhb [Thu, 2 Dec 2010 15:58:54 +0000 (15:58 +0000)]
MFC 215820:
Add device IDs for two more ServerWorks Host-PCI bridges so that we can
read their starting PCI bus number for older systems that do not support
ACPI (or have a broken _BBN method).

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216123 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216022:
bz [Thu, 2 Dec 2010 10:39:44 +0000 (10:39 +0000)]
MFC r216022:

  Plug well observed races on la_hold entries with the callout handler.

  Call the handler function with the lock held, return unlocked as we
  might free the entry. Rework functions later in the call graph to be
  either called with the lock held or, only if needed, unlocked.

  Place asserts to document and tighten assumptions on various lle locking,
  which were not always true before.

  We call nd6_ns_output() unlocked and the assignment of ip6->ip6_src was
  decentralized to minimize possible complexity introduced with the formerly
  missing locking there. This also resulted in a push down of local
  variable scopes into smaller blocks.

  Reported by: many
  Submitted by: Dmitrij Tejblum (tejblum yandex-team.ru) (original version)
Tested by: remko
PR: kern/148857
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216118 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216052:
brucec [Thu, 2 Dec 2010 09:09:46 +0000 (09:09 +0000)]
MFC r216052:
Update the serial port device names. They changed in 8.0 because the
default driver is now uart(4).

PR: bin/140887
Submitted by: Joe Barbish <fbsd1 at a1poweruser.com>

MFC r216053:
If no floppy drive is installed kldBrowser() can generate an error
early on. Initialize menu and count so the cleanup code doesn't try
and use their uninitialized values.

PR: bin/152270
Submitted by: Remi LAURENT <cloud at madpowah.org>

Approved by: re (kensmith)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216116 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215838:
kib [Thu, 2 Dec 2010 00:49:02 +0000 (00:49 +0000)]
MFC r215838:
Account i/o done on cdevs.

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216102 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215798:
kib [Wed, 1 Dec 2010 15:31:31 +0000 (15:31 +0000)]
MFC r215798:
Remove the note about possible unlocking during vunref(9).

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216097 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215797:
kib [Wed, 1 Dec 2010 15:28:23 +0000 (15:28 +0000)]
MFC r215797:
Allow shared-locked vnode to be passed to vunref(9).

Approved by: re (bz)

git-svn-id: svn://svn.freebsd.org/base/stable/8@216096 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f