]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r238509:
pfg [Tue, 21 Aug 2012 21:00:33 +0000 (21:00 +0000)]
MFC r238509:

Use libc's strndup() instead of Dtrace's reimplementation.

Corresponds partially to OpenSolaris change:
PSARC 2010/299 GNU/Linux/BSD compatibility functions
6901783 strndup would be nice.

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

11 years agoMFC r239192:
dim [Tue, 21 Aug 2012 19:45:48 +0000 (19:45 +0000)]
MFC r239192:

  Change a few extern inline functions in libm to static inline, since
  they need to refer to static constants, which C99 does not allow for
  extern inline functions.

  While here, change a comment in e_rem_pio2f.c to mention the correct
  number of bits.

  Reviewed by: bde

MFC r239195:

  Add __always_inline to __ieee754_rem_pio2() and __ieee754_rem_pio2f(),
  since some older versions of gcc refuse to inline these otherwise.

  Requested by: bde

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

11 years agoMove erroneous Subversion merge info for r239106 from sbin to
dim [Tue, 21 Aug 2012 19:32:55 +0000 (19:32 +0000)]
Move erroneous Subversion merge info for r239106 from sbin to
sbin/ggate.

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

11 years agoMFC r239106:
dim [Tue, 21 Aug 2012 19:26:49 +0000 (19:26 +0000)]
MFC r239106:

Make sure the compiler knows g_gate_xvlog() and g_gate_xlog() do not
return.  This silences a warning from clang 3.2 about uninitialized use
of the variable 'mediasize' in sbin/ggate/shared/ggate.c.

Reviewed by: pjd

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

11 years agoMFC r239104:
dim [Tue, 21 Aug 2012 19:24:39 +0000 (19:24 +0000)]
MFC r239104:

In sys/dev/aic7xxx/aic79xx_osm.c, function ahd_attach(), initialize the
'path' variable to NULL, to avoid using it uninitialized in certain
cases.

Found by: clang 3.2

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

11 years agoMFC r239102:
dim [Tue, 21 Aug 2012 19:21:46 +0000 (19:21 +0000)]
MFC r239102:

In sys/dev/cxgbe/firmware/t4fw_interface.h, change the enum
'fw_hdr_intfver' into an anonymous enum, which avoids a clang 3.2
warning about all the enum values being the same value.

Reviewed by: np

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

11 years agoMFC r239101:
dim [Tue, 21 Aug 2012 19:19:29 +0000 (19:19 +0000)]
MFC r239101:

In cxgb(4), in function iwch_reregister_phys_mem(), initialize the
'npages' variable to zero, to avoid using it uninitialized in certain
cases.

Found by: clang 3.2
Reviewed by: np

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

11 years agoMFC r239100:
dim [Tue, 21 Aug 2012 19:13:53 +0000 (19:13 +0000)]
MFC r239100:

Fix an instance in pam_krb5(8), where the variable 'user' could be used
uninitialized.

Found by: clang 3.2
Reviewed by: des

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

11 years agoMFC r239099:
dim [Tue, 21 Aug 2012 19:11:12 +0000 (19:11 +0000)]
MFC r239099:

Fix two instances in pam_krb5(8), where the variable 'princ_name' could
be used uninitialized.

Found by: clang 3.2
Reviewed by: des

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

11 years agoMFC r239074:
dim [Tue, 21 Aug 2012 19:03:04 +0000 (19:03 +0000)]
MFC r239074:

In usr.sbin/ctladm/ctladm.c, function cctl_error_inject(), initialize
the 'retval' variable to zero, to avoid returning garbage in several
cases.

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

11 years agoMFC r239071:
dim [Tue, 21 Aug 2012 18:55:19 +0000 (18:55 +0000)]
MFC r239071:

In usr.bin/make/var.c, function ParseModifier(), initialize the 'error'
variable to NULL, to avoid using it uninitialized in certain cases.

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

11 years agoMFC r239059:
dim [Tue, 21 Aug 2012 18:45:55 +0000 (18:45 +0000)]
MFC r239059:

In sbin/camcontrol/camcontrol.c, function smpcmd(), initialize the
'error' variable to zero, to avoid returning garbage in several cases.

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

11 years agoMFC r238673:
mav [Tue, 21 Aug 2012 11:40:31 +0000 (11:40 +0000)]
MFC r238673:
Use 16bit PIO instead of 32bit in case of misaligned buffer.
It fixes kernel panic during CD write with cdrecord on sparc64.

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

11 years agoMFC: r239079
marius [Tue, 21 Aug 2012 09:10:14 +0000 (09:10 +0000)]
MFC: r239079

Merge r236494 from x86:

Isolate the global TTE list lock from data and other locks to prevent false
sharing within the cache.

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

11 years agoMFC r238562: Removing bsd{ar,ranlib} found on my ancient installation.
avatar [Tue, 21 Aug 2012 06:09:43 +0000 (06:09 +0000)]
MFC r238562: Removing bsd{ar,ranlib} found on my ancient installation.

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

