freebsd.git
8 years agoRemove the write-only variable phent. We currently do not check the
kib [Wed, 20 May 2015 23:03:22 +0000 (23:03 +0000)]
Remove the write-only variable phent.  We currently do not check the
size of the program header's entries.

Reported by: adrian (by using gcc 4.9)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

8 years agoMake kerberos use the same sqlite libraries as other sqlite consumer.
bapt [Wed, 20 May 2015 18:56:29 +0000 (18:56 +0000)]
Make kerberos use the same sqlite libraries as other sqlite consumer.

This reduces the number of copy of sqlite we have to just one and easier
tracking version of sqlite

Differential Revision: https://reviews.freebsd.org/D2443
Reviewed by: imp, stas, bjk

8 years agoFix breakage I didn't fully solve in r283151 by depending on the .PHONY
ngie [Wed, 20 May 2015 18:41:54 +0000 (18:41 +0000)]
Fix breakage I didn't fully solve in r283151 by depending on the .PHONY
target, not the directory when building libctf for libproc

Reported by: many, Jenkins
Submitted by: rodrigc

8 years agoFix memory leak.
oshogbo [Wed, 20 May 2015 17:48:22 +0000 (17:48 +0000)]
Fix memory leak.

Approved by: pjd (mentor)

8 years agoStyle.
oshogbo [Wed, 20 May 2015 17:47:01 +0000 (17:47 +0000)]
Style.

Approved by: pjd (mentor)

8 years agoAlways use the nv_free function.
oshogbo [Wed, 20 May 2015 17:44:58 +0000 (17:44 +0000)]
Always use the nv_free function.

Approved by: pjd (mentor)

8 years agoCorrect variable name in the interface.
oshogbo [Wed, 20 May 2015 17:42:40 +0000 (17:42 +0000)]
Correct variable name in the interface.

Approved by: pjd (mentor)

8 years agoRemove the write-only variable phent. We currently do not check the
kib [Wed, 20 May 2015 15:37:15 +0000 (15:37 +0000)]
Remove the write-only variable phent.  We currently do not check the
size of the program header's entries.

Reported by: adrian (by using gcc 4.9)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

8 years agoUnbreak the arm64/sparc64 tinderbox by only compiling lib/libproc and
ngie [Wed, 20 May 2015 13:05:33 +0000 (13:05 +0000)]
Unbreak the arm64/sparc64 tinderbox by only compiling lib/libproc and
lib/librtld_db on architectures where they're supported

Reported by: bz, Jenkins
Pointyhat to: bapt

8 years agocddl/lib/libctf isn't always a requirement for lib/libproc; its use is dependent
ngie [Wed, 20 May 2015 13:04:00 +0000 (13:04 +0000)]
cddl/lib/libctf isn't always a requirement for lib/libproc; its use is dependent
on MK_CTF != "no". Use the other divined value instead of reinventing the wheel

8 years agoAdd _more_ missing dependencies for lib/libproc to further squash build races
ngie [Wed, 20 May 2015 12:56:40 +0000 (12:56 +0000)]
Add _more_ missing dependencies for lib/libproc to further squash build races

Verified via `cd lib/libproc; make -VLIBADD`

Pointyhat to: ngie

8 years agoAvoid trying to build cxbge on 32-bit MIPS
emaste [Wed, 20 May 2015 12:54:22 +0000 (12:54 +0000)]
Avoid trying to build cxbge on 32-bit MIPS

It lacks required 64-bit atomics.

Reviewed by: imp (earlier version)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2585

8 years agoArticulate all dependencies for lib/libproc to squash build races after r283139
ngie [Wed, 20 May 2015 12:46:30 +0000 (12:46 +0000)]
Articulate all dependencies for lib/libproc to squash build races after r283139
on !arm64 and !sparc64

Pointyhat to: bapt
Sponsored by: EMC / Isilon Storage Division

8 years agoBuild cddl/{sbin,usr.bin,usr.sbin} in parallel as all of the applications are
ngie [Wed, 20 May 2015 12:26:09 +0000 (12:26 +0000)]
Build cddl/{sbin,usr.bin,usr.sbin} in parallel as all of the applications are
freestanding (they require libraries build via make libraries in buildworld)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoIn the reply to SADB_X_SPDGET message use the same sequence number that
ae [Wed, 20 May 2015 11:59:53 +0000 (11:59 +0000)]
In the reply to SADB_X_SPDGET message use the same sequence number that
was in the request. Some IKE deamons expect it will the same. Linux and
NetBSD also follow this behaviour.

PR: 137309
MFC after: 2 weeks

