]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
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

11 years agoMFC r241007, r241008:
pfg [Sun, 30 Sep 2012 00:44:24 +0000 (00:44 +0000)]
MFC r241007, r241008:

Complete revert of r239963 (from head).

The attempt to merge changes from the linux libtirpc caused
rpc.lockd to exit after startup under unclear conditions.

Reported by: David Wolfskill

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

11 years agoMFC r239744:
delphij [Fri, 28 Sep 2012 20:29:06 +0000 (20:29 +0000)]
MFC r239744:

Show error messages if nmount() failed.

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

11 years agoMFC r240782:
andreast [Fri, 28 Sep 2012 17:36:00 +0000 (17:36 +0000)]
MFC r240782:

Implement elfN(reloc) for powerpc. With this change the kernel is now able to
resolve dependencies of modules at boot time and load additional modules when
needed.

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

11 years agoMFC r240505: sh: Reduce code duplication: use setinputfile instead of
jilles [Fri, 28 Sep 2012 13:43:42 +0000 (13:43 +0000)]
MFC r240505: sh: Reduce code duplication: use setinputfile instead of
open/setinputfd combination.

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

11 years agoMFC r240495:
eadler [Fri, 28 Sep 2012 01:04:09 +0000 (01:04 +0000)]
MFC r240495:
Adding missing return statements during error conditions.

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

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

11 years agoMFC r240595:
trociny [Thu, 27 Sep 2012 18:51:03 +0000 (18:51 +0000)]
MFC r240595:

In snmp_hostres, device_map table is used for consistent device table
indexing. When a device has gone it is not removed from device_map
table but just its entry_p field is set to NULL.

So when traversing device_map in disk_OS_get_ATA_disks() and
disk_OS_get_MD_disks() check for entry_p being NULL, otherwise the
bsnmpd crash is possible when a removed map entry is dereferenced.

Before the fix, for disk_OS_get_ATA_disks() the crash could be easily
reproduced running:

  atacontrol detach ata1

The crash was not observed in disk_OS_get_MD_disks() because currently
snmp_hostres does no see md(4) disks: to get the device list it uses
devinfo(3), which does not return md devices.

Reported by:  Miroslav Lachman 000.fbsd quip.cz

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

11 years agoMFC part of r238812 and remainder of r239149
emaste [Thu, 27 Sep 2012 13:37:30 +0000 (13:37 +0000)]
MFC part of r238812 and remainder of r239149

