]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
12 years agoMFC r226898:
dougb [Sun, 6 Nov 2011 07:02:13 +0000 (07:02 +0000)]
MFC r226898:

Fix the text and attribution of the poem "Youth" by Samuel Ullman.

Our copy was a bastardization of the "older" (probably original?) and
shorter version of the poem; and the "newer" version that is better
known, and arguably more popular. Standardize on the latter.

Cf. http://www.bartleby.com/73/2099.html

Approved by: re (kensmith)

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

12 years agoMFC: r226702
obrien [Sun, 6 Nov 2011 02:10:40 +0000 (02:10 +0000)]
MFC: r226702
   * Don't give the impression that this compiler is GPLv3.
     (It is "well known" that GCC 4.2.2 is GPLv3.)
   * Don't give the impression that this compiler isn't "trustable".
   * Fix dependency nit.

Approved by: re (kib)

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

12 years agoMFC r226896:
kib [Sat, 5 Nov 2011 18:27:47 +0000 (18:27 +0000)]
MFC r226896:
Fix an implicit dependency between the MFI driver and CAM that had grown due
to an API change in CAM.  It's once again possible to link a static kernel
with 'mfi' without requiring 'scbus' as well.  Ditto for KLD loading.

Approved by: re (bz)

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

12 years agoMFC r226889,226895:
ache [Fri, 4 Nov 2011 11:14:04 +0000 (11:14 +0000)]
MFC r226889,226895:

"or" word in '}' description gives false impression that newline can be
replaced by space. Reflect reality and POSIX.

PR:             96236
Submitted by:   dougb
Approved by:    re (kib)

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

12 years agoMFC r226880:
ae [Fri, 4 Nov 2011 06:14:18 +0000 (06:14 +0000)]
MFC r226880:
  Our geom withering function could take some time before geom with its
  providers and consumers will be destroyed.  Before take some actions
  with a geom, check that it is not destroyed at the moment.

  Tested by: nwhitehorn

Approved by: re (kib)

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

12 years agoMFC r226951:
dim [Wed, 2 Nov 2011 18:55:26 +0000 (18:55 +0000)]
MFC r226951:

Pull in r143305 and r143312 from upstream clang trunk, so using "clang
-march=native" on AMD K10 family processors no longer errors out with
"unknown target CPU 'amdfam10'".  This also enables use of SSE4A.

Reported by: David Marec <david.marec@davenulle.org>
Approved by: re (kib)

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

12 years agoMerge r226860 from head:
gavin [Wed, 2 Nov 2011 13:51:29 +0000 (13:51 +0000)]
Merge r226860 from head:
  Update the example rules in devfs.conf to reflect the changes since
  ATA_CAM.  While here, add another example rule, as many applications
  these days expect to find /dev/dvd instead.

Approved by: re (kib)

_M   etc
M    etc/devfs.conf

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

12 years agoMFC r226836:
pluknet [Wed, 2 Nov 2011 08:23:40 +0000 (08:23 +0000)]
MFC r226836:
Fix the manual section number for a cross-reference to open(2) and sort it.

Approved by: re (kib)

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

12 years agoMFC 226710
qingli [Tue, 1 Nov 2011 22:22:46 +0000 (22:22 +0000)]
MFC 226710

The host-id/interface-id can have a specific value and is properly
masked out when adding a prefix route through the "route" command.
However, when deleting the route, simply changing the command keyword
from "add" to "delete" does not work. The failoure is observed in
both IPv4 and IPv6 route insertion. The patch makes the route command
behavior consistent between the "add" and the "delete" operation.

Approved by: re (kib)

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

12 years agoMFC r226903, r225777, r226221 and r226534:
hselasky [Tue, 1 Nov 2011 22:00:49 +0000 (22:00 +0000)]
MFC r226903, r225777, r226221 and r226534:
Add some new USB device IDs and some USB device quirks.
Improve the USB mass storage auto quirk detection.

PR: usb/161798, usb/160911
Approved by: re (kib)

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

12 years agoMFC 226451
qingli [Tue, 1 Nov 2011 21:21:36 +0000 (21:21 +0000)]
MFC 226451

The IPv6 code was influx at the time of r196865 due to the L2/L3
separation rewrite changes. r196865 was committed to fix a scope
violation problem in the following test scenario:

  box-1# ifconfig em0 inet6 2001:db8:1:: prefixlen 64 anycast
  box-1# ifconfig em1 inet6 2001:db8:2::1 prefixlen 64

  box-2# ifconfig re0 inet6 2001:db8:1::6 prefixlen 64

  em0 and re0 are on the same link.

  box-2# ping6 2001:db8:1::
  PING6(56=40+8+8 bytes) 2001:db8:1::6 --> 2001:db8:1::

the ICMPv6 response should have a source address of em1, which
is 2001:db8:2::1, not the link-local address of em0.

That code is no longer necessary and breaks the IPv6-Ready logo
testing, so revert it now.

Reviewed by: hrs
Approved by: re (kib)

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

12 years agoMFC 226713
qingli [Tue, 1 Nov 2011 18:29:06 +0000 (18:29 +0000)]
MFC 226713

Exclude host routes when checking for prefix coverage on multiple
interfaces. A host route has a NULL mask so check for that condition.
I have also been told by developers who customize the packet output
path with direct manipulation of the route entry (or the outgoing
interface to be specific). This patch checks for the route mask
explicitly to make sure custom code will not panic.

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

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

12 years agoMFC r226790:
pluknet [Tue, 1 Nov 2011 16:11:44 +0000 (16:11 +0000)]
MFC r226790:
Fix typo in timer_getoverrun cross-reference.

Approved by: re (kib)

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

12 years agoMFC r226688:
kib [Tue, 1 Nov 2011 15:41:55 +0000 (15:41 +0000)]
MFC r226688:
The use of VOP_ISLOCKED() without a check for the return values can cause
false positives. Replace the #ifdef block with the proper
ASSERT_VOP_UNLOCKED() assert.

