]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC r218205,r218821,r218891,r219390,r219611,r220654,r220655,r220656: sh:
jilles [Wed, 20 Apr 2011 22:10:44 +0000 (22:10 +0000)]
MFC r218205,r218821,r218891,r219390,r219611,r220654,r220655,r220656: sh:
New testcases that already work in stable/8.

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

13 years agoFix CIDR parsing bug in mountd ACLs.
cperciva [Wed, 20 Apr 2011 21:00:24 +0000 (21:00 +0000)]
Fix CIDR parsing bug in mountd ACLs.

Approved by: so (cperciva)
Security: FreeBSD-SA-11:01.mountd

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

13 years agoMFC r220594:
pluknet [Wed, 20 Apr 2011 11:15:17 +0000 (11:15 +0000)]
MFC r220594:

 Remove the now defunct kern.ipc.nmbufs tunable.

PR: kern/132497 (part)

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

13 years agoMFC r220615:
mav [Tue, 19 Apr 2011 20:44:44 +0000 (20:44 +0000)]
MFC r220615:
Refactor hard-reset implementation in mvs(4).

Instead of spinning in a tight loop for up to 15 seconds, polling for device
readiness while it spins up, return reset completion just after PHY reports
"connect well" or 100ms connection timeout. If device was found, use callout
for checking device readiness with 100ms period up to full 31 second timeout.

This fixes system freeze for 5-10 seconds on drives hot plug-in.

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

13 years agoMFC r220789:
mav [Tue, 19 Apr 2011 20:41:00 +0000 (20:41 +0000)]
MFC r220789:
Handle ready timeout during polled operation same as done in mvs(4) before.

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

13 years agoMFC r220777:
mav [Tue, 19 Apr 2011 20:40:00 +0000 (20:40 +0000)]
MFC r220777:
 - Tune different wait loops to cut some more milliseconds from reset time.
 - Do not call ahci_start() before device signature received. It is required
by the specification and caused non-fatal reset timeouts on AMD chipsets.

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

13 years agoMFC r220657:
mav [Tue, 19 Apr 2011 20:38:50 +0000 (20:38 +0000)]
MFC r220657:
Some changes around hot-plug and interface power-management:
 - use ATA_SE_EXCHANGED (SError.DIAG.X) bit to detect hot-plug events when
power-management enabled and ATA_SE_PHY_CHANGED (SError.DIAG.N) can't be
trusted;
 - on controllers supporting staggered spin-up (SS) put unused channels
into Listen state instead of Off. It should still save some power, but
allow plug-in events to be detected;
 - on controllers supporting cold presence detection (CPD), when power
management enabled, use CPD events to detect hot-plug in addition to PHY
events.

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

13 years agoMFC r197083
emax [Tue, 19 Apr 2011 18:18:02 +0000 (18:18 +0000)]
MFC r197083

Get those pesky RFCOMM RPM data bits right. This is likely a noop.

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

13 years agoMFC r220602:
mav [Tue, 19 Apr 2011 17:41:17 +0000 (17:41 +0000)]
MFC r220602:
Improve SATA Asynchronous Notification feature support in CAM:
 - make SATA SIMs announce capabilities to handle SDB with Notification bit;
 - make PMP driver honor this SIMs capability;
 - make SATA XPT to negotiate and enable this feature for ATAPI devices.

This feature allows supporting SATA ATAPI devices to inform system about
some events happened, that may require attention. In my case this allows
LG GH22LS50 SATA DVR-RW drive to report tray open/close events. Events
reported to CAM in form of AC_SCSI_AEN async. Further they could be used
as a hints for checking device status and reporting media change to upper
layers, for example, via spoiling mechanism of GEOM.

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

13 years agoMFC r220591:
mav [Tue, 19 Apr 2011 17:14:57 +0000 (17:14 +0000)]
MFC r220591:
As soon as siis_reset() doesn't waits for device readiness, but only for
controller port readiness (that should set just after PHY ready signal),
reduce wait time from 10s to 1s before trying more aggressive reset method.

This should improve system responsibility in some failure conditions.

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

13 years agoMFC r220576:
mav [Tue, 19 Apr 2011 17:13:14 +0000 (17:13 +0000)]
MFC r220576:
Refactor hard-reset implementation in ahci(4).

Instead of spinning in a tight loop for up to 15 seconds, polling for device
readiness while it spins up, return reset completion just after PHY reports
"connect well" or 100ms connection timeout. If device was found, use callout
for checking device readiness with 100ms period up to full 31 second timeout.

This fixes system freeze for 5-10 seconds on drives hot plug-in.

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

13 years agoMFC r220569:
mav [Tue, 19 Apr 2011 17:08:29 +0000 (17:08 +0000)]
MFC r220569:
Implement automatic SCSI sense fetching for mvs(4).

Make few improvements/changes to ATAPI PIO support to pass most of scgcheck
(cdrtools) tests.

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

