freebsd.git
10 years agoIn some scenarios, when generating llvm/clang .inc.h files, multiple
dim [Tue, 10 Jun 2014 17:54:24 +0000 (17:54 +0000)]
In some scenarios, when generating llvm/clang .inc.h files, multiple
source files could be passed to tblgen or clang-tblgen, leading to a
"Too many positional arguments specified" error message.  Fix this by
replacing the too-generic ${.ALLSRC} sources with explicit paths.

Reported by: rysto32@gmail.com, rodrigc
MFC after: 3 days

10 years agoStrip out the test suite from the installation media.
jmmv [Tue, 10 Jun 2014 17:05:41 +0000 (17:05 +0000)]
Strip out the test suite from the installation media.

This affects the disc1.iso, dvd1.iso and bootonly.iso files.

Obtained from: gjb

10 years agoPut the test suite in its own tests.txz distribution file.
jmmv [Tue, 10 Jun 2014 17:04:30 +0000 (17:04 +0000)]
Put the test suite in its own tests.txz distribution file.

Force all the contents of /usr/tests to go into a separate distribution
file so that users of binary releases can easily choose to not install it.

To make this possible, we need two fixes:
- bsd.subdir.mk needs to properly honor NO_SUBDIR in all cases so that we
  do not recurse into 'tests' subdirectories when we needn't.  Otherwise,
  we end up with some Kyuafiles in base.txz.
- etc/Makefile needs to skip installing tests in its 'distribute' target
  so that a Kyuafile doesn't leak into base.txz.

Approved by: gjb

10 years agoAdd helper functions to populate VM exit information for rendezvous and
neel [Tue, 10 Jun 2014 16:45:58 +0000 (16:45 +0000)]
Add helper functions to populate VM exit information for rendezvous and
astpending exits. This is to reduce code duplication between VT-x and
SVM implementations.

10 years agoAdd support for the SCTP_LOCAL_TRACE_BUF options.
tuexen [Tue, 10 Jun 2014 16:11:20 +0000 (16:11 +0000)]
Add support for the SCTP_LOCAL_TRACE_BUF options.
While there, fix some whitespaces.

MFC after: 1 week

10 years agochange the netmap mbuf destructor so the same code works also on FreeBSD 9.
luigi [Tue, 10 Jun 2014 16:06:59 +0000 (16:06 +0000)]
change the netmap mbuf destructor so the same code works also on FreeBSD 9.
For head and 10 this change has no effect, but on stable/9 it would cause
panics when using emulated netmap on top of a standard device driver.

10 years agoFix indentation level.
gjb [Tue, 10 Jun 2014 15:20:41 +0000 (15:20 +0000)]
Fix indentation level.

MFC after: 3 days
X-MFC-With: r267326
Sponsored by: The FreeBSD Foundation

10 years agoAdd empty pkg-stage file to CLEANFILES if WITH_DVD=1.
gjb [Tue, 10 Jun 2014 15:19:28 +0000 (15:19 +0000)]
Add empty pkg-stage file to CLEANFILES if WITH_DVD=1.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agovt fontcvt: handle failure writing output font
emaste [Tue, 10 Jun 2014 12:59:56 +0000 (12:59 +0000)]
vt fontcvt: handle failure writing output font

10 years agoAvoid the USB device disconnected and controller shutdown clutter on system
marius [Tue, 10 Jun 2014 08:20:00 +0000 (08:20 +0000)]
Avoid the USB device disconnected and controller shutdown clutter on system
shutdown by putting the former under !rebooting and turning the latter into
debug messages.

Reviewed by: hps
MFC after: 1 week
Sponsored by: Bally Wulff Games & Entertainment GmbH

10 years agoacpiconf(8): tell users not to use -k
eadler [Tue, 10 Jun 2014 08:15:41 +0000 (08:15 +0000)]
acpiconf(8): tell users not to use -k
Add language from jhb

Requested by: jhb, jkim

10 years agoCall cpp with -P to avoid printing line markings.
rpaulo [Tue, 10 Jun 2014 06:24:01 +0000 (06:24 +0000)]
Call cpp with -P to avoid printing line markings.

10 years agodtc: ignore lines starting with #.
rpaulo [Tue, 10 Jun 2014 06:16:34 +0000 (06:16 +0000)]
dtc: ignore lines starting with #.