8 years agoAdd dependencies for libzfs_core and libzpool I missed on my first pass on this
ngie [Wed, 20 May 2015 11:16:17 +0000 (11:16 +0000)]
Add dependencies for libzfs_core and libzpool I missed on my first pass on this
Makefile

MFC with: r283144
Sponsored by: EMC / Isilon Storage Division

8 years agoArticulate dependencies for cddl/lib/libdtrace and cddl/lib/libzfs
ngie [Wed, 20 May 2015 11:03:53 +0000 (11:03 +0000)]
Articulate dependencies for cddl/lib/libdtrace and cddl/lib/libzfs

Parallelize the build in this subdirectory

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoRemove usr/share/dtrace/{tcpconn,tcpstate,tcptrack,udptrack} if MK_CDDL == no
ngie [Wed, 20 May 2015 10:56:09 +0000 (10:56 +0000)]
Remove usr/share/dtrace/{tcpconn,tcpstate,tcptrack,udptrack} if MK_CDDL == no

Sponsored by: EMC / Isilon Storage Division

8 years agoEVENTHANDLER_REGISTER() doesn't fail.
glebius [Wed, 20 May 2015 09:42:33 +0000 (09:42 +0000)]
EVENTHANDLER_REGISTER() doesn't fail.

8 years agoRemove the warning about invalid PE checksum; apparently nothing
trasz [Wed, 20 May 2015 09:40:34 +0000 (09:40 +0000)]
Remove the warning about invalid PE checksum; apparently nothing
cares about those checksums anyway.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoOnly build sys/boot/usb/tools if MK_USB != no
ngie [Wed, 20 May 2015 09:36:25 +0000 (09:36 +0000)]
Only build sys/boot/usb/tools if MK_USB != no

Sponsored by: EMC / Isilon Storage Division

8 years agoFix buildworld by adding libproc and librtld_db to the _prebuild_libs
bapt [Wed, 20 May 2015 09:23:37 +0000 (09:23 +0000)]
Fix buildworld by adding libproc and librtld_db to the _prebuild_libs
Those are needed to build libdtrace

8 years agoti_pruss: pass the correct IRQ to userland.
rpaulo [Wed, 20 May 2015 06:23:01 +0000 (06:23 +0000)]
ti_pruss: pass the correct IRQ to userland.

Also, fix several problems with the kqueue notification.

Submitted by: Manuel Stühn freebsdnewbie at freenet.de

8 years agoD2432 (Patch for Amlogic single core PIC) moved the SMP option out
ganbold [Wed, 20 May 2015 05:49:52 +0000 (05:49 +0000)]
D2432 (Patch for Amlogic single core PIC) moved the SMP option out
of AML8726 and into board specific config files since some boards
(e.g. YYHD18) use the aml8726-m3 which only have a single core.

r283057 applied most of D2432, however while it removed SMP from
AML8726, it missed adding the SMP option to the board specific
config files.

Differential Revision: https://reviews.freebsd.org/D2589
Submitted by: John Wehle

8 years agoAdd a new sysctl net.inet.tcp.hostcache.purgenow=1 to expire and purge all
hiren [Wed, 20 May 2015 01:08:01 +0000 (01:08 +0000)]
Add a new sysctl net.inet.tcp.hostcache.purgenow=1 to expire and purge all
entries in hostcache immediately.

In collaboration with: bz, rwatson
MFC after: 1 week
Relnotes: yes
Sponsored by: Limelight Networks

8 years agoReduce overlinking.
bapt [Tue, 19 May 2015 22:29:11 +0000 (22:29 +0000)]
Reduce overlinking.
Because of libdtrace there is still a bit a overlinking but nothing we can deal
with easily

8 years agoCorrectly link libdtrace and convert to LIBADD
bapt [Tue, 19 May 2015 22:24:19 +0000 (22:24 +0000)]
Correctly link libdtrace and convert to LIBADD
Make dtrace only link to libdtrace

8 years agoFix underlinking
bapt [Tue, 19 May 2015 22:23:15 +0000 (22:23 +0000)]
Fix underlinking

8 years agoRegister libdtrace and its direct and indirect dependencies
bapt [Tue, 19 May 2015 22:22:53 +0000 (22:22 +0000)]
Register libdtrace and its direct and indirect dependencies
Register librdlt_db
Register libproc dependencies
Register libctf dependencies

8 years agoConvert to LIBADD
bapt [Tue, 19 May 2015 21:59:00 +0000 (21:59 +0000)]
Convert to LIBADD

8 years agoConvert to LIBADD
bapt [Tue, 19 May 2015 21:57:11 +0000 (21:57 +0000)]
Convert to LIBADD
Remove dependency on pthread, it is not needed