13 years agoMFC r220566:
mav [Tue, 19 Apr 2011 17:06:43 +0000 (17:06 +0000)]
MFC r220566:
Implement automatic SCSI sense fetching for siis(4).

Fix device freeze leak on recovery request (READ LOG, REQUEST SENSE)
failure.

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

13 years agoMFC r220565:
mav [Tue, 19 Apr 2011 17:04:58 +0000 (17:04 +0000)]
MFC r220565:
Implement automatic SCSI sense fetching for ahci(4).

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

13 years agoMFC r220563:
mav [Tue, 19 Apr 2011 17:01:05 +0000 (17:01 +0000)]
MFC r220563:
Implement automatic SCSI sense fetching for ata(4) in ATA_CAM mode.

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

13 years agoMFC r220449:
mav [Tue, 19 Apr 2011 16:52:36 +0000 (16:52 +0000)]
MFC r220449:
Add reference to led(4), supported now.
Add some details about supported chips.

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

13 years agoMFC r217877, r217883:
mav [Tue, 19 Apr 2011 16:51:17 +0000 (16:51 +0000)]
MFC r217877, r217883:
Hardware supported by siis(4) allows software control over activity LEDs.
Expose that functionality to led(4) OR-ing it with regular LED activity.

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

13 years agoMFC r220413:
mav [Tue, 19 Apr 2011 16:46:51 +0000 (16:46 +0000)]
MFC r220413:
Add one more ID for Marvell 88SE912x chip found on Asus U3S6 card.

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

13 years agoMFC r219341:
mav [Tue, 19 Apr 2011 16:45:56 +0000 (16:45 +0000)]
MFC r219341:
Add some more IDs of HighPoint RocketRAID 64x.

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

13 years agoMFC r218596, r218605:
mav [Tue, 19 Apr 2011 16:43:55 +0000 (16:43 +0000)]
MFC r218596, r218605:
Disable NCQ for multiport Marvell 88SX61XX SATA controllers. Simultaneous
active I/O to several disks (copying large file on ZFS) causes timeout after
just a few seconds of run. Single port 88SX6111 seems like not affected.

Skip reading transferred bytes count for these controllers. It works for
88SX6111, but 88SX6145 always returns zero there. Haven't tested others,
but better to be safe.

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

13 years agoMFC r218149 (by jfv):
mav [Tue, 19 Apr 2011 16:42:07 +0000 (16:42 +0000)]
MFC r218149 (by jfv):
Support for the new Patsburg PCH chipset:
     - SMBus Controller
     - SATA Controller
     - HD Audio Controller
     - Watchdog Controller

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

13 years agoMFC r218140 (jfv):
mav [Tue, 19 Apr 2011 16:40:58 +0000 (16:40 +0000)]
MFC r218140 (jfv):
Support for the new DH89xxCC PCH chipset including:
      - SATA controller
      - Watchdog timer
      - SMBus controller

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

13 years agoMFC r211905 (by jfv):
mav [Tue, 19 Apr 2011 16:39:03 +0000 (16:39 +0000)]
MFC r211905 (by jfv):
Add support for Intel Cougar Point SMBus controller.

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

13 years agoMFC r220116
emax [Tue, 19 Apr 2011 16:33:08 +0000 (16:33 +0000)]
MFC r220116

Do not use word 'flood' as it not entirely correct. Use better 'no delay'
description. While here, replace atoi(3) with strtol(3).

Submitted by: arundel

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

13 years agoMFC r220617:
pluknet [Tue, 19 Apr 2011 16:29:56 +0000 (16:29 +0000)]
MFC r220617:

 Remove vestiges of disklabel(5).

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

13 years agoMFC r220616:
mav [Tue, 19 Apr 2011 16:26:55 +0000 (16:26 +0000)]
MFC r220616:
Properly log few more ATA commands used by the kernel.

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

13 years agoMFC r220412, r220414, r220454, r220618, r220814:
mav [Tue, 19 Apr 2011 16:23:07 +0000 (16:23 +0000)]
MFC r220412, r220414, r220454, r220618, r220814:
- Make ada(4) driver to control device write cache, same as ata(4) does.
Add kern.cam.ada.write_cache sysctl/tunable to control it alike hw.ata.wc.
- Add kern.cam.ada.X.write_cache tunables/sysctls to control write caching
on per-device basis.
- While adding support for per-device sysctls, merge from graid branch
support for ADA_TEST_FAILURE kernel option, which opens few more sysctl,
allowing to simulate read and write errors for testing purposes.

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

13 years agoMFC r214989:
mav [Tue, 19 Apr 2011 16:10:08 +0000 (16:10 +0000)]
MFC r214989:
When requesting sense data for SIM not doing it automatically (such as
ATAPI or USB), request only as much data as requested by consumer.
On the way back -- report how much sense data we have actually received.

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