This is necessary because we use the C pre-processor to parse #include lines
and cpp adds line markings that start with #.

10 years agodtc: don't crash if the argument is a directory.
rpaulo [Tue, 10 Jun 2014 06:04:25 +0000 (06:04 +0000)]
dtc: don't crash if the argument is a directory.

10 years agoThe, currently undocumented, -i option takes an argument.
rpaulo [Tue, 10 Jun 2014 05:58:46 +0000 (05:58 +0000)]
The, currently undocumented, -i option takes an argument.

10 years agoAlways append new bios to the tail of the queue, instead of sorting them
bryanv [Tue, 10 Jun 2014 03:29:15 +0000 (03:29 +0000)]
Always append new bios to the tail of the queue, instead of sorting them

MFC after: 1 week

10 years agoTurn on interrupt window exiting unconditionally when an ExtINT is being
neel [Tue, 10 Jun 2014 01:38:02 +0000 (01:38 +0000)]
Turn on interrupt window exiting unconditionally when an ExtINT is being
injected into the guest. This allows the hypervisor to inject another
ExtINT or APIC vector as soon as the guest is able to process interrupts.

This change is not to address any correctness issue but to guarantee that
any pending APIC vector that was preempted by the ExtINT will be injected
as soon as possible. Prior to this change such pending interrupts could be
delayed until the next VM exit.

10 years agoCorrect unicode map for VGA ROM character 0x0e
emaste [Tue, 10 Jun 2014 01:19:48 +0000 (01:19 +0000)]
Correct unicode map for VGA ROM character 0x0e

The character is a beamed pair of sixteenth notes, so should be U+266C
not U+266B (beamed eighth notes).

10 years agosiglongjmp(): Preserve floating point exception flags on i386 and amd64.
jilles [Mon, 9 Jun 2014 21:35:36 +0000 (21:35 +0000)]
siglongjmp(): Preserve floating point exception flags on i386 and amd64.

Per POSIX, siglongjmp() shall be equivalent to longjmp() except that it must
match sigsetjmp() instead of setjmp() and except for the effect on the
signal mask. Therefore, it should preserve the floating point exception
flags.

This was fixed for longjmp() and _longjmp() in r180080 and r180081 for amd64
and i386 respectively.

10 years agoAdd vgarom font source
emaste [Mon, 9 Jun 2014 21:06:46 +0000 (21:06 +0000)]
Add vgarom font source

These are in 'GNU Unifont' format, and are converted from syscons(4)
cp437 fonts.

10 years agoDocument r267256, OpenSSL 1.0.1h update.
gjb [Mon, 9 Jun 2014 20:52:42 +0000 (20:52 +0000)]
Document r267256, OpenSSL 1.0.1h update.

Sponsored by: The FreeBSD Foundation

10 years agovt fontcvt: Speed up bold glyph map deduplication
emaste [Mon, 9 Jun 2014 20:52:35 +0000 (20:52 +0000)]
vt fontcvt: Speed up bold glyph map deduplication

Perform an O(n) deduplication pass over the bold maps at the end, rather
than walking the normal map list to look for a duplicate glyph each time
a bold mapping entry is added.

Sponsored by: The FreeBSD Foundation

10 years agoAdd reserved bit checking when doing %CR8 emulation and inject #GP if required.
neel [Mon, 9 Jun 2014 20:51:08 +0000 (20:51 +0000)]
Add reserved bit checking when doing %CR8 emulation and inject #GP if required.

Pointed out by: grehan
Reviewed by: tychon

10 years agoMove the Sendmail update to keep revision numbers incremental.
gjb [Mon, 9 Jun 2014 20:50:49 +0000 (20:50 +0000)]
Move the Sendmail update to keep revision numbers incremental.

Sponsored by: The FreeBSD Foundation

10 years agovt fontcvt: Hide stats by default and improve error handling
emaste [Mon, 9 Jun 2014 20:49:13 +0000 (20:49 +0000)]
vt fontcvt: Hide stats by default and improve error handling

The font stats are interesting, but rather verbose.

10 years agoRe-enable -Werror for these modules. It is already enabled for the same
jhb [Mon, 9 Jun 2014 20:48:38 +0000 (20:48 +0000)]
Re-enable -Werror for these modules.  It is already enabled for the same
files when built as part of a kernel.

