]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years ago When destination parameter is missing, exit with a clear synopsis,
glebius [Tue, 8 Oct 2013 08:16:17 +0000 (08:16 +0000)]
  When destination parameter is missing, exit with a clear synopsis,
instead of writing to kernel and printing EINVAL description.

PR: bin/181532
Submitted by: Kurt Jaeger <fbsd-pr opsec.eu>
Approved by: re (hrs)

10 years agoFix an inverted check for the master user in "camcontrol security -U".
markj [Tue, 8 Oct 2013 04:16:22 +0000 (04:16 +0000)]
Fix an inverted check for the master user in "camcontrol security -U".

PR: bin/182703
Submitted by: Scott Burns <scott@bqinternet.com>
Approved by: re (gjb)
MFC after: 3 days

10 years agoImprove lzjb decompress performance by reorganizing the code
delphij [Tue, 8 Oct 2013 01:38:24 +0000 (01:38 +0000)]
Improve lzjb decompress performance by reorganizing the code
to tighten the copy loop.

Submitted by: Denis Ahrens <denis h3q com>
MFC after: 2 weeks
Approved by: re (gjb)

10 years agoFix kernel build on amd64 after r256118, since the machine/md_var.h
dim [Mon, 7 Oct 2013 22:30:03 +0000 (22:30 +0000)]
Fix kernel build on amd64 after r256118, since the machine/md_var.h
header is not implicitly included there.  So include it explicitly.

Approved by: re (delphij)
Pointy hat to: dim
MFC after: 3 days
X-MFC-With: r256118

10 years agodon't assert on bad args, instead return an error..
jmg [Mon, 7 Oct 2013 22:22:57 +0000 (22:22 +0000)]
don't assert on bad args, instead return an error..

Since so many programs don't check return value, always NUL terminate
the buf...

fix rounding when using base 1024 (the bug that started it all)...

add a set of test cases so we can make sure that things don't break
in the future...

Thanks to Clifton Royston for testing and the test program...

Approved by: re (hrs, glebius)
MFC after: 1 week

10 years agoReduce priority of host key exists message in sshd startup
delphij [Mon, 7 Oct 2013 21:39:42 +0000 (21:39 +0000)]
Reduce priority of host key exists message in sshd startup
script to info.

Approved by: re (gjb)

10 years agoMake isci(4) loadable.
kib [Mon, 7 Oct 2013 20:48:24 +0000 (20:48 +0000)]
Make isci(4) loadable.

Reviewed by: jimharris
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (gjb)

10 years agoAdd manpages for VOP_ADVISE() and VOP_ALLOCATE().
jhb [Mon, 7 Oct 2013 20:30:05 +0000 (20:30 +0000)]
Add manpages for VOP_ADVISE() and VOP_ALLOCATE().

Approved by: re (gjb)

10 years agoRemove a stale comment.
jhb [Mon, 7 Oct 2013 20:29:31 +0000 (20:29 +0000)]
Remove a stale comment.

Approved by: re (gjb)

10 years agoAdd the latest NetBSD and FreeBSD releases.
eadler [Mon, 7 Oct 2013 19:27:54 +0000 (19:27 +0000)]
Add the latest NetBSD and FreeBSD releases.

Approved by: re (glebius)

10 years agoAdd an UPDATING entry for the RCS removal.
eadler [Mon, 7 Oct 2013 19:23:43 +0000 (19:23 +0000)]
Add an UPDATING entry for the RCS removal.

Requested by: kargl
Approved by: re (glebius)

10 years agoThis regenerates src.conf.5 for both the RCS removal as well as r255784.
eadler [Mon, 7 Oct 2013 19:22:53 +0000 (19:22 +0000)]
This regenerates src.conf.5 for both the RCS removal as well as r255784.

Approved by: re (glebius)

10 years agoRemove redundant declarations of szsigcode and sigcode in
dim [Mon, 7 Oct 2013 16:57:48 +0000 (16:57 +0000)]
Remove redundant declarations of szsigcode and sigcode in
sys/i386/ibcs2/ibcs2_sysvec.c, to silence two gcc warnings.

Approved by: re (gjb)
MFC after: 3 days

10 years agoRemove redundant declaration of cpu_clflush_line_size in
dim [Mon, 7 Oct 2013 16:56:56 +0000 (16:56 +0000)]
Remove redundant declaration of cpu_clflush_line_size in
sys/dev/cxgbe/t4_sge.c, to silence a gcc warning.

Approved by: re (gjb)
MFC after: 3 days

10 years agoInitialize a variable in sys/dev/xen/control/control.c, to silence a gcc
dim [Mon, 7 Oct 2013 16:55:34 +0000 (16:55 +0000)]
Initialize a variable in sys/dev/xen/control/control.c, to silence a gcc
warning.

Approved by: re (gjb)
MFC after:      3 days

10 years agoGive an unnamed union in sys/ofed/include/rdma/ib_verbs.h a name, to
dim [Mon, 7 Oct 2013 16:54:29 +0000 (16:54 +0000)]
Give an unnamed union in sys/ofed/include/rdma/ib_verbs.h a name, to
silence a gcc warning.

Approved by: re (gjb)
MFC after:      3 days