Approved by: re (bz)

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

12 years agoMFC r226687:
kib [Tue, 1 Nov 2011 15:38:41 +0000 (15:38 +0000)]
MFC r226687:
The only possible error return from null_nodeget() is due to insmntque1
failure (the getnewvnode cannot return an error). In this case, the
null_insmntque_dtr() already unlocked the reclaimed vnode, so VOP_UNLOCK()
in the nullfs_mount() after null_nodeget() failure is wrong.

Approved by: re (bz)

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

12 years agoMFC r226686:
kib [Tue, 1 Nov 2011 15:34:52 +0000 (15:34 +0000)]
MFC r226686:
The covered vnode must be reloced if it was unlocked. Remove VOP_ISLOCKED
test because of this and also because it can lead to false positives.

Approved by: re (bz)

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

12 years agoMFC r226887:
delphij [Mon, 31 Oct 2011 20:02:11 +0000 (20:02 +0000)]
MFC r226887:

Don't expose a constant array into global namespace.

Reported by: Ruslan Yakovlev <quazi bk ru> via yongari
Approved by: re (kib)

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

12 years agoMFC 226869:
tuexen [Mon, 31 Oct 2011 09:27:10 +0000 (09:27 +0000)]
MFC 226869:
When adding a new remote address using sctp_add_remote_addr(),
return the correct net if requested.

Approved by: re@

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

12 years agoMFC r226681:
pho [Mon, 31 Oct 2011 09:18:01 +0000 (09:18 +0000)]
MFC r226681:
Only unlock if the lock is exclusive.

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

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

12 years agoMFC 226868:
tuexen [Mon, 31 Oct 2011 08:48:27 +0000 (08:48 +0000)]
MFC 226868:
Send out control chunks which have no specific destination.

Approved by: re@

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

12 years agoMFC r226647:
marcel [Mon, 31 Oct 2011 03:47:23 +0000 (03:47 +0000)]
MFC r226647:
Add support for Boot Camp. The support is defined as follows:
o   Detect when Boot Camp is enabled (i.e. the MBR mirrors the GPT).
o   When Boot Camp is enabled, update the MBR whenever we write the GPT.
o   Creation of a Boot Camp enabled GPT is not supported.
o   Automatically disable Boot Camp when the GPT has been changed so that
    there's either no EFI partition or no HFS+ partition.
o   The first 4 partitions (by index) get mirrored in the MBR.

Requested by, discussed with and tested by: kris@pcbsd.org
Approved by: re (bz@, kib@)

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

12 years agoMFC r226512:
mm [Sun, 30 Oct 2011 20:58:53 +0000 (20:58 +0000)]
MFC r226512:

Import fix for Illumos bug #1475 to reduce diff against upstream.

Panic caused by this bug was already partially fixed by pjd@
in p4 CH 185940 and 185942.

Reference:
1475 zfs spill block hold can access invalid spill blkptr
https://www.illumos.org/issues/1475

Reviewed by: delphij
Obtained from: Illumos (issue 1475, changeset 13469:b8e89e5c4167)
Approved by: re (kib)

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

12 years agoMFC r226724, r226732:
mm [Sun, 30 Oct 2011 20:56:54 +0000 (20:56 +0000)]
MFC r226724, r226732:

MFC r226724:
Update copyright information in several ZFS files, as the clause 3.3
of the CDDL licence explicitly requires every Contributor to add
a copyright notice.

This also reflects the copyright notices for the changes recently
added by Illumos.

MFC r226732: [1]
Fix typo in copyright notice introduced in r226724
(missing character in e-mail adress)

Reported by: pjd [1]
Approved by: re (kib)

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

12 years agoMFC: r226522
marius [Sun, 30 Oct 2011 12:23:00 +0000 (12:23 +0000)]
MFC: r226522

Allow to dump on Solaris swap partitions.

PR: 161764
Submitted by: Peter Jeremy
Approved by: re (kib)

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

12 years agoMFC r226828:
trociny [Sun, 30 Oct 2011 08:35:19 +0000 (08:35 +0000)]
MFC r226828:

Fix a memory leak in tzload().

PR: bin/161425
Reviewed by: kib
Approved by: re (kib)

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

12 years agoMFC: r226381
marius [Sat, 29 Oct 2011 23:53:53 +0000 (23:53 +0000)]
MFC: r226381

Merge from NetBSD:
- Remove clause 3 and 4 from TNF licenses.
- Fix memset usage.
- Various cleanup.
- Kill caddr_t.

Approved by: re (kib)

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

12 years agoMerge from r225950:
marius [Sat, 29 Oct 2011 22:06:53 +0000 (22:06 +0000)]
Merge from r225950:

Set the sense residual properly.

Reviewed by: ken
Approved by: re (kib)

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

12 years agoMFC r226673:
marcel [Sat, 29 Oct 2011 16:38:04 +0000 (16:38 +0000)]
MFC r226673:
Don't terminate the interactive root mount prompt on mount failure.
This restores the previous behaviour. While here, match '?' and '.'
inputs exactly and improve the error message.

Requested by: avg@
Derived from a patch by: Arnaud Lacombe <lacombar@gmail.com>
Approved by: re (kib@)

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

12 years agoMFC r226803:
hselasky [Sat, 29 Oct 2011 12:39:05 +0000 (12:39 +0000)]
MFC r226803:
Fix suspend and resume of non-super-speed USB devices
in the generic XHCI driver. There appears to be some minor
logic missing for this feature to work.

Approved by: re (kib)

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

12 years agoInclude a missing opt_vm.h which doesn't let VM_NRESERVLEVEL switching
attilio [Sat, 29 Oct 2011 06:13:44 +0000 (06:13 +0000)]
Include a missing opt_vm.h which doesn't let VM_NRESERVLEVEL switching
correct utilization.

Approved by: re (kib)

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