8 years agoRe-select the SD card before getting the SD status. On a couple Atmel
imp [Tue, 19 May 2015 21:16:53 +0000 (21:16 +0000)]
Re-select the SD card before getting the SD status. On a couple Atmel
boards, this prevents some error messages during enumeration and also
gives us the correct erase block size. They appear to be harmless
elsewhere.

# Note: we treat too many commands as 'can't fail' if they don't work
# after a couple of retries. We need to fix that, but not today...

8 years agoAdd NFS server to mix (for easier, in-place updates). Move to
imp [Tue, 19 May 2015 21:16:51 +0000 (21:16 +0000)]
Add NFS server to mix (for easier, in-place updates). Move to
partition 2 for root (since partition 1 is reserved for FAT
files the Atmel ROMs can load).

8 years agoImprove comment about unmapped I/O and fix typos.
imp [Tue, 19 May 2015 21:16:37 +0000 (21:16 +0000)]
Improve comment about unmapped I/O and fix typos.

Submitted by: Matteo Riondato
MFC After: 2 days

8 years agoAll FreeBSD platforms are elf: move i386-elf to i386
emaste [Tue, 19 May 2015 21:00:53 +0000 (21:00 +0000)]
All FreeBSD platforms are elf: move i386-elf to i386

This was a leftover from when we had both i386 a.out and ELF.

Reviewed by: kib, imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2591

8 years agoCorrect the wording as we are increasing the window size.
hiren [Tue, 19 May 2015 19:17:20 +0000 (19:17 +0000)]
Correct the wording as we are increasing the window size.

Reviewed by: jhb
Sponsored by: Limelight Networks

8 years agoFix two bugs that could result in PMC sampling effectively stopping.
jhb [Tue, 19 May 2015 19:15:19 +0000 (19:15 +0000)]
Fix two bugs that could result in PMC sampling effectively stopping.
In both cases, the the effect of the bug was that a very small positive
number was written to the counter. This means that a large number of
events needed to occur before the next sampling interrupt would trigger.
Even with very frequently occurring events like clock cycles wrapping all
the way around could take a long time. Both bugs occurred when updating
the saved reload count for an outgoing thread on a context switch.

First, the counter-independent code compares the current reload count
against the count set when the thread switched in and generates a delta
to apply to the saved count. If this delta causes the reload counter
to go negative, it would add a full reload interval to wrap it around to
a positive value. The fix is to add the full reload interval if the
resulting counter is zero.

Second, occasionally the raw counter value read during a context switch
has actually wrapped, but an interrupt has not yet triggered. In this
case the existing logic would return a very large reload count (e.g.
2^48 - 2 if the counter had overflowed by a count of 2). This was seen
both for fixed-function and programmable counters on an E5-2643.
Workaround this case by returning a reload count of zero.

PR: 198149
Differential Revision: https://reviews.freebsd.org/D2557
Reviewed by: emaste
MFC after: 1 week
Sponsored by: Norse Corp, Inc.

8 years agoUse the proper mask when reloading sampling PMCs for Core CPUs.
jhb [Tue, 19 May 2015 19:01:22 +0000 (19:01 +0000)]
Use the proper mask when reloading sampling PMCs for Core CPUs.

Differential Revision: https://reviews.freebsd.org/D2492
Reviewed by: emaste
MFC after: 1 month

8 years agoUse fixed enum values for PMC_CLASSES().
jhb [Tue, 19 May 2015 18:58:18 +0000 (18:58 +0000)]
Use fixed enum values for PMC_CLASSES().

This removes one of the frequent causes of ABI breakage when new CPU
types are added to hwpmc(4).

Differential Revision: https://reviews.freebsd.org/D2586
Reviewed by: davide, emaste, gnn (earlier version)
MFC after: 2 weeks

8 years agoRemove executable property from several ixl(4) source files.
jhb [Tue, 19 May 2015 18:35:18 +0000 (18:35 +0000)]
Remove executable property from several ixl(4) source files.

Differential Revision: https://reviews.freebsd.org/D2583
Reviewed by: erj

8 years agoBring back support for checking tables via "ipfw -n".
melifaro [Tue, 19 May 2015 18:29:13 +0000 (18:29 +0000)]
Bring back support for checking tables via "ipfw -n".

Currently we have different table key types which can easily interfere
with each other (numbers and IPv4 address, interface names and hostnames,
  flows and hostnames/addresses).