11 years agoMFC r239346:
lstewart [Tue, 21 Aug 2012 02:17:06 +0000 (02:17 +0000)]
MFC r239346:

The TCP PAWS fix for kernels with fast tick rates (r231767) changed the TCP
timestamp related stack variables to reference ms directly instead of ticks.
The h_ertt(4) Khelp module relies on TCP timestamp information in order to
calculate its enhanced RTT estimates, but was not updated as part of r231767.

Consequently, h_ertt has not been calculating correct RTT estimates since
r231767 was comitted, which in turn broke all delay-based congestion control
algorithms because they rely on the h_ertt RTT estimates.

Fix the breakage by switching h_ertt to use tcp_ts_getticks() in place of all
previous uses of the ticks variable. This ensures all timestamp related
variables in h_ertt use the same units as the TCP stack and therefore results in
meaningful comparisons and RTT estimate calculations.

Reported & tested by: Naeem Khademi (naeemk at ifi uio no)
Discussed with: bz

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

11 years agoMFC r227652, r228301, r234270, r234349
emaste [Tue, 21 Aug 2012 00:03:04 +0000 (00:03 +0000)]
MFC r227652, r228301, r234270, r234349

Sync Bryan Venteicher's virtio base, PCI front-end, and net/block/balloon
drivers from HEAD.

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

11 years agoMFC r239470: Do not call process_nodelete with NULL object pointer.
kan [Mon, 20 Aug 2012 23:47:24 +0000 (23:47 +0000)]
MFC r239470: Do not call process_nodelete with NULL object pointer.

The place where the function is called can be reached if object loading
and relocation fails too, in which case obj pointer will be NULL. Do not
call process_nodelete then, or crash will follow.

Pointy hat to: kan

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

11 years agoMFC r238631:
delphij [Mon, 20 Aug 2012 18:33:23 +0000 (18:33 +0000)]
MFC r238631:

Import an updated version of moduli(5) manual page from OpenBSD.

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

11 years agoMFC r239169:
delphij [Mon, 20 Aug 2012 18:26:16 +0000 (18:26 +0000)]
MFC r239169:

RFC 2289 requires all hashes be stored in little endian format before
folding to 64 bits, while SHA1 code is big endian.  Therefore, a bswap32
is required before using the value.

Without this change, the implementation does not conform to test vector
found in RFC 2289.

PR: bin/170519
Submitted by: Arthur Mesh <arthurmesh gmail com> (with changes)

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

11 years agoMFC r239084:
delphij [Mon, 20 Aug 2012 18:19:06 +0000 (18:19 +0000)]
MFC r239084:

Add PCI IDs for various new High Point RocketRAID 43xx and 3xxx devices.

Obtained from: FreeNAS

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

11 years agoMFC r238997:
delphij [Mon, 20 Aug 2012 18:01:17 +0000 (18:01 +0000)]
MFC r238997:

Correct a typo.

Reported by: Sascha Wildner <swildner dragonflybsd org>
Reviewed by: scottl

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

11 years agoMFH r236106: avoid segfault with SSH 1 keys
des [Mon, 20 Aug 2012 17:46:22 +0000 (17:46 +0000)]
MFH r236106: avoid segfault with SSH 1 keys

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

11 years agoMFC r239052:
tuexen [Mon, 20 Aug 2012 16:45:46 +0000 (16:45 +0000)]
MFC r239052:
Fix a refcount issue. The caller only decrements if stcb is NULL.

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

11 years agoMFC r239041:
tuexen [Mon, 20 Aug 2012 16:42:45 +0000 (16:42 +0000)]
MFC r239041:

Fix a bug reported by Simon L. B. Nielsen:
If an SCTP endpoint receives an ASCONF with a wildcard
lookup address and incorrect verification tag, the system
crashes.
This bug was found by Shaun Colley.

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

11 years agoMFC r239233:
wblock [Mon, 20 Aug 2012 16:31:23 +0000 (16:31 +0000)]
MFC r239233:

Correct description of minfree to kilobytes rather than blocks.

PR: 125921
Submitted by: Andre Albsmeier <Andre.Albsmeier@siemens.com>

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

11 years agoMFC r239021:
jimharris [Mon, 20 Aug 2012 16:11:13 +0000 (16:11 +0000)]
MFC r239021:

In virstor_ctl_stop(), check for a valid softc before trying to update
metadata.

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

11 years agoMFC r239253: Pospone the DF_1_NODELETE processing until object DAG is
kan [Mon, 20 Aug 2012 15:34:06 +0000 (15:34 +0000)]
MFC r239253: Pospone the DF_1_NODELETE processing until object DAG is
fully loaded.

Trying to up the reference from the load loop risks missing
dependencies that have not been loaded yet.

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

11 years agoMFC r239095: Do not add handler to event handlers list until ithread
kan [Mon, 20 Aug 2012 15:16:43 +0000 (15:16 +0000)]
MFC r239095: Do not add handler to event handlers list until ithread
is created.