10 years agor267169 should apply to 64-bit BARs as well.
tychon [Mon, 9 Jun 2014 19:55:50 +0000 (19:55 +0000)]
r267169 should apply to 64-bit BARs as well.

Reviewed by: neel

10 years agomdoc: fix AUTHORS section.
joel [Mon, 9 Jun 2014 19:36:08 +0000 (19:36 +0000)]
mdoc: fix AUTHORS section.

10 years agoRemove blank lines.
joel [Mon, 9 Jun 2014 19:29:10 +0000 (19:29 +0000)]
Remove blank lines.

10 years agoUse strcasecmp() instead of strcmp() when checking user-supplied encoding
jhb [Mon, 9 Jun 2014 19:27:47 +0000 (19:27 +0000)]
Use strcasecmp() instead of strcmp() when checking user-supplied encoding
names so that encoding names are treated as case-insensitive.  This allows
the use of 'utf-8' instead of 'UTF-8' for example and matches the behavior
of iconv(1).

PR: 167977
Submitted by: buganini@gmail.com
MFC after: 1 week

10 years agoMake the hpt27xx(4) driver MPSAFE.
jhb [Mon, 9 Jun 2014 18:15:05 +0000 (18:15 +0000)]
Make the hpt27xx(4) driver MPSAFE.
- Use the existing vbus locks instead of Giant for the CAM sim lock.
- Use callout(9) instead of timeout(9).
- Mark the interrupt handler as MPSAFE.
- Don't attempt to pass data in the softc from probe() to attach().

Reviewed by: Steve Chang <ychang@highpoint-tech.com>
Assisted by: delphij

10 years agoFixes from Fanco Ficthner on transparent mode
luigi [Mon, 9 Jun 2014 15:46:11 +0000 (15:46 +0000)]
Fixes from Fanco Ficthner on transparent mode

* The way rings are updated changed with the last API bump.
  Also sync ->head when moving slots in netmap_sw_to_nic().

* Remove a crashing selrecord() call.

* Unclog the logic surrounding netmap_rxsync_from_host().

* Add timestamping to RX host ring.

* Remove a couple of obsolete comments.

Submitted by: Franco Fichtner
MFC after: 3 days
Sponsored by: Packetwerk

10 years agosync the code with the one in stable/10
luigi [Mon, 9 Jun 2014 15:44:31 +0000 (15:44 +0000)]
sync the code with the one in stable/10
(wrap the if_t compatibilty function into a __FreeBSD_version
conditional block)

10 years agoFix race in r267221.
mav [Mon, 9 Jun 2014 15:00:43 +0000 (15:00 +0000)]
Fix race in r267221.

MFC after: 2 weeks

10 years agoEnsure files are created during the build when using bsd.subdir.mk.
jmmv [Mon, 9 Jun 2014 14:36:49 +0000 (14:36 +0000)]
Ensure files are created during the build when using bsd.subdir.mk.

When FILES is defined in a Makefile that _also_ includes bsd.subdir.mk, the
build of the files (if any) was not properly triggered during the build
stage.  This was because bsd.files.mk did not define the buildfiles target
if it was already defined... and bsd.subdir.mk defined this target on its
own, thus causing a conflict.

Fix this by unconditionally defining buildfiles from bsd.files.mk; this is
safe because nothing else in the tree needs to redefine this and because the
target itself contains no commands: all it does is define dependencies.
Also ensure that bsd.files.mk is always pulled in by bsd.test.mk regardless
of what bsd.prog.mk does.

These fixes allow "make installworld" to run cleanly on a system with
read-only src and obj trees.

This is "make tinderbox" clean.

Reviewed by: imp
Obtained from: jilles

10 years agoRemoved stale comment about multi-vdev root pool config not working
smh [Mon, 9 Jun 2014 13:04:58 +0000 (13:04 +0000)]
Removed stale comment about multi-vdev root pool config not working

MFC after: 1 week

10 years agotruncate: Detect integer overflow, fix relative sizes, add tests.
jilles [Mon, 9 Jun 2014 10:39:55 +0000 (10:39 +0000)]
truncate: Detect integer overflow, fix relative sizes, add tests.

The change to expand_number (r204654) broke detection of too large sizes and
relative sizes ('+'/'-').

Also add some tests.

PR: 190735
Submitted by: Kirk Russell
MFC after: 1 week

10 years agoDevolatile as needed.
kib [Mon, 9 Jun 2014 09:10:31 +0000 (09:10 +0000)]
Devolatile as needed.

