]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
12 years agoMFC r231144:
mm [Fri, 10 Feb 2012 13:36:39 +0000 (13:36 +0000)]
MFC r231144:
Merge illumos revision 13594:

uninitialized variables in zfs(8) may make snapshots undestroyable [1]

References:
https://www.illumos.org/issues/2067 [1]

Obtained from: illumos (issue #2067)
PR: bin/164802

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

12 years agoMFC r223741:
bz [Fri, 10 Feb 2012 13:15:11 +0000 (13:15 +0000)]
MFC r223741:

 Tag mbufs of all incoming frames or packets with the interface's FIB
 setting (either default or if supported as set by SIOCSIFFIB, e.g.
 from ifconfig).

 Submitted by: Alexander V. Chernikov (melifaro ipfw.ru)
 Reviewed by: julian

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

12 years agoMFC r228191:
dougb [Fri, 10 Feb 2012 10:23:20 +0000 (10:23 +0000)]
MFC r228191:

Ensure kldxref is run first.

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

12 years agoMFC r208307:
dougb [Fri, 10 Feb 2012 10:18:30 +0000 (10:18 +0000)]
MFC r208307:

This change does the following for the scripts that run up through
FILESYSTEMS (the default early_late_divider):
1. Move sysctl to run first
2. Move as many BEFOREs to REQUIREs as possible.
3. Minor effect, move hostid_save from right before mdconfig to right
   after.

A lot of the early scripts make use of sysctl one way or another so
running this first makes a lot of sense given that system-critical
values are often placed in sysctl.conf. (More details in original log.)

In addition to the changes from this revision, tweak a few other rcorder
elements in order to minimize the differences between the order before
and after this change, mostly related to scripts still in this branch
that are no longer in HEAD.

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

12 years agoPull up mergeinfo from r226345,226464,226879 to etc/ where it belongs
dougb [Fri, 10 Feb 2012 09:46:59 +0000 (09:46 +0000)]
Pull up mergeinfo from r226345,226464,226879 to etc/ where it belongs

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

12 years agoMFC r217742:
tuexen [Fri, 10 Feb 2012 07:52:51 +0000 (07:52 +0000)]
MFC r217742:
Remove unnecessary checking of variable.

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

12 years agoMFC r217638:
tuexen [Fri, 10 Feb 2012 07:51:28 +0000 (07:51 +0000)]
MFC r217638:
Improve comments.

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

12 years agoMFC r217635:
tuexen [Fri, 10 Feb 2012 07:49:57 +0000 (07:49 +0000)]
MFC r217635:
Fix it so we align with new socket API draft for
state's in destination (i.e. ACTIVE/INACTIVE/UNCONFIRMED)
From rrs@.

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

12 years agoMFC r217611:
tuexen [Fri, 10 Feb 2012 07:47:34 +0000 (07:47 +0000)]
MFC r217611:
Cleanup the management of CC functions.

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

12 years agoMFC r217469:
tuexen [Fri, 10 Feb 2012 07:44:03 +0000 (07:44 +0000)]
MFC r217469:
Add support for resource pooling to CMT.
An original version of the patch was developed by Martin Becke
and Thomas Dreibholz.

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

12 years agoMFC r215817:
tuexen [Fri, 10 Feb 2012 07:42:38 +0000 (07:42 +0000)]
MFC r215817:
Adds new dtrace for cwnd functions and lay's
groundwork for future dtrace points (rwnd flightsize etc).
From rrs@.

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

12 years agoMFC r216887:
tuexen [Fri, 10 Feb 2012 07:31:50 +0000 (07:31 +0000)]
MFC r216887:
Bugfix: Make sure that the COMM_UP notificatin is delivered first also
        on the passive side.

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

12 years agoMFC r216878:
tuexen [Fri, 10 Feb 2012 07:30:15 +0000 (07:30 +0000)]
MFC r216878:
Fix a typo.

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

12 years agoMFC 216825:
tuexen [Fri, 10 Feb 2012 07:28:37 +0000 (07:28 +0000)]
MFC 216825:
Define and use SCTP_SSN_GE, SCTP_SSN_GT, SCTP_TSN_GE, SCTP_TSN_GT macros
and use them instead of the generic compare_with_wrap.
Retire compare_with_wrap.

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

12 years agoMFC r216822:
tuexen [Fri, 10 Feb 2012 07:26:45 +0000 (07:26 +0000)]
MFC r216822:
Code cleanup: Use LIST_FOREACH, LIST_FOREACH_SAFE, TAILQ_FOREACH,
              TAILQ_FOREACH_SAFE where appropriate.
No functional change.

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

12 years agoMFC r216821:
tuexen [Fri, 10 Feb 2012 07:23:42 +0000 (07:23 +0000)]
MFC r216821:
Fix three bugs related to the sequence number wrap-around affecting
the processing of ECNE and ASCONF chunks.

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

12 years agoMFC r216672:
tuexen [Fri, 10 Feb 2012 07:21:29 +0000 (07:21 +0000)]
MFC r216672:
Provide a possibility to configure the inital congestion window to the
value defined in RFC 4960.

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

12 years agoMFC r216669:
tuexen [Fri, 10 Feb 2012 07:19:36 +0000 (07:19 +0000)]
MFC r216669:
Improve plausibility check in sctp_handle_sack().
Allow cmt_on_off to support values 0 (no CMT), 1 (CMT), and 2 (CMT/RP).

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

12 years agoMFC r223735:
bz [Fri, 10 Feb 2012 06:42:00 +0000 (06:42 +0000)]
MFC r223735:

 Add infrastructure to allow all frames/packets received on an interface
 to be assigned to a non-default FIB instance.

 Submitted by: cjsp
 Submitted by: Alexander V. Chernikov (melifaro ipfw.ru)
  (original versions)
 Reviewed by: julian
 Reviewed by: Alexander V. Chernikov (melifaro ipfw.ru)

Reviewed by: melifaro

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

12 years agoMFC r230861:
ae [Fri, 10 Feb 2012 06:38:57 +0000 (06:38 +0000)]
MFC r230861:
  The scheme code may not know about some inconsistency in the metadata.
  So, add an integrity check after recovery attempt.

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

12 years agoMFC r228061:
ae [Fri, 10 Feb 2012 06:35:14 +0000 (06:35 +0000)]
MFC r228061:
  The size of APM could be bigger than number of already allocated entries.
  And the first usable sector should not start from the inside of APM area.

MFC r228076:
  Add an ability to increase number of allocated APM entries when we
  have reserved free space in the APM area.
  Also instead of one write request per each APM entry, use MAXPHYS
  sized writes when we are updating APM.

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

12 years agoMFC r223334:
bz [Fri, 10 Feb 2012 06:12:48 +0000 (06:12 +0000)]
MFC r223334:

 Leave an extra comment about flowtable and IPv6 support rectifying a
 previous comment (r206024 in stable/8) to not forget things here in the
 future as well and merge the changes without conflicts.

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

12 years agoMFC r223259:
bz [Fri, 10 Feb 2012 06:06:25 +0000 (06:06 +0000)]
MFC r223259:

 Correct a typo in the function name.

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

12 years agoMFC r224202:
bz [Fri, 10 Feb 2012 06:02:21 +0000 (06:02 +0000)]
MFC r224202:

 Constantly print the command name and if set include the thread
 name in per-thread mode.

 Discussed with: jhb
 Obtained from:  Ed Maste at Sandvine Incorporated
 Sponsored by:   Sandvine Incorporated

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

12 years agoMFC r231111, r231331:
eadler [Fri, 10 Feb 2012 04:10:13 +0000 (04:10 +0000)]
MFC r231111, r231331:
 ports(7) currently makes no mention of LOCALBASE: fix that

PR: 159551
Approved by: gjb

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

12 years agoMFC: r230605
rmacklem [Fri, 10 Feb 2012 04:01:17 +0000 (04:01 +0000)]
MFC: r230605
A problem with respect to data read through the buffer cache for both
NFS clients was reported to freebsd-fs@ under the subject "NFS
corruption in recent HEAD" on Nov. 26, 2011. This problem occurred when
a TCP mounted root fs was changed to using UDP. I believe that this
problem was caused by the change in mnt_stat.f_iosize that occurred
because rsize was decreased to the maximum supported by UDP. This
patch fixes the problem by using v_bufobj.bo_bsize instead of f_iosize,
since the latter is set to f_iosize when the vnode is allocated, but
does not change for a given vnode when f_iosize changes.

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

12 years agoMFC r230510:
bz [Fri, 10 Feb 2012 00:51:32 +0000 (00:51 +0000)]
MFC r230510:

 Replace random ARIN direct assignment legacy IPs with proper RFC 5735
 TEST-NET1 block for use in documentation and example code addresses.

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

12 years agoMFC r230506:
bz [Fri, 10 Feb 2012 00:24:41 +0000 (00:24 +0000)]
MFC r230506:

 Plug a possible ifa_ref leak in case of premature return from in6_purgeaddr().

 Reviewed by: rwatson

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

12 years agoMFC r228344:
eadler [Fri, 10 Feb 2012 00:09:21 +0000 (00:09 +0000)]
MFC r228344:
 - Add support for Support SEAGATE DAT Scopion 130

PR: kern/141934
Approved by: cperciva

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

12 years agoMFC r230494:
bz [Fri, 10 Feb 2012 00:01:50 +0000 (00:01 +0000)]
MFC r230494:

 Remove unnecessary line break.

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

12 years agoMFC r230387:
bz [Thu, 9 Feb 2012 22:54:07 +0000 (22:54 +0000)]
MFC r230387:

 Remove a superfluous INET6 check (no opt_inet6.h included anyway).

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

12 years agoMFC r229546:
bz [Thu, 9 Feb 2012 21:33:36 +0000 (21:33 +0000)]
MFC r229546:

 Convert an #ifdef DIAGNOSTIC if/panic to a KASSERT.

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

12 years agoMFC r229795:
bz [Thu, 9 Feb 2012 20:57:36 +0000 (20:57 +0000)]
MFC r229795:

 Correct comment for the IPv6 case to say "traffic class" not "TOS"
 as pointed out back in 2009.

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

12 years agoMFC r229276:
bz [Thu, 9 Feb 2012 20:54:14 +0000 (20:54 +0000)]
MFC r229276:

 Remove an uneeded inpcb forward declaration and align the function
 declaration following to match the style in the rest of the file.

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

12 years agoMFH r226119: Mention tdsignal(9)
bapt [Thu, 9 Feb 2012 16:57:34 +0000 (16:57 +0000)]
MFH r226119: Mention tdsignal(9)

Approved by: des (mentor)

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

12 years agoMFH r226166: Document some not-so-recently added trace points
bapt [Thu, 9 Feb 2012 16:55:50 +0000 (16:55 +0000)]
MFH r226166: Document some not-so-recently added trace points

Approved by: des (mentor)

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

12 years agoMFH r226506: Look for /boot/config in addition to /boot.config
bapt [Thu, 9 Feb 2012 16:54:06 +0000 (16:54 +0000)]
MFH r226506: Look for /boot/config in addition to /boot.config

Approved by: des (mentor)

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

12 years agoMFC r229127:
bz [Thu, 9 Feb 2012 16:12:12 +0000 (16:12 +0000)]
MFC r229127:

 Remove a declaration to a non-existent function.

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

12 years agoMFH r226345, r226464, r226879:
bapt [Thu, 9 Feb 2012 14:16:40 +0000 (14:16 +0000)]
MFH r226345, r226464, r226879:
Make dhclient use a pid file. Modify the rc script accordingly, fix some bugs

Approved by: des (mentor)

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

12 years agoMFH r227531: Add netcat (nc) to /rescue.
bapt [Thu, 9 Feb 2012 13:23:44 +0000 (13:23 +0000)]
MFH r227531: Add netcat (nc) to /rescue.

Approved by: des (mentor)

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

12 years agoMFH r226504: Make ktrace(1) build cleanly at WARNS level 6
bapt [Thu, 9 Feb 2012 09:24:52 +0000 (09:24 +0000)]
MFH r226504: Make ktrace(1) build cleanly at WARNS level 6

Approved by: des (mentor)

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

12 years agoMFC r224011:
bz [Thu, 9 Feb 2012 09:23:37 +0000 (09:23 +0000)]
MFC r224011:

 Fix indentation.

 Obtained from: Ed Maste at Sandvine Incorporated
 Sponsored by: Sandvine Incorporated

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

12 years agoMFH r226502,r226503: factor out the common code and fix two display bugs
bapt [Thu, 9 Feb 2012 09:20:50 +0000 (09:20 +0000)]
MFH r226502,r226503: factor out the common code and fix two display bugs

Approved by: des (mentor)

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

12 years agoMFC r223739:
bz [Thu, 9 Feb 2012 08:41:56 +0000 (08:41 +0000)]
MFC r223739:

 Remove extra white space to comply with style for the rest of the struct.

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

12 years agoMFC r223667:
bz [Thu, 9 Feb 2012 07:52:45 +0000 (07:52 +0000)]
MFC r223667:

 In case ntp cannot resolve a hostname on startup it will queue the entry
 for resolving by a child process that, upon success, will add the entry
 to the config of the running running parent process.

 Unfortunately there are a couple of bugs with this, fixed in various
 later versions of upstream in potentially different ways due to other
 code changes:

 1) Upon server [-46] <FQDN> the [-46] are used as FQDN for later resolving
    which does not work.  Make sure we always pass the name (or IP there).

 2) The intermediate file to carry the information to the child process
    does not know about -4/-6 restrictions, so that a dual-stacked host
    could resolve to an IPv6 address but that might be unreachable (see
    r223626) leading to no working synchronization ignoring a IPv4 record.
    Thus alter the intermediate format to also pass the address family
    (AF_UNSPEC (default), AF_INET or AF_INET6) to the child process
    depending on -4 or -6.

 3) Make the child process to parse the new intermediate file format and
    save the address family for getaddrinfo() hints flags.

 4) Change child to always reload resolv.conf calling res_init() before
    trying to resolve names.  This will pick up resolv.conf changes or
    new resolv.confs should they have not existed or been empty or
    unusable on ntp startup.  This fix is more conditional in upstream
    versions but given FreeBSD has res_init there is no need for the
    configure logic as well.

 Approved by: roberto
 Sponsored by: Sandvine Incorporated

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