In rare event when fast and ithread interrupts share the same vector
and the fast handler was registered first, we can end up trying to
schedule the ithread that is not created yet. The kernel built with
INVARIANTS then triggers an assertion.

Change the order to create the ithread first and only then add the
handler that needs it to the interrupt event handlers list.

Reviewed by: jhb

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

11 years agoMFC r239019: Parse notes only after object structure had been allocated.
kan [Mon, 20 Aug 2012 15:08:22 +0000 (15:08 +0000)]
MFC r239019: Parse notes only after object structure had been allocated.

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

11 years agoMFC r230636:
emaste [Mon, 20 Aug 2012 14:54:30 +0000 (14:54 +0000)]
MFC r230636:

  pmc_*_initialize may return NULL if the CPU is not supported, so check
  that md is not null before dereferencing it.

PR:             kern/156540

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

11 years agoMFC r231973: Avoid error log for transfer stop w/o error code.
emaste [Mon, 20 Aug 2012 14:52:43 +0000 (14:52 +0000)]
MFC r231973: Avoid error log for transfer stop w/o error code.

A number of tftp clients, including the one in Intel's pxe boot loader,
may intentionally stop a transfer using error code 0 (i.e., EUNDEF).
These are not real errors.  Avoid spamming log files with these by
logging them at level LOG_DEBUG instead.

Discussed on -hackers with an initial patch proposal; this change is an
improved approach suggested by kan@.

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

11 years agoMFC r232666: Improve multi-line kernel ident parsing
emaste [Mon, 20 Aug 2012 14:49:06 +0000 (14:49 +0000)]
MFC r232666: Improve multi-line kernel ident parsing

  Instead of blindly grabbing the line with 'Version string' and the
  following one from the core info file, take all lines after 'Version
  string' until the one one that matches the field format in the core info
  file.  This provides compatibility with VendorBSD modifications that have
  a different kernel ident format.

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

11 years agoMFC r236157: Add IPPROTO_MPLS (rfc4023) IP protocol definition
emaste [Mon, 20 Aug 2012 14:42:29 +0000 (14:42 +0000)]
MFC r236157: Add IPPROTO_MPLS (rfc4023) IP protocol definition

There are currently no in-tree consumers; I'm adding it now for use by
vendor code.  This matches the change OpenBSD made while implementing
MPLS in gif(4).

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

11 years agoMFC r238844: Add version so others can depend on this module
emaste [Mon, 20 Aug 2012 14:37:50 +0000 (14:37 +0000)]
MFC r238844: Add version so others can depend on this module

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

11 years agoMFC r239130: Minor style(9) improvement
emaste [Mon, 20 Aug 2012 14:34:30 +0000 (14:34 +0000)]
MFC r239130: Minor style(9) improvement

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

11 years agoMFC r232844: Remove extraneous log message
emaste [Mon, 20 Aug 2012 14:26:16 +0000 (14:26 +0000)]
MFC r232844: Remove extraneous log message

  When ntp switched between PLL and FLL mode it produced a log message
  "kernel time sync status change %04x".  This issue is reported in ntp
  bug 452[1] which claims that this behaviour is normal and the log
  message isn't necessary.  I'm not sure exactly when it was removed, but
  it's gone in the latest ntp release (4.2.6p5).

  [1] http://bugs.ntp.org/show_bug.cgi?id=452

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

11 years agoMFC r238718: Quirk MS keyboard so that function keys work
emaste [Mon, 20 Aug 2012 14:12:24 +0000 (14:12 +0000)]
MFC r238718: Quirk MS keyboard so that function keys work

  The function keys on a Microsoft Natural Egronomic Keyboard 4000 have been
  repurposed as "Help", "Undo", "Redo" etc., and a special "F Lock" key is
  required to return them to their normal purpose.

  This change enables the UQ_KBD_BOOTPROTO quirk for the MS Natural 4000
  keyboard to get the keys working again.  More extensive changes to the USB
  keyboard infrastructure would be needed to fully support the "F Lock" mode
  and the extended keys on this keyboard.

PR:             usb/116947

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

11 years agoMFC r238183:
emaste [Mon, 20 Aug 2012 14:05:19 +0000 (14:05 +0000)]
MFC r238183:

  Correct BUGS description of static buffer use

  Since r142667 strerror has unconditionally returned a pointer to a
  static buffer.

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

11 years agoMFC r238183:
emaste [Mon, 20 Aug 2012 13:59:22 +0000 (13:59 +0000)]
MFC r238183:

  Implement SIOCGIFMEDIA for if_tap(4)

  Appease certain if_tap(4) consumers by providing simulated Ethernet
  media status.

  DragonFly commit 70d9a675bf5441cc854a843ead702d08928c37f3

Obtained from:  DragonFly BSD
Sponsored by:   ADARA Networks

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

11 years agoMFC r239216, r239217:
gjb [Mon, 20 Aug 2012 13:06:51 +0000 (13:06 +0000)]
MFC r239216, r239217:

r239216:
 - Remove a leading space that breaks rendering

r239217:
 - Fix source dataset snapshot name in Example 15.
 - Bump date.

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

11 years agoMFC r238969:
mav [Mon, 20 Aug 2012 12:09:02 +0000 (12:09 +0000)]
MFC r238969:
Fix kernel panic on `camcontrol reset` for specific target, caused by
uninitialized cm_targ in mpssas_action_resetdev().

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

11 years agoMFC r232197 (on behalf of phk):
kib [Mon, 20 Aug 2012 12:07:10 +0000 (12:07 +0000)]
MFC r232197 (on behalf of phk):
Also call the low-level driver if ->c_iflag & (IXON|IXOFF|IXANY) changes.

Uftdi(4) examines (c_iflag & (IXON|IXOFF)) to control hw XON-XOFF support.
This is obviously no good, if changes to those bits are not communicated
down the stack.

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

11 years agoMFC r239228: Build modules along with the XENHVM kernels.
cperciva [Mon, 20 Aug 2012 11:34:49 +0000 (11:34 +0000)]
MFC r239228: Build modules along with the XENHVM kernels.

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

11 years agoMake the addition of the d_gone binary compatible. This allows
imp [Wed, 8 Aug 2012 20:21:33 +0000 (20:21 +0000)]
Make the addition of the d_gone binary compatible.  This allows
storage drivers compiled for 9.0 to work on 9.1 and preserves the ABI
for disks.

Reviewed by: scottl, ken
Approved by: re@ (kensmith)
MFS after: releng/9.1 gets sorted

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

11 years agoSince releng/9.1 has been copied bump __FreeBSD_version so stable/9 will
kensmith [Sun, 5 Aug 2012 23:59:32 +0000 (23:59 +0000)]
Since releng/9.1 has been copied bump __FreeBSD_version so stable/9 will
not have a value lower than what will be in releng/9.1 shortly.

Approved by: re (implicit)

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

11 years agoMFC r238622
emax [Thu, 2 Aug 2012 20:49:11 +0000 (20:49 +0000)]
MFC r238622

Allow to specify no source-address-selection policy

Approved by: re (kib)

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

11 years agoMFC r238599
emax [Thu, 2 Aug 2012 20:48:22 +0000 (20:48 +0000)]
MFC r238599

Return zero from get_addrselectpolicy() when no source-address-selection
policy is installed.

Approved by: re (kib)

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

11 years agoMFC r238795
ache [Thu, 2 Aug 2012 15:13:12 +0000 (15:13 +0000)]
MFC r238795

Try to avoid all files dependence on the modification time of the large
and often modified directory created symbolic links points to - it cause
unnecessary full rebuilds each time make runs when directory is changed.
So do it only if symbolic link does not exists, which usually means that
objdir is clean anyway.

Approved by:    re (kib)

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

11 years agoMFC 238164:
jhb [Mon, 30 Jul 2012 20:40:14 +0000 (20:40 +0000)]
MFC 238164:
Add another PS/2 keyboard PNP ID.  This ID is listed as
"Reserved by Microsoft" in the standard PNP ID table, but has been seen
in the wild on at least one laptop.

Approved by: re (kib)

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

11 years agoMFC r238755:
jimharris [Mon, 30 Jul 2012 15:30:42 +0000 (15:30 +0000)]
MFC r238755:

Add rmb() to tsc_read_##x to enforce serialization of rdtsc captures.

Intel Architecture Manual specifies that rdtsc instruction is not serialized,
so without this change, TSC synchronization test would periodically fail,
resulting in use of HPET timecounter instead of TSC-low.  This caused
severe performance degradation (40-50%) when running high IO/s workloads due to
HPET MMIO reads and GEOM stat collection.

Tests on Xeon E5-2600 (Sandy Bridge) 8C systems were seeing TSC synchronization
fail approximately 20% of the time.

Sponsored by: Intel
Approved by: re (kib)

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

11 years agoMFC r237939: ctype_l(3): Note that not all these functions are specified by
jilles [Mon, 30 Jul 2012 12:25:20 +0000 (12:25 +0000)]
MFC r237939: ctype_l(3): Note that not all these functions are specified by
POSIX.1-2008.

The function isascii_l() is not in POSIX even though isascii() is, probably
because isascii() is marked as obsolete.  The other functions, like
digittoint_l() and ishexnumber_l(), are FreeBSD-specific just like their
non-_l versions.

Approved by: re (kib)

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

11 years agoPull the tier-2 card and change the sparc64 ZFS loader to no longer probe
marius [Mon, 30 Jul 2012 11:11:05 +0000 (11:11 +0000)]
Pull the tier-2 card and change the sparc64 ZFS loader to no longer probe
all diskN aliases for providers (which more or less corresponds to how the
x86 version behaves) but instead probe only those listed in the boot-device
OFW environment variable. This has the following advantages:
- avoids otherwise unavoidable OFW warnings about failures to open disks
  for which aliases exist but no actual hardware is connected