12 years agoMFC r226633:
dim [Fri, 28 Oct 2011 21:08:39 +0000 (21:08 +0000)]
MFC r226633:

Upgrade our copy of llvm/clang to r142614, from upstream's release_30
branch.  This brings us very close to the 3.0 release, which is expected
November 16, 2011.

Approved by: re (kib)

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

12 years agoMFC r226714:
ae [Thu, 27 Oct 2011 20:23:03 +0000 (20:23 +0000)]
MFC r226714:
  Fix argument name. This fixes EINVAL when boot0cfg uses GEOM_PART'
  control interface.

Approved by: re (kib)

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

12 years agoMFC r226664:
gabor [Thu, 27 Oct 2011 19:18:54 +0000 (19:18 +0000)]
MFC r226664:
- Install BSD grep properly, based on the value of WITH_BSD_GREP

Approved by: re (kib)

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

12 years agoMFC r225979:
kib [Thu, 27 Oct 2011 12:26:16 +0000 (12:26 +0000)]
MFC r225979:
Update the comment.

MFC r225980:
Handle the situation where fixups_close() has been called but more fixups
are still available on the queue.

Approved by: re (kensmith)

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

12 years agoMFC r226695-226696:
yongari [Thu, 27 Oct 2011 02:36:13 +0000 (02:36 +0000)]
MFC r226695-226696:
r226695:
  Fix a regression introduced in r218832. For TX status check, driver
  should use a TX list DMA tag.

r226696:
  Add missing bus_dmamap_sync() in setup frame transmit.

Approved by: re (kensmith)

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

12 years agoFix whitespace nit. "options<space><tab>", not "options<tab><tab>".
kensmith [Wed, 26 Oct 2011 23:05:59 +0000 (23:05 +0000)]
Fix whitespace nit.  "options<space><tab>", not "options<tab><tab>".

Submitted by: Matthew Fleming <mdf at freebsd dot org>
Pointy hat: me
Approved by: re (implicit)

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

12 years agoMFC r226650: Make freebsd-update work with FreeBSD 9.0.
cperciva [Wed, 26 Oct 2011 20:01:43 +0000 (20:01 +0000)]
MFC r226650: Make freebsd-update work with FreeBSD 9.0.

Approved by: re (kib)

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

12 years agoI forgot we now leave KDB and KDB_TRACE options in stable kernel config
kensmith [Wed, 26 Oct 2011 19:59:06 +0000 (19:59 +0000)]
I forgot we now leave KDB and KDB_TRACE options in stable kernel config
files to help provide stack traces during a panic.

Submitted by: Sergey Kandaurov <pluknet at freebsd dot org>
Approved by: re (implicit)

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

12 years agoMFC r226510,r226547:
kensmith [Wed, 26 Oct 2011 19:45:20 +0000 (19:45 +0000)]
MFC r226510,r226547:
Comment out sbp(4) because it appears to cause boot failure on some
systems.  Add comment explaining why sbp(4) is commented out.

It was a mistake on my part to omit powerpc's GENERIC for r226510.
But when I noticed the mistake I checked with the powerpc maintainer
to see if I should correct the mistake Marcel said he'd prefer it be
left as-is.

Approved by: re (kib)

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