13 years agoMFC r220619:
bz [Tue, 19 Apr 2011 08:56:26 +0000 (08:56 +0000)]
MFC r220619:

  The mbuf_frag_size always was and is file local and not queried from base
  user space tools via kvm.  Mark it static.

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

13 years agoMFC r220463:
bz [Tue, 19 Apr 2011 08:29:28 +0000 (08:29 +0000)]
MFC r220463:

 Remove a check in udp6_send() that prevented v4-mapped v6 addresses from
 working.  We store v4 and v6 addresses as a union but for v4-mapped
 addresses only store the 32bits w/o the ::ffff: word.  That failed the
 check as for example 127.0.0.1 would be ::7f00:1 rather than ::ffff:7f00:1
 and the IN6_IS_ADDR_V4MAPPED() never worked here.  Given we can hardly get
 here with an unbound local address or invalid inp_vflags remove the check.

 Reported by: tuexen
 Reviewed by: tuexen

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

13 years agoMFC r220462:
bz [Tue, 19 Apr 2011 08:17:20 +0000 (08:17 +0000)]
MFC r220462:

 After r219579 and r219779 unbreak v4-mapped v6 sockets for UDP
 some more.  Similar to what we do for TCP check for v4-mapped
 addresses and then handle them or the normal v6 address case.
 For either set inp_vflags before calling into the pcb connect
 function so that we have an unambiguous view in case we need to
 set the local address or port.

 Looked at: tuexen (as part of more)

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

13 years agoMFC r220596: Show client's access cache statistics.
ru [Tue, 19 Apr 2011 07:54:21 +0000 (07:54 +0000)]
MFC r220596: Show client's access cache statistics.

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

13 years agoMFC r219779:
bz [Tue, 19 Apr 2011 07:53:04 +0000 (07:53 +0000)]
MFC r219779:

 Properly check for an IPv4 socket after r219579.

 In some cases as udp6_connect() without an earlier bind(2) to an
 address, v4-mapped sockets allowed and a non mapped destination
 address, we can end up here with both v4 and v6 indicated:
  inp_vflag = (INP_IPV4|INP_IPV6|INP_IPV6PROTO)

 In that case however laddrp is NULL as the IPv6 path does not
 pass in a copy currently.

 Reported by: Pawel Worach (pawel.worach gmail.com)
 Tested by: Pawel Worach (pawel.worach gmail.com)

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

13 years agoMFC r220614:
ru [Tue, 19 Apr 2011 07:44:12 +0000 (07:44 +0000)]
MFC r220614:

Fixed firmware revision decoding:
- the major is 7-bit binary encoded
- the minor is BCD encoded

PR: kern/151586

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

13 years agoMFC r220595:
ru [Tue, 19 Apr 2011 07:36:53 +0000 (07:36 +0000)]
MFC r220595:

- Fixed nfs_printf() to use vprintf().
- Fixed vfs.nfs.acdebug sysctl's description.
- Fixed panic when compiled with NFS_ACDEBUG.

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

13 years agoMFC r219579:
bz [Tue, 19 Apr 2011 07:23:16 +0000 (07:23 +0000)]
MFC r219579:

 Merge the two identical implementations for local port selections from
 in_pcbbind_setup() and in6_pcbsetport() in a single in_pcb_lport().

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

13 years agoMFC r220568:
ae [Tue, 19 Apr 2011 05:09:17 +0000 (05:09 +0000)]
MFC r220568:
  Restore previous behaviour - always match rule when we doing tagging,
  even when tag is already exists.

  Reported by: Vadim Goncharov

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

13 years agoMFC 220430,220431,220452,220460:
jhb [Mon, 18 Apr 2011 18:55:27 +0000 (18:55 +0000)]
MFC 220430,220431,220452,220460:
If a system call does not request a full interrupt return, use a fast
path via the sysretq instruction to return from the system call.  This
resolves most of the performance regression in system call microbenchmarks
between 7 and 8 on amd64.

While here, trim an instruction (and memory access) from the doreti path
and fix a typo in a comment.

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

13 years agoMFC r220643:
np [Mon, 18 Apr 2011 18:18:07 +0000 (18:18 +0000)]
MFC r220643:

There is no need to request a tx credit flush if such a request is already
pending.

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

13 years agoMFC: r219430
jkim [Mon, 18 Apr 2011 15:55:02 +0000 (15:55 +0000)]
MFC: r219430

Remove custom interrupt dispatcher.  This is a pointless micro-optimization
and it may cause problems if SS and SP are modified by real-mode code.

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

13 years agoMFC r220743:
bz [Mon, 18 Apr 2011 12:18:27 +0000 (12:18 +0000)]
MFC r220743:

  Fix IPv6 ND.  After r219562 we in nd6_ns_input() were erroneously always
  passing the cached proxydl reference (sockaddr_dl initialized or not) to
  nd6_na_output().  nd6_na_output() will thus assume a proxy NA.  Revert to
  conditionally passing either &proxydl or NULL if no proxy case desired.

  Tested by: ipv6gw and ref9-i386
  Tested by: Pete French (petefrench ingresso.co.uk on stable)
  Reported by: Pete French (petefrench ingresso.co.uk on stable)
  Reported by: bz, simon on Y! cluster
  Reported by: kib