- avoids issues due to different diskN naming schemes
- aligns us with Solaris

Approved by: re (kib)

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

11 years agoMFC r238707:
gjb [Sun, 29 Jul 2012 18:52:01 +0000 (18:52 +0000)]
MFC r238707:
Document the following in rc.conf.5:
 - rtsold_enable
 - rtsold_flags
 - rtsol_flags

Approved by: re (kib)

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

11 years agoMFC r238871:
bz [Sat, 28 Jul 2012 23:11:09 +0000 (23:11 +0000)]
MFC r238871:

  Hardcode the loopback rx/tx checkum options for IPv6 to on without
  checking. This allows the FreeBSD 9.1 release process to move forward.
  Work around the problem that loopback connections to local addresses
  not on loopback interfaces and not on interfaces w/ IPv6 checksum offloading
  enabled would not work.
  A proper fix to allow us to disable the "checksum offload" on loopback
  for testing, measurements, ... as we allow for IPv4 needs to put in
  place later.

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

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

11 years agoMFC r238790:
tuexen [Sat, 28 Jul 2012 22:42:52 +0000 (22:42 +0000)]
MFC r238790:

Fix the sctp_sockstore union such that userland programs don't depend
on INET and/or INET6 to be defined and in-tune with how the kernel
was compiled.

Approved by: re (kib)

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

11 years agoMFC r235285:
hrs [Sat, 28 Jul 2012 21:43:29 +0000 (21:43 +0000)]
MFC r235285:
 Skip nd6 line with no warning message when the system does not support
 INET6.

Spotted by: flo
Approved by: re (kib)

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

11 years agoMFC r238721:
dim [Sat, 28 Jul 2012 11:28:00 +0000 (11:28 +0000)]
MFC r238721:

When WITHOUT_CLANG is being used, also clean out the clang 3.1 headers
in OptionalObsoleteFiles.inc.

PR: misc/169902
Submitted by: Thomas Eberhardt <sneakywumpus@googlemail.com>
Approved by: re (kib)

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

11 years agoMFC r238753:
trociny [Fri, 27 Jul 2012 19:56:36 +0000 (19:56 +0000)]
MFC r238753:

Align the header with output.

Approved by: re (kib)

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

11 years agoMFC: r238461
bapt [Fri, 27 Jul 2012 09:35:06 +0000 (09:35 +0000)]
MFC: r238461

Make pkg bootstrap program ask for confirmation before proceeding.

The previous behaviour was to silently download and install the pkg
package, without ever telling user about what it was doing and why.

Approved by: re, des (mentor)

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

11 years agoSynced mdoc(7) with head.
ru [Thu, 26 Jul 2012 19:18:26 +0000 (19:18 +0000)]
Synced mdoc(7) with head.

Approved by: re (kib)

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

11 years agoMFC: r238393
brueffer [Thu, 26 Jul 2012 09:13:47 +0000 (09:13 +0000)]
MFC: r238393

Add and utilize defines for the ATA device register.

Approved by: re (kib)

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

11 years agoMFC r238700:
bz [Wed, 25 Jul 2012 19:18:28 +0000 (19:18 +0000)]
MFC r238700:

  Fix a bug introduced in r221129 that leads to a panic when using bundled
  SAs.  For now allow same address family bundles.

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

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

11 years agoMFC r238705:
wblock [Wed, 25 Jul 2012 13:05:11 +0000 (13:05 +0000)]
MFC r238705:

Correct ugen.4 to show that it has been integrated into usb(4).  Also
fix some punctuation errors.

Approved by: re (kib)

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

11 years agoMFC: r238574
brueffer [Wed, 25 Jul 2012 10:55:14 +0000 (10:55 +0000)]
MFC: r238574

Fix a small memory leak in mpssas_get_sata_identify().  The change has
been submitted upstream as well.

Approved by: re (kib)

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

11 years agoMFV r238744:
dougb [Tue, 24 Jul 2012 22:32:03 +0000 (22:32 +0000)]
MFV r238744:

Heavy DNSSEC Validation Load Can Cause a "Bad Cache" Assertion Failure
in BIND9

High numbers of queries with DNSSEC validation enabled can cause an
assertion failure in named, caused by using a "bad cache" data structure
before it has been initialized.

CVE: CVE-2012-3817
Posting date: 24 July, 2012

Approved by: re (kib)

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

11 years agoMFC r238666:
mav [Mon, 23 Jul 2012 15:19:21 +0000 (15:19 +0000)]
MFC r238666:
Fix typo in bzero() length argument during sense fetching.
For me it at least fixed CD burning in PIO mode.

Approved by: re (kib)

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

11 years agoMerge r238637,r238640,r238641,r238642:
davidxu [Mon, 23 Jul 2012 09:33:31 +0000 (09:33 +0000)]
Merge r238637,r238640,r238641,r238642:

------------------------------------------------------------------------
r238637 | davidxu | 2012-07-20 09:56:14 +0800 (Fri, 20 Jul 2012) | 6 lines

Don't forget to release a thread reference count,
replace _thr_ref_add() with _thr_find_thread(),
so reference count is no longer needed.

------------------------------------------------------------------------
r238640 | davidxu | 2012-07-20 11:00:41 +0800 (Fri, 20 Jul 2012) | 2 lines

Eliminate duplicated code.

------------------------------------------------------------------------
r238641 | davidxu | 2012-07-20 11:16:52 +0800 (Fri, 20 Jul 2012) | 2 lines

Eliminate duplicated code.

------------------------------------------------------------------------
r238642 | davidxu | 2012-07-20 11:22:17 +0800 (Fri, 20 Jul 2012) | 2 lines

Don't assign same value.

Approved by: re (kib)

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

11 years agoMerge from head r238572, r238573:
glebius [Mon, 23 Jul 2012 09:19:14 +0000 (09:19 +0000)]
Merge from head r238572, r238573:
  ------------------------------------------------------------------------
  r238572 | glebius | 2012-07-18 12:41:00 +0400 (ср, 18 июл 2012) | 3 lines

  When traversing global in_ifaddr list in the IFP_TO_IA() macro, we need
  to obtain IN_IFADDR_RLOCK().

  ------------------------------------------------------------------------
  r238573 | glebius | 2012-07-18 12:58:30 +0400 (ср, 18 июл 2012) | 5 lines

  Plug a reference leak: before doing 'goto again' we need to unref
  ia->ia_ifa if there is any.

  Submitted by:   Andrey Zonov <andrey zonov.org>

Approved by: re (kib)

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

11 years agoMFC: r238621
marius [Sun, 22 Jul 2012 14:32:49 +0000 (14:32 +0000)]
MFC: r238621