12 years agoSync pf(4) and pfsync(4) with head, merging lots of important bugfixes
glebius [Wed, 26 Oct 2011 17:09:09 +0000 (17:09 +0000)]
Sync pf(4) and pfsync(4) with head, merging lots of important bugfixes
required for normal operation of pfsync(4). Revisions merged:

  r226531 | bz | 2011-10-19 13:34:40 +0400 (ср, 19 окт 2011) | 4 lines

  Fix an obvious locking bug where we would lock again rather than unlock.

  r226532 | bz | 2011-10-19 14:04:24 +0400 (ср, 19 окт 2011) | 12 lines

  Pseudo interfaces should go at SI_SUB_PSEUDO.  However at least
  pfsync also depends on pf to be initialized already so pf goes at
  FIRST and the interfaces go at ANY.
  Then the (VNET_)SYSINIT startups for pf stays at SI_SUB_PROTO_BEGIN
  and for pfsync we move to the later SI_SUB_PROTO_IF.

  This is not ideal either but at least an order that should work for
  the moment and can be re-fined with the VIMAGE merge, once this will
  actually work with more than one network stack.

  r226533 | bz | 2011-10-19 14:08:58 +0400 (ср, 19 окт 2011) | 4 lines

  In the non-FreeBSD case we do not expect PF_LOCK and friends to do anything.

  r226535 | bz | 2011-10-19 14:16:42 +0400 (ср, 19 окт 2011) | 5 lines

  Adjust the PF_ASSERT() macro to what we usually use in the network stack:
  PF_LOCK_ASSERT() and PF_UNLOCK_ASSERT().

  r226536 | bz | 2011-10-19 15:04:49 +0400 (ср, 19 окт 2011) | 8 lines

  De-virtualize the pf_task_mtx lock.  At the current state of pf locking
  and virtualization it is not helpful but complicates things.

  Current state of art is to not virtualize these kinds of locks -
  inp_group/hash/info/.. are all not virtualized either.

  r226544 | bz | 2011-10-19 17:13:56 +0400 (ср, 19 окт 2011) | 12 lines

  Fix recursive pf locking leading to panics.  Splatter PF_LOCK_ASSERT()s
  to document where we are expecting to be called with a lock held to
  more easily catch unnoticed code paths.
  This does not neccessarily improve locking in pfsync, it just tries
  to avoid the panics reported.

  PR: kern/159390, kern/158873
  Submitted by: pluknet (at least something that partly resembles
   my patch ignoring other cleanup, which I only saw
   too late on the 2nd PR)

  r226609 | glebius | 2011-10-21 15:11:18 +0400 (пт, 21 окт 2011) | 4 lines

  In FreeBSD ip_output() expects ip_len and ip_off in host byte order

  PR: kern/159029

  r226623 | glebius | 2011-10-22 02:28:15 +0400 (сб, 22 окт 2011) | 5 lines

  Fix a race: we should update sc_len before dropping the pf lock, otherwise a
  number of packets can be queued on sc, while we are in ip_output(), and then
  we wipe the accumulated sc_len. On next pfsync_sendout() that would lead to
  writing beyond our mbuf cluster.

  r226655 | glebius | 2011-10-23 14:05:25 +0400 (вс, 23 окт 2011) | 5 lines

  Correct flag for uma_zalloc() is M_WAITOK. M_WAIT is an old and
  deprecated flag from historical mbuf(9) allocator.

  This is style only change.

  r226656 | glebius | 2011-10-23 14:13:20 +0400 (вс, 23 окт 2011) | 5 lines

  Absense of M_WAITOK in malloc flags for UMA doesn't
  equals presense of M_NOWAIT. Specify M_NOWAIT explicitly.

  This fixes sleeping with PF_LOCK().

  r226660 | glebius | 2011-10-23 18:59:54 +0400 (вс, 23 окт 2011) | 22 lines

  Fix from r226623 is not sufficient to close all races in pfsync(4).

  The root of problem is re-locking at the end of pfsync_sendout().
  Several functions are calling pfsync_sendout() holding pointers
  to pf data on stack, and these functions expect this data to be
  consistent.

  To fix this, the following approach was taken:

  - The pfsync_sendout() doesn't call ip_output() directly, but
    enqueues the mbuf on sc->sc_ifp's interfaces queue, that
    is currently unused. Then pfsync netisr is scheduled. PF_LOCK
    isn't dropped in pfsync_sendout().
  - The netisr runs through queue and ip_output()s packets
    on it.

  Apart from fixing race, this also decouples stack, fixing
  potential issues, that may happen, when sending pfsync(4)
  packets on input path.

  Reviewed by: eri (a quick review)

  r226661 | glebius | 2011-10-23 19:08:18 +0400 (вс, 23 окт 2011) | 13 lines

  - Fix a bad typo (FreeBSD specific) in pfsync_bulk_update(). Instead
    of scheduling next run pfsync_bulk_update(), pfsync_bulk_fail()
    was scheduled.
    This lead to instant 100% state leak after first bulk update
    request.
  - After above fix, it appeared that pfsync_bulk_update() lacks
    locking. To fix this, sc_bulk_tmo callout was converted to an
    mtx one. Eventually, all pf/pfsync callouts should be converted
    to mtx version, since it isn't possible to stop or drain a
    non-mtx callout without risk of race.
  - Add comment that callout_stop() in pfsync_clone_destroy() lacks
    locking. Since pfsync0 can't be destroyed (yet), let it be here.

  r226662 | glebius | 2011-10-23 19:10:15 +0400 (вс, 23 окт 2011) | 2 lines

  Fix indentation, no code changed.

  r226663 | glebius | 2011-10-23 19:15:17 +0400 (вс, 23 окт 2011) | 4 lines

  Merge several fixes to bulk update processing from OpenBSD. Merged
  revisions: 1.148, 1.149, 1.150. This makes number of states on
  master/slave to be of a sane value.

Approved by: re (kib)

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

12 years agoAdd a "kern.features.ata_cam" sysctl in the kernel when the ATA_CAM kernel
rodrigc [Wed, 26 Oct 2011 17:04:26 +0000 (17:04 +0000)]
Add a "kern.features.ata_cam" sysctl in the kernel when the ATA_CAM kernel
option is defined.  This sysctl can be queried by feature_present(3).

Query for this feature in /sbin/atacontrol and /usr/sbin/burncd.
If these utilities detect that ATA_CAM is enabled, then these utilities
will error out.  These utilities are compatible with the old ATA
driver, but are incomptible with the new ATA_CAM driver.  By erroring out,
we give end-users an idea as to what remedies to use, and reduce the need for them
to file PR's.  For atacontrol, camcontrol must be used instead,
and for burncd, alternative utilties from the ports collection must be used
such as sysutils/cdrtools.

In future, maybe someone can re-write burncd to work with ATA_CAM,
but at least for now, we give a somewhat useful error message to end users.

PR: 160979
Reviewed by: jh, Arnaud Lacombe <lacombar at gmail dot com>
Approved by: re (kib)
Reported by: Joe Barbish <fbsd8 at a1poweruser dot com>

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

12 years agoMFC r226527:
bz [Wed, 26 Oct 2011 15:36:48 +0000 (15:36 +0000)]
MFC r226527:

  Fix indentation in a loop and a tiny maze of #ifdefs for just the
  __FreeBSD__ parts that had it wrong.

MFC r226530:

  Fix a bug when NPFSYNC > 0 that on FreeBSD we would always return
  and never remove state.

  This fixes the problem some people are seeing that state is removed when pf
  is loaded as a module but not in situations when compiled into the kernel.

Approved by: re (kib)

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

12 years agoMFC r226654, r226657, r226658:
mm [Wed, 26 Oct 2011 08:34:00 +0000 (08:34 +0000)]
MFC r226654, r226657, r226658:

MFC r226654 [1]:
Add etc/rc.d/static_ndp, analogous to etc/rc.d/static_arp.
Make sure that static ARP and NDP bindings are set before NETWORKING.

As static_ndp is based on static_arp, pass copyright to the project with
permission of the original author (delphij@).

MFC r226657 [2]:
Correctly reassign copyright of etc/rc.d/static_ndp back to delphij@
as the project itself is no legal entity

MFC r226658 [3]:
Add information about static_ndp_pairs to rc.conf(5) manual page

Reviewed by: Xin Li <delphij@FreeBSD.org> [1]
Reported by: Joe Dahl <joel@vnode.se> [2]
Submitted by: Sergey Kandaurov <pluknet@FreeBSD.org> [3]
Approved by: re (kib)

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