10 years agoRemove redundant declaration of force_evtchn_callback() in the
dim [Mon, 7 Oct 2013 16:53:26 +0000 (16:53 +0000)]
Remove redundant declaration of force_evtchn_callback() in the
i386-specific xen-os.h, to silence a gcc warning.

Approved by: re (gjb)
MFC after: 3 days

10 years agoadd missing sections, de-Xr non-existent page, properly space
jmg [Mon, 7 Oct 2013 16:49:53 +0000 (16:49 +0000)]
add missing sections, de-Xr non-existent page, properly space
punctuation..

Approved by: re (joel)
MFC after: 3 days

10 years agoFix resource leaks
emaste [Mon, 7 Oct 2013 16:45:16 +0000 (16:45 +0000)]
Fix resource leaks

Found by: Coverity Scan, CID 10166731007118
Approved by: re

10 years agoAdd support for assembling and disassembling Intel Random Number
dim [Mon, 7 Oct 2013 16:33:16 +0000 (16:33 +0000)]
Add support for assembling and disassembling Intel Random Number
Generator extensions (e.g. the 'rdrand' mnemonic) to our copy of
binutils.

Approved by: re (kib)
Obtained from: OpenBSD, via pfg
MFC after: 1 week

10 years agoFix implicit declaration of jail_getid()
rmh [Mon, 7 Oct 2013 14:22:19 +0000 (14:22 +0000)]
Fix implicit declaration of jail_getid()

Approved by: re

10 years agoFix mbuf leak.
glebius [Mon, 7 Oct 2013 12:07:40 +0000 (12:07 +0000)]
Fix mbuf leak.

Submitted by: Loganaden Velvindron <logan elandsys.com>
Obtained from: NetBSD
Approved by: re (kib)

10 years agoWhen displaying a struct stat, if the -r option was not specified,
des [Mon, 7 Oct 2013 11:23:01 +0000 (11:23 +0000)]
When displaying a struct stat, if the -r option was not specified,
display the numeric rather than symbolic representation of st_mode.

Approved by: re (glebius)
MFC after: 1 week

10 years agoIntroduce the /libexec/freebsd-version script, which is intended to be
des [Mon, 7 Oct 2013 10:26:38 +0000 (10:26 +0000)]
Introduce the /libexec/freebsd-version script, which is intended to be
used by auditing tools to determine the userland patch level when it
differs from what `uname -r` reports.  This can happen when the system
is kept up-to-date using freebsd-update and the last SA did not touch
the kernel, or when a new kernel has been installed but the system has
not yet rebooted.

Approved by: re (glebius)

10 years agoAdd a va_copy() to our fall-back stdarg implementation for use with lint(1)
phk [Mon, 7 Oct 2013 10:01:23 +0000 (10:01 +0000)]
Add a va_copy() to our fall-back stdarg implementation for use with lint(1)

Approved by: re@ (glebius@)

10 years agoImplement support for the interpose dso flag.
kib [Mon, 7 Oct 2013 08:19:30 +0000 (08:19 +0000)]
Implement support for the interpose dso flag.

Requested by: bf
Reviewed by: kan
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (glebius)

10 years agoAdd the definition of DF_1_INTERPOSE flag.
kib [Mon, 7 Oct 2013 08:14:58 +0000 (08:14 +0000)]
Add the definition of DF_1_INTERPOSE flag.

Reviewed by: kan
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (glebius)

10 years agoAdd _atf and unbound and move smmsp and mailnull to where they belong.
des [Mon, 7 Oct 2013 07:32:16 +0000 (07:32 +0000)]
Add _atf and unbound and move smmsp and mailnull to where they belong.

Approved by: re (kib)

10 years agoWith r253139, firmware for urtwn(4) is in base system. Correct the man page to
hiren [Mon, 7 Oct 2013 06:50:00 +0000 (06:50 +0000)]
With r253139, firmware for urtwn(4) is in base system. Correct the man page to
reflect that.

Approved by: re (blackend)

10 years agoGood bye RCS. You will be missed.
eadler [Mon, 7 Oct 2013 02:23:00 +0000 (02:23 +0000)]
Good bye RCS.  You will be missed.

(devel/rcs and devel/rcs57 are available as alternatives)

Approved by: core
Approved by: re (hrs)

10 years agoUpdate head/ to 10.0-ALPHA5.
gjb [Sun, 6 Oct 2013 19:47:06 +0000 (19:47 +0000)]
Update head/ to 10.0-ALPHA5.

Approved by: re (implicit)

10 years agoPull in r192064 from upstream llvm trunk:
dim [Sun, 6 Oct 2013 16:12:45 +0000 (16:12 +0000)]
Pull in r192064 from upstream llvm trunk:

  X86: Don't fold spills into SSE operations if the stack is unaligned.

  Regalloc can emit unaligned spills nowadays, but we can't fold the
  spills into SSE ops if we can't guarantee alignment. PR12250.

This fixes unaligned SSE accesses (leading to a SIGBUS) which could
occur in the ffmpeg ports.

Approved by: re (kib)
Reported by: tijl
MFC after: 3 days

10 years agoDocument LK_TRYUPGRADE.
kib [Sun, 6 Oct 2013 15:59:06 +0000 (15:59 +0000)]
Document LK_TRYUPGRADE.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Approved by: re (marius)