Revert the use of BUS_DMA_ALLOCNOW when creating the DMA tag for user
data introduced in r236061 (MFC'ed to stable/9 in r237186). Using that
flag doesn't make that much sense on this case as the DMA maps using
it are also created during sym_pci_attach(). Moreover, due to the
maxsegsz parameter used, doing so may exhaust the bounce pages pool
on architectures requiring bounce pages. [1]
While at it, use a slightly more appropriate maxsegsz parameter.

PR: 169526
Submitted by: Mike Watters [1]
Approved by: re (kib)

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

11 years agoFix mergeinfo that should have been committed as part of r238683.
issyl0 [Sun, 22 Jul 2012 11:07:59 +0000 (11:07 +0000)]
Fix mergeinfo that should have been committed as part of r238683.

Approved by: gavin
Approved by: re (kib), implicit, approved in original merge request

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

11 years agoMFC r238063:
issyl0 [Sun, 22 Jul 2012 11:00:02 +0000 (11:00 +0000)]
MFC r238063:
 - Make ipfw's sched rules case insensitive, for user-friendliness.
 - Add a note to the ipfw(8) man page about the rules no longer being
 case sensitive.
 - Fix some typos in the man page.

PR: docs/164772
Reviewed by: bz
Approved by: gavin
Approved by: re (kib)

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

11 years agoMFC r238617:
kib [Sun, 22 Jul 2012 00:44:22 +0000 (00:44 +0000)]
MFC r238617:
Fix several reads beyond the mapped first page of the binary in the
ELF parser. Specifically, do not allow note reader and interpreter
path comparision in the brandelf code to read past end of the page.
This may happen if specially crafter ELF image is activated.

Approved by: re (hrs)

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

11 years agoMFC r231257, r238606:
gjb [Sat, 21 Jul 2012 01:07:05 +0000 (01:07 +0000)]
MFC r231257, r238606:

r231257 (kevlo):
Mention run(4)

r238606:
Xref mwl(4) and rum(4) in hostapd(8).

Approved by: re (kib)

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

11 years agoMFC r238550:
tuexen [Fri, 20 Jul 2012 09:49:50 +0000 (09:49 +0000)]
MFC r238550:

Fix a refcount bug when freeing an association.
While there: Change code to be consistent.

Discussed with: rrs
Approved by: re (kib)

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

11 years agoMFC r238527:
pgj [Fri, 20 Jul 2012 06:50:57 +0000 (06:50 +0000)]
MFC r238527:

  - Add support for displaying process stack memory regions.

Approved by: re (kib), rwatson

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

11 years agoMFC r238501, r 238514:
tuexen [Thu, 19 Jul 2012 09:32:59 +0000 (09:32 +0000)]
MFC r238501, r 238514:
Changes which improve compilation if neither INET nor INET6 is defined.

Allow netstat to be build if INET is not defined in the kernel.
Thanks to Garrett Cooper for reporting the issue.

This also fixes a bug where netstat doesn't work correctly for SCTP
on INET only (no INET6) kernels.

Approved by: re@

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

11 years agoMerge r230119, r238498 from head:
glebius [Wed, 18 Jul 2012 16:13:03 +0000 (16:13 +0000)]
Merge r230119, r238498 from head:

------------------------------------------------------------------------
r230119 | csjp | 2012-01-15 02:51:34 +0400 (вс, 15 янв 2012) | 9 lines

Revert to the old behavior of allocating table/table entries using
M_NOWAIT.  Currently, the code allows for sleeping in the ioctl path
to guarantee allocation.  However code also handles ENOMEM gracefully, so
propagate this error back to user-space, rather than sleeping while
holding the global pf mutex.

Reviewed by:    glebius
Discussed with: bz

------------------------------------------------------------------------
r238498 | glebius | 2012-07-15 23:10:00 +0400 (вс, 15 июл 2012) | 2 lines

Use M_NOWAIT while holding the pf giant lock.

Approved by: re (kib)

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

11 years agoMFC: r238363
brueffer [Wed, 18 Jul 2012 10:56:48 +0000 (10:56 +0000)]
MFC: r238363

- fix description of SECURITY_FREEZE_LOCK
- add missing underscores to SECURITY_DISABLE_PASSWORD

Approved by: re (hrs)

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

11 years agoMFC: r238486
brueffer [Wed, 18 Jul 2012 10:42:30 +0000 (10:42 +0000)]
MFC: r238486

Fix typo in a message.

Approved by: re (hrs)

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

11 years agoMFC r238475:
tuexen [Wed, 18 Jul 2012 09:16:59 +0000 (09:16 +0000)]
MFC r238475:
#ifdef INET and INET6 consistently. This also fixes a bug, where
it was done wrong.

Approved by: re@

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

11 years agoMFC r238220, r238272:
mjg [Wed, 18 Jul 2012 04:52:37 +0000 (04:52 +0000)]
MFC r238220, r238272:

Unbreak handling of descriptors opened with O_EXEC by fexecve(2).

While here return EBADF for descriptors opened for writing (previously it was ETXTBSY).

Add fgetvp_exec function which performs appropriate checks.

==

Follow-up commit to r238220:

Pass only FEXEC (instead of FREAD|FEXEC) in fgetvp_exec. _fget has to check for
!FWRITE anyway and may as well know about FREAD.

Make _fget code a bit more readable by converting permission checking from if()
to switch(). Assert that correct permission flags are passed.

PR: kern/169651
In collaboration with: kib
Approved by: re (hrs), trasz (mentor)

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

11 years agoMFC r237479, r238265
melifaro [Tue, 17 Jul 2012 19:29:32 +0000 (19:29 +0000)]
MFC r237479, r238265

Finally fix lookup (account remaining '\0') and deletion
(provide valid key length for radix lookup).

Submitted by:    Ihor Kaharlichenko<madkinder at gmail.com>  (prev version)
Approved by:     re(hrs), kib(mentor)
Sponsored by:    Shtorm ISP

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

11 years agoMFC r237203,r237223 (by phk):
kib [Tue, 17 Jul 2012 19:00:46 +0000 (19:00 +0000)]
MFC r237203,r237223 (by phk):
Fix writes to the video memory of the VGA to always use half-word sized
writes.

Approved by:    re (hrs), phk

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

11 years agoMFC r238429:
dim [Tue, 17 Jul 2012 18:04:34 +0000 (18:04 +0000)]
MFC r238429:

Pull in r159895 from upstream clang trunk:

  When marking virtual functions as used for a class' vtable, mark all functions
  which will appear in the vtable as used, not just those ones which were
  declared within the class itself. Fixes an issue reported as comment#3 in
  PR12763 -- we sometimes assert in codegen if we try to emit a reference to a
  function declaration which we've not marked as referenced. This also matches
  gcc's observed behavior.

This should fix clang assertions when building certain components of the
LibreOffice port.

Approved by: re (kib)

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

11 years agoMFC r238458:
tuexen [Tue, 17 Jul 2012 11:33:24 +0000 (11:33 +0000)]
MFC r238458:
Provide the correct notification type (SCTP_SEND_FAILED_EVENT)
for unsent messages.

Approved by: re@

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

11 years agoMFC r238454:
tuexen [Tue, 17 Jul 2012 11:18:39 +0000 (11:18 +0000)]
MFC r238454:

Bugfix: Send up a COMM UP notification for active 1-to-1 style sockets
      also in the case where the assoc comes up due to a remotely
      started handshake (collision case).
Approved by: re@

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

11 years agoMFC r238281:
ae [Mon, 16 Jul 2012 08:16:41 +0000 (08:16 +0000)]
MFC r238281:
  We don't need to check the result of sending signal when R flag is
  specified.

  Submitted by: Ilya A. Arkhipov

Approved by: re (kib)

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

11 years agoMFC r238328:
davidxu [Mon, 16 Jul 2012 02:10:26 +0000 (02:10 +0000)]
MFC r238328:

Executing CPUID with EAX set to 1 to actually get feature flags.
PR:     169730
Approved by:    re (kib)

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

11 years agoMFC r238168,238169: further dtrace disassembler fixes for long nop decoding
avg [Sun, 15 Jul 2012 20:38:02 +0000 (20:38 +0000)]
MFC r238168,238169: further dtrace disassembler fixes for long nop decoding

- segment-override prefixes are not invalid in long mode
- fix nopw (0f 1f) behavior with respect to modifiers

Reported by: emaste
Tested by: emaste
Obtained from: Illumos commit 13442:4adbe6de60c8
Approved by: re (kib)

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

11 years agoMerge r237929, r237930 from head:
glebius [Sun, 15 Jul 2012 19:52:23 +0000 (19:52 +0000)]
Merge r237929, r237930 from head:

  ------------------------------------------------------------------------
  r237929 | glebius | 2012-07-01 19:30:43 +0400 (вс, 01 июл 2012) | 6 lines

  In g_mirror_regular_request() upon successful delivery treat
  BIO_DELETE requests same way as BIO_WRITE removing them from
  queue. This fixes panic with BIO_DELETE operations on geom_mirror.

  Reviewed by:    pjd

  ------------------------------------------------------------------------
  r237930 | glebius | 2012-07-01 19:43:52 +0400 (вс, 01 июл 2012) | 20 lines

  Make geom_mirror more friendly to SSDs. To properly support TRIM,
  we need to pass BIO_DELETE requests down to providers that support
  it. Also, we need to announce our support for BIO_DELETE to upper
  consumer. This requires:

  - In g_mirror_start() return true for "GEOM::candelete" request.
  - In g_mirror_init_disk() probe below provider for "GEOM::candelete"
    attribute, and mark disk with a flag if it does support BIO_DELETE.
  - In g_mirror_register_request() distribute BIO_DELETE requests only
    to those disks, that do support it.

  Note that we announce "GEOM::candelete" as true unconditionally of
  whether we have TRIM-capable media down below or not. This is made
  intentionally, because upper consumer (usually UFS) requests the
  attribite only once at mount time. And if user ever migrates his
  mirror from HDDs to SSDs, then he/she would get TRIM working without
  remounting filesystem.

  Reviewed by:    pjd

Approved by: re (kib)

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

11 years agoMFH r237270: no need to specify passive mode, it is the default.
des [Sun, 15 Jul 2012 12:13:15 +0000 (12:13 +0000)]
MFH r237270: no need to specify passive mode, it is the default.

Approved by: re

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

11 years agoMFH r237269: switch default password hash to sha512.
des [Sun, 15 Jul 2012 12:00:47 +0000 (12:00 +0000)]
MFH r237269: switch default password hash to sha512.

Approved by:    re

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

11 years agoMFC r237573:
issyl0 [Sun, 15 Jul 2012 11:39:56 +0000 (11:39 +0000)]
MFC r237573:
 Add more locale-specific functions to the relevant man pages and
 Makefiles:
   - libc/stdtime/strftime.3
   - libc/stdtime/strptime.3
   - libc/stdlib/strfmon.3

Approved by: gabor (mentor)
Approved by: re (kib)

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

11 years agoMFH r236751: document sha256 / sha512 support
des [Sun, 15 Jul 2012 11:39:35 +0000 (11:39 +0000)]
MFH r236751: document sha256 / sha512 support
MFH r236892: remove mention of auth.conf from programs that don't use it
MFH r236963: remove dead code relating to auth.conf
MFH r236965 r236966 r236967 r237005 r237006 r237011: retire auth.conf

Approved by:    re

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

11 years agoMFC r238248:
bz [Sun, 15 Jul 2012 11:27:15 +0000 (11:27 +0000)]
MFC r238248:

 Implement handling of "atomic fragements" as outlined in
 draft-gont-6man-ipv6-atomic-fragments to mitigate one class of
 possible fragmentation-based attacks.

Approved by: re (kib)

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

11 years agoMFC: r234577
brueffer [Sun, 15 Jul 2012 11:26:24 +0000 (11:26 +0000)]
MFC: r234577

Remove duplicate -l description.

Approved by: re (kib)

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

11 years agoMFC r238222:
bz [Sun, 15 Jul 2012 11:13:09 +0000 (11:13 +0000)]
MFC r238222:

  As mentioned in the commit message of r237571 (copied from a prototype
  patch of mine) also check if the 2nd in6_setscope() failed and return
  the error in that case.

Approved by: re (kib)

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

11 years agoMFC: r237921
brueffer [Sun, 15 Jul 2012 10:55:43 +0000 (10:55 +0000)]
MFC: r237921

Similar to all.log, mention that /var/log/console.log has to be created
and chmod'ed to make logging work.

Approved by: re (kib)

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

11 years agoMFC r238313:
np [Sun, 15 Jul 2012 05:24:19 +0000 (05:24 +0000)]
MFC r238313:

Fix a bug in code that calculates the number of the first interrupt
vector for a port. This affected the gigabit ports of T422 cards (the
ones with 2x10G ports and 2x1G ports).

Approved by: re (kib)

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