12 years agoMFC of r226752, r226771, tzdata2011m
edwin [Wed, 26 Oct 2011 06:50:40 +0000 (06:50 +0000)]
MFC of r226752, r226771, tzdata2011m

Europe:
- Pridnestrovian Moldavian Republic (PMR, also known as
  "Pridnestrovie") has abolished seasonal clock change (no transition
  to the Winter Time).
- The recent change to the Ukranian time zone (Europe/Kiev) to
  introduce permanent daylight saving time (similar to Russia) was
  reverted.

South America:
- Bahia: The President signed a decree that includes Bahia in summer
  time.

zone.tab:
- Add Europe/Tiraspol Pridnestrovie

Obtained from:  ftp://ftp.iana.org/tz/releases/
Approved by: re (Kostik Belousov)

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

12 years agoMFC: r226406
brueffer [Sun, 23 Oct 2011 18:31:24 +0000 (18:31 +0000)]
MFC: r226406

Properly free resources in case of an error.

Approved by: re (kib)

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

12 years agoMFC: r226398, r226442
brueffer [Sun, 23 Oct 2011 18:20:51 +0000 (18:20 +0000)]
MFC: r226398, r226442

Move the allocation of usrbufs down a few lines to avoid leaking it
in case of an error.

Approved by: re (kib)

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

12 years agoMFC: r226247, r226253
brueffer [Sat, 22 Oct 2011 18:20:12 +0000 (18:20 +0000)]
MFC: r226247, r226253

Properly free linux_gidset in case of an error.

Approved by: re (kib)

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

12 years agoMFC: r226185
brueffer [Sat, 22 Oct 2011 17:51:45 +0000 (17:51 +0000)]
MFC: r226185

Add missing break statement to make sure all 3DES etypes really are treated
the same.

Approved by: re (kib)

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

12 years agoFix bmiss notifications, events should be sent when NOT scanning.
bschmidt [Sat, 22 Oct 2011 09:29:44 +0000 (09:29 +0000)]
Fix bmiss notifications, events should be sent when NOT scanning.

Approved by: re (kib)

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

12 years agoMFC: 226265
mckusick [Fri, 21 Oct 2011 22:12:24 +0000 (22:12 +0000)]
MFC: 226265

When unmounting a filesystem always wait for the vfs_busy lock to clear
so that if no vnodes in the filesystem are actively in use the unmount
will succeed rather than failing with EBUSY.

Reported by: Garrett Cooper
Reviewed by: Attilio Rao and Kostik Belousov
Tested by:   Garrett Cooper
Approved by: re (kib)
PR:          kern/161016

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

12 years agoMFC 226266:
mckusick [Fri, 21 Oct 2011 22:07:52 +0000 (22:07 +0000)]
MFC 226266:
After creating a filesystem using newfs -j the time stamps are all
zero and thus report as having been made in January 1970. Apart
from looking a bit silly, it also triggers alarms from scripts
that detect weird time stamps. This update sets all 4 (or 3, in
the case of UFS1) time stamps to the current time when enabling
journaling during newfs or later when enabling it with tunefs.

Reported by: Hans Ottevanger <hans@beastielabs.net>
Approved by: re (kib)

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

12 years agoMFC r226403:
trociny [Fri, 21 Oct 2011 05:37:40 +0000 (05:37 +0000)]
MFC r226403:

In r225809 the intention was to send VEOF only once if STDIN was not a
terminal. Unfortunately the fix was incorrect and for flushtime > 0 it
keept sending VEOF.

Sent VEOF generates ^D\b\b echoed by the terminal, which was reported
in bin/161526. Note, we still send VEOF at least once. Otherwise
commands like below would hang forever:

  echo 1 |script /tmp/script.out cat

PR: bin/161526
Reported by: Adrian Wontroba <aw1@stade.co.uk>, Stefan Bethke <stb@lassitu.de>
Tested by: Stefan Bethke <stb@lassitu.de>
Approved by: re (kib)

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

12 years agoMFC r226476:
delphij [Thu, 20 Oct 2011 20:33:31 +0000 (20:33 +0000)]
MFC r226476:

Return BUS_PROBE_DEFAULT instead of 0 (BUS_PROBE_SPECIFIC), allowing
vendor provided driver to override in kernel driver.

Approved by: re (kib)

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

12 years agoMFC r226483:
delphij [Thu, 20 Oct 2011 20:31:09 +0000 (20:31 +0000)]
MFC r226483:

Fix a bug in sa_find_sizes() which could lead to panic:
When calculating space needed for SA_BONUS buffers,
hdrsize is always rounded up to next 8-aligned boundary.
However, in two places the round up was done against
sum of 'total' plus hdrsize.  On the other hand,
hdrsize increments by 4 each time, which means in
certain conditions, we would end up returning with
will_spill == 0 and (total + hdrsize) larger than
full_space, leading to a failed assertion because
it's invalid for dmu_set_bonus.

Sponsored by: iXsystems, Inc.
Reviewed by: mm
Approved by: re (kib)

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

12 years agoMFC r226042:
kib [Thu, 20 Oct 2011 18:54:05 +0000 (18:54 +0000)]
MFC r226042:
Supply unique (st_dev, st_ino) value pair for the fstat(2) done on the pipes.

Approved by: re (bz)

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

12 years agoMFC r226041:
kib [Thu, 20 Oct 2011 18:47:58 +0000 (18:47 +0000)]
MFC r226041:
Export devfs inode number allocator for the kernel consumers.

Approved by: re (bz)

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

12 years agoMFC r226208:
kib [Thu, 20 Oct 2011 18:39:01 +0000 (18:39 +0000)]
MFC r226208:
Do not ignore block offsets.

PR: kern/160943
Approved by: re (bz)

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