Sponsored by: The FreeBSD Foundation
MFC after: 13 days

10 years agoacpiconf(8): check the calendar
eadler [Mon, 9 Jun 2014 06:17:02 +0000 (06:17 +0000)]
acpiconf(8): check the calendar

10 years agoacpiconf(8): bump .Dd
eadler [Mon, 9 Jun 2014 06:16:12 +0000 (06:16 +0000)]
acpiconf(8): bump .Dd

Reported by: gjb

10 years agoMerge OpenSSL 1.0.1h.
jkim [Mon, 9 Jun 2014 05:50:57 +0000 (05:50 +0000)]
Merge OpenSSL 1.0.1h.

Approved by: so (delphij)

10 years agoChange the nblock mutex, protecting the needsbuffer buffer deficit
kib [Mon, 9 Jun 2014 03:38:03 +0000 (03:38 +0000)]
Change the nblock mutex, protecting the needsbuffer buffer deficit
flags, to rwlock.  Lock it in read mode when used from subroutines
called from buffer release code paths.

The needsbuffer is now updated using atomics, while read lock of
nblock prevents loosing the wakeups from bufspacewakeup() and
bufcountadd() in getnewbuf_bufd_help().

In several interesting loads, needsbuffer flags are never set, while
buffers are reused quickly.  This causes brelse() and bqrelse() from
different threads to content on the nblock.  Now they take nblock in
read mode, together with needsbuffer not needing an update, allowing
higher parallelism.

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

10 years agoMake mmap(MAP_STACK) search for the available address space, similar
kib [Mon, 9 Jun 2014 03:37:41 +0000 (03:37 +0000)]
Make mmap(MAP_STACK) search for the available address space, similar
to !MAP_STACK mapping requests.  For MAP_STACK | MAP_FIXED, clear any
mappings which could previously exist in the used range.

For this, teach vm_map_find() and vm_map_fixed() to handle
MAP_STACK_GROWS_DOWN or _UP cow flags, by calling a new
vm_map_stack_locked() helper, which is factored out from
vm_map_stack().

The side effect of the change is that MAP_STACK started obeying
MAP_ALIGNMENT and MAP_32BIT flags.

Reported by: rwatson
Reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

10 years agoFix TSO support on VMware Fusion
bryanv [Mon, 9 Jun 2014 02:45:53 +0000 (02:45 +0000)]
Fix TSO support on VMware Fusion

Apparently for VMware Fusion (and presumably VMware Workstation/Player
since the PR states TSO is broken there too, but I cannot test), the
TCP header pseudo checksum calculated should only include the protocol
(IPPROTO_TCP) value, not also the lengths as the stack does instead.

VMware ESXi seems to ignore whatever value is in the TCP header checksum,
and it is a bit surprising there is a different behavior between the
VMware products. And it is unfortunate that on ESXi we are forced to do
this extra bit of work.

PR: kern/185849
MFC after: 3 days

10 years agoRemove an unnecessary variable reassignment
bryanv [Mon, 9 Jun 2014 02:39:05 +0000 (02:39 +0000)]
Remove an unnecessary variable reassignment

And it would be bad if 'm' was different from '*m0' at this
point, since we've already populated the SG list.

MFC after: 3 days

10 years agoacpiconf(8): document 'k' option
eadler [Mon, 9 Jun 2014 01:54:00 +0000 (01:54 +0000)]
acpiconf(8): document 'k' option

Add missing documentation for the 'k' option based on reading the source
code.

10 years agoRefresh a comment. The VM_STACK option was eliminated in r43209.
alc [Mon, 9 Jun 2014 00:15:16 +0000 (00:15 +0000)]
Refresh a comment.  The VM_STACK option was eliminated in r43209.

Sponsored by: EMC / Isilon Storage Division

10 years agoResolve a deadlock setting the USB configuration index from userspace
hselasky [Sun, 8 Jun 2014 20:10:29 +0000 (20:10 +0000)]
Resolve a deadlock setting the USB configuration index from userspace
on USB HUBs by moving the code into the USB explore threads. The
deadlock happens because child devices of the USB HUB don't have the
expected reference count when called from outside the explore
thread. Only the HUB device itself, which the IOCTL interface locks,
gets the correct reference count.

MFC after: 3 days