This conflicts are solved by [auto-]creating _typed_ tables, so after
table is created, only keys of given type can be inserted to that table.
ipfw(8) consults with kernel about key/value type for particular table so
it knows key/value interpretation.
However, we have 2 cases (adding entries to non-existing table and
  parsing configuration file via `ipfw -n`) when kernel is unable to
  provide us table info we need. Fix the latter case by partially importing
  old `table_fill_xentry()` parse function responsible for guessing key type.

Sponsored by: Yandex LLC

8 years agoRemove unneded mbuf length adjustment, M_PREPEND() already did that.
ae [Tue, 19 May 2015 17:14:27 +0000 (17:14 +0000)]
Remove unneded mbuf length adjustment, M_PREPEND() already did that.

PR: 139387
MFC after: 1 week

8 years agouse proper types to represent function pointers
luigi [Tue, 19 May 2015 16:51:30 +0000 (16:51 +0000)]
use proper types to represent function pointers

8 years agoProperly null-terminate strings in a kernel dump header. A version string
asomers [Tue, 19 May 2015 16:23:47 +0000 (16:23 +0000)]
Properly null-terminate strings in a kernel dump header.  A version string
longer than 192 bytes will cause the version field of a dump header to
overflow. strncpy doesn't null terminate it, so savecore will print a
corrupted info file. Using strlcpy fixes the bug.

Differential Revision: https://reviews.freebsd.org/D2560
Reviewed by: markj
MFC after: 3 weeks
Sponsored by: Spectra Logic

8 years agoFixup to the kern_psignal manpage
bjk [Tue, 19 May 2015 15:43:20 +0000 (15:43 +0000)]
Fixup to the kern_psignal manpage

r283105 misspelled kern_psignal as kernel_psignal in one occurrence, and
added trailing whitespace.

While here, change 'call' to the more standard 'function', and say why
the name was changed (taken from the commit message for r225617).

8 years agoremove a redundant ; at the end of a function
luigi [Tue, 19 May 2015 15:29:00 +0000 (15:29 +0000)]
remove a redundant ; at the end of a function

MFC after: 1 week

8 years agoAdd Performance Monitoring Counters support for AArch64.
br [Tue, 19 May 2015 15:25:47 +0000 (15:25 +0000)]
Add Performance Monitoring Counters support for AArch64.
Family-common and CPU-specific counters implemented.

Supported CPUs: ARM Cortex A53/57/72.

Reviewed by: andrew, bz, emaste, gnn, jhb
Sponsored by: ARM Limited
Differential Revision: https://reviews.freebsd.org/D2555

8 years agoremove an extra ; after MODULE_DEPEND
luigi [Tue, 19 May 2015 14:49:31 +0000 (14:49 +0000)]
remove an extra ; after MODULE_DEPEND
(would otherwise generate a warning with more verbose compiler flags)

MFC after: 1 week

8 years agoAdd GRP_COMDAT section group flag to ELF header
emaste [Tue, 19 May 2015 14:23:33 +0000 (14:23 +0000)]
Add GRP_COMDAT section group flag to ELF header

Reviewed by: kib
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2582

8 years agoWhen sleeping in Sx state using MWAIT instruction, accept fast wakeup
kib [Tue, 19 May 2015 14:21:00 +0000 (14:21 +0000)]
When sleeping in Sx state using MWAIT instruction, accept fast wakeup
requests from writes to the monitored line.

Submitted by: avg

8 years agoUpdate crunch bootstrapping test for recent fixes
emaste [Tue, 19 May 2015 14:05:15 +0000 (14:05 +0000)]
Update crunch bootstrapping test for recent fixes

- r277259 crunchide: Correct 64-bit section header offset
- r281674 crunchide: always include both 32- and 64-bit ELF support

With built-in cross-size support we also no longer need a special case
for cross-build crunchide.

Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D2576

8 years agoUse MTX_SYSINIT() instead of mtx_init() to separate mutex initialization
glebius [Tue, 19 May 2015 14:04:21 +0000 (14:04 +0000)]
Use MTX_SYSINIT() instead of mtx_init() to separate mutex initialization
from associated structures initialization.  The mutexes are global, while
the structures are per-vnet.

Submitted by: Nikos Vassiliadis <nvass gmx.com>

8 years agoDuring module unload unlock rules before destroying UMA zones, which
glebius [Tue, 19 May 2015 14:02:40 +0000 (14:02 +0000)]
During module unload unlock rules before destroying UMA zones, which
may sleep in uma_drain(). It is safe to unlock here, since we are already
dehooked from pfil(9) and all pf threads had quit.

Sponsored by: Nginx, Inc.

