]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
11 years agoMFC r240339: openssl: change SHLIB_VERSION_NUMBER to reflect the reality
avg [Sun, 14 Oct 2012 07:28:21 +0000 (07:28 +0000)]
MFC r240339: openssl: change SHLIB_VERSION_NUMBER to reflect the reality

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

11 years agoMFC r240634: acpi_cpu: explicitly notify userland about c-state changes
avg [Sun, 14 Oct 2012 07:17:55 +0000 (07:17 +0000)]
MFC r240634: acpi_cpu: explicitly notify userland about c-state changes

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

11 years agoMFC r241353, r241356, r241400
alc [Sat, 13 Oct 2012 22:22:53 +0000 (22:22 +0000)]
MFC r241353, r241356, r241400
  To avoid page table page corruption, change pmap_pv_reclaim()'s method
  of mapping page table pages.

  Add some assertions that were helpful in debugging the page table page
  corruption.

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

11 years agoMFC r241430:
dim [Sat, 13 Oct 2012 13:00:51 +0000 (13:00 +0000)]
MFC r241430:

Pull in r164132 from upstream llvm trunk:

  When creating MCAsmBackend pass the CPU string as well. In X86AsmBackend
  store this and use it to not emit long nops when the CPU is geode which
  doesnt support them.

  Fixes PR11212.

Pull in r164133 from upstream clang trunk:

  Follow up on llvm r164132.

This should prevent illegal instructions when building world on Geode
CPUs (e.g. Soekris).

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

11 years agoMFC r241427:
dim [Sat, 13 Oct 2012 12:56:04 +0000 (12:56 +0000)]
MFC r241427:

Pull in r163710 from upstream llvm trunk:

  Add support for AMD Geode.

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

11 years agoMFC r241137,r241154
ache [Fri, 12 Oct 2012 13:17:19 +0000 (13:17 +0000)]
MFC r241137,r241154