12 years agoMFC r230921:
mav [Thu, 9 Feb 2012 07:45:02 +0000 (07:45 +0000)]
MFC r230921:
Insert ordered command every 1/4 of the current command timeout, not 1/4
of the default one.

Without this change setting kern.cam.ada.default_timeout to 1 instead of 30
allowed me to trigger several false positive command timeouts under heavy
ZFS load on a SiI3132 siis(4) controller with 5 HDDs on a port multiplier.

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

12 years agoMFC r230912:
mav [Thu, 9 Feb 2012 07:40:13 +0000 (07:40 +0000)]
MFC r230912:
Make CAM ATA honor old hw.ata.ata_dma and hw.ata.atapi_dma tunables.

Even having more specific hint.ata.X.mode controls, global ones are
still could be useful from some points, including compatibility.

PR:             kern/164651

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

12 years agoMRC r223626:
bz [Thu, 9 Feb 2012 07:27:59 +0000 (07:27 +0000)]
MRC r223626:

 Compare port numbers correctly.  They are stored by SRCPORT()
 in host byte order, so we need to compare them as such.
 Properly compare IPv6 addresses as well.

 This allows the, by default, 8 badaddrs slots per address
 family to work correctly and only print sendto() errors once.

 The change is no longer applicable to any latest upstream versions.

 Approved by: roberto
 Sponsored by: Sandvine Incorporated

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