8 years agoOnly several years late, catch the psignal man page up to the
julian [Tue, 19 May 2015 11:33:04 +0000 (11:33 +0000)]
Only several years late, catch the psignal man page up to the
fact that psignal has been renamed to kern_psignal since 9.0.

MFC after: 1 week

8 years agoRead GEOM_UNCOMPRESS metadata using several requests that fit into
ae [Tue, 19 May 2015 09:28:52 +0000 (09:28 +0000)]
Read GEOM_UNCOMPRESS metadata using several requests that fit into
MAXPHYS. For large compressed images the metadata size can be bigger
than MAXPHYS and this triggers KASSERT in g_read_data().
Also use g_free() to free memory allocated by g_read_data().

PR: 199476
MFC after: 2 weeks

8 years agoFix for DWC OTG device side isochronous transfers. The even or odd
hselasky [Tue, 19 May 2015 09:22:06 +0000 (09:22 +0000)]
Fix for DWC OTG device side isochronous transfers. The even or odd
isochronous frame bit needs to be flipped.

MFC after: 3 days

8 years agoChange SA's state before sending SADB_EXPIRE message. This state will
ae [Tue, 19 May 2015 08:37:03 +0000 (08:37 +0000)]
Change SA's state before sending SADB_EXPIRE message. This state will
be reported to keying daemon.

MFC after: 2 weeks

8 years agoTeach key_expire() send SADB_EXPIRE message with the SADB_EXT_LIFETIME_HARD
ae [Tue, 19 May 2015 08:30:04 +0000 (08:30 +0000)]
Teach key_expire() send SADB_EXPIRE message with the SADB_EXT_LIFETIME_HARD
extension header type. The key_flush_sad() now will send SADB_EXPIRE
message when HARD lifetime expires. This is required by RFC 2367 and some
keying daemons rely on these messages. HARD lifetime messages have
precedence over SOFT lifetime messages, so now they will be checked first.
Also now SADB_EXPIRE messages will be send even the SA has not been used,
because keying daemons might want to rekey such SA.

PR: 200282, 200283
Submitted by: Tobias Brunner <tobias at strongswan dot org>
MFC after: 2 weeks

8 years agoConvert routerstation to use geom_uncompress.
adrian [Tue, 19 May 2015 06:45:56 +0000 (06:45 +0000)]
Convert routerstation to use geom_uncompress.

8 years agoMigrate RSPRO to use the uncompress module, not uzip.
adrian [Tue, 19 May 2015 06:45:06 +0000 (06:45 +0000)]
Migrate RSPRO to use the uncompress module, not uzip.