10 years agoRemove extra branching from r267232.
mav [Sun, 8 Jun 2014 19:01:37 +0000 (19:01 +0000)]
Remove extra branching from r267232.

MFC after: 2 weeks

10 years agoRegen after r267233
bdrewery [Sun, 8 Jun 2014 17:33:37 +0000 (17:33 +0000)]
Regen after r267233

10 years agoIn preparation for ASLR [1] support add WITH_PIE to support building with -fPIE.
bdrewery [Sun, 8 Jun 2014 17:29:31 +0000 (17:29 +0000)]
In preparation for ASLR [1] support add WITH_PIE to support building with -fPIE.

This is currently an opt-in build flag. Once ASLR support is ready and stable
it should changed to opt-out and be enabled by default along with ASLR.

Each application Makefile uses opt-out to ensure that ASLR will be enabled by
default in new directories when the system is compiled with PIE/ASLR. [2]

Mark known build failures as NO_PIE for now.

The only known runtime failure was rtld.

[1] http://www.bsdcan.org/2014/schedule/events/452.en.html
Submitted by: Shawn Webb <lattera@gmail.com>
Discussed between: des@ and Shawn Webb [2]

10 years agoUse atomics to modify numvnodes variable.
mav [Sun, 8 Jun 2014 15:38:40 +0000 (15:38 +0000)]
Use atomics to modify numvnodes variable.

This allows to mostly avoid lock usage in getnewvnode_[drop_]reserve(),
that reduces number of global vnode_free_list_mtx mutex acquisitions
from 4 to 2 per NFS request on ZFS, improving SMP scalability.

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

10 years agoSplit RPC pool threads into number of smaller semi-isolated groups.
mav [Sun, 8 Jun 2014 11:19:32 +0000 (11:19 +0000)]
Split RPC pool threads into number of smaller semi-isolated groups.

Old design with unified thread pool was good from the point of thread
utilization.  But single pool-wide mutex became huge congestion point
for systems with many CPUs.  To reduce the congestion create several
thread groups within a pool (one group for every 6 CPUs and 12 threads),
each group with own mutex.  Each connection during its registration is
assigned to one of the groups in round-robin fashion.  File affinify
code may still move requests between the groups, but otherwise groups
are self-contained.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

10 years agoRemove write-only local variable.
kib [Sun, 8 Jun 2014 10:56:25 +0000 (10:56 +0000)]
Remove write-only local variable.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoInitialize the pbuf counter for directio using SYSINIT, instead of
kib [Sun, 8 Jun 2014 10:55:06 +0000 (10:55 +0000)]
Initialize the pbuf counter for directio using SYSINIT, instead of
using a direct hook called from kern_vfs_bio_buffer_alloc().
Mark ffs_rawread.c as requiring both ffs and directio options to be
compiled into the kernel.  Add ffs_rawread.c to the list of ufs.ko
module' sources.

In addition to stopping breaking the layering violation, it also
allows to link kernel when FFS is configured as module and DIRECTIO is
enabled.

One consequence of the change is that ffs_rawread.o is always linked
into the module regardless of the DIRECTIO option.  This is similar to
the option QUOTA and ufs_quota.c.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoRemove st_idle variable, duplicating st_xprt.
mav [Sun, 8 Jun 2014 10:18:22 +0000 (10:18 +0000)]
Remove st_idle variable, duplicating st_xprt.

MFC after: 2 weeks

10 years agoIntroduce new per-thread lock to protect the list of requests.
mav [Sun, 8 Jun 2014 09:40:26 +0000 (09:40 +0000)]
Introduce new per-thread lock to protect the list of requests.

This allows to slightly simplify svc_run_internal() code: if we processed
all the requests in a queue, then we know that new one will not appear.

MFC after: 2 weeks

10 years agoRemove unused variable.
ae [Sun, 8 Jun 2014 09:08:51 +0000 (09:08 +0000)]
Remove unused variable.

Sponsored by: Yandex LLC

10 years agoAdd ioctl(VM_REINIT) to reinitialize the virtual machine state maintained
neel [Sat, 7 Jun 2014 21:36:52 +0000 (21:36 +0000)]
Add ioctl(VM_REINIT) to reinitialize the virtual machine state maintained
by vmm.ko. This allows the virtual machine to be restarted without having
to destroy it first.

Reviewed by: grehan