12 years agoUpdate gcc's __FreeBSD__ and __FreeBSD_cc_version macros for FreeBSD 9.
dim [Thu, 20 Oct 2011 17:33:22 +0000 (17:33 +0000)]
Update gcc's __FreeBSD__ and __FreeBSD_cc_version macros for FreeBSD 9.

This is a direct commit to stable/9, since the macro values are
different in head.

Approved by: re (kib)

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

12 years agoMFC r226318:
np [Thu, 20 Oct 2011 17:09:53 +0000 (17:09 +0000)]
MFC r226318:

Make sure the inp wasn't dropped when rexmt let go of the inp and
pcbinfo locks.

Approved by: re (kib)

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

12 years agoMFC r226432, r226273:
gabor [Thu, 20 Oct 2011 16:08:11 +0000 (16:08 +0000)]
MFC r226432, r226273:
  - Use getprogname() instead of __progname
  - Allow disabling bzip2 support with WITHOUT_BZIP2
  - Fix handling patterns that start with a dot
  - Remove superfluous semicolon
  - Fix counting of match limit (-m)

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

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

12 years agoMFhead 226401,226402:
glebius [Thu, 20 Oct 2011 15:58:05 +0000 (15:58 +0000)]
MFhead 226401,226402:

  Remove last remnants of classful addressing:

  - Remove ia_net, ia_netmask, ia_netbroadcast from struct in_ifaddr.
  - Remove net.inet.ip.subnetsarelocal, I bet no one need it in 2011.
  - fix bug when we were not forwarding to a host which matches classful
    net address. For example router having 192.168.x.y/16 network attached,
    would not forward traffic to 192.168.*.0, which are legal IPs in
    CIDR world.
  - For compatibility, leave autoguessing of mask based on class.

  Reviewed by:  andre, bz, rwatson

  Add support for IPv4 /31 prefixes, as described in RFC3021.

  To run a /31 network, participating hosts MUST drop support
  for directed broadcasts, and treat the first and last addresses
  on subnet as unicast. The broadcast address for the prefix
  should be the link local broadcast address, INADDR_BROADCAST.

Approved by: re (kib)

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

12 years agoMFhead r226367:
glebius [Thu, 20 Oct 2011 15:55:01 +0000 (15:55 +0000)]
MFhead r226367:

  Never switch directly from INIT to MASTER, since this produces
  nasty status flaps.

  PR:           kern/161123
  Submitted by: Damien Fleuriot <dam my.gd>
  OpenBSD:      ip_carp.c, rev. 1.115

Approved by: re (kib)

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

12 years agoMFhead r226338:
glebius [Thu, 20 Oct 2011 15:53:26 +0000 (15:53 +0000)]
MFhead r226338:

  Restore functions in6_ifaddloop() and in6_ifremloop() that were
  inlined by Qing Li in his big new-ARP commit. I am going to utilize
  them in my newcarp work, and also these functions left declared
  in in6_var.h for all the time they were absent.

  Reviewed by:  bz

Approved by: re (kib)

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

12 years agoMFC r226410:
nwhitehorn [Thu, 20 Oct 2011 15:34:17 +0000 (15:34 +0000)]
MFC r226410:
Enforce a memory barrier in stream operations, as is done on other
bus_space calls. This makes ath(4) work correctly on PowerPC.

Submitted by: adrian
Tested by: andreast
Approved by: re (kib)

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

12 years agoMFC r226474:
hselasky [Thu, 20 Oct 2011 14:45:16 +0000 (14:45 +0000)]
MFC r226474:
Make the usbdump utility work again by using the correct BPF structures.

Approved by: re (kib)

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

12 years agoRemove the last of the debugging support (INVARIANT*) from the ia64
kensmith [Wed, 19 Oct 2011 23:02:57 +0000 (23:02 +0000)]
Remove the last of the debugging support (INVARIANT*) from the ia64
GENERIC config file, the ia64 kernel runs OK without it.

Reviewed by: marcel
Approved by: re (implicit)

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

12 years agoMFC r226507:
kensmith [Tue, 18 Oct 2011 13:48:31 +0000 (13:48 +0000)]
MFC r226507:
> Escape the newline so we get a proper line continuation.  Without this
> the text of the menu selections doesn't get displayed properly and it
> makes the installer appear to lock up for no obvious reason.
>
> Reviewed by: nwhitehorn

Insta-MFC being done because 9.0-RC1 builds are being held for this.

Approved by:    re (kib, bz)

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

12 years agoMFC 226453
qingli [Mon, 17 Oct 2011 03:35:24 +0000 (03:35 +0000)]
MFC 226453

The code change made in r226040 was incomplete and resulted in
routes such as fe80::1%lo0 no being installed. This patch completes
the original intended fix.

Reviewed by: hrs. bz
Approved by: re (ken)

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

12 years agoReady for RC1.
kensmith [Sun, 16 Oct 2011 15:55:23 +0000 (15:55 +0000)]
Ready for RC1.

Approved by: re (implicit)

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

12 years agoMFC r226311:
dim [Sat, 15 Oct 2011 23:13:24 +0000 (23:13 +0000)]
MFC r226311:

Add link from clang to clang-cpp, so you can use CPP=clang-cpp in
Makefiles.  Also add a manpage symlink for it.

Approved by: re (kib)

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

12 years agoMFC r226310:
dim [Sat, 15 Oct 2011 23:09:21 +0000 (23:09 +0000)]
MFC r226310:

Add manpage symlink for clang++(1).

PR: docs/149051
Approved by: re (kib)

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

12 years agoMerge r226301 from head to stable/9:
rwatson [Sat, 15 Oct 2011 22:27:59 +0000 (22:27 +0000)]
Merge r226301 from head to stable/9:

  Correct a bug in export of capability-related information from the sysctls
  supporting procstat -f: properly provide capability rights information to
  userspace.  The bug resulted from a merge-o during upstreaming (or rather,
  a failure to properly merge FreeBSD-side changed downstream).

  Spotted by:     des, kibab