PR: kern/151908
X-Early-MFC: yes

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

13 years agoRework change made at r203146. Instead of reporting all wire errors as
mav [Mon, 18 Apr 2011 11:25:13 +0000 (11:25 +0000)]
Rework change made at r203146. Instead of reporting all wire errors as
SCSI status errors to CAM (that was wrong, as it too often turned retriable
wire errors into non-retriable REQUEST SENSE errors), do it only for STALL
errors on control pipe of the CBI devices. STALL on control pipe is just
a one of the ways to report error for CBI devices.

PR: usb/150401, usb/154593.
Reviewed by: hselasky

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

13 years agoMFC r220319:
pluknet [Mon, 18 Apr 2011 08:49:25 +0000 (08:49 +0000)]
MFC r220319:

 Do not increment num_args if strsep(3) returned an empty field.
 That fixes devstat_buildmatch(3) crashes with certain strings.

Reported by: arundel

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

13 years agoMFC of r220448
edwin [Sun, 17 Apr 2011 21:52:57 +0000 (21:52 +0000)]
MFC of r220448

When specifying the -t option (send tag in front of message), this tag
should also be forwarded to the remote logging host, not only when the
logging is done locally.

PR:             bin/154324
Submitted by:   Callum Gibson <callumgibson@optusnet.com.au>

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

13 years agoMFC r220556:
bz [Sat, 16 Apr 2011 23:38:35 +0000 (23:38 +0000)]
MFC r220556:

  If building (custom) FreeBSD images people tend to patch param.h.  In case
  this happens just before the build is started (within the same second)
  CHECK_TIME actually triggers thinking param.h is in the future (see f_Xtime,
  c_Xtime logi in find(1) sources for the details in !F_EXACTTIME case).
  Using the -mtime -0s (seconds, rather than no unit) avoids this 1s race.

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

13 years agoMFC r218757:
bz [Sat, 16 Apr 2011 23:30:53 +0000 (23:30 +0000)]
MFC r218757:

  Mfp4 CH=177274,177280,177284-177285,177297,177324-177325

    VNET socket push back:
    try to minimize the number of places where we have to switch vnets
    and narrow down the time we stay switched.  Add assertions to the
    socket code to catch possibly unset vnets as seen in r204147.

    While this reduces the number of vnet recursion in some places like
    NFS, POSIX local sockets and some netgraph, .. recursions are
    impossible to fix.

    The current expectations are documented at the beginning of
    uipc_socket.c along with the other information there.

    Sponsored by: The FreeBSD Foundation
    Sponsored by: CK Software GmbH
    Reviewed by:  jhb
    Tested by:    zec

  Tested by:    Mikolaj Golub (to.my.trociny gmail.com)

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

13 years agoMFC r220506:
kib [Sat, 16 Apr 2011 12:45:09 +0000 (12:45 +0000)]
MFC r220506:
Implement a workaround for fdescfs to not panic when ncookies is not NULL.

PR: kern/156177

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

13 years agoMFC r220281:
kib [Sat, 16 Apr 2011 12:43:04 +0000 (12:43 +0000)]
MFC r220281:
Implement compat32 shims for PCIOCGETCONF.

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

13 years agoMFC r220280:
kib [Sat, 16 Apr 2011 12:41:22 +0000 (12:41 +0000)]
MFC r220280:
Provide the structures and ioctl number definition for handling
PCIOCGETCONF compat32.

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

13 years agoMFC r219524:
brucec [Sat, 16 Apr 2011 11:06:09 +0000 (11:06 +0000)]
MFC r219524:

Fix the build: we have snprintf(3).

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

13 years agoMFC r219522:
brucec [Sat, 16 Apr 2011 11:04:17 +0000 (11:04 +0000)]
MFC r219522:

Fix warnings and set WARNS to 6.

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

13 years agoMFC r219511:
brucec [Sat, 16 Apr 2011 10:57:11 +0000 (10:57 +0000)]
MFC r219511:

Fix warnings and style(9) issues.
Set WARNS to 6.

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

13 years agoMFC r219521:
brucec [Sat, 16 Apr 2011 10:42:22 +0000 (10:42 +0000)]
MFC r219521:

Fix warnings and set WARNS to 6.

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

13 years agoMFC r219527:
brucec [Sat, 16 Apr 2011 10:20:45 +0000 (10:20 +0000)]
MFC r219527:

Fix warnings and style(9) issues.
Set WARNS to 6.

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

13 years agoMFC r219568:
brucec [Sat, 16 Apr 2011 10:18:07 +0000 (10:18 +0000)]
MFC r219568:

Fix warnings and style(9) issues.
Set WARNS to 6.

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

13 years agoMFC r219613:
brucec [Sat, 16 Apr 2011 09:56:27 +0000 (09:56 +0000)]
MFC r219613:

Fix typo.

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

13 years agoMFC r220453:
rstone [Sat, 16 Apr 2011 00:10:55 +0000 (00:10 +0000)]
MFC r220453:
 Add tunables that mirror the functionality of sysctls machdep.panic_on_nmi
 and machdep.kdb_on_nmi.

Approved by: emaste (mentor)

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

13 years agoMFC 220156:
jhb [Fri, 15 Apr 2011 20:42:27 +0000 (20:42 +0000)]
MFC 220156:
Clamp the initial advertised receive window when responding to a SYN/ACK
to the maximum allowed window.  Growing the window too large would cause
an underflow in the calculations in tcp_output() to decide if a window
update should be sent which would prevent the persist timer from being
started if data was pending and the other end of the connection advertised
an initial window size of 0.

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

13 years agoMFC 220451:
jhb [Fri, 15 Apr 2011 20:32:17 +0000 (20:32 +0000)]
MFC 220451:
Catch up to PCB_FULL_IRET becoming a pcb flag rather than a full field.

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

13 years agoMFC 220126:
jhb [Fri, 15 Apr 2011 20:28:38 +0000 (20:28 +0000)]
MFC 220126:
- Enable an extra debugging bootverbose printf when probing ISA PNP cards
  listing   each card as it is found on non-PC98 (PC98 already had this).
- Increase the length of the DELAY() used before timing out while reading
  PNP resource data.

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

13 years agoMFC 219276:
jhb [Fri, 15 Apr 2011 20:26:24 +0000 (20:26 +0000)]
MFC 219276:
Use ffs() to locate free bits in the inode bitmap rather than a loop with
bit shifts.

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

13 years agoMFC 219865:
jhb [Fri, 15 Apr 2011 20:19:50 +0000 (20:19 +0000)]
MFC 219865:
Add pci_find_cap() as an alias for pci_find_extcap() to ease driver
portability with 9+ where pci_find_extcap() has been renamed to
pci_find_cap().

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

13 years agoMFC 219717,220363:
jhb [Fri, 15 Apr 2011 19:50:25 +0000 (19:50 +0000)]
MFC 219717,220363:
- Add more details to the 'show battery' command including more raw
  capacity values, charge cycle count, temperature, and more detailed
  status.
- Add the ability to manage the state of write caching when the battery
  back-up is missing or dead.  The current state of this field is reported
  in 'mfiutil cache <volume>' and can be adjusted via
  'mfiutil cache <volume> bad-bbu-write-cache <enable|disable>'.  This
  setting should generally be disabled to avoid data loss.

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

13 years agoMFC r220376: Allow strerror(0) and strerror_r(0, ...).
jilles [Fri, 15 Apr 2011 19:46:25 +0000 (19:46 +0000)]
MFC r220376: Allow strerror(0) and strerror_r(0, ...).

Of course, strerror_r() may still fail with ERANGE.

Although the POSIX specification said this could fail with EINVAL and
doing this likely indicates invalid use of errno, most other
implementations permitted it, various POSIX testsuites require it to
work (matching the older sys_errlist array) and apparently some
applications depend on it.

PR: standards/151316

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

13 years agoMFC r220461:
kib [Fri, 15 Apr 2011 10:33:20 +0000 (10:33 +0000)]
MFC r220461:
Remove setting of PCB_FULL_IRET at the places where we are going to call
update_gdt_{f,g}sbase. The functions set the flag when td == curthread,
and sysarch is always called with curthread.

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

13 years agoMFC: 220624: add $FreeBSD$.
obrien [Thu, 14 Apr 2011 15:43:21 +0000 (15:43 +0000)]
MFC: 220624: add $FreeBSD$.

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

13 years agoMFC r210819: Add support for ATI Radeon HD 4250.
avg [Thu, 14 Apr 2011 15:25:27 +0000 (15:25 +0000)]
MFC r210819: Add support for ATI Radeon HD 4250.

On behalf of: olli

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

13 years agoMFC: r220370, r209136, r209219
obrien [Wed, 13 Apr 2011 23:09:36 +0000 (23:09 +0000)]
MFC: r220370, r209136, r209219

* Add the readline(3) API to libedit.  The libedit versions of
  {readline,history}.h are in /usr/include/edit so as to not conflict with
  the GNU libreadline versions.  To use the libedit readline(3) one should
  add "-I/usr/include/edit" to their Makefile
  (spelled "-I${DESTDIR}/${INCLUDEDIR}/edit" within the FreeBSD source tree).
* Enable its use in the BSD licensed utilities that support readline(3).
* histedit.h is moved into libedit's directory

* Add basic filename completion code.
* Allow simple quoting in filename completion.

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