12 years agoMFH r230307: fix SIGINFO-related data corruption bug
bapt [Thu, 9 Feb 2012 06:50:43 +0000 (06:50 +0000)]
MFH r230307: fix SIGINFO-related data corruption bug

Approved by: des (mentor)

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

12 years agoMerge from head to stable/8:
scf [Thu, 9 Feb 2012 01:18:23 +0000 (01:18 +0000)]
Merge from head to stable/8:

r230656:
msdos was renamed to msdosfs in 2001 by r77577.

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

12 years agoGiven that sun4u uses sparc64/sparc64/ofw_machdep.c, use the sparc64
marius [Wed, 8 Feb 2012 23:57:03 +0000 (23:57 +0000)]
Given that sun4u uses sparc64/sparc64/ofw_machdep.c, use the sparc64
<machine/ofw_machdep.h> here also. This isn't exactly a clean approach
though as ofw_machdep.h also includes some prototypes for functions
that aren't actually shared between both architectures but just happen
to have the same interface. Given that the sun4v support actually is
dead and this is just to allow things to continue to compile it should
be okay though.

This is a direct commit to stable/8.

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

12 years agoMerge from r230889:
marius [Wed, 8 Feb 2012 23:47:22 +0000 (23:47 +0000)]
Merge from r230889:

Mark cpu_{halt,reset}() and hv_mach_{exit,sir}() as __dead2 as appropriate.

This is a direct commit to stable/8.

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

12 years agoMerge from head to stable/8:
scf [Wed, 8 Feb 2012 23:13:21 +0000 (23:13 +0000)]
Merge from head to stable/8:

r230655:
Since April 2, 2006, Indiana has observed DST.

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

12 years agoMFC r227285:
hselasky [Wed, 8 Feb 2012 22:29:41 +0000 (22:29 +0000)]
MFC r227285:
Add support for new USB modem protocol.

PR: usb/159919

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

12 years agoMFC r229317:
hselasky [Wed, 8 Feb 2012 22:27:07 +0000 (22:27 +0000)]
MFC r229317:
Fix support for suspend and resume.

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

12 years agoMFC r223359:
bz [Wed, 8 Feb 2012 19:31:32 +0000 (19:31 +0000)]
MFC r223359:

 Garbage collect never used global, sysctl, externs.

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

12 years agoMFC r228641:
bz [Wed, 8 Feb 2012 18:51:20 +0000 (18:51 +0000)]
MFC r228641:

 Allow toggling of IFCAP_VLAN_HWCSUM for hardware that supports checksum
 offloading on vlans and document the new option.

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

12 years agoRemove sun4v from universe targets.
bz [Wed, 8 Feb 2012 18:21:48 +0000 (18:21 +0000)]
Remove sun4v from universe targets.