10 years agoAdd a page size field to struct vm_page. Increase the page size field when
alc [Sat, 7 Jun 2014 17:12:26 +0000 (17:12 +0000)]
Add a page size field to struct vm_page.  Increase the page size field when
a partially populated reservation becomes fully populated, and decrease this
field when a fully populated reservation becomes partially populated.

Use this field to simplify the implementation of pmap_enter_object() on
amd64, arm, and i386.

On all architectures where we support superpages, the cost of creating a
superpage mapping is roughly the same as creating a base page mapping.  For
example, both kinds of mappings entail the creation of a single PTE and PV
entry.  With this in mind, use the page size field to make the
implementation of vm_map_pmap_enter(..., MAP_PREFAULT_PARTIAL) a little
smarter.  Previously, if MAP_PREFAULT_PARTIAL was specified to
vm_map_pmap_enter(), that function would only map base pages.  Now, it will
create up to 96 base page or superpage mappings.

Reviewed by: kib
Sponsored by: EMC / Isilon Storage Division

10 years agoMake WITNESS happy by giving USB mutexes different names.
hselasky [Sat, 7 Jun 2014 15:51:29 +0000 (15:51 +0000)]
Make WITNESS happy by giving USB mutexes different names.

Reported by: trociny @
MFC after: 3 days

10 years agoFix for USB specification compliance. We need to accept both DATA0 and
hselasky [Sat, 7 Jun 2014 10:13:45 +0000 (10:13 +0000)]
Fix for USB specification compliance. We need to accept both DATA0 and
DATA1 for INTERRUPT endpoints.

MFC after: 3 days

10 years agoSome further DWC OTG improvements for full speed and low speed devices:
hselasky [Sat, 7 Jun 2014 07:23:17 +0000 (07:23 +0000)]
Some further DWC OTG improvements for full speed and low speed devices:
- Revert r265427. It appears we are halting the DWC OTG host
controller schedule if we process events only at every SOF. When doing
split transactions we rely on that events are processed quickly and
waiting too long might cause data loss.
- We are not always able to meet the timing requirements of interrupt
endpoint split transactions. Switch from INTERRUPT to CONTROL endpoint
type for interrupt endpoint events until further, hence CONTROL
endpoint events are more relaxed, reducing the chance of data
loss. See comment in code for more in-depth explanation.
- Simplify TT scheduling.

MFC after: 3 days

10 years agoMov p2041rdb.dts, p3041ds.dts, and p5020ds.dts to the powerpc directory.
rpaulo [Sat, 7 Jun 2014 02:55:53 +0000 (02:55 +0000)]
Mov p2041rdb.dts, p3041ds.dts, and p5020ds.dts to the powerpc directory.

10 years agoFix the script to run make_dtb.sh instead of just dtc.
rpaulo [Sat, 7 Jun 2014 02:38:13 +0000 (02:38 +0000)]
Fix the script to run make_dtb.sh instead of just dtc.

10 years agoAdd Makefiles to automatically test all the DTS files.
rpaulo [Fri, 6 Jun 2014 23:53:59 +0000 (23:53 +0000)]
Add Makefiles to automatically test all the DTS files.

There are several broken DTS files right now in the arm directory.

10 years agoAdd support for inspecting process flags set in p_flag2.
pluknet [Fri, 6 Jun 2014 22:52:11 +0000 (22:52 +0000)]
Add support for inspecting process flags set in p_flag2.

Reviewed by: jhb
MFC after: 1 week

10 years agoAdd Ukranian vt(4) keymaps as an example.
ray [Fri, 6 Jun 2014 21:58:27 +0000 (21:58 +0000)]
Add Ukranian vt(4) keymaps as an example.

Sponsored by: The FreeBSD Foundation

10 years agoThe new NFS server would not allow a hard link to be
rmacklem [Fri, 6 Jun 2014 21:38:49 +0000 (21:38 +0000)]
The new NFS server would not allow a hard link to be
created to a symlink. This restriction (which was
inherited from OpenBSD) is not required by the NFS RFCs.
Since this is allowed by the old NFS server, it is a
POLA violation to not allow it. This patch modifies the
new NFS server to allow this.

Reported by: jhb
Reviewed by: jhb
MFC after: 3 days

10 years agoImport OpenSSL 1.0.1h.
jkim [Fri, 6 Jun 2014 20:59:29 +0000 (20:59 +0000)]
Import OpenSSL 1.0.1h.