13 years agoMFC r220512:
dougb [Wed, 13 Apr 2011 19:54:54 +0000 (19:54 +0000)]
MFC r220512:

Update recommendation for mergemaster. The -a and -i options are exclusive.

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

13 years agoMFC: 220152
zack [Wed, 13 Apr 2011 19:34:58 +0000 (19:34 +0000)]
MFC: 220152
  This patch fixes the Experimental NFS client to properly deal with 32 bit or
  64 bit fileid's in NFSv2 and NFSv3. Without this fix, invalid casting (and sign
  extension) was creating problems for any fileid greater than 2^31.

  We discovered this because we have test clusters with more than 2 billion
  allocated files and 64-bit ino_t's (and friend structures).

Reviewed by:    rmacklem
Approved by:    zml (mentor)

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

13 years agoMFC r216391:
jh [Tue, 12 Apr 2011 16:43:29 +0000 (16:43 +0000)]
MFC r216391:

Handle the special ruleset 0 in devfs_ruleset_use(). An attempt set the
current ruleset to 0 with command "devfs ruleset 0" triggered a KASSERT
in devfs_ruleset_create().

PR: kern/125030

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

13 years agoMFC r212502 (qingli):
bz [Tue, 12 Apr 2011 11:17:46 +0000 (11:17 +0000)]
MFC r212502 (qingli):

  Adding an address on an interface also requires the loopback route to
  that address be installed.

  Submitted by: Ingo Flaschberger <if at xip.at>
PR: kern/150481

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

13 years agoMFC r220358:
pluknet [Tue, 12 Apr 2011 08:54:49 +0000 (08:54 +0000)]
MFC r220358:

 Document -w for swapuse.

PR: docs/156089
Submitted by: Andrey Ignatov <rdna att rdna.ru>

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

13 years agoMFC of 220549, tzdata2011f:
edwin [Mon, 11 Apr 2011 21:59:13 +0000 (21:59 +0000)]
MFC of 220549, tzdata2011f:

- During 2011 the Falkland Islands will remain on Summer time.

Obtained from:  ftp://elsie.nci.nih.gov/pub/

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

13 years agoMFC r197076,197191: apperture size printing changes
avg [Mon, 11 Apr 2011 17:49:26 +0000 (17:49 +0000)]
MFC r197076,197191: apperture size printing changes

Reduce diff to head.

On behalf of: n_hibma

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

13 years agoMFC r220328:
pluknet [Mon, 11 Apr 2011 09:06:11 +0000 (09:06 +0000)]
MFC r220328:

 Remove malloc type M_NETADDR unused since splitting into vfs_subr.c
 and vfs_export.c.

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

13 years agoMFC r220100:
kib [Mon, 11 Apr 2011 08:25:25 +0000 (08:25 +0000)]
MFC r220100:
Promote ksyms_map() and ksyms_unmap() to general facility
copyout_map() and copyout_unmap() interfaces.

MFC r220101:
Handle zero length in copyout_unmap().

MFC r220102:
Trim white spaces, adjust style.

MFC r220114:
Fix the check for vm_map_remove() error.

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

13 years agoMFC r220299:
trociny [Sun, 10 Apr 2011 19:31:00 +0000 (19:31 +0000)]
MFC r220299:

In g_eli_read_done() and g_eli_write_done(), for a bio with
bio_children > 1, g_destroy_bio() is never called and the bio
leaks. Fix this by calling g_destroy_bio() earlier, before the check.

Submitted by: Victor Balada Diaz <victor@bsdes.net> (initial version)

Approved by: pjd (mentor)

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

13 years agoMFC r220005, r220006, r220007, r220266, r220270, r220271, r220272,
trociny [Sun, 10 Apr 2011 15:48:16 +0000 (15:48 +0000)]
MFC r220005, r220006, r220007, r220266, r220270, r220271, r220272,
  r220273, r220274:

r220005 (pjd):

Use role2str() when setting process title.

r220006 (pjd):

Use timeout from configuration file not only when sending and receiving,
but also when establishing connection.

r220007 (pjd):

Add mapsize to the header just before sending the packet.
Before it could change later and we were sending invalid mapsize.
Some time ago I added optimization where when nodes are connected for the
first time and there were no writes to them yet, there is no initial full
synchronization. This bug prevented it from working.

r220266 (pjd):

Handle the problem described in r220264 by using GEOM GATE queue of unlimited
length. This should fix deadlocks reported by HAST users.

r220270 (pjd):

Allow to disable sends or receives on a socket using shutdown(2) by
interpreting NULL 'data' argument passed to proto_common_send() or
proto_common_recv() as a will to do so.

r220271 (pjd):

Declare directions for sockets between primary and secondary.
In HAST we use two sockets - one for only sending the data and one for only
receiving the data.

r220272 (pjd):

When we are operating on blocking socket and get EAGAIN on send(2) or recv(2)
this means that request timed out. Translate the meaningless EAGAIN to
ETIMEDOUT to give administrator a hint that he might need to increase timeout
in configuration file.