10 years agoename internal function test() to avoid name clashes with
decke [Sun, 6 Oct 2013 10:12:11 +0000 (10:12 +0000)]
ename internal function test() to avoid name clashes with
common macros. This fixes ports like mysql 5.6 which has an
internal macro called test.

Approved by: re (gjb)
Discussed with: theraven

10 years agoRemove the uipc_cow.c file, which is not used since the zero copy
kib [Sun, 6 Oct 2013 06:57:28 +0000 (06:57 +0000)]
Remove the uipc_cow.c file, which is not used since the zero copy
sockets removal.

Noted by: alc
Sponsored by: The FreeBSD Foundation
Approved by: re (delphij)

10 years agoFormalize the concept of virtual CPU ids by adding a per-cpu vcpu_id
gibbs [Sat, 5 Oct 2013 23:11:01 +0000 (23:11 +0000)]
Formalize the concept of virtual CPU ids by adding a per-cpu vcpu_id
field.  Perform vcpu enumeration for Xen PV and HVM environments
and convert all Xen drivers to use vcpu_id instead of a hard coded
assumption of the mapping algorithm (acpi or apic ID) in use.

Submitted by: Roger Pau MonnĂ©
Sponsored by: Citrix Systems R&D
Reviewed by: gibbs
Approved by: re (blanket Xen)

amd64/include/pcpu.h:
i386/include/pcpu.h:
Add vcpu_id to the amd64 and i386 pcpu structures.

dev/xen/timer/timer.c
x86/xen/xen_intr.c
Use new vcpu_id instead of assuming acpi_id == vcpu_id.

i386/xen/mp_machdep.c:
i386/xen/mptable.c
x86/xen/hvm.c:
Perform Xen HVM and Xen full PV vcpu_id mapping.

x86/xen/hvm.c:
x86/acpica/madt.c
Change SYSINIT ordering of acpi CPU enumeration so that it
is guaranteed to be available at the time of Xen HVM vcpu
id mapping.

10 years agoMerge projects/bhyve_npt_pmap into head.
neel [Sat, 5 Oct 2013 21:22:35 +0000 (21:22 +0000)]
Merge projects/bhyve_npt_pmap into head.

Make the amd64/pmap code aware of nested page table mappings used by bhyve
guests. This allows bhyve to associate each guest with its own vmspace and
deal with nested page faults in the context of that vmspace. This also
enables features like accessed/dirty bit tracking, swapping to disk and
transparent superpage promotions of guest memory.

Guest vmspace:
Each bhyve guest has a unique vmspace to represent the physical memory
allocated to the guest. Each memory segment allocated by the guest is
mapped into the guest's address space via the 'vmspace->vm_map' and is
backed by an object of type OBJT_DEFAULT.

pmap types:
The amd64/pmap now understands two types of pmaps: PT_X86 and PT_EPT.

The PT_X86 pmap type is used by the vmspace associated with the host kernel
as well as user processes executing on the host. The PT_EPT pmap is used by
the vmspace associated with a bhyve guest.

Page Table Entries:
The EPT page table entries as mostly similar in functionality to regular
page table entries although there are some differences in terms of what
bits are used to express that functionality. For e.g. the dirty bit is
represented by bit 9 in the nested PTE as opposed to bit 6 in the regular
x86 PTE. Therefore the bitmask representing the dirty bit is now computed
at runtime based on the type of the pmap. Thus PG_M that was previously a
macro now becomes a local variable that is initialized at runtime using
'pmap_modified_bit(pmap)'.

An additional wrinkle associated with EPT mappings is that older Intel
processors don't have hardware support for tracking accessed/dirty bits in
the PTE. This means that the amd64/pmap code needs to emulate these bits to
provide proper accounting to the VM subsystem. This is achieved by using
the following mapping for EPT entries that need emulation of A/D bits:
               Bit Position           Interpreted By
PG_V               52                 software (accessed bit emulation handler)
PG_RW              53                 software (dirty bit emulation handler)
PG_A               0                  hardware (aka EPT_PG_RD)
PG_M               1                  hardware (aka EPT_PG_WR)

The idea to use the mapping listed above for A/D bit emulation came from
Alan Cox (alc@).

The final difference with respect to x86 PTEs is that some EPT implementations
do not support superpage mappings. This is recorded in the 'pm_flags' field
of the pmap.

TLB invalidation:
The amd64/pmap code has a number of ways to do invalidation of mappings
that may be cached in the TLB: single page, multiple pages in a range or the
entire TLB. All of these funnel into a single EPT invalidation routine called
'pmap_invalidate_ept()'. This routine bumps up the EPT generation number and
sends an IPI to the host cpus that are executing the guest's vcpus. On a
subsequent entry into the guest it will detect that the EPT has changed and
invalidate the mappings from the TLB.

Guest memory access:
Since the guest memory is no longer wired we need to hold the host physical
page that backs the guest physical page before we can access it. The helper
functions 'vm_gpa_hold()/vm_gpa_release()' are available for this purpose.

PCI passthru:
Guest's with PCI passthru devices will wire the entire guest physical address
space. The MMIO BAR associated with the passthru device is backed by a
vm_object of type OBJT_SG. An IOMMU domain is created only for guest's that
have one or more PCI passthru devices attached to them.