Approved by: so (delphij)

10 years agomake sure if_transmit returns 0 if the mbuf is enqueued.
luigi [Fri, 6 Jun 2014 20:49:56 +0000 (20:49 +0000)]
make sure if_transmit returns 0 if the mbuf is enqueued.
ixgbe/ixv.c still needs a similar fix but it takes a little
more restructuring of the code.

MFC after: 3 days

10 years agoMinor improvements.
brueffer [Fri, 6 Jun 2014 20:01:45 +0000 (20:01 +0000)]
Minor improvements.

MFC after: 1 week

10 years agoAdd vte(4) to the hardware notes.
brueffer [Fri, 6 Jun 2014 19:10:23 +0000 (19:10 +0000)]
Add vte(4) to the hardware notes.

MFC after: 3 days

10 years agoCompilation fixes.
hselasky [Fri, 6 Jun 2014 19:02:45 +0000 (19:02 +0000)]
Compilation fixes.

10 years agoMinor mdoc improvements.
joel [Fri, 6 Jun 2014 19:00:43 +0000 (19:00 +0000)]
Minor mdoc improvements.

10 years agoMove atf-sh from /usr/bin/ to /usr/libexec/
jmmv [Fri, 6 Jun 2014 18:58:06 +0000 (18:58 +0000)]
Move atf-sh from /usr/bin/ to /usr/libexec/

In r266650, we made libatf-c and libatf-c++ private libraries so that no
components outside of the source tree could unintendedly depend on them.

This change does the same for the "atf-sh library" by moving the atf-sh
interpreter from its public location in /usr/bin/ to the private location
in /usr/libexec/.  Our build system will ensure that our own test programs
use the right binary, but users won't be able to depend on atf-sh by
"mistake".

Committing this now to ride the UPDATING notice added with r267172 today.

10 years agobetter handling of netmap emulation over standard device drivers:
luigi [Fri, 6 Jun 2014 18:36:02 +0000 (18:36 +0000)]
better handling of netmap emulation over standard device drivers:
plug a potential mbuf leak, and detect bogus drivers that
return ENOBUFS even when the packet has been queued.

MFC after: 3 days

10 years agoClarify statement on font origin
emaste [Fri, 6 Jun 2014 18:32:05 +0000 (18:32 +0000)]
Clarify statement on font origin

Submitted by: Dimitar Zhekov

10 years agoSupport guest accesses to %cr8.
tychon [Fri, 6 Jun 2014 18:23:49 +0000 (18:23 +0000)]
Support guest accesses to %cr8.

Reviewed by: neel

10 years agointroduce mbq_lock() and mbq_unlock() for the mbq,
luigi [Fri, 6 Jun 2014 18:02:32 +0000 (18:02 +0000)]
introduce mbq_lock() and mbq_unlock() for the mbq,
so it is easier to buil the same code on linux
(this generalizes the change in svn 267142)

MFC after: 3 days

10 years agoAdd the *_TESTS_SH_SED_* functionality to atf.test.mk.
jmmv [Fri, 6 Jun 2014 17:53:05 +0000 (17:53 +0000)]
Add the *_TESTS_SH_SED_* functionality to atf.test.mk.

This exists already in plain.test.mk and tap.test.mk and should have been
added to atf.test.mk too when the feature was first introduced.

(It is probably time to address the related TODOs but I will do that
separately.)

10 years agoFix some rpcgen sample file issues.
bdrewery [Fri, 6 Jun 2014 17:38:37 +0000 (17:38 +0000)]
Fix some rpcgen sample file issues.

* -Sc was generating code without a return type on main.
* -Sm was generating an unusable clean target due to undefined RM.
* -Sm was generating clean target with extra preceding space.

PR: 185582
Submitted by: Pawel Biernacki <pawel.biernacki@gmail.com>
MFC after: 1 week

10 years agoUpdate after r267011: use -h height and -w width args
emaste [Fri, 6 Jun 2014 17:38:30 +0000 (17:38 +0000)]
Update after r267011: use -h height and -w width args

10 years agoHomogenize libatf-* version numbers with upstream.
jmmv [Fri, 6 Jun 2014 17:05:43 +0000 (17:05 +0000)]
Homogenize libatf-* version numbers with upstream.

The libatf-* major version numbers in FreeBSD were one version ahead of
upstream because, when atf was first imported into FreeBSD, the upstream
numbers were not respected.  This is just confusing and bound to cause
problems down the road.