r220273 (pjd):

Handle ENOBUFS on send(2) by retrying for a while and logging the problem.

r220274 (pjd):

Increase default timeout from 5 seconds to 20 seconds. 5 seconds is definitely
to short under heavy load and I was experiencing those timeouts in my recent
tests.

Approved by: pjd (mentor)

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

13 years agoMFC r220264:
trociny [Sun, 10 Apr 2011 15:40:57 +0000 (15:40 +0000)]
MFC r220264:

r220264 (pjd):

GEOM has an internal mechanism to deal with ENOMEM errors returned via
g_io_deliver(). In such case it increases 'pace' counter on each ENOMEM and
reschedules the request. The 'pace' counter is decreased for each request going
down, but until 'pace' is greater than zero, GEOM will handle at most 10
requests per second. For GEOM GATE users that are proxy to local GEOM providers
(like ggatel(8) and HAST) we can end up with almost permanent slow down of GEOM
down queue. This is because once we reach GEOM GATE queue limit, we return
ENOMEM to the GEOM. This means that we have, eg. 1024 I/O requests in the GEOM
GATE queue. To make room in the queue and stop returning ENOMEM we need to
proceed the requests of course, but those requests are handled by userland
daemons that handle them by reading/writing also from/to local GEOM providers.
For example with HAST, a new requests comes to /dev/hast/data, which is GEOM
GATE provider. GEOM GATE passes the request to hastd(8) and hastd(8)
reads/writes from/to /dev/da0. Once we reach GEOM GATE queue limit, to free up
a slot in GEOM GATE queue, hastd(8) has to read/write from/to /dev/da0, but
this request will also be very slow, because GEOM now slows down all the
requests. We end up with full queue that we can unload at the speed of 10
requests per second. This simply looks like a deadlock.

Fix it by allowing userland daemons that work with both GEOM GATE and local
GEOM providers to specify unlimited queue size, so GEOM GATE will never return
ENOMEM to the GEOM.

Approved by: pjd (mentor)

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

13 years agoMFC: r220046, r220106
marius [Sun, 10 Apr 2011 09:35:42 +0000 (09:35 +0000)]
MFC: r220046, r220106

Wait until the DMA engine is stopped before unmapping buffers and
descriptors, which fixes DMA errors seen on sparc64.

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

13 years agoMFC r220410
np [Sun, 10 Apr 2011 01:21:02 +0000 (01:21 +0000)]
MFC r220410

Modify read/write ioctls to work with 64 bit registers too.

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

13 years agoMFC 220432:
gjb [Sun, 10 Apr 2011 00:29:00 +0000 (00:29 +0000)]
MFC 220432:
- u3g.4:
- remove self-reference in SEE ALSO section (originally was to s/XR/Xr)

- cxgbe.4:
- remove blank line
- add closing .El

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

13 years agoMFC 220382:
gjb [Sat, 9 Apr 2011 19:07:13 +0000 (19:07 +0000)]
MFC 220382:
Correct 'list scan' description in the examples.  The previous description
was incorrect - 'list scan' does not actually do a scan, but instead lists
the results of the background 'scan' cache.

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

13 years agoMFC r218688:
bz [Sat, 9 Apr 2011 15:27:36 +0000 (15:27 +0000)]
MFC r218688:

  Mfp4 CH=177256:

    Catch a set vnet upon return to user space. This usually
    means return paths with CURVNET_RESTORE() missing.

    If VNET_DEBUG is turned on we can even tell the function
    that did the CURVNET_SET() which is really helpful; else
    we print "N/A".

    Sponsored by: The FreeBSD Foundation
    Sponsored by: CK Software GmbH
    Reviewed by:  jhb

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

13 years agoMFC r218567:
bz [Sat, 9 Apr 2011 14:27:27 +0000 (14:27 +0000)]
MFC r218567:

  Mfp4 CH=177255:

    Resort the CURVNET_SET* macros in the non-VNET_DEBUG case to match
    the call order of the VNET_DEBUG case.

    Add the VNET_ASSERT() to the non-VNET_DEBUG case as well so that
    INVARIANTS will still catch problems.

    Sponsored by: The FreeBSD Foundation
    Sponsored by: CK Software GmbH
    Reviewed by:  jhb

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

13 years agoMFC r218559:
bz [Sat, 9 Apr 2011 13:45:13 +0000 (13:45 +0000)]
MFC r218559:

  Mfp4 CH=177255:

    Make VNET_ASSERT() available with either VNET_DEBUG or INVARIANTS.

    Change the syntax to match KASSERT() to allow more flexible panic
    messages rather than having a printf with hardcoded arguments
    before panic.

    Adjust the few assertions we have to the new format (and enhance
    the output).

    Sponsored by: The FreeBSD Foundation
    Sponsored by: CK Software GmbH
    Reviewed by:  jhb

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