Limitations:
There isn't a way to map a guest physical page without execute permissions.
This is because the amd64/pmap code interprets the guest physical mappings as
user mappings since they are numerically below VM_MAXUSER_ADDRESS. Since PG_U
shares the same bit position as EPT_PG_EXECUTE all guest mappings become
automatically executable.

Thanks to Alan Cox and Konstantin Belousov for their rigorous code reviews
as well as their support and encouragement.

Thanks for John Baldwin for reviewing the use of OBJT_SG as the backing
object for pci passthru mmio regions.

Special thanks to Peter Holm for testing the patch on short notice.

Approved by: re
Discussed with: grehan
Reviewed by: alc, kib
Tested by: pho

10 years agoCorrect panic caused by attaching both Xen PV and HyperV virtualization
gibbs [Sat, 5 Oct 2013 19:51:09 +0000 (19:51 +0000)]
Correct panic caused by attaching both Xen PV and HyperV virtualization
aware drivers on Xen hypervisors that advertise support for some
HyperV features.

x86/xen/hvm.c:
When running in HVM mode on a Xen hypervisor, set vm_guest
to VM_GUEST_XEN so other virtualization aware components in
the FreeBSD kernel can detect this mode is active.

dev/hyperv/vmbus/hv_hv.c:
Use vm_guest to ignore Xen's HyperV emulation when Xen is
detected and Xen PV drivers are active.

Reported by: Shanker Balan
Submitted by: Roger Pau MonnĂ©
Sponsored by: Citrix Systems R&D
Reviewed by: gibbs
Approved by: re (Xen blanket)

10 years agoExpose system level ixgbe sysctls.
hiren [Sat, 5 Oct 2013 19:17:56 +0000 (19:17 +0000)]
Expose system level ixgbe sysctls.
Device level sysctls are already exposed as dev.ix.<device>

Fixing the case where number of queues for igb is auto-tuned and
hw.igb.num_queues does not return current/updated value.

Reviewed by: jfv
Approved by: re (delphij)
MFC after: 2 weeks

10 years agoTidy up kmeminit(): Since r245575, 'nmbclusters' is calculated after
alc [Sat, 5 Oct 2013 18:53:03 +0000 (18:53 +0000)]
Tidy up kmeminit(): Since r245575, 'nmbclusters' is calculated after
kmeminit() runs, so it contributes nothing to 'vm_kmem_size'; update a
comment to reflect that r254025 replaced the kmem submap with the kmem
arena.

Reviewed by: kib
Approved by: re (gjb)
Sponsored by: EMC / Isilon Storage Division

10 years agoDo not hold the vtnet Rx queue lock when calling up into the stack
bryanv [Sat, 5 Oct 2013 18:07:24 +0000 (18:07 +0000)]
Do not hold the vtnet Rx queue lock when calling up into the stack

This matches other similar drivers and avoids various LOR warnings.

Approved by: re (marius)

10 years agoSplit cfiscsi_datamove() in two; no functional changes.
trasz [Sat, 5 Oct 2013 16:22:33 +0000 (16:22 +0000)]
Split cfiscsi_datamove() in two; no functional changes.

Approved by: re (glebius)
Sponsored by: FreeBSD Foundation

10 years agoRemove obsolete cmd-line options and code associated with
grehan [Fri, 4 Oct 2013 23:29:07 +0000 (23:29 +0000)]
Remove obsolete cmd-line options and code associated with
these.
 The mux-vcpus option may return at some point, given it's utility
in finding bhyve (and FreeBSD) bugs.

Approved by: re@ (blanket)
Discussed with: neel@

10 years agoAdd padding to match the compat32 struct stat32 definition to the real
kib [Fri, 4 Oct 2013 22:05:23 +0000 (22:05 +0000)]
Add padding to match the compat32 struct stat32 definition to the real
struct stat on 32bit architectures.

Debugged and tested by: bsam
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (marius)

10 years agokldxref: Do not depend on the directory order.
jilles [Fri, 4 Oct 2013 21:25:55 +0000 (21:25 +0000)]
kldxref: Do not depend on the directory order.

Sort the filenames to get a consistent result between machines of the same
architecture.

Also, sort FTS_D entries after other entries so kldxref -R works properly in
the uncommon case that a directory contains both subdirectories and modules.
Previously, this may have happened to work, depending on the order of files
in the directory.

PR: bin/182098
Submitted by: Derek Schrock (original version)
Tested by: Derek Schrock
Approved by: re (delphij)
MFC after: 1 week

10 years agoDon't leak memory when removing an unconnected session, and remove useless
trasz [Fri, 4 Oct 2013 19:31:41 +0000 (19:31 +0000)]
Don't leak memory when removing an unconnected session, and remove useless
UMA_ZONE_NOFREE that caused another leak when unloading the module.

Approved by: re (glebius)
Sponsored by: FreeBSD Foundation

10 years agoHook up the AHCI and blockif code to the build.
grehan [Fri, 4 Oct 2013 18:44:47 +0000 (18:44 +0000)]
Hook up the AHCI and blockif code to the build.

Approved by: re@ (blanket)