Approved by: re (kib)

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

12 years agoRemove extra debuggin gsupport that is turned on for head but turned off
kensmith [Sat, 15 Oct 2011 21:23:04 +0000 (21:23 +0000)]
Remove extra debuggin gsupport that is turned on for head but turned off
for stable branches:

- shift to MALLOC_PRODUCTION
- turn off automatic crash dumps
- remove kernel debuggers, INVARIANT*[1], WITNESS* from GENERIC
  kernel config files

[1] INVARIANT* left on for ia64 at least temporarily, marcel@ will test
    to see if they are still required as they had been for stable/8.

Approved by: re (implicit)

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

12 years agoMFC: r226149
brueffer [Sat, 15 Oct 2011 12:35:58 +0000 (12:35 +0000)]
MFC: r226149

Fix an infinite loop in siba_bwn_suspend().

Approved by: re (kib)

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

12 years agoMFC: r226146
brueffer [Sat, 15 Oct 2011 12:33:24 +0000 (12:33 +0000)]
MFC: r226146

Remove dead code, "error" doesn't change between this check and the
previous one.

Approved by: re (kib)

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

12 years agoMFC: r226117
brueffer [Sat, 15 Oct 2011 12:10:34 +0000 (12:10 +0000)]
MFC: r226117

Add missing va_end() in an error case to clean up after va_start()
(already done in the non-error case).

Approved by: re (kib)

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

12 years agoMFC: r226116
brueffer [Sat, 15 Oct 2011 12:08:21 +0000 (12:08 +0000)]
MFC: r226116

Add missing va_end() to clean up after va_start().

Approved by: re (kib)

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

12 years agoMFC: r226143
brueffer [Sat, 15 Oct 2011 12:05:42 +0000 (12:05 +0000)]
MFC: r226143

Remove two dublicated assignments.

Approved by: re (kib)

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

12 years agoMFC r226082:
delphij [Fri, 14 Oct 2011 22:33:39 +0000 (22:33 +0000)]
MFC r226082:

Return proper errno when we hit error when doing sanity check.
This fixes dtrace crashes when module is not compiled with CTF
data.

Submitted by: Paul Ambrose ambrosehua at gmail.com
Approved by: re (kib)

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

12 years agoMFC 226120
qingli [Thu, 13 Oct 2011 09:21:49 +0000 (09:21 +0000)]
MFC 226120

PR: kern/159602
Submitted by: pluknet
Approved by: re (kib)

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

12 years agoMFC 226114
qingli [Thu, 13 Oct 2011 08:26:23 +0000 (08:26 +0000)]
MFC 226114

Remove the reference held on the loopback route when the interface
address is being deleted. Only the last reference holder deletes the
loopback route. All other delete operations just clear the IFA_RTSELF
flag.

PR: kern/159601
Submitted by: pluknet
Reviewed by: discussed on net@
Approved by: re (kib)

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

12 years agoMFC 226040
qingli [Thu, 13 Oct 2011 03:21:48 +0000 (03:21 +0000)]
MFC 226040

The IFA_RTSELF instead of the IFA_ROUTE flag should be checked to
determine if a loopback route should be installed for an interface
IPv6 address. Another condition is the address must not belong to a
looopback interface.

Reviewed by: hrs
Approved by: re (kib)

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

12 years agoMFC 226224
qingli [Thu, 13 Oct 2011 00:44:24 +0000 (00:44 +0000)]
MFC 226224

All indirect routes will fail the rtcheck, except for a special host
route where the destination IP and the gateway IP is the same. This
special case handling is only meant for backward compatibility reason.
The last commit introduced a bug in the route check logic, where a
valid special case is treated as an error. This patch fixes that bug
along with some code cleanup.

Suggested by: glebius smirnoff
Reviewed by: kmacy, discussed with glebius smirnoff
Approved by: re (hrs)

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

12 years agoMFC 225947
qingli [Wed, 12 Oct 2011 21:02:58 +0000 (21:02 +0000)]
MFC 225947

A system may have multiple physical interfaces, all of which are on the
same prefix. Since a single route entry is installed for the prefix
(without RADIX_MPATH), incoming packets on the interfaces that are not
associated with the prefix route may trigger an error message about
unable to allocation LLE entry, and fails L2. This patch makes sure a
valid route is present in the system, and allow the aforementioned
condition to exist and treats as valid.

Reviewed by: bz
Approved by: re (kib)

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

12 years agoMFC r226277: Add INDEX-9 to the set of INDEX files built by portsnap.
cperciva [Wed, 12 Oct 2011 20:38:07 +0000 (20:38 +0000)]
MFC r226277: Add INDEX-9 to the set of INDEX files built by portsnap.

Approved by: re (kib)

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

12 years agoHandle page dirty mask with atomics.
kib [Wed, 12 Oct 2011 20:08:25 +0000 (20:08 +0000)]
Handle page dirty mask with atomics.

MFC r225838:
Use the explicitly-sized types for the dirty and valid masks.

MFC r225840:
Use the trick of performing the atomic operation on the contained aligned
word to handle the dirty mask updates in vm_page_clear_dirty_mask().

MFC 225841
Remove locking of the vm page queues from several pmaps.

MFC r225843:
Fix grammar.

MFC r225856:
Style nit.

Approved by: re (bz)

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

12 years agoMFC: r226176
marius [Wed, 12 Oct 2011 19:23:00 +0000 (19:23 +0000)]
MFC: r226176

Recognize the Intel(R) Centrino(R) Wireless-N 130.

PR: 161162
Submitted by: Mikhail Tsatsenko
Approved by: re (kib)

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

12 years agoMFC r226028: portsnap: Detect error immediately if we can't fetch the
jilles [Wed, 12 Oct 2011 17:57:57 +0000 (17:57 +0000)]
MFC r226028: portsnap: Detect error immediately if we can't fetch the
snapshot metadata.

Also add some quotes around command substitution where useful and possible.