From r238812, move mtx_init of per-ring locks into NIOCREGIF ioctl handler.
(Otherwise they're overwritten with zeros in netmap_if_new.)

From r239149:
  Improve lock and unlock symmetry

  - Move destruction of per-ring locks to netmap_dtor_locked to mirror the
  initialization that happens in NIOCREGIF.  Otherwise unloading a netmap-
  capable interface that was never put into netmap mode would try to
  mtx_destroy an uninitialized mutex, and panic.

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

11 years agoMFC r240741:
kib [Thu, 27 Sep 2012 09:00:22 +0000 (09:00 +0000)]
MFC r240741:
Plug the accounting leak for the wired pages when msync(MS_INVALIDATE)
is performed on the vnode mapping which is wired in other address space.

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

11 years agoMFC r240884:
mav [Thu, 27 Sep 2012 08:04:59 +0000 (08:04 +0000)]
MFC r240884:
Fix panic caused by wrong pointer dereference, left after pin sense rewrite
at r230551.

Also while there, make sense polling use reported for each node separately
instead of reporting accumulated total status.

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

11 years agoMFC 240880:
pfg [Thu, 27 Sep 2012 04:05:39 +0000 (04:05 +0000)]
MFC 240880:

Revert a change from Bull's NFSv4 libtirpc implementation:

libtirpc: be sure to free cl_netid and cl_tp

This change is causing rpc.lockd to exit after startup.

Reported by: David Wolfskill

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

11 years agoMFC: r240289
rmacklem [Wed, 26 Sep 2012 23:07:00 +0000 (23:07 +0000)]
MFC: r240289
Add a simple printf() based debug facility to the new nfs client.
Use it for a printf() that can be harmlessly generated for mmap()'d
files. It will be used extensively for the NFSv4.1 client.
Debugging printf()s are enabled by setting vfs.nfs.debuglevel to
a non-zero value. The higher the value, the more debugging printf()s.

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

11 years agoMFC part of r239149:
emaste [Wed, 26 Sep 2012 22:13:03 +0000 (22:13 +0000)]
MFC part of r239149:

Comment out the knlist_destroy for now as there is currently no
knlist_init.

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

11 years agoAdd missing mtx_destroy
emaste [Wed, 26 Sep 2012 21:55:13 +0000 (21:55 +0000)]
Add missing mtx_destroy

This is a direct commit to stable/9 as the locking is somewhat different
in HEAD due to the VALE bridge work (r238812).

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

11 years agoMFC r240463:
zont [Wed, 26 Sep 2012 13:57:16 +0000 (13:57 +0000)]
MFC r240463:
- Fix a typo in debug message.

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

11 years agoMFC r226940 (rmh):
mm [Wed, 26 Sep 2012 12:36:09 +0000 (12:36 +0000)]
MFC r226940 (rmh):

Fix a few gratuitous library dependencies. Some of the ZFS utilities
are linked with libraries they don't use:

 - zinject doesn't use libavl
 - ztest doesn't use libz
 - zdb uses neither libavl nor libz
 - zfs uses neither libbsdxml nor libm, nor libsbuf
 - zpool uses neither libbsdxml nor libm, nor libsbuf

In addition, libzfs needs libm because it uses pow(), however it isn't
linked with -lm.  This went unnoticed because all its users had -lm before.

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

11 years agoMFC r236248-r236250:
mm [Wed, 26 Sep 2012 10:58:15 +0000 (10:58 +0000)]
MFC r236248-r236250:

MFC r236248 (pjd):
Remove unused variable.

MFC r236249 (pjd):
Eliminate 'where' argument, we don't use it.

MFC r236250 (pjd):
Tighten up the assertion: because size can't be 0 and even if sm_space is equal
to sm_size, any 'sm_space - size' will be less than sm_size.

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

11 years agoMFC r240135:
kib [Wed, 26 Sep 2012 09:22:28 +0000 (09:22 +0000)]
MFC r240135:
Add support for new Intel on-CPU Bull Mountain random number generator.

MFC r240455:
Rename the IVY_RNG option to RDRAND_RNG.

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

11 years agoMFC r240862
alc [Wed, 26 Sep 2012 03:54:55 +0000 (03:54 +0000)]
MFC r240862
  Address a race condition that was introduced in r238212.  Unless the page
  queues lock is acquired before the page lock is released, there is no
  guarantee that the page will still be in that same page queue when
  vm_page_requeue() is called.

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

11 years agoMFC r240701:
tijl [Tue, 25 Sep 2012 13:32:05 +0000 (13:32 +0000)]
MFC r240701:

Fix a panic when trying to play invalid audio tracks.

PR: kern/167340
Reported by: Michael L. Semon <mlsemon35 gmail com>

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

11 years agoMFC r240480:
eadler [Tue, 25 Sep 2012 01:33:22 +0000 (01:33 +0000)]
MFC r240480:
Belatedly add myself

Approved by: cperciva (implicit)

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

11 years agoMFC r240470:
eadler [Tue, 25 Sep 2012 01:31:24 +0000 (01:31 +0000)]
MFC r240470:
Remove scripts and tools which only functioned when src was using CVS

Approved by: cperciva (implicit)

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

11 years agoMFC r240466:
eadler [Tue, 25 Sep 2012 01:28:14 +0000 (01:28 +0000)]
MFC r240466:
Define missing DEBUGOUT# macros. DEBUGOUT[45] are not yet used but are
being defined pre-emptively to avoid future build breakage

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

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

11 years agoMFC r240773:
dim [Mon, 24 Sep 2012 20:05:52 +0000 (20:05 +0000)]
MFC r240773:

After r205013, amd64 and i386 CPU family and model IDs were printed out
in hexadecimal, but without any 0x prefix, which can be very misleading.

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

11 years agoMFC r240531:
dim [Mon, 24 Sep 2012 20:03:13 +0000 (20:03 +0000)]
MFC r240531:

Pull in r163967 from upstream llvm trunk:

  X86: Emitting x87 fsin/fcos for sinf/cosf is not safe without unsafe
  fp math.

This should make clang emit calls to libm for sinf/cosf by default.

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

11 years agoMFC r240144:
dim [Mon, 24 Sep 2012 20:00:31 +0000 (20:00 +0000)]
MFC r240144:

After r240104, make sure the hpt27xx driver also compiles with clang,
when it is statically linked into the kernel.

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

11 years agoMFC r238601
sbruno [Sun, 23 Sep 2012 20:28:47 +0000 (20:28 +0000)]
MFC r238601

On BIO_ERROR, set bio_resid to stop losing data in the error case.

Submitted by: Mark Johnston <markjdb@gmail.com>

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

11 years agoMFC r238371
sbruno [Sun, 23 Sep 2012 20:17:28 +0000 (20:17 +0000)]
MFC r238371
When an MFI command fails, the driver needs to set bio->bio_resid so that
the upper levels notice.  Otherwise we see commands silently failing leading
to data corruption.  This mirrors dadone()

Submitted by: Andrew Boyer aboyer@averesystems.com

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

11 years agoMFC r238373
sbruno [Sun, 23 Sep 2012 19:14:13 +0000 (19:14 +0000)]
MFC r238373

  sys/dev/mfivar.h contains references to MFI_DEBUG, but it never gets turned on unless the file also includes opt_mfi.h.

  Submitted by: Andrew Boyer aboyer@averesystems.com

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

11 years agoMFC r240205:
zeising [Sun, 23 Sep 2012 14:49:28 +0000 (14:49 +0000)]
MFC r240205:

Change the link pointing to more information about the Yarrow algorithm, the
current link points to a irrelevant catchall site.

PR: docs/171411
Submitted by: Mark Martinec <Mark.Martinec@ijs.si> (pr), zeising (patch)
Approved by: joel (mentor)

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

11 years agoMFC r240546:
kib [Sun, 23 Sep 2012 06:16:08 +0000 (06:16 +0000)]
MFC r240546:
Handle AT_TIMEKEEP in procstat(1) -x.

PR: bin/171662

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

11 years agoMFC r240513: sched_ule: fix inverted condition in reporting of priority
avg [Sat, 22 Sep 2012 21:18:30 +0000 (21:18 +0000)]
MFC r240513: sched_ule: fix inverted condition in reporting of priority
lending via ktr

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

11 years agoMFC r240346,240356: zfs boot: bring zap_leaf_chunk field names in sync
avg [Sat, 22 Sep 2012 21:13:34 +0000 (21:13 +0000)]
MFC r240346,240356: zfs boot: bring zap_leaf_chunk field names in sync
with kernel code

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

11 years agoMFC r238973,r238975:
kib [Sat, 22 Sep 2012 12:40:52 +0000 (12:40 +0000)]
MFC r238973,r238975:
Add explicit fences right before rdtsc in the timecounters 'get' functions.

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

11 years agoMFC r237434:
kib [Sat, 22 Sep 2012 12:38:19 +0000 (12:38 +0000)]
MFC r237434:
Use struct vdso_timehands data to implement fast gettimeofday(2) and
clock_gettime(2) functions if supported.

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

11 years agoMFC r237477:
kib [Sat, 22 Sep 2012 12:36:31 +0000 (12:36 +0000)]
MFC r237477:
Move the code dealing with shared page into a dedicated
kern_sharedpage.c source file from kern_exec.c.

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

11 years agoMFC r237476:
kib [Sat, 22 Sep 2012 12:35:22 +0000 (12:35 +0000)]
MFC r237476:
Remove no longer needed forward declaration for struct sf_buf.

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

11 years agoMFC r237435:
kib [Sat, 22 Sep 2012 12:34:02 +0000 (12:34 +0000)]
MFC r237435:
Enable shared page on i386, now it has a use for vdso_timehands.

MFC r237445:
Commit changes missed from r237435.  Properly calculate the signal
trampoline addresses after the shared page is enabled.  Handle FreeBSD
ABIs without shared page support too.

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

11 years agoMFC r237433:
kib [Sat, 22 Sep 2012 12:32:00 +0000 (12:32 +0000)]
MFC r237433:
Implement mechanism to export some kernel timekeeping data to
usermode, using shared page.

MFC r237474:
Stop updating the struct vdso_timehands from even handler executed in
the scheduled task from tc_windup(). Do it directly from tc_windup in
interrupt context.

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

11 years agoMFC r237431:
kib [Sat, 22 Sep 2012 12:27:50 +0000 (12:27 +0000)]
MFC r237431:
Enchance the shared page chunk allocator.

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

11 years agoMFC 240729 (dougb):
delphij [Sat, 22 Sep 2012 08:47:29 +0000 (08:47 +0000)]
MFC 240729 (dougb):

Upgrade to 9.8.3-P3:

Prevents a crash when queried for a record whose RDATA exceeds
65535 bytes.

Prevents a crash when validating caused by using "Bad cache" data
before it has been initialized.

ISC_QUEUE handling for recursive clients was updated to address
a race condition that could cause a memory leak. This rarely
occurred with UDP clients, but could be a significant problem
for a server handling a steady rate of TCP queries.

A condition has been corrected where improper handling of
zero-length RDATA could cause undesirable behavior, including
termination of the named process.

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

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

11 years agoMFC r240686:
kib [Sat, 22 Sep 2012 05:27:47 +0000 (05:27 +0000)]
MFC r240686:
Do not reference z_nodeflib for !objgiven case, thus fixing LD_PRELOAD
for a non-absolute path.

PR: bin/171604

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

11 years agoMFC r239963:
pfg [Sat, 22 Sep 2012 04:18:42 +0000 (04:18 +0000)]
MFC r239963:

Bring some changes from Bull's NFSv4 libtirpc implementation.

____

Fixed infinite loop in svc_run()
____

__rpc_taddr2uaddr_af() assumes the netbuf to always have a
non-zero data. This is a bad assumption and can lead to a
seg-fault. This patch adds a check for zero length and returns
NULL when found.
____

Changed clnt_spcreateerror() to return clearer
and more concise error messages.
____

Converted all uid and gid variables of the type uid_t and gid_t.
____

libtirpc: set r_netid and r_owner in __rpcb_findaddr_timed

These fields in the rpcbind GETADDR call are being passed uninitialized
to CLNT_CALL. In the case of x86_64 at least, this usually leads to a
segfault. On x86, it sometimes causes segfaults and other times causes
garbage to be sent on the wire.

rpcbind generally ignores the r_owner field for calls that come in over
the wire, so it really doesn't matter what we send in that slot. We just
need to send something. The reference implementation from Sun seems to
send a blank string. Have ours follow suit.
____

libtirpc: be sure to free cl_netid and cl_tp

When creating a client with clnt_tli_create, it uses strdup to copy
strings for these fields if nconf is passed in. clnt_dg_destroy frees
these strings already. Make sure clnt_vc_destroy frees them in the same
way.

____

Obtained from: Bull GNU/Linux NFSv4 Project

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

11 years agoMFC r240524: siginfo(3): Document TRAP_DTRACE signal code.
jilles [Fri, 21 Sep 2012 12:33:25 +0000 (12:33 +0000)]
MFC r240524: siginfo(3): Document TRAP_DTRACE signal code.

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

11 years agoMFC r240523: siginfo(3): Document SI_LWP signal code.
jilles [Fri, 21 Sep 2012 12:31:37 +0000 (12:31 +0000)]
MFC r240523: siginfo(3): Document SI_LWP signal code.

Describe SI_LWP as being generated by pthread_kill() because thr_kill() is
a private undocumented function.

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

11 years agoMFC r240552: siginfo(3): Document SI_USER and SI_KERNEL signal codes.
jilles [Fri, 21 Sep 2012 12:28:56 +0000 (12:28 +0000)]
MFC r240552: siginfo(3): Document SI_USER and SI_KERNEL signal codes.

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

11 years agoMFC of 240219 - remove useless test.
mjacob [Fri, 21 Sep 2012 00:36:35 +0000 (00:36 +0000)]
MFC of 240219 - remove useless test.

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

11 years agoMFC r240383:
mav [Thu, 20 Sep 2012 18:59:50 +0000 (18:59 +0000)]
MFC r240383:
Fix AHCI 1.2 version checks. This should be mostly cosmetic.

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

11 years agoMFC r237168
alc [Thu, 20 Sep 2012 18:21:29 +0000 (18:21 +0000)]
MFC r237168
  The page flag PGA_WRITEABLE is set and cleared exclusively by the pmap
  layer, but it is read directly by the MI VM layer.  This change introduces
  pmap_page_is_write_mapped() in order to completely encapsulate all direct
  access to PGA_WRITEABLE in the pmap layer.

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

11 years agoMFC r238456 and r238536
alc [Thu, 20 Sep 2012 17:02:04 +0000 (17:02 +0000)]
MFC r238456 and r238536
  Various improvements to vm_contig_grow_cache().

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

11 years agoMFC r240530 from HEAD:
issyl0 [Thu, 20 Sep 2012 16:27:21 +0000 (16:27 +0000)]
MFC r240530 from HEAD:
  - Remove a reference to CVS and freefall from a user-facing man page.

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

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

11 years agoMFC r240317
alc [Thu, 20 Sep 2012 16:03:04 +0000 (16:03 +0000)]
MFC r240317
  Simplify pmap_unmapdev().

  Don't set PTE_W on the page table entry in pmap_kenter{,_attr}() on MIPS.

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

11 years agoMFC r240464:
kib [Thu, 20 Sep 2012 10:13:14 +0000 (10:13 +0000)]
MFC r240464:
The deadfs VOPs for vop_ioctl and vop_bmap call itself recursively,
which is an elaborate way to cause kernel panic. Change the VOPs
implementation to return EBADF for a reclaimed vnode.

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

11 years agoSync the ixgbe driver from HEAD to stable/9
scottl [Thu, 20 Sep 2012 01:23:54 +0000 (01:23 +0000)]
Sync the ixgbe driver from HEAD to stable/9

r236627 - Fix driver deadlock due to OACTIVE flag
r236729 - Fix prefetch programming typo
r239940 - Improve small RX packet performance
r240155 - Fix missing braces in PHY configuration
r240366 - Remove a prefetch directive that hurts performance

Approved by: jfv
Obtained from: Netflix, inc.

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

11 years agoMFC of 239502: Remove dependence on MAXPHYS.
mjacob [Thu, 20 Sep 2012 00:51:09 +0000 (00:51 +0000)]
MFC of 239502: Remove dependence on MAXPHYS.

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

11 years agoMFC of 240580 and 240590- correct some comments.
mjacob [Wed, 19 Sep 2012 22:24:09 +0000 (22:24 +0000)]
MFC of 240580 and 240590- correct some comments.

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

11 years agoMFC r240079:
delphij [Wed, 19 Sep 2012 22:12:57 +0000 (22:12 +0000)]
MFC r240079:

Update arcmsr(4) to vendor version 1.20.00.25.

Many thanks to Areca for continuing to support FreeBSD.

Submitted by: Ching-Lung Huang <ching2048 areca com tw>

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

11 years agoMFC: r240391
bapt [Wed, 19 Sep 2012 06:18:42 +0000 (06:18 +0000)]
MFC: r240391

Fix IEC / SI binary prefixes (Ki, Mi, Gi, etc) production by humanize_number(3)

PR: bin/171487
Submitted by: matthew

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

11 years agoMFC: r240476
jkim [Tue, 18 Sep 2012 19:08:07 +0000 (19:08 +0000)]
MFC: r240476

Do not change owner, group, or mode when package database directory
and its contents are created with pkg_add(1).  It may happen when the
packing list contains @owner, @group, or @mode.

Approved by: portmgr (bapt)

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

11 years agoMFC r239056:
hselasky [Tue, 18 Sep 2012 17:30:08 +0000 (17:30 +0000)]
MFC r239056:
Regenerate usb.conf

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

11 years agoMFC r238079, r238493, r238526, r238529 and r238717:
hselasky [Tue, 18 Sep 2012 17:23:00 +0000 (17:23 +0000)]
MFC r238079, r238493, r238526, r238529 and r238717:
Add new USB ID's.

PR:             usb/169789

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

11 years agoMFC r240597:
hselasky [Tue, 18 Sep 2012 17:17:04 +0000 (17:17 +0000)]
MFC r240597:
Remove unused variable cd.
This variable is initialized but not used.

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

11 years agoMFC r240615:
hselasky [Tue, 18 Sep 2012 17:14:59 +0000 (17:14 +0000)]
MFC r240615:
Add UQ_UMS_IGNORE quirk.
Wrap two long lines.
Some minor spelling correction.

PR: usb/171721

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

11 years agoMFC r239237:
hselasky [Tue, 18 Sep 2012 17:10:26 +0000 (17:10 +0000)]
MFC r239237:
Improve auto-quirks detection for certain Kingston memory sticks.

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

11 years agoMFC r240382:
hselasky [Tue, 18 Sep 2012 17:08:14 +0000 (17:08 +0000)]
MFC r240382:
Restart the USB transfer if the error is not USB_ERR_CANCELLED.

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

11 years agoMFC r237079, r238078, r238779, r238803, r238804, r239055,
hselasky [Tue, 18 Sep 2012 17:03:32 +0000 (17:03 +0000)]
MFC r237079, r238078, r238779, r238803, r238804, r239055,
    r239298, r239358 and r239567:

Add new USB ID's and some quirks.

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

11 years agoConvert installation article to XML stanards.
gjb [Tue, 18 Sep 2012 16:49:57 +0000 (16:49 +0000)]
Convert installation article to XML stanards.
This commit should be the final fix for the 9-STABLE release build.

This is a direct commit to stable/9.

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