]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
12 years agoMFC r226654, r226657, r226658:
mm [Wed, 26 Oct 2011 08:41:41 +0000 (08:41 +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]

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

12 years agoMFC r198973
alc [Wed, 26 Oct 2011 04:38:23 +0000 (04:38 +0000)]
MFC r198973
  Add MAP_ANONYMOUS.

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

12 years agoMFC of r226771
edwin [Wed, 26 Oct 2011 01:57:47 +0000 (01:57 +0000)]
MFC of r226771

Fix breakage in tzsetup:
MD      +4700+02850     Europe/Chisinau most locations

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

12 years agoMFC r211937
alc [Tue, 25 Oct 2011 23:29:36 +0000 (23:29 +0000)]
MFC r211937
  Add the MAP_PREFAULT_READ option to mmap(2).

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

12 years agoMFC r211937
alc [Tue, 25 Oct 2011 23:19:57 +0000 (23:19 +0000)]
MFC r211937
  Add the MAP_PREFAULT_READ option to mmap(2).

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

12 years agoMFC of 226752, tzdata2011m
edwin [Tue, 25 Oct 2011 21:58:29 +0000 (21:58 +0000)]
MFC of 226752, 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/

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

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

Properly free resources in case of an error.

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

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

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

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

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

Properly free linux_gidset in case of an error.

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

12 years agoMFC: r226185
brueffer [Sat, 22 Oct 2011 18:06:56 +0000 (18:06 +0000)]
MFC: r226185

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

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

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

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

12 years agoMerge r226465 (below message) and r226467 (subsequent compile fixes).
adrian [Sat, 22 Oct 2011 01:29:35 +0000 (01:29 +0000)]
Merge r226465 (below message) and r226467 (subsequent compile fixes).

Fix an issue with 11g beacon frames which looks to be a limitation
on the largest multi-write size.

From the submitter:

==
I looked further into the magic 88-byte threshold after which the bug
occurs.  It turns out that figure included the 24-byte tx_desc, and up
to 64 bytes of beacon frame (header+data).

rum_write_multi doesn't seem happy with writing >64 bytes at a time to
the MAC register.  If I break it up into separate calls (e.g. bytes
0-63, then bytes 64-65, written at the appropriate offset) I see the
proper beacon frames being transmitted now.
==

Submitted by: Steven Chamberlain <steven@pyro.eu.org>

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

12 years agoMFC r226403:
trociny [Fri, 21 Oct 2011 05:40:30 +0000 (05:40 +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>

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

12 years agoMFC r226476:
delphij [Thu, 20 Oct 2011 21:49:26 +0000 (21:49 +0000)]
MFC r226476:

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

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

12 years agoMFC r226483:
delphij [Thu, 20 Oct 2011 21:48:09 +0000 (21:48 +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

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

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

PR: kern/160943

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

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

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

12 years agoMFH r225982: fix name in copyright statements
des [Wed, 19 Oct 2011 12:15:16 +0000 (12:15 +0000)]
MFH r225982: fix name in copyright statements

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

12 years agoMFH r225599,225800,225805: improve handling of resumed http transfers
des [Wed, 19 Oct 2011 12:14:14 +0000 (12:14 +0000)]
MFH r225599,225800,225805: improve handling of resumed http transfers

PR: bin/117277

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

12 years agoMFH r221830: mark all sockets and file descriptors close-on-exec
des [Wed, 19 Oct 2011 11:49:14 +0000 (11:49 +0000)]
MFH r221830: mark all sockets and file descriptors close-on-exec

PR: bin/151866

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

12 years agoMFH r221820-221823,225814,22653: whitespace, warnings, cosmetic nits
des [Wed, 19 Oct 2011 11:48:21 +0000 (11:48 +0000)]
MFH r221820-221823,225814,22653: whitespace, warnings, cosmetic nits

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

12 years agoMFC 226453
qingli [Tue, 18 Oct 2011 01:56:43 +0000 (01:56 +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

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

12 years agoMFC various log* improvements.
das [Mon, 17 Oct 2011 05:38:07 +0000 (05:38 +0000)]
MFC various log* improvements.

r216247 - log2f style
r216248 - log2f insignificant bug
r219360 - log10 converted to use k_log
r219361 - log10f converted to use k_log
r226375 - log2/log10 style
r226376 - log2/log10 bde's improvements; fix log(1) with FE_DOWNWARD rounding

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

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

Fix an infinite loop in siba_bwn_suspend().

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

12 years agoMFC: r226146
brueffer [Sat, 15 Oct 2011 13:08:54 +0000 (13:08 +0000)]
MFC: r226146

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

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

12 years agoMFC: r226117
brueffer [Sat, 15 Oct 2011 13:03:25 +0000 (13:03 +0000)]
MFC: r226117

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

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

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

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

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

12 years agoMFC r226156:
kib [Sat, 15 Oct 2011 12:05:31 +0000 (12:05 +0000)]
MFC r226156:
Handle the R_386_TLS_TPOFF32 relocation.

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

12 years agoMFC r226155:
kib [Sat, 15 Oct 2011 12:02:55 +0000 (12:02 +0000)]
MFC r226155:
Set TLS block for the main thread after the relocations are processed.

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

12 years agoMFC r226082:
delphij [Fri, 14 Oct 2011 22:44:51 +0000 (22:44 +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

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

12 years agoMFC r226028: portsnap: Detect error immediately if we can't fetch the
jilles [Thu, 13 Oct 2011 21:41:54 +0000 (21:41 +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.

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

12 years agoMFC 226224
qingli [Thu, 13 Oct 2011 00:37:39 +0000 (00:37 +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

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

12 years agoMerge r223566 from head:
gavin [Wed, 12 Oct 2011 21:38:48 +0000 (21:38 +0000)]
Merge r223566 from head:

  The SMCWUSBG is a zyd(4) device, not an uath(4) device.  Remove from
  the latter.

  It appears that the addition to uath(4) came in through PR kern/135009,
  which had tested another device, the SMCWUSBTG2, successfully with
  uath(4) and included the SMCWUSBG as it "has the same chipset".  I can
  find no other evidence that these two do actually share the same chipset.
  Moreover, Linux treats the SMCWUSBG as a zyd(4) device also.

This is a partial merge, as it appears that the kernel parts of r223566
were already merged in r223605.

Discussed with: hselasky, kevlo

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

12 years agoMFH r197899: grammar nit in pam.conf(5)
des [Wed, 12 Oct 2011 21:06:54 +0000 (21:06 +0000)]
MFH r197899: grammar nit in pam.conf(5)
MFH r205441: remove OPENPAM_NONNULL from pam_end()

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

12 years agoMerge r222754 from head:
gavin [Wed, 12 Oct 2011 20:36:45 +0000 (20:36 +0000)]
Merge r222754 from head:

  Add another example to mount(8) on using the "-o" argument.

PR: docs/157389
Submitted by: Warren Block <wblock wonkity.com>

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

12 years agoMFC: r225686
marius [Wed, 12 Oct 2011 19:25:12 +0000 (19:25 +0000)]
MFC: r225686

Manually set the channel when using monitor mode - the firmware
doesn't select it automatically.

Submitted by: nox
Reviewed by: bschmidt
PR: kern/160815

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

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

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

PR: 161162
Submitted by: Mikhail Tsatsenko

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

12 years agoMFC of tzdata2011l, 226289
edwin [Wed, 12 Oct 2011 09:16:45 +0000 (09:16 +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/

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

12 years agoUpdates from Newsletter VI-9 and VI-10:
edwin [Wed, 12 Oct 2011 07:12:42 +0000 (07:12 +0000)]
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.

Obtained from: http://www.iso.org/iso/country_codes.html

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

12 years agoMFC r226220
hselasky [Wed, 12 Oct 2011 06:40:49 +0000 (06:40 +0000)]
MFC r226220
Fix libusb compliance.

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

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

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

12 years agoMFC r226060:
attilio [Tue, 11 Oct 2011 14:39:19 +0000 (14:39 +0000)]
MFC r226060:
Skip TCP_SIGNATURE calculation for INP_TIMEWAIT case.

Sponsored by: Sandvine Incorporated

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

12 years agoMFC r226022:
kib [Tue, 11 Oct 2011 13:56:37 +0000 (13:56 +0000)]
MFC r226022:
Move parts of the commit log for r166167, where Tor explained the
interaction between vnode locks and vfs_busy(), into comment.

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

12 years agoMFC r225791:
kib [Tue, 11 Oct 2011 13:54:20 +0000 (13:54 +0000)]
MFC r225791:
Do not deliver SIGTRAP on exec as the normal signal, use ptracestop() on
syscall exit path. Otherwise, if SIGTRAP is ignored, that tdsendsignal()
do not want to deliver the signal, and debugger never get a notification
of exec.

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

12 years agoMFC r226026:
delphij [Tue, 11 Oct 2011 04:40:06 +0000 (04:40 +0000)]
MFC r226026:

Add the 9750 SATA+SAS 6Gb/s RAID controller card driver, tws(4).
Many thanks for their contiued support to FreeBSD.

This is version 10.80.00.003 from codeset 10.2.1 [1]

Obtained from: LSI http://kb.lsi.com/Download16574.aspx [1]

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

12 years agoMFC 225163
qingli [Mon, 10 Oct 2011 21:54:19 +0000 (21:54 +0000)]
MFC 225163

When the RADIX_MPATH kernel option is enabled, the RADIX_MPATH code tries
to find the first route node of an ECMP chain before executing the route
command. If the system has a default route, and the specific route argument
to the command does not exist in the routing table, then the default route
would be reached. The current code does not verify the reached node matches
the given route argument, therefore erroneous removed the entry. This patch
fixes that bug.

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

12 years agoMFC 226040
qingli [Mon, 10 Oct 2011 21:48:40 +0000 (21:48 +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

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

12 years agoMFC 225223
qingli [Mon, 10 Oct 2011 21:46:37 +0000 (21:46 +0000)]
MFC 225223

When an interface address route is removed from the system, another
route with the same prefix is searched for as a replacement. The
current code did not bypass routes that have non-operational
interfaces. This patch fixes that bug and will find a replacement
route with an active interface.

PR: kern/159603
Submitted by: pluknet, ambrisko at ambrisko dot com
Reviewed by: discussed on net@

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

12 years agoMFC 226120
qingli [Mon, 10 Oct 2011 21:43:53 +0000 (21:43 +0000)]
MFC 226120

Do not try removing an ARP entry associated with a given interface
address if that interface does not support ARP. Otherwise the
system will generate error messages unnecessarily due to the missing
entry.

PR: kern/159602
Submitted by: pluknet

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

12 years agoMFC 226114
qingli [Mon, 10 Oct 2011 21:41:34 +0000 (21:41 +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@

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

12 years agoMFC 222438
qingli [Mon, 10 Oct 2011 21:38:19 +0000 (21:38 +0000)]
MFC 222438

Supply the LLE_STATIC flag bit to in_ifscurb() when scrubbing interface
address so that proper clean up will take place in the routing code.
This patch fixes the bootp panic on startup problem. Also, added more
error handling and logging code in function in_scrubprefix().

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

12 years agoMFC 222143
qingli [Mon, 10 Oct 2011 21:34:55 +0000 (21:34 +0000)]
MFC 222143

The statically configured (permanent) ARP entries are removed when an
interface is brought down, even though the interface address is still
valid. This patch maintains the permanent ARP entries as long as the
interface address (having the same prefix as that of the ARP entries)
is valid.

Reviewed by: delphij

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

12 years agoMFC 225947
qingli [Mon, 10 Oct 2011 20:54:20 +0000 (20:54 +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

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

12 years agoMFC 225946
qingli [Mon, 10 Oct 2011 19:41:00 +0000 (19:41 +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

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

12 years agoMFC: r198357
brueffer [Mon, 10 Oct 2011 18:18:40 +0000 (18:18 +0000)]
MFC: r198357

Check pointer for NULL before dereferencing it, not after.

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

12 years agoMFC: r198358
brueffer [Mon, 10 Oct 2011 17:53:06 +0000 (17:53 +0000)]
MFC: r198358

Check pointer for NULL before dereferencing it, not after.

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

12 years agoMFC: r226081, r226104
rmacklem [Mon, 10 Oct 2011 14:35:26 +0000 (14:35 +0000)]
MFC: r226081, r226104
A crash reported on freebsd-fs@ on Sep. 23, 2011 under the subject
heading "kernel panics with RPCSEC_GSS" appears to be caused by a
corrupted tailq list for the client structure. Looking at the code, calls
to the function svc_rpc_gss_forget_client() were done in an SMP unsafe
manner, with the svc_rpc_gss_lock only being acquired in the function
and not before it. As such, when multiple threads called
svc_rpc_gss_forget_client() concurrently, it could try and remove the
same client structure from the tailq lists multiple times.
The patch fixes this by moving the critical code into a separate
function called svc_rpc_gss_forget_client_locked(), which must be
called with the lock held. For the one case where the caller would
have no interest in the lock, svc_rpc_gss_forget_client() was retained,
but a loop was added to check that the client structure is still in
the tailq lists before removing it, to make it safe for multiple
concurrent calls.
Also, remove an extraneous "already" from a comment introduced by r226081.

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

12 years agoMFC r225943:
kib [Mon, 10 Oct 2011 13:18:55 +0000 (13:18 +0000)]
MFC r225943:
Do not allow the kernel to access usermode pages without installed
fault handler. Panic immediately in such situation, on i386 and amd64.

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

12 years agoMFC r225942:
kib [Mon, 10 Oct 2011 13:16:39 +0000 (13:16 +0000)]
MFC r225942:
Assert that exiting process does not return to usermode.

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

12 years agoMFC r225894:
kib [Mon, 10 Oct 2011 13:03:14 +0000 (13:03 +0000)]
MFC r225894:
The sigwait(3) function shall not return EINTR, according to the
POSIX/SUSvN. The sigwait(2) syscall does return EINTR, and libc.so.7
contains the wrapper sigwait(3) which hides EINTR from callers.  The
EINTR return is used by libthr to handle required cancellation point
in the sigwait(3).

To help the binaries linked against pre-libc.so.7, i.e. RELENG_6 and
earlier, to have right ABI for sigwait(3), transform EINTR return from
sigwait(2) into ERESTART.

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

12 years agoMFC:
brueffer [Mon, 10 Oct 2011 12:16:45 +0000 (12:16 +0000)]
MFC:

One hunk missed during the merge of r225560 (spelling fixes in comments).

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

12 years agoMFC: r225560
brueffer [Mon, 10 Oct 2011 12:06:36 +0000 (12:06 +0000)]
MFC: r225560

Minor spelling, wording and punctuation fixes in comments.

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

12 years agoPull mergeinfo up to the directory.
gjb [Mon, 10 Oct 2011 11:23:19 +0000 (11:23 +0000)]
Pull mergeinfo up to the directory.

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

12 years agoMFC r225858, 225859, 226172:
gjb [Mon, 10 Oct 2011 11:14:44 +0000 (11:14 +0000)]
MFC r225858, 225859, 226172:

225858:
 - Document and provide an example for PORTS_MODULES [1]

225859:
 - Whitespace cleanup

226172:
 - Bump date

PR: 161017 [1]

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

12 years agoMFC 225908, 225912, 225927:
gjb [Mon, 10 Oct 2011 11:11:59 +0000 (11:11 +0000)]
MFC 225908, 225912, 225927:

225908:
- Reorder default ps(1) output according to reality.

225912:
- there's no reason the semantics of the -x flag are being explained in
  the -a flag description
- be more precise regarding the relation between the -a flag and the
  security.bsd.see_other_uids sysctl
- describe the format of the -t flag's argument
- 'con' no longer is a possible entry in the 'TT' column
- explain that the 'TT' column refers to pseudo-terminals
  via mere numbers
- add a hint in the 'tt' keyword description that a
  keyword 'tty' exists, which will give the full terminal pathname

225859:
- Correct a typo that was introduced in 225912

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

12 years agoMFC r225857:
gjb [Mon, 10 Oct 2011 11:06:48 +0000 (11:06 +0000)]
MFC r225857:
 - Fix a few grammar and mdoc nits in script.1

PR: 161088

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

12 years agoMFC r225878:
ae [Thu, 6 Oct 2011 14:35:09 +0000 (14:35 +0000)]
MFC r225878:
  Add Oxford Semiconductor OXPCIe952 (0xc138) 1 port serial card.

  PR: kern/160895
  Submitted by: Konstantin V. Krotov

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

12 years agoMFC r225828:
mm [Wed, 5 Oct 2011 20:00:50 +0000 (20:00 +0000)]
MFC r225828:
Remove assertion that prevents zfs rename of datasets with mountpoint=none
or mountpoint=legacy that have children datasets. This also fixes dataset
rename when receiving incremental snapshots as reported on freebsd-fs@

This assertion was made triggerable by opensolaris change #10196.

PR: bin/160400
Reviewed by: pjd

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

12 years agoMFC: r225801
jkim [Wed, 5 Oct 2011 15:52:04 +0000 (15:52 +0000)]
MFC: r225801

Avoid accidental conflicts with C++ operator keywords.

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

12 years agoFix a bug in UNIX socket handling in the linux emulator which was
cperciva [Tue, 4 Oct 2011 19:07:38 +0000 (19:07 +0000)]
Fix a bug in UNIX socket handling in the linux emulator which was
exposed by the security fix in FreeBSD-SA-11:05.unix.

Approved by: so (cperciva)
Approved by: re (kib)
Security: Related to FreeBSD-SA-11:05.unix, but not actually
a security fix.

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

12 years agoMFC r225885:
bz [Tue, 4 Oct 2011 13:31:57 +0000 (13:31 +0000)]
MFC r225885:

 Fix an obvious bug from r186196 shadowing a variable, not correctly
 appending the new mbuf to the chain reference but possibly causing an mbuf
 nextpkt loop leading to a memory used after handoff (or having been freed)
 and leaking an mbuf here.

 Reviewed by: rwatson, brooks

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

12 years agoMFC r225837:
bz [Tue, 4 Oct 2011 13:18:14 +0000 (13:18 +0000)]
MFC r225837:

 Pass the fibnum where we need filtering of the message on the
 rtsock allowing routing daemons to filter routing updates on an
 rtsock per FIB.

 Adjust raw_input() and split it into wrapper and a new function
 taking an optional callback argument even though we only have one
 consumer [1] to keep the hackish flags local to rtsock.c.

 PR: kern/134931
 Submitted by: multiple (see PR)
 Suggested by: rwatson [1]
 Reviewed by: rwatson

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

12 years agoMFC r225677:
kib [Tue, 4 Oct 2011 11:23:03 +0000 (11:23 +0000)]
MFC r225677:
Do not overallocate on the stack. Threaded code might use custom stack
size.

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

12 years agoMFC r225809:
trociny [Tue, 4 Oct 2011 11:08:31 +0000 (11:08 +0000)]
MFC r225809:

When script(1) reads EOF from input it starts spinning on zero-byte
reads eating 100% CPU. Fix this by skipping select on STDIN after
reading EOF -- permanently if STDIN is not terminal and for one second
if it is.

Also after reading EOF from STDIN we have to pass it to the program
being scripted. The previous approach was to write zero bytes into the
pseudo-terminal. This does not work because zero-byte write does not
have any effect on read. Fix this by sending VEOF instead.

Submitted by: Ronald Klop <ronald-freebsd8@klop.yi.org>
Discussed with: kib, Chris Torek <chris.torek@gmail.com>

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

12 years agoMFC r225790:
kib [Tue, 4 Oct 2011 10:08:02 +0000 (10:08 +0000)]
MFC r225790:
Install ciss(4) ioctl header.

PR: kern/109813

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

12 years agoMFC r225699:
kib [Tue, 4 Oct 2011 09:55:15 +0000 (09:55 +0000)]
MFC r225699:
Restore the writing of the .bss sections of the dsos.
Revert the optimization of using mprotect(2) to establish .bss, overlap
the section with mmap(2).

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

12 years agoMFC r225798: Improve battery capacity reporting
emaste [Tue, 4 Oct 2011 00:29:10 +0000 (00:29 +0000)]
MFC r225798: Improve battery capacity reporting

  When a status pointer is passed in mfi_dcmd_command does not return an
  errno (if the ioctl is successful), so move the test for NO_HW_PRESENT
  outside of the error case.  This should fix incorrect reporting for
  systems with a dead or no battery.

  Additionally, handle error codes other than NO_HW_PRESENT by omitting
  the battery capacity display.  LSI's supercap-based parts (CV series)
  report their data using the same interface as battery-based parts,
  except that they do not include the capacity stats (state of charge,
  cumulative charge cycles, etc.)

PR: bin/160581

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

12 years agoRestore the td_syscalls counter, that was erronously removed in the r225855.
kib [Mon, 3 Oct 2011 20:05:21 +0000 (20:05 +0000)]
Restore the td_syscalls counter, that was erronously removed in the r225855.
Note that this is a direct commit to stable/8, td_syscalls was removed in
head by r210138.

Submitted by: jhb

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

12 years agoMFC r225662:
attilio [Mon, 3 Oct 2011 10:23:28 +0000 (10:23 +0000)]
MFC r225662:
Cleanup #PROCHOT sticky assertion.

Sponsored by: Sandvine Incorporated

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

12 years agoBring nanobsd.sh up to date.
mr [Sun, 2 Oct 2011 13:48:15 +0000 (13:48 +0000)]
Bring nanobsd.sh up to date.

MFC:
r212938: Support new variable NANO_LABEL.
r212990: Make the labels match the device name that's mounted, not just the
   slice they are on.
r214955:
  - Set -x flag when executing customisation scripts to aid in debugging them.
  - Use KERNCONFDIR with KERNCONF instead of copying the kernel config into
    the source tree so included kernel configs work.
  - Put more stuff in the _.bk/_.ik log file, not just make statements.
  - Add the kernel config name to the pprint during kernel installation.
  - Add NANO_MODULES providing a list of modules to build and install.
r215069: Document NANO_CFGDIR and NANO_DATADIR
r215070: Build make.conf when the world is not selected to build, but the
  kernel is.
r215081: Insulate the nanobsd build from the current system by opting out of
  the SRCCONF processing.
r216144: _WITHOUT_SRCCONF has too much baggage.  Instead, use the simpler
  SRCCONF=/dev/null.
r216145:
  - Mount the device async when we're doing the copy.
  - Create a sparse file instead of a fully zerod one.  This trades the
    possibiltiy of running out of space during the build for the speed
    gain not having do write all those zeros...
r216928: Put in the other half of the SRCCONF patch.
r216929: Bump the media size from approx 600MB to approx 750MB.  The great
  hob-nailed tennis shoe of progress demands it!
r220091: Use ${NANO_WORLDDIR}/var/empty as copy source since
  it has no schg flag set.
r221850: Copy symbolic links as files rather than recreating the links.
r221851: Implement -f to inhibit copying s1 partition out for speed.
r221852: Add ${} around variable dereference...
r221856: If there's no package directory, don't try to install packages from
  it.  Instead, report that 0 packages are reported.
r221877: Restore BOOT2CFG, accidentally removed in r212938.
r222535: Don't need (and can't use) -L to copy links here.

Parts of the MFC's requested by: jpaetzel@

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

12 years agoMFC r225869:
mav [Sun, 2 Oct 2011 12:18:06 +0000 (12:18 +0000)]
MFC r225869:
- Add special support for the MFI_CMD ioctl with MFI_CMD_STP command,
used by present MegaCLI version. It has some special meaning for the
first s/g list entry, while the main s/g list begins from the the second
entry, and those lists should remain separate after loading to the
busdma map.
 - Fix bug in 32bit ioctl compatibility shims when s/g list consists of
more then on element.

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

12 years agoMFC r225339:
delphij [Sun, 2 Oct 2011 09:44:28 +0000 (09:44 +0000)]
MFC r225339:

Expose more variables from coretemp(4) via sysctl:

 - tjmax - Tj(max) value from the CPU
 - delta - current delta reading
 - resolution - sensor resolution in Celsius
 - throttle_log - whether a #PROCHOT was asserted since last reset

Submitted by: Mark Johnston <markjdb gmail.com> (mostly)

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

12 years agoMFC: r225775
gabor [Sat, 1 Oct 2011 13:54:48 +0000 (13:54 +0000)]
MFC: r225775
  - Move misplaced reference
  - Sort references
  - s/Since/Because/

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

12 years agoMFC r225172:
kib [Sat, 1 Oct 2011 12:35:09 +0000 (12:35 +0000)]
MFC r225172:
Clarify the behaviour of sigwait() on signal interruption, and note
the difference between sigwait() and sigtimedwait()/sigwaitinfo().

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

12 years agoMFC r212405 (by davidxu):
kib [Sat, 1 Oct 2011 11:59:45 +0000 (11:59 +0000)]
MFC r212405 (by davidxu):
Because POSIX does not allow EINTR to be returned from sigwait(),
add a wrapper for it in libc and rework the code in libthr, the
system call still can return EINTR, we keep this feature.

Discussed with: davidxu

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

12 years agoMFC r211526:
kib [Sat, 1 Oct 2011 11:49:24 +0000 (11:49 +0000)]
MFC r211526:
Reduce redundant code.

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

12 years agoMFC r225586:
ae [Thu, 29 Sep 2011 15:05:16 +0000 (15:05 +0000)]
MFC r225586:
  Add IPv6 support to the ng_ipfw(4) [1]. Also add ifdefs to be able
  build it with and without INET/INET6 support.

  Submitted by: Alexander V. Chernikov <melifaro at yandex-team.ru> [1]
  Tested by: Alexander V. Chernikov <melifaro at yandex-team.ru> [1]

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

12 years agoMFC r225789:
mav [Thu, 29 Sep 2011 10:42:51 +0000 (10:42 +0000)]
MFC r225789:
Add one more ID for the Marvell 88SE9128 6Gbps SATA controller.

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

12 years agoMerge the optimizations for the syscall entry and leave.
kib [Thu, 29 Sep 2011 00:39:56 +0000 (00:39 +0000)]
Merge the optimizations for the syscall entry and leave.

MFC r225474:
Inline the syscallenter() and syscallret(). This reduces the time measured
by the syscall entry speed microbenchmarks by ~10% on amd64.

MFC r225475:
Perform amd64-specific microoptimizations for native syscall entry
sequence. The effect is ~1% on the microbenchmark.

In particular, do not restore registers which are preserved by the
C calling sequence. Align the jump target. Avoid unneeded memory
accesses by calculating some data in syscall entry trampoline.

MFC r225483:
The jump target shall be after the padding, not into it.

MFC r225575:
Microoptimize the return path for the fast syscalls on amd64. Arrange
the code to have the fall-through path to follow the likely target.
Do not use intermediate register to reload user %rsp.

MFC r225576:
Put amd64_syscall() prototype in md_var.h.

Tested by:  Alexandr Kovalenko <never nevermind kiev ua>

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

12 years agoFix handling of corrupt compress(1)ed data. [11:04]
bz [Wed, 28 Sep 2011 08:47:17 +0000 (08:47 +0000)]
Fix handling of corrupt compress(1)ed data. [11:04]

Add missing length checks on unix socket addresses. [11:05]

Approved by: so (cperciva)
Approved by: re (kensmith)
Security: FreeBSD-SA-11:04.compress
Security: CVE-2011-2895 [11:04]
Security: FreeBSD-SA-11:05.unix

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

12 years agoMFC r225794:
attilio [Tue, 27 Sep 2011 13:50:30 +0000 (13:50 +0000)]
MFC r225794:
Backout r225372 MFC.

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

12 years ago- MFC r225354:
stas [Tue, 27 Sep 2011 07:33:04 +0000 (07:33 +0000)]
- MFC r225354:
  - Fix NULL pointer dereference when a packet of uneven size is being
  transmitted.

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

12 years agoMFC r225695:
hselasky [Tue, 27 Sep 2011 07:19:01 +0000 (07:19 +0000)]
MFC r225695:
Fix minor race in device side mode.

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

12 years agoMFC r225675:
attilio [Mon, 26 Sep 2011 10:12:16 +0000 (10:12 +0000)]
MFC r225675:
Initialize the pmap lock for the kernel pmap when it is really
appropriate.

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

12 years agoMFC r225659:
hselasky [Mon, 26 Sep 2011 07:38:01 +0000 (07:38 +0000)]
MFC r225659:
Implement missing USB debug information functions.

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

12 years agoFollow up to r225738 to fix the mismerge of share/man/man4/Makefile.
lstewart [Fri, 23 Sep 2011 05:35:24 +0000 (05:35 +0000)]
Follow up to r225738 to fix the mismerge of share/man/man4/Makefile.

This is an intentional direct commit to the 8-STABLE branch.

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

12 years agoMFC r225583:
lstewart [Fri, 23 Sep 2011 05:28:09 +0000 (05:28 +0000)]
MFC r225583:

Rename the cc.4 and cc.9 modular congestion control related man pages to
mod_cc.4 and mod_cc.9 respectively to avoid any possible confusion with the cc.1
gcc man page. Update references to these man pages where required.

Requested by: Grenville Armitage

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

12 years agoMFC r202992:
gabor [Thu, 22 Sep 2011 22:08:09 +0000 (22:08 +0000)]
MFC r202992:

Cache failing and opened catalogs in catopen() and related functions.
Continuous catopen() calls cause 4 failig stat(2) each, which means a lot
of overhead.  It is also a good idea to keep the opened catalogs in the memory
to speed up further catopen() calls to the same catalog since these catalogs
are not big at all.  In this case, we count references and only free() the
allocated space when the reference count reaches 0.  The reads and writes to
the cache are syncronized with an rwlock when these functions are called from
a threaded program.

MFC r202993, r203174, r203719, r204110:

Small fixes and style nits for the above change.

Approved by: delphij (mentor)

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

12 years agoMFC r225587:
jh [Thu, 22 Sep 2011 17:59:33 +0000 (17:59 +0000)]
MFC r225587:

Expose "log" in the default devfs rules. /etc/rc.d/jail creates /dev/log
as a symbolic link.

PR: conf/160711

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

12 years agoMFC r225516:
attilio [Thu, 22 Sep 2011 11:07:11 +0000 (11:07 +0000)]
MFC r225516:
Return ENOSPC rather than ENXIO when dump_write() cannot proceed in
order to correctl deal with consumers.

Sponsored by: Sandvine Incorporated

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