Fix this by taking advantage of the fact that libatf-* are now private
and that atf is not yet built by default.  However, and unfortunately, a
clean build is needed for tests to continue working once "make
delete-old-libs" has been run; hence the note in UPDATING.

10 years agoRemove extra semicolons.
kevlo [Fri, 6 Jun 2014 16:37:42 +0000 (16:37 +0000)]
Remove extra semicolons.

10 years agomove netmap_getna() to a freebsd-specific file
luigi [Fri, 6 Jun 2014 16:23:08 +0000 (16:23 +0000)]
move netmap_getna() to a freebsd-specific file

10 years agoSome devices (e.g. Intel AHCI and NICs) support quad-word access to
tychon [Fri, 6 Jun 2014 16:18:37 +0000 (16:18 +0000)]
Some devices (e.g. Intel AHCI and NICs) support quad-word access to
register pairs where two 32-bit registers make up a larger logical
size.  Support those access by splitting the quad-word into two
double-words.

Reviewed by: grehan

10 years agomisc bugfixes:
luigi [Fri, 6 Jun 2014 15:17:19 +0000 (15:17 +0000)]
misc bugfixes:
- stdio.h is needed for fprint()
- make memsize uint32_t to avoid errors due to overflow
- honor the *XPOLL flagg in NIOCREGIF requests
- mmap fails wit MAP_FAILED, not NULL.

MFC after: 3 days

10 years agowhitespace change: fix one comment, remove a stale one.
luigi [Fri, 6 Jun 2014 15:15:27 +0000 (15:15 +0000)]
whitespace change: fix one comment, remove a stale one.

10 years agoalign comments with the ones in our development trunk
luigi [Fri, 6 Jun 2014 14:58:25 +0000 (14:58 +0000)]
align comments with the ones in our development trunk

10 years agorate limit some error messages
luigi [Fri, 6 Jun 2014 14:57:40 +0000 (14:57 +0000)]
rate limit some error messages

10 years agoremove two debugging messages, align comments with the code
luigi [Fri, 6 Jun 2014 14:57:16 +0000 (14:57 +0000)]
remove two debugging messages, align comments with the code
in our development trunk

10 years agoktrace: Use designated initializers for the data_lengths array.
jilles [Fri, 6 Jun 2014 14:49:00 +0000 (14:49 +0000)]
ktrace: Use designated initializers for the data_lengths array.

In the .o file, this only changes some line numbers (head amd64) because
element 0 is no longer explicitly initialized.

This should make bugs like FreeBSD-SA-14:12.ktrace less likely.

Discussed with: des
MFC after: 1 week

10 years agoDereference portaudit(1), as it is now deprecated and its
gjb [Fri, 6 Jun 2014 13:36:52 +0000 (13:36 +0000)]
Dereference portaudit(1), as it is now deprecated and its
functionality exists in pkg-audit(8).

Submitted by: Ronald Klop <ronald-lists@klop.ws>
MFC after: 3 days
Sponsored by: The FreeBSD Foundation

10 years agoThe 'create' subcommand doesn't have '-h' option.
pjd [Fri, 6 Jun 2014 13:00:53 +0000 (13:00 +0000)]
The 'create' subcommand doesn't have '-h' option.

10 years agoMdoc cleanup, typo and grammar fixes.
brueffer [Fri, 6 Jun 2014 12:06:40 +0000 (12:06 +0000)]
Mdoc cleanup, typo and grammar fixes.

10 years agoAdd missing MLINKs.
brueffer [Fri, 6 Jun 2014 11:52:30 +0000 (11:52 +0000)]
Add missing MLINKs.

10 years agoAdd Lb string for libcuse.
brueffer [Fri, 6 Jun 2014 11:36:05 +0000 (11:36 +0000)]
Add Lb string for libcuse.

10 years agoReplace deprecated M_DONTWAIT with M_NOWAIT.
kevlo [Fri, 6 Jun 2014 11:12:19 +0000 (11:12 +0000)]
Replace deprecated M_DONTWAIT with M_NOWAIT.

Reviewed by: jfv

10 years agoadd checks for invalid buffer pointers and lengths
luigi [Fri, 6 Jun 2014 10:50:14 +0000 (10:50 +0000)]
add checks for invalid buffer pointers and lengths