13 years agoMFC r218555:
bz [Sat, 9 Apr 2011 13:19:44 +0000 (13:19 +0000)]
MFC r218555:

  Mfp4 CH=177255:

    Use __func__ rather than __FUNCTION__.

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

13 years agoMFC r217736:
bz [Sat, 9 Apr 2011 12:52:41 +0000 (12:52 +0000)]
MFC r217736:

  Add an svn:ignore property for _.{TARGETS,tinderbox}.* in the toplevel
  directory to ignore those file patters in svn status, add and import.

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

13 years agoMFC r217735:
bz [Sat, 9 Apr 2011 12:42:40 +0000 (12:42 +0000)]
MFC r217735:

  Make `make tinderbox` work with MAKEOBJDIRPREFIX set (or in possibly other
  combinations) by forcing FAILFILE into .CURDIR as we do for all other
  universe output files. [1]  Similarly make FAILFILE start with "_." as well.

  Reviewed by:  silence-on-src [1]

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

13 years agoMFC r219570:
bz [Sat, 9 Apr 2011 12:35:08 +0000 (12:35 +0000)]
MFC r219570:

  Push a possible "unbind" in some situation from in6_pcbsetport() to
  callers.  This also fixes a problem when the prison call could set
  the inp->in6p_laddr (laddr) and a following priv_check_cred() call
  would return an error and will allow us to merge the IPv4 and IPv6
  implementation.

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

13 years agoMFC r219562:
bz [Sat, 9 Apr 2011 12:11:19 +0000 (12:11 +0000)]
MFC r219562:

  Make sure the locally cached value of rt->rt_gateway stays stable,
  even after dropping the reference and unlocking. Previously we
  have dereferenced a NULL pointer (after r121765).
  Simply unlocking after the block does not work either because of
  lock ordering (see r121765) and in addition we would still hold
  a pointer to something that might be gone by the time we access it.
  Thus take a copy of the value rather than just caching the pointer.

  Submitted by: chenyl (netstar2008 126.com) (initial version)
PR: kern/151908

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

13 years agoMFC r219775:
bz [Sat, 9 Apr 2011 12:04:35 +0000 (12:04 +0000)]
MFC r219775:

  For now remove options FLOWTABLE from the remaining GENERIC kernel
  configurations and make it opt-in for those who want it.  LINT will
  still build it.

  While it may be a perfect win in some scenarios, it still troubles users
  (see PRs) in general cases.  In addition we are still allocating resources
  even if disabled by sysctl and still leak arp/nd6 entries in case of
  interface destruction.

  Discussed with: qingli (2010-11-24, just never executed)
  Discussed with: juli (OCTEON1)
PR: kern/148018, kern/155604, kern/144917, kern/146792

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

13 years agoMFC r220247:
bz [Sat, 9 Apr 2011 10:53:36 +0000 (10:53 +0000)]
MFC r220247:

  Do not allow directly recursive RFC3173 IPComp payload.

Security: CVE-2011-1547

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

13 years agoMFC r219597:
bz [Sat, 9 Apr 2011 10:45:22 +0000 (10:45 +0000)]
MFC r219597:

  Cross-reference ip(4) rather than sysctl(8) for the global, shared MIB
  values to control the various port ranges. ip(4) describes these in detail.

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

13 years agoMFC r219580:
bz [Sat, 9 Apr 2011 10:44:01 +0000 (10:44 +0000)]
MFC r219580:

  INET6 for some time needed in_pcb.c so make sure we compile it in case of
  no inet.

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

13 years agoMFC r219206:
bz [Sat, 9 Apr 2011 10:36:33 +0000 (10:36 +0000)]
MFC r219206:

  Hide the outer IP addresses of a tunnel interfaces (gif(4), gre(4))
  from processes inside jails if the addresses do not belong to the jail.

  Originally reported by: Pieter de Boer via remko
  Tested by: Piotr KUCHARSKI (nospam 42.pl) [gif]
PR: kern/151119

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

13 years agoMFC r219184:
bz [Sat, 9 Apr 2011 10:19:25 +0000 (10:19 +0000)]
MFC r219184:

  Prevent crashes from a race when (cloned) interfaces go away.

PR:             bin/152143
  Submitted by: Przemyslaw Frasunek (przemyslaw frasunek.com)
  Tested by:    Przemyslaw Frasunek (przemyslaw frasunek.com)

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

13 years agoMFC r220031: linux compat: improve and fix sendmsg/recvmsg compatibility
avg [Sat, 9 Apr 2011 08:52:22 +0000 (08:52 +0000)]
MFC r220031: linux compat: improve and fix sendmsg/recvmsg compatibility

PR: kern/149168

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

13 years agoMFC r220030: drop dummy definitions
avg [Sat, 9 Apr 2011 08:43:57 +0000 (08:43 +0000)]
MFC r220030: drop dummy definitions

PR: kern/149168

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