10 years agoImport Zhixiang Yu's GSoC'13 AHCI emulation:
grehan [Fri, 4 Oct 2013 18:31:38 +0000 (18:31 +0000)]
Import Zhixiang Yu's GSoC'13 AHCI emulation:
   https://wiki.freebsd.org/SummerOfCode2013/bhyveAHCI

This provides ICH8 SATA disk and ATAPI ports, selectable
via the bhyve slot command-line parameter:

SATA
  -s <slot>,ahci-hd,<image-file>

ATAPI
  -s <slot>,ahci-cd,<image-file>

Slight modifications by: grehan@
Approved by: re@ (blanket)
Obtained from: FreeBSD GSoC'13

10 years agoDisable use of compiler atomic builtins. For APR, this is limited to
nwhitehorn [Fri, 4 Oct 2013 18:27:02 +0000 (18:27 +0000)]
Disable use of compiler atomic builtins. For APR, this is limited to
architectures where they are known not to work. For SVN itself, use
the least common denominator and disable them across the board. This
allows svnlite to build and run on all FreeBSD architectures.

Approved by: re (gjb)

10 years agoadd aesni module to i386 and amd64 NOTES...
jmg [Fri, 4 Oct 2013 17:21:01 +0000 (17:21 +0000)]
add aesni module to i386 and amd64 NOTES...

Approved by: re (gjb)

10 years agoBlock-layer backend interface for bhyve block-io device emulations.
grehan [Fri, 4 Oct 2013 16:52:03 +0000 (16:52 +0000)]
Block-layer backend interface for bhyve block-io device emulations.

Approved by: re@ (blanket)

10 years agomdoc: remove EOL whitespace.
joel [Fri, 4 Oct 2013 16:44:24 +0000 (16:44 +0000)]
mdoc: remove EOL whitespace.

Approved by: re (blanket)

10 years agoRemove useless check - ki_loginclass is an array; can't be NULL.
trasz [Fri, 4 Oct 2013 16:08:44 +0000 (16:08 +0000)]
Remove useless check - ki_loginclass is an array; can't be NULL.

CID: 1006559
Approved by: re (kib)
MFC after: 2 weeks
Sponsored by: FreeBSD Foundation

10 years agoFix make depend.
uqs [Fri, 4 Oct 2013 11:55:20 +0000 (11:55 +0000)]
Fix make depend.

Approved by: re (glebius)

10 years agoFixes for the Netlogic XLP on-chip RSA block driver
jchandra [Fri, 4 Oct 2013 11:11:51 +0000 (11:11 +0000)]
Fixes for the Netlogic XLP on-chip RSA block driver

The changes are to:
* Use contigmalloc/contigfree which handling microcode buffer
* Use a different buffer to send microcode to each engine
* Swap microcode in little-endian compilation
* Fix freeback message queue id field
* Simplify xlp_get_rsa_opsize() to remove unnecessary checks
* Fix NULL check after use in xlp_free_cmd_params()
* Do better error handling when the hardware returns error
* Fix error codes in few cases

Submitted by: Vekatesh J. V. <venkatesh.vivekanandan@broadcom.com>
Approved by: re (hrs)

10 years agoStyle fixes for the Netlogic XLP RSA driver
jchandra [Fri, 4 Oct 2013 10:01:20 +0000 (10:01 +0000)]
Style fixes for the Netlogic XLP RSA driver

Updates to the Netlogic XLP on-chp RSA block driver. The changes are
to follow style(9) guidelines, to improve readability and to remove
unnecessary initialization.

No changes to logic have been introduced by this commit.

Submitted by: Venkatesh J. V. <venkatesh.vivekanandan@broadcom.com>
Approved by: re (hrs)

10 years agoDo not attempt to do AF-specific configurations on a interface when
hrs [Fri, 4 Oct 2013 04:15:18 +0000 (04:15 +0000)]
Do not attempt to do AF-specific configurations on a interface when
noafif() is true.  The following warning message was displayed when
pflog0 interface existed, for example:

 ifconfig: ioctl(SIOCGIFINFO_IN6): Protocol family not supported

Reported by: bz
Approved by: re (gjb)

10 years agoAdd epair(4) support in $cloned_interfaces. One should be specified
hrs [Fri, 4 Oct 2013 02:44:04 +0000 (02:44 +0000)]
Add epair(4) support in $cloned_interfaces.  One should be specified
as "epair0" in $cloned_interfaces and "epair0[ab]" in the others in
rc.conf like the following:

 cloned_interfaces="epair0"
 ifconfig_epair0a="inet 192.168.1.1/24"
 ifconfig_epair0b="inet 192.168.2.1/24"

/etc/rc.d/netif now accepts both "netif start epair0" and "netif start
epair0a".

Approved by: re (kib)

10 years agoFix clearing MAC stats registers. Previously it cleared every
yongari [Fri, 4 Oct 2013 02:21:39 +0000 (02:21 +0000)]
Fix clearing MAC stats registers. Previously it cleared every
fourth register.

Submitted by: Paul A. Patience <paul-a.patience@polymtl.ca>
Approved by: re (gjb)

10 years agoChange len checks for fstypelen and fspathlen to be against absolute len
sbruno [Thu, 3 Oct 2013 22:52:03 +0000 (22:52 +0000)]
Change len checks for fstypelen and fspathlen to be against absolute len
not strlen as they are *not* strings.