Approved by: re (kib)

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

12 years agoMFC r226220
hselasky [Wed, 12 Oct 2011 15:43:56 +0000 (15:43 +0000)]
MFC r226220
Fix libusb compliance.

Approved by: re (kib)

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

12 years agoMFC r226219
hselasky [Wed, 12 Oct 2011 15:43:22 +0000 (15:43 +0000)]
MFC r226219
Fix panic due to re-using in-use modem unit number.

Approved by: re (kib)

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

12 years agoMFC 226252:
tuexen [Wed, 12 Oct 2011 15:29:50 +0000 (15:29 +0000)]
MFC 226252:
Use the most significant 6 bits of the dscp instead of the least
significant ones.
This has changed in the latest version of the socket API ID and
provides backwards compatibility and gets it in syn with the
usage of the IP_TOS socket option.

Approved by: re@

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

12 years agoMFC r226118:
marius [Wed, 12 Oct 2011 15:02:06 +0000 (15:02 +0000)]
MFC r226118:

Sync with ahc(4)/ahd(4)/sym(4) etc:
Zero any sense not transferred by the device as the SCSI specification
mandates that any untransferred data should be assumed to be zero.

Reviewed by: ken
Approved by: re (kib)

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

12 years agoMFC r226105:
andre [Wed, 12 Oct 2011 11:34:14 +0000 (11:34 +0000)]
MFC r226105:
  Add back the IP header length to the total packet length field on
  raw IP sockets.  It was deducted in ip_input() in preparation for
  protocols interested only in the payload.

  On raw sockets the IP header should be delivered as it at came in
  from the network except for the byte order swaps in some fields.

Approved by: re (kib)

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

12 years agoMFC of tzdata2011l, 226289
edwin [Wed, 12 Oct 2011 11:08:09 +0000 (11:08 +0000)]
MFC of tzdata2011l, 226289

Changes in 2011i:

    Africa
    - Added South Sudan: Africa/Juba

    Australasia:
    - Samoa will go forward 24 hours at 30 December 2011 to better match
      the day of the week with its neighbours.

    Europe:
    - Europe/Kaliningrad will have the timezone KALT.

    North America:
    - Updates to Metlakatla historical data
    - Newfoundland, Labrador and Resolute will do something which I
      can't figure out.

    iso3166tab;
    - Add SS for South Sudan.

Changes in 2011j:

    - Samoa will go from 29 December 23:59:59 to 31 December 00:00:00.
    - Samoa DST will end on 1 April 2012

Changes in 2011k:

    - Gaza / West Bank goes back to standard time on 02 August 2011.
    - West Bank went bac kto DST on 30 August 2011.
    - Lots of changes in Minsk (GMT+3 without DST) and other Russian
      regions. A new timezone has been created for them, FET: Further-eastern
      European Time aka GMT+3.
    - Add Asian/Hebron to the zone.tab file.

Changes in 2011l:

    - West Bank came out of DST on 30 September 2011.
    - Fiji will g oin DST on 23 October and out of it on 26 Februari
    - State Bahia might go back to DST in 16 October 2011

    Due to legal problems, ado and Paul Eggert have to temporary suspend
    their work on the timezone database
    (http://thread.gmane.org/gmane.comp.time.tz/4133). Their work has
    been continued by volunteers on the tz community and the hosting
    of the data files is done by Robert Elz at ftp://munnari.oz.au/pub/.

Obtained from: ftp://munnari.oz.au/pub, ftp://elsie.nci.nih.gov/pub/
Approved by: re (Kostik)

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

12 years agoMFC of r226283
edwin [Wed, 12 Oct 2011 11:06:55 +0000 (11:06 +0000)]
MFC of r226283

Updates from Newsletter VI-9 and VI-10:

    Newsletter VI-9 2011-06-12
    Name changes for Fiji and Myanmar as well as other minor corrections.

    Newsletter VI-10 2011-08-09
    Code elements for South Sudan.

Approved by: re (Kostik)
Obtained from: http://www.iso.org/iso/country_codes.html

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

12 years agoMFC r226099:
ed [Wed, 12 Oct 2011 09:28:09 +0000 (09:28 +0000)]
MFC r226099:

  Tab should not blank cells.

  It seems I was under the impression that a tab differs from a single
  forward tabulation, namely that it blanks the underlying cells. This
  seems not to be the case. They are identical.

  This should fix applications like jove(1) that use tabs instead of
  explicit cursor position setting.

  Reported by:  Brett Glass <brett lariat net>

MFC r226183:

  Properly use the cursor to bound the position for CUP.

  We must take the origin region into account when clamping the cursor
  position.

Approved by: re@ (kib)

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

12 years agoMFC: r226095
marius [Wed, 12 Oct 2011 08:39:57 +0000 (08:39 +0000)]
MFC: r226095

Merge from r225950 (merged to stable/9 in r226067):

Set the sense residual properly.

Reviewed by: ken
Approved by: re (kib)

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

12 years agoMFC 225946
qingli [Wed, 12 Oct 2011 08:08:08 +0000 (08:08 +0000)]
MFC 225946

This patch allows ARP to work properly in the presence of
self-referencing routes. This patch is a rework of r223862.

Reviewed by: bz, zec
Approved by: re (kib)

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

12 years agoMFC 226222:
tuexen [Wed, 12 Oct 2011 05:18:15 +0000 (05:18 +0000)]
MFC 226222:
Get struct sctp_net_route in tune with struct route.
struct route was changed in
http://svn.freebsd.org/changeset/base/225698
and since then SCTP support was broken.

Approved by: re@

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

12 years agoMFC r226170:
nwhitehorn [Wed, 12 Oct 2011 01:57:39 +0000 (01:57 +0000)]
MFC r226170:
Use UFS labels and bsdlabels (like the 8.x memsticks) instead of GPT to
fix problems with some BIOSes.

Approved by: re (kib)

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