Approved by: re

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

12 years agoMFC r222845:
bz [Wed, 8 Feb 2012 17:54:02 +0000 (17:54 +0000)]
MFC r222845:

 Correct comments and debug logging in ipsec to better match reality.

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

12 years agoMFC r225428:
bz [Wed, 8 Feb 2012 17:03:12 +0000 (17:03 +0000)]
MFC r225428:

 Shorten a variable access some using a cached value rather than
 casting the input argument again, making the code more readable.

 Reviewed by: jhb

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

12 years agoMFC r225036:
bz [Wed, 8 Feb 2012 16:44:54 +0000 (16:44 +0000)]
MFC r225036:

 Hide IPv6 next header parsing warnings under the verbose sysctl
 so people can possibly disable it when their consoles are flooded,
 or enabled it for debugging.

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

12 years agoMFC r225033:
bz [Wed, 8 Feb 2012 16:24:56 +0000 (16:24 +0000)]
MFC r225033:

 If we detect an IPv6 fragment header and it is not the first fragment,
 then terminate the loop as we will not find any further headers and
 for short fragments this could otherwise lead to a pullup error
 discarding the fragment.

 Submitted by: Matthew Luckie (mjl luckie.org.nz)
PR: kern/145733

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

12 years agoMFC r225032,225034:
bz [Wed, 8 Feb 2012 16:03:05 +0000 (16:03 +0000)]
MFC r225032,225034:

 ipfw internally checks for offset == 0 to determine whether the
 packet is a/the first fragment or not.  For IPv6 we have added the
 "more fragments" flag as well to be able to determine on whether
 there will be more as we do not have the fragment header avaialble
 for logging, while for IPv4 this information can be derived directly
 from the IPv4 header.  This allowed fragmented packets to bypass
 normal rules as proper masking was not done when checking offset.
 Split variables to not need masking for IPv6 to avoid further errors.

 After r225032 fix logging in a similar way masking the the IPv6
 more fragments flag off so that offset == 0 checks work properly.

 Submitted by: Matthew Luckie (mjl luckie.org.nz)
PR: kern/145733

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

12 years agoMFC r225030:
bz [Wed, 8 Feb 2012 15:37:34 +0000 (15:37 +0000)]
MFC r225030:

 While not explicitly allowed by RFC 2460, in case there is no
 translation technology involved (and that section is suggested to
 be removed by Errata 2843), single packet fragments do not harm.

 There is another errata and further drafts under discussion to clarify
 on these kinds of packets.
 Meanwhile add a sysctl to allow disabling this behaviour again.
 We will treat single packet fragment (a fragment header added
 when not needed) as if there was no fragment header.

 Submitted by: Matthew Luckie (mjl luckie.org.nz) (original version)
PR: kern/145733

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

12 years agoMFC r230553:
kib [Wed, 8 Feb 2012 15:19:49 +0000 (15:19 +0000)]
MFC r230553:
When doing vflush(WRITECLOSE), clean vnode pages.

Unmounts do vfs_msync() before calling VFS_UNMOUNT(), but there is
still a race allowing a process to dirty pages after msync
finished. Remounts rw->ro just left dirty pages in system.

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

12 years agoMFC 230877:
mav [Wed, 8 Feb 2012 07:31:55 +0000 (07:31 +0000)]
MFC 230877:
Fix NULL dereference panic on attempt to turn off (on system shutdown)
disconnected swap device.

This is quick and imperfect solution, as swap device will still be opened
and GEOM will not be able to destroy it. Proper solution would be to
automatically turn off and close disconnected swap device, but with existing
code it will cause panic if there is at least one page on device, even if
it is unimportant page of the user-level process. It needs some work.

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

12 years agoMFC r231177:
marcel [Wed, 8 Feb 2012 04:47:06 +0000 (04:47 +0000)]
MFC r231177:
Rev. 228360 moved the call to cpu_set_upcall() to happen before
td_proc gets initialized in td (=newtd). Use td0 instead.

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