(This is hand-in-hand with what I'm about to do with freebsd-wifi-build.)

8 years agoQCA955x / AP135 platform tidyups.
adrian [Tue, 19 May 2015 05:41:00 +0000 (05:41 +0000)]
QCA955x / AP135 platform tidyups.

* Change mips24k -> mips74k for hwpmc, but leave it disabled for now.
* don't build pci by default.
* build pci and qca955x_pci for AP135, as theres a PCIe NIC.
* don't build a hwpmc module, it doesn't really work out well
  for the mips boards at the moment.
* add ipfw and DEFAULT_TO_ACCEPT.

8 years agoThe AP135 PCIe NIC isn't an ath device, it's an 11ac part (linux ath10k.)
adrian [Tue, 19 May 2015 05:33:07 +0000 (05:33 +0000)]
The AP135 PCIe NIC isn't an ath device, it's an 11ac part (linux ath10k.)
So, don't try to attach hints to it here.

8 years agoAdd initial support for the QCA955x PCIe host controller.
adrian [Tue, 19 May 2015 05:31:58 +0000 (05:31 +0000)]
Add initial support for the QCA955x PCIe host controller.

The QCA955x looks a lot like the AR724x PCIe controller, except it
supports two root complexes.  Unfortunately I only have one, so
although this code has started down the path of supporting more than
one, it's definitely not yet ready.

Tested:

* AP135 board (QCA9558 SoC), with the 11ac NIC swapped for an AR9380
  PCIe NIC.

Notes:

* Yes, this driver isn't very pretty.  I decided to commit what I have
  versus holding onto something that isn't yet finished.  It is enough
  to bring up the above NIC and interrupt routing works, so it's a good
  start.

* However, yes, the DDR flush routine hooks need to be fixed up.
  I don't think I'm firing the right one at the moment.

8 years agoAdd mv / expr ; these are used by the updated freebsd-wifi-build environment.
adrian [Tue, 19 May 2015 03:02:52 +0000 (03:02 +0000)]
Add mv / expr ; these are used by the updated freebsd-wifi-build environment.

8 years agoAdded description of POSIX-specified behavior when invoked on a key from within that...
pkelsey [Tue, 19 May 2015 02:24:55 +0000 (02:24 +0000)]
Added description of POSIX-specified behavior when invoked on a key from within that key's destructor.

Reviewed by: jhb, -doc
Approved by: jmallett (mentor)
MFC after: 3 days
Sponsored by: Norse Corp, Inc.

8 years agoMerge ACPICA 20150515.
jkim [Mon, 18 May 2015 23:46:11 +0000 (23:46 +0000)]
Merge ACPICA 20150515.

8 years agoImport ACPICA 20150515.
jkim [Mon, 18 May 2015 23:17:05 +0000 (23:17 +0000)]
Import ACPICA 20150515.

8 years agoSynchronize with OpenBSD
bapt [Mon, 18 May 2015 22:40:12 +0000 (22:40 +0000)]
Synchronize with OpenBSD

Obtained from: OpenBSD

8 years agoddb: stop boolean screaming.
pfg [Mon, 18 May 2015 22:27:46 +0000 (22:27 +0000)]
ddb: stop boolean screaming.

TRUE --> true
FALSE--> false

Hinted by: NetBSD

8 years agoSynchronize libedit with NetBSD
bapt [Mon, 18 May 2015 22:03:05 +0000 (22:03 +0000)]
Synchronize libedit with NetBSD

It incorporates and fixes our patches to get el_gets return the proper count of
characters in unicode mode.

8 years agoMFV of 283077,tzdata2015d
edwin [Mon, 18 May 2015 21:05:11 +0000 (21:05 +0000)]
MFV of 283077,tzdata2015d

Update to tzdata2015d:

Release 2015d - 2015-04-24 08:09:46 -0700

  Changes affecting future time stamps

    Egypt will not observe DST in 2015 and will consider canceling it
    permanently.  For now, assume no DST indefinitely.
    (Thanks to Ahmed Nazmy and Tim Parenti.)

  Change affecting past and future time zone abbreviations

    The abbreviations for Hawaii-Aleutian standard and daylight times
    have been changed from HAST/HADT to HST/HDT, as per US Government
    Printing Office style.  This affects only America/Adak since 1983,
    as America/Honolulu was already using the new style.

8 years agoFix off-by-one in array index bounds check
allanjude [Mon, 18 May 2015 19:45:46 +0000 (19:45 +0000)]
Fix off-by-one in array index bounds check

bhyveload would allow you to create 33 entries on an array that only has 32 slots

Differential Revision: https://reviews.freebsd.org/D2569
Reviewed by: araujo
Approved by: neel
MFC after: 1 week
Sponsored by: ScaleEngine Inc.

8 years agoFix error in gmountver(8) man page
allanjude [Mon, 18 May 2015 19:37:55 +0000 (19:37 +0000)]
Fix error in gmountver(8) man page

Also fixes the usage statement for the binary to use the correct terms (provider and geom name, rather than dev and prov, which is incorrect in the latter case)
Sync the man page summary with the new usage statement

PR: 199540
Differential Revision: https://reviews.freebsd.org/D2329
Submitted by: Fabian Keil
Reviewed by: trasz
Approved by: eadler (mentor)
Obtained from: ElectroBSD (original)
MFC after: 1 week
Sponsored by: ScaleEngine Inc.

8 years agoDon't do things we aren't allowed to do in a signal handler... Defer
jmg [Mon, 18 May 2015 19:18:42 +0000 (19:18 +0000)]
Don't do things we aren't allowed to do in a signal handler...  Defer
the work to the main thread...  This fixes a possible crash if SIGINFO
is delivered at the wrong time...

This still leaves getrusage broken for some reason, but I believe that
is a kernel issue and cannot be fixed here...

8 years agoRemove unnecessary devices from allwinner kernels.
loos [Mon, 18 May 2015 18:25:38 +0000 (18:25 +0000)]
Remove unnecessary devices from allwinner kernels.

8 years agoProperly align the header and the data columns for netstat -r with and
loos [Mon, 18 May 2015 18:03:47 +0000 (18:03 +0000)]
Properly align the header and the data columns for netstat -r with and
without the -W flag.

8 years agoGarbage collect GNU soelim Makefiles which are not in used anymore
bapt [Mon, 18 May 2015 16:51:05 +0000 (16:51 +0000)]
Garbage collect GNU soelim Makefiles which are not in used anymore

8 years agoEnable the NETIF_OPEN_CLOSE_ONCE option for ubldr. This keeps the network
ian [Mon, 18 May 2015 16:43:21 +0000 (16:43 +0000)]
Enable the NETIF_OPEN_CLOSE_ONCE option for ubldr.  This keeps the network
interface open continuously instead of closing it after each filesystem
access and reopening it before the next (causing it to re-obtain network
params each time).  This vastly speeds up netbooting.

8 years agoDrop some unnecessary casts.
pfg [Mon, 18 May 2015 16:28:13 +0000 (16:28 +0000)]
Drop some unnecessary casts.

Reported by: Clang static analyzer
Obtained from: NetBSD

8 years agoMake the FIFO configuration a bit more flexible for the DWC OTG in
hselasky [Mon, 18 May 2015 16:18:04 +0000 (16:18 +0000)]
Make the FIFO configuration a bit more flexible for the DWC OTG in
device side mode.

8 years agoAdd a routine to obtain netboot parameters from the U-Boot env vars. Call
ian [Mon, 18 May 2015 16:12:41 +0000 (16:12 +0000)]
Add a routine to obtain netboot parameters from the U-Boot env vars.  Call
it from the uboot net_init() implementation.  The routine uses the standard
U-Boot env vars plus a freebsd-specific variable named "rootpath" (the
corresponding u-boot variable for that would be "bootfile" except that it
refers to ubldr, so a new name was needed to communicate the path to ubldr).

This allows ubldr to load a kernel from nfs without requiring a dhcp or
bootp server to provide the server ip and rootpath parameters.

8 years agoOnly build libreadline if gdb is going to be built
bapt [Mon, 18 May 2015 16:05:41 +0000 (16:05 +0000)]
Only build libreadline if gdb is going to be built

gdb is the only consumer of libreadline which is an INTERNALLIB

8 years agoFix an off-by-one error by adding proper range checks when parsing the
hselasky [Mon, 18 May 2015 16:02:44 +0000 (16:02 +0000)]
Fix an off-by-one error by adding proper range checks when parsing the
HDA association descriptors. This fixes a crash during device probe
for some HDA PCI devices.

Reported by: David Wolfskill <david@catwhisker.org>
Reviewed by: mav @
MFC after: 1 week

8 years agoA miss from r283061: don't dereference NULL is pf_get_mtag() fails.
glebius [Mon, 18 May 2015 15:51:27 +0000 (15:51 +0000)]
A miss from r283061: don't dereference NULL is pf_get_mtag() fails.

PR: 200222
Submitted by: Franco Fichtner <franco opnsense.org>

8 years agoRefactor net_getparams() to make it easier to get params from sources other
ian [Mon, 18 May 2015 15:46:43 +0000 (15:46 +0000)]
Refactor net_getparams() to make it easier to get params from sources other
than bootp and rarp.

The code which splits a serverip:/rootpath string into rootip and a plain
pathname is now a separate net_parse_rootpath() function that can be
called by others.  The code that sets the kernel env vars needed for
nfs_diskless is moved into net_open() so that the variables get set no
matter where the params came from.

There was already code in net_open() that allowed for the possibility that
some other entity has set up the network-related global variables.  It uses
the rootip variable as the key, assuming that if it is set all the other
required variables are set too.  These changes don't alter the existing
behavior, they just make it easier to actually write some new code to get
the params from another source (such as the U-Boot environment).

8 years agoDon't dereference NULL is pf_get_mtag() fails.
glebius [Mon, 18 May 2015 15:05:12 +0000 (15:05 +0000)]
Don't dereference NULL is pf_get_mtag() fails.

PR: 200222
Submitted by: Franco Fichtner <franco opnsense.org>

8 years agoBuild libgcov only if we're building base system GCC
emaste [Mon, 18 May 2015 15:02:35 +0000 (15:02 +0000)]
Build libgcov only if we're building base system GCC

Clang uses compiler-rt for the code coverage runtime, and ports GCC
provides its own libgcov.

PR: 200203 (exp-run)
Sponsored by: The FreeBSD Foundation

8 years agofd: fix imbalanced fdp unlock in F_SETLK and F_GETLK
mjg [Mon, 18 May 2015 14:27:04 +0000 (14:27 +0000)]
fd: fix imbalanced fdp unlock in F_SETLK and F_GETLK

MFC after: 3 days

8 years agoTidy up sys_umask a little bit
mjg [Mon, 18 May 2015 13:43:33 +0000 (13:43 +0000)]
Tidy up sys_umask a little bit

Consistently use saved fdp pointer as it cannot change. If it could change the
code would be already incorrect.

No functional changes.

8 years agoClean up the Amlogic interrupt controller driver to handle the case where
andrew [Mon, 18 May 2015 11:04:07 +0000 (11:04 +0000)]
Clean up the Amlogic interrupt controller driver to handle the case where
we have both the Amlogic pic and a GIC. This may be the case in some
configurations.

Differential Revision: https://reviews.freebsd.org/D2432
Submitted by: John Wehle <john@feith.com>

8 years agoMove all test integration pieces for etc/ from etc/ to tests/
ngie [Mon, 18 May 2015 11:02:43 +0000 (11:02 +0000)]
Move all test integration pieces for etc/ from etc/ to tests/

This is being done to fix breakage with make distribution with read-only
source trees as make distribution doesn't use make obj like building
tests/ does in all cases

Reported by: Wolfgang Zenker <wolfgang@lyxys.ka.sub.org>
Suggested by: jhb
X-MFC with: r282059
MFC after: 1 week

8 years agoAdd support for SCSI disk hot add and remove. Also add padding according to
whu [Mon, 18 May 2015 10:31:23 +0000 (10:31 +0000)]
Add support for SCSI disk hot add and remove. Also add padding according to
the requirement of different hypervisor releases.

Submitted by: whu
Reviewed by: royger
Approved by: royger
MFC after: 1 week
Sponsored by: Microsoft OSTC
Differential Revision: https://reviews.freebsd.org/D2512

8 years agoClean up the style to be "include<space><tab>" and remove options already
andrew [Mon, 18 May 2015 08:12:08 +0000 (08:12 +0000)]
Clean up the style to be "include<space><tab>" and remove options already
in std.armv6.

8 years agosfxge: do not advertise LRO capability if LRO is compiled out
arybchik [Mon, 18 May 2015 06:07:02 +0000 (06:07 +0000)]
sfxge: do not advertise LRO capability if LRO is compiled out

Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision: https://reviews.freebsd.org/D2565

8 years agosfxge: automatically turn off TSO when Tx checksum offload is disabled
arybchik [Mon, 18 May 2015 06:04:20 +0000 (06:04 +0000)]
sfxge: automatically turn off TSO when Tx checksum offload is disabled

Also return error if TSO is requested without Tx checksum offload.

Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision: https://reviews.freebsd.org/D2564

8 years agosfxge: allow to disable checksum offloads over VLAN
arybchik [Mon, 18 May 2015 06:03:21 +0000 (06:03 +0000)]
sfxge: allow to disable checksum offloads over VLAN

It just affects capabilities of the created VLAN interface.

Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision: https://reviews.freebsd.org/D2563

8 years agosfxge: fix overflow queue freeze
arybchik [Mon, 18 May 2015 06:02:22 +0000 (06:02 +0000)]
sfxge: fix overflow queue freeze

If TxQ lock is obtained, deferred packet list shold be serviced even if
the packet addition fails because of overflow.

Without the patch freeze happens if:
 - queue is not blocked (i.e. completion does not trigger unblock and service)
 - put-list overflow (1024 entries)
 - sfxge_tx_packet_add() acquires TxQ lock just as it is released it in
   sfxge_tx_qdpl_service() on the second CPU but before pending check
 - sfxge_tx_packet_add() swizzles put-list to get-list, fails because of
   non-tcp get-list overflow and returns without packet list service
 - sfxge_tx_qdpl_service() on the second CPU checks that there are no
   pending packets in the put-list and returns

Other possible solution is to guaranee that maximum length of the put-list
is less than maximum length of any get-list.

Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision: https://reviews.freebsd.org/D2562

8 years agoMFV of 283040,tzdata{2015c}
edwin [Mon, 18 May 2015 01:59:02 +0000 (01:59 +0000)]
MFV of 283040,tzdata{2015c}

Update to tzdata2015c:

    Release 2015c - 2015-04-11 08:55:55 -0700

    Changes affecting future time stamps

    Egypt's spring-forward transition is at 24:00 on April's last Thursday,
    not 00:00 on April's last Friday.  2015's transition will therefore be on
    Thursday, April 30 at 24:00, not Friday, April 24 at 00:00.  Similar fixes
    apply to 2026, 2037, 2043, etc.  (Thanks to Steffen Thorsen.)

8 years agoFix a typo that snuck in with r283024, and remove the EXFAIL annotation from
markj [Sun, 17 May 2015 23:09:58 +0000 (23:09 +0000)]
Fix a typo that snuck in with r283024, and remove the EXFAIL annotation from
a test which now passes as a result of that change.

8 years agoRespect the libdir option when linking drti.o, rather than hardcoding the
markj [Sun, 17 May 2015 23:08:01 +0000 (23:08 +0000)]
Respect the libdir option when linking drti.o, rather than hardcoding the
default path of /usr/lib(32)/dtrace.

MFC after: 3 weeks