Discovered by GSOC student, Mike Ma <mikemandarine@gmail.com> during his
fuse.glusterfs port to FreeBSD.

Final patch from mckusick@

Submitted by: mckusick@
Approved by: re (hrs)
MFC after: 2 weeks

10 years agoPull in r189644 from upstream llvm trunk:
dim [Thu, 3 Oct 2013 20:38:57 +0000 (20:38 +0000)]
Pull in r189644 from upstream llvm trunk:

  Add ms_abi and sysv_abi attribute handling.

  Based on a patch by Benno Rice!

This will help to develop EFI support.

Approved by: re (kib)
Verified by: benno
MFC after: 1 week

10 years agoPull in r186338 from upstream llvm trunk:
dim [Thu, 3 Oct 2013 17:50:14 +0000 (17:50 +0000)]
Pull in r186338 from upstream llvm trunk:

  Remove invalid assert in DAGTypeLegalizer::RemapValue

  There is a comment at the top of DAGTypeLegalizer::PerformExpensiveChecks
  which, in part, says:

   // Note that these invariants may not hold momentarily when processing a node:
   // the node being processed may be put in a map before being marked Processed.

  Unfortunately, this assert would be valid only if the above-mentioned invariant
  held unconditionally. This was causing llc to assert when, in fact,
  everything was fine.

  Thanks to Richard Sandiford for investigating this issue!

  Fixes PR16562.

This fixes assertions which could occur in the multimedia/ffmpeg1 and
multimedia/ffmpeg2 ports.

Approved by: re (hrs)
Reported by: Matthias Apitz <guru@unixarea.de>
MFC after: 3 days

10 years agoDo not install bluetooth rc(8) scripts if MK_BLUETOOTH = no.
gjb [Thu, 3 Oct 2013 15:19:16 +0000 (15:19 +0000)]
Do not install bluetooth rc(8) scripts if MK_BLUETOOTH = no.

Approved by: re (glebius)
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoRefresh the tips for the new pkg system.
glebius [Thu, 3 Oct 2013 11:51:15 +0000 (11:51 +0000)]
Refresh the tips for the new pkg system.

Reviewed by: bapt
Approved by: re (hrs)

10 years agoAppend the Git branch to the version string.
rpaulo [Thu, 3 Oct 2013 01:53:17 +0000 (01:53 +0000)]
Append the Git branch to the version string.

Approved by: re (gjb)

10 years agoFix up typos from r255963 in mtree Makefile. BSD.debug.dist should be
mdf [Thu, 3 Oct 2013 01:18:06 +0000 (01:18 +0000)]
Fix up typos from r255963 in mtree Makefile.  BSD.debug.dist should be
iterated if present, and remove a stray .endif.

Approved by: re (gjb)

10 years agoMeinberg clocks support was inadvertently removed during the last vendor
roberto [Wed, 2 Oct 2013 21:47:25 +0000 (21:47 +0000)]
Meinberg clocks support was inadvertently removed during the last vendor
import.  Add it back.

PR: bin/182545
Submitted by: Joerg Pulz <Joerg.Pulz@frm2.tum.de>
Approved by: re (delphij)
MFC after: 1 week

10 years agoClear knlist before destroying it in tap(4) and tun(4). This fixes later
glebius [Wed, 2 Oct 2013 20:44:36 +0000 (20:44 +0000)]
Clear knlist before destroying it in tap(4) and tun(4). This fixes later
crash, when a kqueue descriptor tries to dereference appropriate knotes.

Approved by: re (kib)

10 years agoImplement GET_STACK_USAGE() on PowerPC. This implementation is identical
nwhitehorn [Wed, 2 Oct 2013 20:40:21 +0000 (20:40 +0000)]
Implement GET_STACK_USAGE() on PowerPC. This implementation is identical
to that on x86 and sparc64.

Approved by: re (kib)

10 years agoAdd a separate translator for headers passed to the TCP probes in the
markj [Wed, 2 Oct 2013 17:14:12 +0000 (17:14 +0000)]
Add a separate translator for headers passed to the TCP probes in the
input path. These probes get some of the fields in host order, whereas the
output probes get them in network order, so a single translator isn't
enough. This workaround ensures that the problem is essentially invisble
to users: none of the probe arguments or their fields have changed.

Approved by: re (hrs)

10 years agoset ROOTDEVNAME to ada0 with no paritions. This makes it much more functional
sbruno [Wed, 2 Oct 2013 14:43:17 +0000 (14:43 +0000)]
set ROOTDEVNAME to ada0 with no paritions.  This makes it much more functional
with makefs and other tools for testing and ports building

Approved by:    re (gjb)
MFC after:      2 weeks

10 years agoOnly build the POWER hypervisor UART driver if device uart is included in
nwhitehorn [Wed, 2 Oct 2013 13:33:10 +0000 (13:33 +0000)]
Only build the POWER hypervisor UART driver if device uart is included in
the kernel config.

Approved by: re (gjb)