12 years agoMFC r225643,225644:
delphij [Tue, 7 Feb 2012 22:31:16 +0000 (22:31 +0000)]
MFC r225643,225644:

Change the example of using smbfs in fstab to a password-less one,
which is less likely to block a remote system from boot.

Submitted by: Garrett Cooper <yanegomi@gmail.com>
PR: doc/160775

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

12 years agoMFC 229465: Use correct locking when traversing interface address list.
jhb [Tue, 7 Feb 2012 22:13:54 +0000 (22:13 +0000)]
MFC 229465: Use correct locking when traversing interface address list.

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

12 years agoMFC r226274,r226416:
delphij [Tue, 7 Feb 2012 22:13:33 +0000 (22:13 +0000)]
MFC r226274,r226416:

Fix the error message when setgid() failed.

PR: bin/161509
Submitted by: Jeremy Huddleston <jeremyhu apple com>

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

12 years agoMFC r227454:
delphij [Tue, 7 Feb 2012 21:56:58 +0000 (21:56 +0000)]
MFC r227454:

Use __packed to prevent alignment from taking place, which otherwise may
change the on-disk format in an incompatible way. Without this change,
msdosfs created on FreeBSD/arm would not be mountable.

PR: bin/162486
Submitted by: Ian Lepore <freebsd damnhippie dyndns org>
Reported by: Mattia Rossi <mrossi at swin.edu.au>

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

12 years agoMFC 229614:
jhb [Tue, 7 Feb 2012 19:56:22 +0000 (19:56 +0000)]
MFC 229614:
Add new variants of the IF_ADDR_*LOCK*() macros used for protecting
interface address lists that distinguish read locks from write locks.
To preserve the KPI, the previous operations are mapped to the write
lock macros.  The lock is still kept as a mutex for now.

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