Using putenv() and later direct pointer contents modification it is possibe
to craft environment variables with similar names like that:
a=1
a=2
...
unsetenv("a") should remove them all to make later getenv("a") impossible.
Fix it to do so (this is GNU autoconf test #3 failure too).

PR:             172273

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

11 years agoMFC r241155
alc [Fri, 12 Oct 2012 03:09:59 +0000 (03:09 +0000)]
MFC r241155
  Update some of the comments.  In particular, use "sleep" in preference
  to "block" where appropriate.

  Eliminate some unnecessary casts.

  Make a few whitespace changes for consistency.

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

11 years agoMFC r241373:
eadler [Fri, 12 Oct 2012 02:12:53 +0000 (02:12 +0000)]
MFC r241373:
Remove undefined behavior from sranddev() and
srandomdev(). This doesn't actually work
with any modern C compiler:

In particular, both clang and modern gcc
verisons silently elide any xor operation
with 'junk'.

Approved by: cperciva (implicit)

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

11 years agoMFC r240389,r240409:
eadler [Fri, 12 Oct 2012 02:10:27 +0000 (02:10 +0000)]
MFC r240389,r240409:
-  Add support for ipv6 addresses as destination
-  Add documentation for IPv6 support

PR: docs/171580
Approved by: cperciva (implicit)

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

11 years agoMFC r239624:
np [Thu, 11 Oct 2012 23:02:35 +0000 (23:02 +0000)]
MFC r239624:

Allow nmbjumbop, nmbjumbo9, and nmbjumbo16 to be set directly via loader
tunables.

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

11 years agoMFC r240452-240453.
np [Thu, 11 Oct 2012 22:46:20 +0000 (22:46 +0000)]
MFC r240452-240453.

r240452:
Use native FreeBSD facilities everywhere except the shared code in common/

r240453:
Install interrupt handlers early, during attach, for the reason
explained in r239913 by jhb.

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

11 years agoMFC r240451:
np [Thu, 11 Oct 2012 22:30:10 +0000 (22:30 +0000)]
MFC r240451:
Allow cxgbe to be built into a kernel with "device cxgbe."

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

11 years agoMFC r240443:
np [Thu, 11 Oct 2012 21:29:11 +0000 (21:29 +0000)]
MFC r240443:
Update interface to firmware 1.6.2 and include the firmware in the driver.

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

11 years agoMFC r233850:
np [Thu, 11 Oct 2012 21:15:54 +0000 (21:15 +0000)]
MFC r233850:
- Remove redundant call to pr_ctloutput from code that handles SO_SETFIB.
- Add a check for errors during copyin while here.

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

11 years agoPoint freebsd.org nullclient cluster machines to mx1
peter [Thu, 11 Oct 2012 20:48:45 +0000 (20:48 +0000)]
Point freebsd.org nullclient cluster machines to mx1

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

11 years agoMerge r241129:
glebius [Thu, 11 Oct 2012 01:32:51 +0000 (01:32 +0000)]
Merge r241129:
  There is a complex race in in_pcblookup_hash() and in_pcblookup_group().
  Both functions need to obtain lock on the found PCB, and they can't do
  classic inter-lock with the PCB hash lock, due to lock order reversal.
  To keep the PCB stable, these functions put a reference on it and after PCB
  lock is acquired drop it. If the reference was the last one, this means
  we've raced with in_pcbfree() and the PCB is no longer valid.

    This approach works okay only if we are acquiring writer-lock on the PCB.
  In case of reader-lock, the following scenario can happen:

    - 2 threads locate pcb, and do in_pcbref() on it.
    - These 2 threads drop the inp hash lock.
    - Another thread comes to delete pcb via in_pcbfree(), it obtains hash
      lock,   does in_pcbremlists(), drops hash lock, and runs
      in_pcbrele_wlocked(), which  doesn't free the pcb due to two references
      on it. Then it unlocks the pcb.
    - 2 aforementioned threads acquire reader lock on the pcb and run
      in_pcbrele_rlocked(). One gets 1 from in_pcbrele_rlocked() and continues,
      second gets 0 and considers pcb freed, returns.
    - The thread that got 1 continutes working with detached pcb, which later
      leads to panic in the underlying protocol level.

    To plumb that problem an additional INPCB flag introduced - INP_FREED. We
  check for that flag in the in_pcbrele_rlocked() and if it is set, we pretend
  that that was the last reference.

  Discussed with: rwatson, jhb
  Reported by: Vladimir Medvedkin <medved rambler-co.ru>

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

11 years agoMFC r241134:
eadler [Wed, 10 Oct 2012 21:30:26 +0000 (21:30 +0000)]
MFC r241134:
Fix alignment related warnings reported by gcc
Switch from old style arguments to modern C
remove WARNS as a result

tested with "make universe"

Approved by: cperciva (implicit)

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

11 years agoMFC r241119:
eadler [Wed, 10 Oct 2012 21:27:30 +0000 (21:27 +0000)]
MFC r241119:
Provide a generic way to disable devices at boot time

PR: kern/119202
Approved by: cperciva (implicit)

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

11 years agoMFC r241118:
eadler [Wed, 10 Oct 2012 21:21:54 +0000 (21:21 +0000)]
MFC r241118:
Implement the Sun/GNU extension of using a default
prefix when no arguments are supplied.

Approved by: cperciva (implicit)

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

11 years agoMFC r241117:
eadler [Wed, 10 Oct 2012 21:20:34 +0000 (21:20 +0000)]
MFC r241117:
add SG state type

PR: bin/171664
Approved by: cperciva (implicit)

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

11 years agoMFC r241414:
delphij [Wed, 10 Oct 2012 19:50:15 +0000 (19:50 +0000)]
MFC r241414:

Upgrade to 9.8.3-P4:

Prevents a lockup when queried a deliberately constructed combination
of records. [CVE-2012-5166]

For more information: https://kb.isc.org/article/AA-00801

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

11 years agorpc: fix __rpc_getconfip
pfg [Wed, 10 Oct 2012 19:08:46 +0000 (19:08 +0000)]
rpc: fix __rpc_getconfip

__rpc_getconfip is supposed to return the first netconf
entry supporting tcp or udp, respectively. The code will
currently return the *last* entry, plus it will leak
memory when there is more than one such entry.

Tested by: David Wolfskill
Obtained from: Bull GNU/linux NFSv4 Project (libtirpc)

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

11 years agoMFC r241163:
dim [Wed, 10 Oct 2012 19:07:56 +0000 (19:07 +0000)]
MFC r241163:

Pull in r164717 from upstream clang trunk:

  Allow -MF to be used in combination with -E -M or -E -MM.

This should help with building the lang/ghc port.

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

11 years agoMFC r240695:
jimharris [Tue, 9 Oct 2012 20:05:19 +0000 (20:05 +0000)]
MFC r240695:

Add constants for programming interfaces for NVM/solid state storage
controller sub-class code.

Reference:  PCI Code and ID Assignment Specification Rev 1.2

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

11 years agoMFC r240901:
jimharris [Tue, 9 Oct 2012 19:55:12 +0000 (19:55 +0000)]
MFC r240901:

Use CAM_SEL_TIMEOUT and CAM_DEV_NOT_THERE to report missing targets or
LUNs respectively.  This removes a huge number of error messages
from CAM during bus scans.

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

11 years agoMFC r240900:
jimharris [Tue, 9 Oct 2012 19:53:15 +0000 (19:53 +0000)]
MFC r240900:

Specify MTX_RECURSE for the controller's io_lock.  Without it, tws(4)
immediately panics on boot with INVARIANTS enabled.  The driver already
clearly expects to be able to recurse on this mutex - the main I/O path
is always recursing on this lock.

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

11 years agoMFC r240879
sbruno [Tue, 9 Oct 2012 03:41:59 +0000 (03:41 +0000)]
MFC r240879

This patch fixes a nit in the em, lem, and igb driver statistics.  Increment
adapter->dropped_pkts instead of if_ierrors because if_ierrors is
overwritten by hw stats collection.

Submitted by: Andrew Boyer <aboyer@averesystems.com>
Reviewed by: Jack F Vogel <jfv@freebsd.org>

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

11 years agoUpdate MAKE_VERSION for r237100.
obrien [Tue, 9 Oct 2012 02:52:56 +0000 (02:52 +0000)]
Update MAKE_VERSION for r237100.

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

11 years agoMFC: r240902
rmacklem [Mon, 8 Oct 2012 12:59:09 +0000 (12:59 +0000)]
MFC: r240902
Attila Bogar reported a bug in mountd when multiple export
entries with different security flavors are in the exports(5)
file. For that case, mountd replies with the security flavors
of the last entry and not the correct one for the client host.
This patch fixes that by storing separate copies of the flavors
for each host/net case, plus a default one for the case where
no hosts/nets are specified on an entry in the exports(5) file.
Unlike the patch in the PR, it replies with the security flavors
for the entry instead of merging the security flavors for all
the entries and replying with that.

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

11 years agoMFC r241218:
dougb [Mon, 8 Oct 2012 05:50:58 +0000 (05:50 +0000)]
MFC r241218:

Remove references to CVS so that people will stop bringing it up

For -p:
The localtime update should have been excluded in the first place

The make.conf comparison has been OBE for some time now, and there
is no src.conf equivalent to share/examples/make.conf, so remove
the whole thing.

Update copyright

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

11 years agoMFC 239955-239957:
jhb [Sun, 7 Oct 2012 21:32:41 +0000 (21:32 +0000)]
MFC 239955-239957:
Cleanups and fixes for building firmware modules into a kernel:
- Add common rules for building firmware object files (NORMAL_FW to run
  uudecode, and NORMAL_FWO to use ld to build the .fwo file) and use those
  instead of explicit ld/uudecode invocations in sys/conf/files.  Apart from
  increasing readability, this makes it possible to adjust the flags used for
  firmware objects in one place.
- Similar to how r171350 fixed linking of kernel modules containing
  firmware objects by adding --no-warn-mismatch to the linker flags,
  add --no-warn-mismatch when linking firmware objects (*.fwo) as
  well as to the link of the main kernel file.  This permits firmware
  modules to be statically linked into an ia64 kernel.

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

11 years agoMFC 239440,239519:
jhb [Sun, 7 Oct 2012 18:57:29 +0000 (18:57 +0000)]
MFC 239440,239519:
Refine the changes made in r208212 to avoid bogus failures from
if_delmulti() when clearing the configuration for a subinterface when
the parent interface is being detached.  The current code was still
triggering an assertion in if_delmulti() due to the parent interface being
partially detached.  Fix this by not calling if_delmulti() at all if the
parent interface is being detached.  Warn if if_delmulti() fails when the
parent is not being detached (but similar to 208212, still proceed with
tearing down the vlan state).

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

11 years agoMFC 239354:
jhb [Sun, 7 Oct 2012 18:47:53 +0000 (18:47 +0000)]
MFC 239354:
Allow static DMA allocations that allow for enough segments to do page-sized
segments for the entire allocation to use kmem_alloc_attr() to allocate
KVM rather than using kmem_alloc_contig().  This avoids requiring
a single physically contiguous chunk in this case.

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

11 years agoMFC 240962:
jhb [Sun, 7 Oct 2012 18:41:48 +0000 (18:41 +0000)]
MFC 240962:
Grab the mfi_config_lock while performing a MFI_DCMD_CFG_FOREIGN_IMPORT
request on behalf of a user utility.

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

11 years agoMFC 239335:
jhb [Sun, 7 Oct 2012 18:37:47 +0000 (18:37 +0000)]
MFC 239335:
Remove D_NEEDGIANT from dead_devsw.  biofinish() (and thus dead_strategy)
does not need Giant.

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

11 years agoMFC 226961,239951:
jhb [Sun, 7 Oct 2012 18:31:01 +0000 (18:31 +0000)]
MFC 226961,239951:
Add a -h flag similar to the -h flag for ln to force mv(1) to treat a
symbolic link to a directory for the target as a symbolic link instead of
a directory.  This makes it possible to atomically update a symbolic
link using rename().

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

11 years agoMFC 239906:
jhb [Sun, 7 Oct 2012 18:25:33 +0000 (18:25 +0000)]
MFC 239906:
Clarify that bus_dma does not stall future load requests once a load is
deferred.  The caller is required to enforce that if that is desired.

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

11 years agoMFC 240132:
jhb [Sun, 7 Oct 2012 18:22:59 +0000 (18:22 +0000)]
MFC 240132:
When WIFCONTINUED was added, the number of "first" macros grew from
three to four.

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

11 years agoMFC 239913:
jhb [Sun, 7 Oct 2012 18:18:59 +0000 (18:18 +0000)]
MFC 239913:
Attach interrupt handlers during attach instead of during the first time
the interface is brought up.  Without this, the boot time interrupt
round-robin assignment does not think the allocated interrupt resources
are active and leaves them assigned to CPU 0.

While here, add descriptive tags to each interrupt handler when MSI-X
is used.

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

11 years agoMFC r241141, r241165, r241165, r241181;
pfg [Sun, 7 Oct 2012 05:11:29 +0000 (05:11 +0000)]
MFC  r241141, r241165, r241165,  r241181;

rpc: convert all uid and gid variables to u_int.

Follow a similar change in Solaris and linux where the uid and
gid variables were made more similar to what the system expects.
In our case we use u_int which is what XDR can manage,

Reviewed by: bde

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

11 years agoMFC r240343: rc.d/power_profile: use recently added Cmax for cx_lowest
avg [Sat, 6 Oct 2012 19:06:09 +0000 (19:06 +0000)]
MFC r240343: rc.d/power_profile: use recently added Cmax for cx_lowest

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

11 years agoMFC r240349: zfs boot: add a size check for a value in fzap_lookup
avg [Sat, 6 Oct 2012 19:01:20 +0000 (19:01 +0000)]
MFC r240349: zfs boot: add a size check for a value in fzap_lookup

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

11 years agoMFC r240650: hwpmc amd_pcpu_fini: fix a bug in code locked under DEBUG
avg [Sat, 6 Oct 2012 18:59:12 +0000 (18:59 +0000)]
MFC r240650: hwpmc amd_pcpu_fini: fix a bug in code locked under DEBUG

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

11 years agoMFC r240632: zfs: correctly calculate dn_bonuslen for saving SAs to disk
avg [Sat, 6 Oct 2012 18:57:27 +0000 (18:57 +0000)]
MFC r240632:  zfs: correctly calculate dn_bonuslen for saving SAs to disk

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

11 years agoMFC r240631: zfs: allow both DEBUG and ZFS_DEBUG to be defined on
avg [Sat, 6 Oct 2012 18:55:32 +0000 (18:55 +0000)]
MFC r240631: zfs: allow both DEBUG and ZFS_DEBUG to be defined on
command line

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

11 years agoMFC r240347: zfs boot: fix/replace fzap_rlookup implementation
avg [Sat, 6 Oct 2012 18:53:48 +0000 (18:53 +0000)]
MFC r240347: zfs boot: fix/replace fzap_rlookup implementation

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

11 years agoMFC r240629: g_disk_flushcache definitely should not be traced under
avg [Sat, 6 Oct 2012 18:51:43 +0000 (18:51 +0000)]
MFC r240629: g_disk_flushcache definitely should not be traced under
G_T_TOPOLOGY

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

11 years agoMFC r240345: zfs: fix sa_modify_attrs handling of variable-sized
avg [Sat, 6 Oct 2012 18:49:18 +0000 (18:49 +0000)]
MFC r240345: zfs: fix sa_modify_attrs handling of variable-sized
attributes

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

11 years agoMFC r240342: boot: file_loadraw should strdup name argument
avg [Sat, 6 Oct 2012 18:47:15 +0000 (18:47 +0000)]
MFC r240342: boot: file_loadraw should strdup name argument

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

11 years agoMFC r240348: zfs boot: print only an attribute name in fzap_list
avg [Sat, 6 Oct 2012 18:45:13 +0000 (18:45 +0000)]
MFC r240348: zfs boot: print only an attribute name in fzap_list

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

11 years agoMFC r240341,240637: loader/i386: replace ugly inb/outb
avg [Sat, 6 Oct 2012 18:42:02 +0000 (18:42 +0000)]
MFC r240341,240637: loader/i386: replace ugly inb/outb
re-implementations with cpufunc.h

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

11 years agoMFC r239194:
mav [Sat, 6 Oct 2012 13:01:08 +0000 (13:01 +0000)]
MFC r239194:
Allow idle threads to steal second threads from other cores on systems with
8 or more cores to improve utilization.  None of my tests on 2xXeon (2x6x2)
system shown any slowdown from mentioned "excess thrashing".  Same time in
pbzip2 test with number of threads more then number of CPUs I see up to 10%
speedup with SMT disabled and up 5% with SMT enabled.  Thinking about
trashing I was trying to limit that stealing within same last level cache,
but got only worse results.  Present code any way prefers to steal threads
from topologically closer cores.

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

11 years agoMFC r239185, r239196:
mav [Sat, 6 Oct 2012 12:58:56 +0000 (12:58 +0000)]
MFC r239185, r239196:
Some minor tunings/cleanups inspired by bde@ after previous commits:
 - remove extra dynamic variable initializations;
 - restore (4BSD) and implement (ULE) hogticks variable setting;
 - make sched_rr_interval() more tolerant to options;
 - restore (4BSD) and implement (ULE) kern.sched.quantum sysctl, a more
user-friendly wrapper for sched_slice;
 - tune some sysctl descriptions;
 - make some style fixes.

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

11 years agoMFC r239157:
mav [Sat, 6 Oct 2012 12:51:16 +0000 (12:51 +0000)]
MFC r239157:
Rework r220198 change (by fabient). I believe it solves the problem from
the wrong direction. Before it, if preemption and end of time slice happen
same time, thread was put to the head of the queue as for only preemption.
It could cause single thread to run for indefinitely long time. r220198
handles it by not clearing TDF_NEEDRESCHED in case of preemption. But that
causes delayed context switch every time preemption happens, even when not
needed.

Solve problem by introducing scheduler-specifoc thread flag TDF_SLICEEND,
set when thread's time slice is over and it should be put to the tail of
queue. Using SW_PREEMPT flag for that purpose as it was before just not
enough informative to work correctly.

On my tests this by 2-3 times reduces run time deviation (improves fairness)
in cases when several threads share one CPU.

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

11 years agoMFC r239153:
mav [Sat, 6 Oct 2012 12:38:41 +0000 (12:38 +0000)]
MFC r239153:
SCHED_4BSD scheduling quantum mechanism appears to be broken for some time.
With switchticks variable being reset each time thread preempted (that is
done regularly by interrupt threads) scheduling quantum may never expire.
It was not noticed in time because several other factors still regularly
trigger context switches.

Handle the problem by replacing that mechanism with its equivalent from
SCHED_ULE called time slice. It is effectively the same, just measured in
context of stathz instead of hz. Some unification is probably not bad.

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

11 years agoMFC r241116:
eadler [Fri, 5 Oct 2012 22:42:57 +0000 (22:42 +0000)]
MFC r241116:
Correct the tip about finding all the directories on the system
Add a tip about clearing the screen.
Make things more consistent by removing quotes around 'make search'

Approved by: cperciva (implicit)

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

11 years agoMFC r240973: find: Do not pass fd to save current directory to child
jilles [Fri, 5 Oct 2012 15:36:30 +0000 (15:36 +0000)]
MFC r240973: find: Do not pass fd to save current directory to child
processes.

This removes one of the two wrongly passed file descriptors. The other one
appears to be from fts(3).

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

11 years agoMFC r240974: atrun: Do not assume that MAXLOGNAME <= 100.
jilles [Fri, 5 Oct 2012 14:43:49 +0000 (14:43 +0000)]
MFC r240974: atrun: Do not assume that MAXLOGNAME <= 100.

The reserved space for fmt was exactly sufficient for a two-digit value of
MAXLOGNAME - 1.

PR: bin/171815
Submitted by: Jeremy Huddleston Sequoia

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

11 years agoMFC r241001: sigaction(2),sigwait(2),sigwaitinfo(2): Remove [EFAULT] error
jilles [Fri, 5 Oct 2012 14:20:53 +0000 (14:20 +0000)]
MFC r241001: sigaction(2),sigwait(2),sigwaitinfo(2): Remove [EFAULT] error
condition.

Passing an invalid pointer results in undefined behaviour.

The wrappers in libthr access some of the data pointed to by the arguments
in userland, so that an invalid pointer will cause a signal and not an
[EFAULT] error return.

Furthermore, if the [EFAULT] error occurs when the kernel is writing, it is
not a proper error in the sense that the call still commits (changing the
signal disposition or accepting the signal).

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

11 years agoMFC r239612: Check the return value of sbuf_finish().
jh [Fri, 5 Oct 2012 10:44:50 +0000 (10:44 +0000)]
MFC r239612: Check the return value of sbuf_finish().

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

11 years agoMFC r239257:
jh [Fri, 5 Oct 2012 09:47:54 +0000 (09:47 +0000)]
MFC r239257:

Reserve room for the terminating NUL when setting or getting kernel
environment variables. KENV_MNAMELEN and KENV_MVALLEN doesn't include
space for the terminating NUL.

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

11 years agoMerge r240605.
melifaro [Thu, 4 Oct 2012 22:56:15 +0000 (22:56 +0000)]
Merge r240605.

Make systat(1) accept fractional number of seconds.
Make old alarm(3)-based code use select(2).

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

11 years agoMFC r229822:
dougb [Thu, 4 Oct 2012 22:31:56 +0000 (22:31 +0000)]
MFC r229822:

There is no longer a need to abstract ${rcvar_manpage} as we are not
attempting to maintain compatibility with NetBSD for some years now.

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

11 years agoMFC r240090:
dougb [Thu, 4 Oct 2012 22:23:40 +0000 (22:23 +0000)]
MFC r240090:

Improve file rotation

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

11 years agoMFC r238879:
dougb [Thu, 4 Oct 2012 22:16:17 +0000 (22:16 +0000)]
MFC r238879:

Add a couple of nice quotes from Edward Everett Hale

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

11 years agoMFC: r240720
rmacklem [Thu, 4 Oct 2012 12:43:45 +0000 (12:43 +0000)]
MFC: r240720
Modify the NFSv4 client so that it can handle owner
and owner_group strings that consist entirely of
digits, interpreting them as the uid/gid number.
This change was needed since new (>= 3.3) Linux
servers reply with these strings by default.
This change is mandated by the rfc3530bis draft.
Reported on freebsd-stable@ under the Subject
heading "Problem with Linux >= 3.3 as NFSv4 server"
by Norbert Aschendorff on Aug. 20, 2012.

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

11 years agoRevert changes that ocassionally got into r241192.
fjoe [Thu, 4 Oct 2012 09:53:59 +0000 (09:53 +0000)]
Revert changes that ocassionally got into r241192.

Pointy hat to: me

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

11 years agoMFC: r241002
fjoe [Thu, 4 Oct 2012 09:49:53 +0000 (09:49 +0000)]
MFC: r241002

Fix pseudo checksum calculation.

This fixes ipfilter w/ network controllers that implement only
partial rx csum offloading.

PR: 106438
Obtained from: upstream

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

11 years agoMFC r241092:
kib [Thu, 4 Oct 2012 08:49:41 +0000 (08:49 +0000)]
MFC r241092:
Add the UPDATING note about padlock rng support requiring the config change.

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

11 years agoMFC r240088:
trasz [Thu, 4 Oct 2012 08:49:04 +0000 (08:49 +0000)]
MFC r240088:

Explicitly mention that "cp -p" copies ACLs.

PR: docs/168962

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

11 years agoMFC r240087:
trasz [Thu, 4 Oct 2012 08:47:05 +0000 (08:47 +0000)]
MFC r240087:

Fix an error in setfacl(1) that manifested like this:

# setfacl -m u:trasz:rwx x
# setfacl -m u:root:rwx x
# getfacl x
# file: x
# owner: root
# group: wheel
user::rw-
user:root:rwx
user:trasz:rwx
group::r--
mask::rwx
other::r--
# setfacl -m u:root:rwx x
setfacl: x: acl_calc_mask() failed: Invalid argument
setfacl: x: failed to set ACL mask

For NFSv4 ACLs, this sort of situation would result in duplicated
entries.

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

11 years agoMFC r240085:
trasz [Thu, 4 Oct 2012 08:43:49 +0000 (08:43 +0000)]
MFC r240085:

In getfacl(1) manual page, mention where to read about the ACL syntax.
PR submitter suggested adding it to acl(3) instead, but I don't think
pointing ordinary users at section 3 is a good idea.

PR: docs/162380

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

11 years agoMFC r240084:
trasz [Thu, 4 Oct 2012 08:33:46 +0000 (08:33 +0000)]
MFC r240084:

Make "setfacl -bd" an alias for "setfacl -k".  Previously it would crash
on assert.

PR: bin/165807

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

11 years agoMFC r240083:
trasz [Thu, 4 Oct 2012 08:26:49 +0000 (08:26 +0000)]
MFC r240083:

Make setfacl(1) behave properly in situations like "setfacl -kd".

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

11 years agoMFC r241115:
eadler [Thu, 4 Oct 2012 01:37:11 +0000 (01:37 +0000)]
MFC r241115:
Indicate (loudly) that ports csup is going away.

While here clarify some other portions.

Approved by: cperciva (implicit)

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

11 years agoMFC r241062:
eadler [Thu, 4 Oct 2012 01:33:48 +0000 (01:33 +0000)]
MFC r241062:
clarify the wording for 'first' and 'last'

Approved by: cperciva (implicit)

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

11 years agoMFC r241061:
eadler [Thu, 4 Oct 2012 01:26:13 +0000 (01:26 +0000)]
MFC r241061:
Document the security.bsd.unprivileged_idprio in idprio(1) in addition to rtprio(2).

Approved by: cperciva (implicit)

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

11 years agoMFC r239501:
zont [Wed, 3 Oct 2012 14:28:55 +0000 (14:28 +0000)]
MFC r239501:
- Use pid_t type instead of just int.

MFC r239611:
- Put arguments for print_syscall_ret() function in proper order.
  Bug was introduced in r192025.

MFC r239898:
- Remove unused variables.
- Fix warnings about comparing signed and unsigned ints.

MFC r240005:
- Style(9) cleanup.

MFC r240364:
- Remove unused variables.
- Remove redundant return after err(3) call.

MFC r240393:
- Fix detaching under some circumstances.

  When truss is detaching from very active process it is possible to
  hang on waitpid(2) in restore_proc() forever, because
  ptrace(PT_SYSCALL) must be called before detaching, to allow the
  debugging process to continue execution.  Also when truss called with
  '-c' argument, it does not print anything after detach, because it
  immediately exits from restore_proc().

  To fix these two problems make detaching deferred, but then it is
  impossible to detach from a process which does not do any system call.
  To fix this issue use sigaction(2) instead of signal(3) to disable
  SA_RESTART flag for waitpid(2) that makes it non-restartable.  Remove
  global variable child_pid, because now detaching is handled in context
  where child's pid is known.

MFC r240562:
- Make truss thread-aware.

Approved by: kib (mentor)

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

11 years agoMFC r240645:
zont [Wed, 3 Oct 2012 11:56:01 +0000 (11:56 +0000)]
MFC r240645:
- Add 'dsiz' and 'ssiz' keywords to show data and stack size respectively.

MFC r240649:
- Bump date.

Approved by: kib (mentor)

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

11 years agoMFC r240682
bapt [Tue, 2 Oct 2012 17:04:53 +0000 (17:04 +0000)]
MFC r240682

if a file in plist starts with / then do not prefix it with "prefix" [1]
pkg info -g returns 1 if a file mismatch [2]
flush stdout in pkg info -g [3]
clean up quiet mode (-q | --quiet) output of pkg_version(1) [4]
fix missing error call in uname check added to pkg_version(1) [5]
fix pkg_add(1) fails to install with -C from bad path [6]
only resolve path from pkg_add(1) -p if the given prefix do not start with a '/' [7]

PR: bin/13128 [1]
bin/139015 [2]
bin/113702 [3]
bin/142570 [4]
bin/146857 [5]
bin/157543 [6]
Submitted by: cy [1]
Anton Yuzhaninov <citrin@citrin.ru> [2]
Ighighi <ighighi@gmail.com> [3]
"N.J. Mann" <njm@njm.me.uk> [4]
gcooper [5]
David Naylor <naylor.b.david@gmail.com> [6]
netchild [7]

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

11 years agoMerge r240985 from head:
glebius [Tue, 2 Oct 2012 12:57:47 +0000 (12:57 +0000)]
Merge r240985 from head:
  Fix bug in TCP_KEEPCNT setting, which slipped in in the last round
  of reviewing of r231025.

  Unlike other options from this family TCP_KEEPCNT doesn't specify
  time interval, but a count, thus parameter supplied doesn't need
  to be multiplied by hz.

  Reported & tested by: amdmi3

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

11 years agoMFC r241096:
gabor [Tue, 2 Oct 2012 06:37:46 +0000 (06:37 +0000)]
MFC r241096:
  - Rename .sgml files to .xml to track the recent doc changes

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

11 years agoMFC 239779:
jhb [Mon, 1 Oct 2012 19:22:53 +0000 (19:22 +0000)]
MFC 239779:
Shorten the name of the fast SWI taskqueue to "fast taskq" so that
it fits.

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

11 years agoMFC 239739:
jhb [Mon, 1 Oct 2012 19:13:47 +0000 (19:13 +0000)]
MFC 239739:
Don't build and install the 07.lpd doc if WITHOUT_LPR is set.

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

11 years agoMFC 239008,239020:
jhb [Mon, 1 Oct 2012 19:09:25 +0000 (19:09 +0000)]
MFC 239008,239020:
Improve the handling of static DMA buffers that use non-default memory
attributes (currently just BUS_DMA_NOCACHE):
- Don't call pmap_change_attr() on the returned address, instead use
  kmem_alloc_contig() to ask the VM system for memory with the requested
  attribute.
- As a result, always use kmem_alloc_contig() for non-default memory
  attributes, even for sub-page allocations.  This requires adjusting
  bus_dmamem_free()'s logic for determining which free routine to use.
- For x86, add a new dummy bus_dmamap that is used for static DMA
  buffers allocated via kmem_alloc_contig().  bus_dmamem_free() can then
  use the map pointer to determine which free routine to use.
- For powerpc, add a new flag to the allocated map (bus_dmamem_alloc()
  always creates a real map on powerpc) to indicate which free routine
  should be used.

Note that the BUS_DMA_NOCACHE handling in powerpc is currently #ifdef'd out.
I have left it disabled but updated it to match x86.

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

11 years agoMFC 239771: Fix misspelled "Infiniband".
jhb [Mon, 1 Oct 2012 17:45:56 +0000 (17:45 +0000)]
MFC 239771: Fix misspelled "Infiniband".

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

11 years agoMFC r241024 and r241026 from HEAD:
issyl0 [Mon, 1 Oct 2012 16:34:12 +0000 (16:34 +0000)]
MFC r241024 and r241026 from HEAD:
  - Add a note to portsnap(8) about the behaviour of the example cron command.
  - Change "only only" to "only" in portsnap(8).

PR: docs/171759
Approved by: gjb (mentor)

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

11 years agoMerge r240683 from head
gavin [Mon, 1 Oct 2012 15:50:16 +0000 (15:50 +0000)]
Merge r240683 from head
  Add entries for two USB devices I have locally.

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

11 years agoMerge the following from head:
gavin [Mon, 1 Oct 2012 15:47:01 +0000 (15:47 +0000)]
Merge the following from head:

  r240694
    Add PCI subclass for NVM Express devices.

  r240699, r240739
    Recognise NVM devices and pretty-print their name.

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

11 years agoMFC r240575:
trasz [Mon, 1 Oct 2012 11:16:22 +0000 (11:16 +0000)]
MFC r240575:

Remove references to userstat(1) and jailstat(1).  Those tools were never
merged from the Perforce branch.  They might be brought in when %CPU limits
go into the tree.

PR: docs/171240

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

11 years agoMerge r240082.
melifaro [Mon, 1 Oct 2012 10:54:04 +0000 (10:54 +0000)]
Merge r240082.

Remove unneeded ipfw headers introduced in r213447 from Infiniband code.

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

11 years agoMFC r240917:
mav [Mon, 1 Oct 2012 08:33:39 +0000 (08:33 +0000)]
MFC r240917:
Reduce delays in several wait loops from 10ms to 10us, same is it is done
in Linux. This substantially increases graphics performance on Ivy Bridge.

Submitted by: avg@
Reviewed by: kib@

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

11 years agoMFC r239303:
hselasky [Mon, 1 Oct 2012 06:42:07 +0000 (06:42 +0000)]
MFC r239303:
Streamline use of cdevpriv and correct some corner cases.

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

11 years agoMFC r240856:
hselasky [Mon, 1 Oct 2012 06:01:20 +0000 (06:01 +0000)]
MFC r240856:
Correct driver name.

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

11 years agoMFC r240891:
hselasky [Mon, 1 Oct 2012 05:48:46 +0000 (05:48 +0000)]
MFC r240891:
Improve moused when used with USB mouse devices.

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

11 years agoMFC r240630:
kevlo [Sun, 30 Sep 2012 16:21:12 +0000 (16:21 +0000)]
MFC r240630:
Add missing break

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

11 years agoMFC r240954:
kevlo [Sun, 30 Sep 2012 16:17:54 +0000 (16:17 +0000)]
MFC r240954:
Teach getent(1) to look up a hostname and find IPv6 addresses.

PR: bin/161548
Submitted by: matthew

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

11 years agoMFC r240982:
kevlo [Sun, 30 Sep 2012 16:11:50 +0000 (16:11 +0000)]
MFC r240982:
Initialize the num variable to avoid uninitialized data.
This fixes the bug introduced by r238378.

Reviewed by: pfg

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

11 years agoMFC r239775 from HEAD:
issyl0 [Sun, 30 Sep 2012 15:33:53 +0000 (15:33 +0000)]
MFC r239775 from HEAD:
  - Link ipfilter(4) and ipfilter(5) to the build to stop the wrong man
    page displaying for 'man 4 ipfilter'.

PR: docs/118020
Approved by: gabor (mentor)

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

11 years agoMFC r240813:
kib [Sun, 30 Sep 2012 13:32:48 +0000 (13:32 +0000)]
MFC r240813:
Do not skip two elements of the tid_buffer when reusing the buffer
slot. This eventually results in exhaustion of the tid space, causing
new threads get tid -1 as identifier.

MFC r240951:
Make the updates of the tid ring buffer' head and tail pointers
explicit by moving them into separate statements from the buffer
element accesses.

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