10 years agoWhen helping the bufdaemon from the buffer allocation context, there
kib [Wed, 2 Oct 2013 06:00:34 +0000 (06:00 +0000)]
When helping the bufdaemon from the buffer allocation context, there
is no sense to walk the whole dirty buffer queue.  We are only
interested in, and can operate on, the buffers owned by the current
vnode [1].  Instead of calling generic queue flush routine, do
VOP_FSYNC() if possible.

Holding the dirty buffer queue lock in the bufdaemon, without dropping
it, can cause starvation of buffer writes from other threads. This is
esp. easy to reproduce on the big memory machines, where large files
are written, causing almost all dirty buffers accumulating in several
big files, which vnodes are locked by writers. Bufdaemon cannot flush
any buffer, but is iterating over the whole dirty queue
continuously. Since dirty queue mutex is not dropped, bufdone() in
g_up thread is starved, usually deadlocking the machine [2]. Mitigate
this by dropping the queue lock after the vnode is locked, allowing
other queue lock contenders to make a progress.

Discussed with: Jeff [1]
Reported by: pho [2]
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Approved by: re (hrs)

10 years agoAdd FreeBSD 9.2-RELEASE to the BSD Family Tree
gjb [Wed, 2 Oct 2013 04:40:46 +0000 (04:40 +0000)]
Add FreeBSD 9.2-RELEASE to the BSD Family Tree

Approved by: re (hrs)
Sponsored by: The FreeBSD Foundation

10 years agoPopulate .rld_map on MIPS for debuggers
emaste [Wed, 2 Oct 2013 02:32:58 +0000 (02:32 +0000)]
Populate .rld_map on MIPS for debuggers

On MIPS the .dynamic section is read-only, so the pointer to rtld
information for debuggers cannot be stored there (in DT_DEBUG).
Instead, a special section .rld_map is used.

Sponsored by: DARPA, AFRL
Approved by: re (delphij)

10 years agoUse correct size for MIPS .rld_map section
emaste [Wed, 2 Oct 2013 00:50:27 +0000 (00:50 +0000)]
Use correct size for MIPS .rld_map section