12 years agoHoist mergeinfo for modules/sound/driver/* up to sys/.
jhb [Tue, 7 Feb 2012 19:45:15 +0000 (19:45 +0000)]
Hoist mergeinfo for modules/sound/driver/* up to sys/.

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

12 years agoMFC 229598:
jhb [Tue, 7 Feb 2012 19:41:21 +0000 (19:41 +0000)]
MFC 229598:
Remove use of explicit bus space tags and handles and use methods that
operate on resource objects instead.

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

12 years agoMFC 228962:
jhb [Tue, 7 Feb 2012 19:23:31 +0000 (19:23 +0000)]
MFC 228962:
Use curthread rather than PCPU_GET(curthread).  'curthread' uses
special-case optimizations on several platforms and is preferred.

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

12 years agoRegen.
jhb [Tue, 7 Feb 2012 19:13:47 +0000 (19:13 +0000)]
Regen.

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

12 years agoMFC 228957:
jhb [Tue, 7 Feb 2012 19:12:21 +0000 (19:12 +0000)]
MFC 228957:
Implement linux_fadvise64() and linux_fadvise64_64() using
kern_posix_fadvise().

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

12 years agoMFC r230514:
mm [Tue, 7 Feb 2012 17:57:59 +0000 (17:57 +0000)]
MFC r230514:
Merge illumos revisions 13572, 13573, 13574:

Rev. 13572:
disk sync write perf regression when slog is used post oi_148 [1]

Rev. 13573:
crash during reguid causes stale config [2]
allow and unallow missing from zpool history since removal of pyzfs [5]

Rev. 13574:
leaking a vdev when removing an l2cache device [3]
memory leak when adding a file-based l2arc device [4]
leak in ZFS from metaslab_group_create and zfs_ereport_checksum [6]

References:
https://www.illumos.org/issues/1909 [1]
https://www.illumos.org/issues/1949 [2]
https://www.illumos.org/issues/1951 [3]
https://www.illumos.org/issues/1952 [4]
https://www.illumos.org/issues/1953 [5]
https://www.illumos.org/issues/1954 [6]

Obtained from: illumos (issues #1909, #1949, #1951, #1952, #1953, #1954)

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

12 years agoMFC r230495:
mm [Tue, 7 Feb 2012 17:47:04 +0000 (17:47 +0000)]
MFC r230495:
Try resolving jail path with realpath(3).

jail(8) does a chdir(2) to the given path argument. Kernel evaluates the
jail path from the new cwd and not from the original cwd, which leads to
undesired behavior if given a relative path.

Reviewed by: jamie

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

12 years agoMFC r226441 and r226443
cognet [Tue, 7 Feb 2012 15:50:14 +0000 (15:50 +0000)]
MFC r226441 and r226443
r226441:
Explicitely set ARM_RAS_START and ARM_RAS_END once the cacheline or the
page has been allocated, or we could end up using random values, and bad things
 could happen.

 PR: arm/161492
 Submitted by: Ian Lepore <freebsd AT damnhippie dot dyndns DOT org>

r226443:
Fix 2 bugs :

- A race condition could happen if two threads were using RAS at the same time
  as the code didn't reset RAS_END, the RAS code could believe we were not in
  a RAS, when we were in fact.
- Using signed value logic to compare addresses wasn't such a good idea.
  Many thanks to Ian to investigate on these issues.

  Pointy hat to:  cognet
  PR: arm/161498
  Submitted by: Ian Lepore <freebsd At damnhippie DOT dyndns dot org

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

12 years agoMFC r230978:
kib [Tue, 7 Feb 2012 09:40:22 +0000 (09:40 +0000)]
MFC r230978:
Be as explicit as possible when describing relation between the -m mask
argument and slices. Adjust example for the same reason.

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

12 years agoMFC r222974:
np [Tue, 7 Feb 2012 07:56:00 +0000 (07:56 +0000)]
MFC r222974:
Add "context" subcommand to fetch and display SGE context.

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

12 years agoMFC r227893 and r228119:
emaste [Tue, 7 Feb 2012 04:06:21 +0000 (04:06 +0000)]
MFC r227893 and r228119:

  Avoid double free creating a new RAID with invalid command line
  arguments.

  In build_volume(), check if arrays is allocated before traversing its
  items.  While parsing the arrays input, it's possible that we reach the
  error path before initializing the 'arrays' pointer, which in turn leads
  to a NULL deference.

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

12 years agoMFC r226697 and r226708:
emaste [Tue, 7 Feb 2012 03:37:29 +0000 (03:37 +0000)]
MFC r226697 and r226708:

  Avoid printing // for packages that install to /

  I have some packages that install to / (for whatever reason).  Right now we
  print entries of the form //path/to/file when listing files (pkg_info -L,
  pkg_info -g etc.)  This change avoids printing the redundant / .

  Staticify elide_root() for now to fix build.

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

12 years agoMFC r219708:
emaste [Tue, 7 Feb 2012 03:15:12 +0000 (03:15 +0000)]
MFC r219708:

  Reemove uptime validity check that hasn't been necessary since r151417
  switched to clock_gettime.  vmstat will now not exit with an error
  if run on a system with 10 years of uptime.

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

12 years agoMFC r228825:
np [Tue, 7 Feb 2012 02:21:46 +0000 (02:21 +0000)]
MFC r228825:
Fix return value of function.

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

12 years agoMFC r228491, r228561, r228594.
np [Tue, 7 Feb 2012 01:26:29 +0000 (01:26 +0000)]
MFC r228491, r228561, r228594.

r228491:
Do not clobber the ingress queue's congestion setting.

r228561:
Many updates to cxgbe(4)

- Device configuration via plain text config file.  Also able to operate
  when not attached to the chip as the master driver.

- Generic "work request" queue that serves as the base for both ctrl and
  ofld tx queues.

- Generic interrupt handler routine that can process any event on any
  kind of ingress queue (via a dispatch table).

- A couple of new driver ioctls.  cxgbetool can now install a firmware
  to the card ("loadfw" command) and can read the card's memory
  ("memdump" and "tcb" commands).

- Lots of assorted information within dev.t4nex.X.misc.*  This is
  primarily for debugging and won't show up in sysctl -a.

- Code to manage the L2 tables on the chip.

- Updates to cxgbe(4) man page to go with the tunables that have changed.

- Updates to the shared code in common/

- Updates to the driver-firmware interface (now at fw 1.4.16.0)

r228594:
Catch up with new driver ioctls in cxgbe.

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

12 years agoMFC r222900 and r224768
np [Mon, 6 Feb 2012 21:23:12 +0000 (21:23 +0000)]
MFC r222900 and r224768

r222900:
cxgbetool: a tool for the cxgbe(4) driver.

r224768:
Move cxgbtool from usr.sbin to tools/tools.

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

12 years agoMFC r229714
np [Mon, 6 Feb 2012 18:47:07 +0000 (18:47 +0000)]
MFC r229714

Always release the inp lock before returning from tcp_detach.

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

12 years agoMFC r229692:
jh [Mon, 6 Feb 2012 17:28:55 +0000 (17:28 +0000)]
MFC r229692:

Check the return value of sbuf_finish() in pfs_readlink() and return
ENAMETOOLONG if the buffer overflowed.

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

12 years agoMFC r230212:
dumbbell [Mon, 6 Feb 2012 13:36:49 +0000 (13:36 +0000)]
MFC r230212:
sh: Fix execution of multiple statements in a trap when evalskip is set

Before this fix, only the first statement of the trap was executed if
evalskip was set. This is for example the case when:
    o  "-e" is set for this shell
    o  a trap is set on EXIT
    o  a function returns 1 and causes the script to abort

Reviewed by: jilles
Sponsored by: Yakaz (http://www.yakaz.com)

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

12 years agoMFC: r230787
brueffer [Mon, 6 Feb 2012 13:26:12 +0000 (13:26 +0000)]
MFC: r230787

Manpages for the buf_ring and drbr interfaces.

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

12 years agoMFC r230211:
dumbbell [Mon, 6 Feb 2012 13:17:57 +0000 (13:17 +0000)]
MFC r230211:
sh: Test EXIT trap with multiple statements in it

Reviewed by: jilles

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

12 years agoMFC r230785:
kib [Mon, 6 Feb 2012 10:35:21 +0000 (10:35 +0000)]
MFC r230785:
A debugger which requested PT_FOLLOW_FORK should get the notification
about new child not only when doing PT_TO_SCX, but also for PT_CONTINUE.
If TDB_FORK flag is set, always issue a stop, the same as is done for
TDB_EXEC.

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

12 years agoMFC: r230897
pfg [Sun, 5 Feb 2012 20:18:53 +0000 (20:18 +0000)]
MFC: r230897

Use new OSS-based BSD-licensed header for cs sound driver.

The cs driver requires a table with firmware values. An
alternative firmware is available in a similar Open Sound
System driver. This is actually a partial revert of
Revision 77504.

The csa driver is now free of the GPL.

Tested by: joel
Approved by: jhb (mentor)

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

12 years agoMFC r230325
sbruno [Sun, 5 Feb 2012 19:38:22 +0000 (19:38 +0000)]
MFC r230325

Wrap changes from svn r212126 inside LOADER_NFS_SUPPORT

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

12 years agoMFC r230313, r230316, r230323, r230588
sbruno [Sun, 5 Feb 2012 19:10:48 +0000 (19:10 +0000)]
MFC r230313, r230316, r230323, r230588

Support new raid controllers

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

12 years agoMFC r229699, r229744, r229778, r229944, r229945, r229946, r230092, r230395,
trociny [Sun, 5 Feb 2012 15:54:32 +0000 (15:54 +0000)]
MFC r229699, r229744, r229778, r229944, r229945, r229946, r230092, r230395,
  r230396, r230436, r230457, r230515, r230976:

r229699 (pjd):

Constify argument.

r229744 (pjd):

fork(2) returns -1 on failure, not some random negative number.

r229778 (uqs):

Spelling fixes for sbin/

r229944 (pjd):

Don't touch pidfiles when running in foreground. Before that change we
would create an empty pidfile on start and check if it changed on SIGHUP.

r229945 (pjd):

For functions that return -1 on failure check exactly for -1 and not for
any negative number.

r229946 (pjd):

- Fix a bug where pidfile was removed in SIGHUP when it hasn't changed in
  configuration file.
- Log the fact that pidfile has changed.

r230092 (pjd):

Style cleanups.

r230395 (pjd):

Remove unused token 'port'.

r230396 (pjd):

Remove another unused token.

r230436 (pjd):

Fix minor memory leak.

r230457 (pjd):

Free memory that won't be used in child.

r230515 (pjd):

- Fix documentation to note that /etc/hast.conf is the default configuration
  file for hastd(8) and hastctl(8) and not hast.conf.
- In copyright statement correct that this file is documentation, not software.
- Bump date.

r230976 (pjd):

Fix typo in comment.

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

12 years agoMFC r230611:
mav [Sat, 4 Feb 2012 15:43:16 +0000 (15:43 +0000)]
MFC r230611:
Return proper error message if recording device is not specified.

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

12 years agoMFC: r228740
pfg [Fri, 3 Feb 2012 23:35:39 +0000 (23:35 +0000)]
MFC: r228740

Many style fixes.
Remove C99 initializers: they don't help in this case.
Set errno to 0 before strtoll() (from NetBSD).

PR: 151850
Suggested by: bde
Approved by: jhb (Mentor)

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