On MIPS .dynamic is read-only and so a special section .rld_map is used
to store the pointer to the rtld information for debuggers.  This
section had a hard coded size of 4 bytes which is not correct for
mips64.  (Note that FreeBSD's rtld does not yet populate .rld_map.)

Sponsored by:   DARPA, AFRL
Approved by: re (delphij)

10 years agoRevert-and-redo r255955: the sort -r should be added to delete-old-dirs.
delphij [Tue, 1 Oct 2013 22:53:27 +0000 (22:53 +0000)]
Revert-and-redo r255955: the sort -r should be added to delete-old-dirs.

Approved by: re (gjb)

10 years agoaccept(2): Update portability note for accept4().
jilles [Tue, 1 Oct 2013 21:17:18 +0000 (21:17 +0000)]
accept(2): Update portability note for accept4().

The accept(2) man page warns that O_NONBLOCK and other properties on the
new socket may vary across implementations. However, this issue only
applies to accept() and not to accept4(). On the other hand, accept4()
is not commonly available yet.

Reported by: pluknet
Reviewed by: bjk
Approved by: re (kib)

10 years agoWhen printing the vnode information from ddb, print the lengths of the
kib [Tue, 1 Oct 2013 20:18:33 +0000 (20:18 +0000)]
When printing the vnode information from ddb, print the lengths of the
dirty and clean buffer queues.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Approved by: re (gjb)

10 years agoPull in r191711 from upstream llvm trunk:
dim [Tue, 1 Oct 2013 19:14:24 +0000 (19:14 +0000)]
Pull in r191711 from upstream llvm trunk:

  The X86FixupLEAs pass for Intel Atom must not call
  convertToThreeAddress on ADD16rr opcodes, if src1 != src, since that
  would cause convertToThreeAddress to try to create a virtual register.
  This is not permitted after register allocation, which is when the
  X86FixupLEAs pass runs.

  This patch fixes PR16785.

Pull in r191715 from upstream llvm trunk:

  Forgot to add a break statement.

This should enable building the x11-toolskits/libXaw port with
CPUTYPE=atom.

Approved by: re (gjb)
Reported by: Kenta Suzumoto <kentas@hush.com>
MFC after: 3 days

10 years agoSweep man pages replacing ad -> ada.
pluknet [Tue, 1 Oct 2013 18:41:53 +0000 (18:41 +0000)]
Sweep man pages replacing ad -> ada.

Approved by: re (blackend)
MFC after: 1 week
X-MFC note: stable/9 only

10 years agoAlso remove GNU ar and ranlib man pages
emaste [Tue, 1 Oct 2013 17:51:04 +0000 (17:51 +0000)]
Also remove GNU ar and ranlib man pages

This was missed in r255974.

Approved by: re (implicit)

10 years agoRegen.
emaste [Tue, 1 Oct 2013 17:46:04 +0000 (17:46 +0000)]
Regen.

Approved by: re (implicit)

10 years agoRemove long-unused GNU ar and ranlib
emaste [Tue, 1 Oct 2013 17:40:56 +0000 (17:40 +0000)]
Remove long-unused GNU ar and ranlib

The libarchive-based replacements have been used since 2009; the GNU
ones were kept to support source upgrades from FreeBSD 6.

Approved by: re@ (delphij)

10 years agoFixed kernel crash when running devinfo
alfred [Tue, 1 Oct 2013 15:43:23 +0000 (15:43 +0000)]
Fixed kernel crash when running devinfo

When calling to ib_uverbs_cleanup_ucontext, there is a call to
mutex_lock of xrcd_table_mutex, which was not initialized.
Added missing initialization for xrcd_table_mutex.

Submitted by: Orit Moskovich (oritm mellanox.com)

Approved by: re

10 years agoEnable ib_dev.mmap function
alfred [Tue, 1 Oct 2013 15:42:38 +0000 (15:42 +0000)]
Enable ib_dev.mmap function

Removed the ifdef linux from this function.
Added stub function for contiguous pages to avoid compilation
errors.

Submitted by: Orit Moskovich (oritm mellanox.com)
Approved by: re

10 years agoFix some typos that were causing probe argument types to show up as unknown.
markj [Tue, 1 Oct 2013 15:40:27 +0000 (15:40 +0000)]
Fix some typos that were causing probe argument types to show up as unknown.

Reviewed by: rwatson (mac provider)
Approved by: re (glebius)
MFC after: 1 week

10 years agoFixed 'Couldn't Create QP' issue when running rc_pingpong, uc_pingpong,
alfred [Tue, 1 Oct 2013 15:38:29 +0000 (15:38 +0000)]
Fixed 'Couldn't Create QP' issue when running rc_pingpong, uc_pingpong,
srq_pingpong IBverbs

Removed refrences using 'ifdef __linux__' to qpg functions and
related fields in struct
ib_qp_init_attr.

Submitted by: Orit Moskovich (oritm mellanox.com)

Approved by: re

10 years agoFixed kernel crash when removing IPOIB_CM option from configuration file
alfred [Tue, 1 Oct 2013 15:36:51 +0000 (15:36 +0000)]
Fixed kernel crash when removing IPOIB_CM option from configuration file

Changed module init from module_init() to module_init_order() with
SI_ORDER_MIDDLE flag
Submitted by: Orit Moskovich (oritm mellanox.com)
Approved by: re

10 years agoFix mis-merge of upstream fix.
alfred [Tue, 1 Oct 2013 15:33:00 +0000 (15:33 +0000)]
Fix mis-merge of upstream fix.

We would accidentally make the string one byte too short.

Submitted by: Orit Moskovich (oritm mellanox.com)

Approved by: re

10 years ago- Enable unmapped buffers on Exynos5 again, because
br [Tue, 1 Oct 2013 12:01:20 +0000 (12:01 +0000)]
- Enable unmapped buffers on Exynos5 again, because
  board now able to see all the 2GB ram it has
- Also unbreak gcc build

Approved by: cognet (mentor)
Approved by: re (marius)

10 years agoHave makeman always use the mk files from the source tree it's operating
des [Tue, 1 Oct 2013 07:22:04 +0000 (07:22 +0000)]
Have makeman always use the mk files from the source tree it's operating
on rather than those from the installed system.

Approved by: re (delphij)

10 years agoOdds and ends left over from BIND and unnoticed because they didn't
des [Tue, 1 Oct 2013 07:19:23 +0000 (07:19 +0000)]
Odds and ends left over from BIND and unnoticed because they didn't
affect 'make universe'.

Approved by: re (gjb)

10 years agoAdd missing mergeinfo associated with r255852.
dteske [Mon, 30 Sep 2013 21:26:03 +0000 (21:26 +0000)]
Add missing mergeinfo associated with r255852.

Approved by: re (gjb)

10 years agoSet proper permissions on the generated osreldate.h file; a file readable
ian [Mon, 30 Sep 2013 21:01:04 +0000 (21:01 +0000)]
Set proper permissions on the generated osreldate.h file; a file readable
only by root can cause install problems, especially over nfs.

Submitted by: jilles@
Approved by: re (gjb)

10 years agoUpdate the Dutch calendar entries:
rene [Mon, 30 Sep 2013 20:49:10 +0000 (20:49 +0000)]
Update the Dutch calendar entries:
- prince Johan Friso passed away in 2013
- correct status of queen Maxima and crown princess Catharina-Amalia
- language fixes

Approved by: remko (mentor)
Approved by: re (gjb)
MFC after: 3 days

10 years agoReverse directories order when doing 'make delete-old-dir'. This
delphij [Mon, 30 Sep 2013 20:33:56 +0000 (20:33 +0000)]
Reverse directories order when doing 'make delete-old-dir'.  This
ensures subdirectories gets removed before their parents when doing
make delete-old.

Approved by: re (gjb)
MFC after: 2 weeks

10 years agoNote the removal of BIND, where to find it, and how to use
des [Mon, 30 Sep 2013 18:06:43 +0000 (18:06 +0000)]
Note the removal of BIND, where to find it, and how to use
local_unbound instead.

Approved by: re (gjb)

10 years agoRemove /usr/include/lwres
des [Mon, 30 Sep 2013 18:00:54 +0000 (18:00 +0000)]
Remove /usr/include/lwres

Approved by: re (gjb)

10 years agoRegenerate.
des [Mon, 30 Sep 2013 17:40:39 +0000 (17:40 +0000)]
Regenerate.

Approved by: re (gjb)