]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoAdd directory for test encoder missed by accident in r288929
Enji Cooper [Tue, 6 Oct 2015 17:22:54 +0000 (17:22 +0000)]
Add directory for test encoder missed by accident in r288929

Sponsored by: EMC / Isilon Storage Division

8 years agoRemove a comment from an earlier iteration of trying to figure out how the
Enji Cooper [Tue, 6 Oct 2015 17:18:15 +0000 (17:18 +0000)]
Remove a comment from an earlier iteration of trying to figure out how the
test encoder testcases worked

8 years agoIntegrate the tests from libxo into the FreeBSD test suite
Enji Cooper [Tue, 6 Oct 2015 16:58:47 +0000 (16:58 +0000)]
Integrate the tests from libxo into the FreeBSD test suite

The functional_test.sh harness for each test subdir was inspired
by the version in bin/sh/tests/functional_test.sh

Some gymnastics were required to deal with implicit rules for
.c / .o -> .out as the suffix transformation rules were
incorrectly trying to create the test outputs from some of the
source files

Sponsored by: EMC / Isilon Storage Division

8 years agoUpdate Xen headers from 4.2 to 4.6
Roger Pau Monné [Tue, 6 Oct 2015 11:29:44 +0000 (11:29 +0000)]
Update Xen headers from 4.2 to 4.6

Pull the latest headers for Xen which allow us to add support for ARM and
use new features in FreeBSD.

This is a verbatim copy of the xen/include/public so every headers which
don't exits anymore in the Xen repositories have been dropped.

Note the interface version hasn't been bumped, it will be done in a
follow-up. Although, it requires fix in the code to get it compiled:

 - sys/xen/xen_intr.h: evtchn_port_t is already defined in the headers so
   drop it.

 - {amd64,i386}/include/intr_machdep.h: NR_EVENT_CHANNELS now depends on
   xen/interface/event_channel.h, so include it.

 - {amd64,i386}/{amd64,i386}/support.S: It's not neccessary to include
   machine/intr_machdep.h. This is also fixing build compilation with the
   new headers.

 - dev/xen/blkfront/blkfront.c: The typedef for blkif_request_segmenthas
   been dropped. So directly use struct blkif_request_segment

Finally, modify xen/interface/xen-compat.h to throw a preprocessing error if
__XEN_INTERFACE_VERSION__ is not set. This is allow us to catch any file
where xen/xen-os.h is not correctly included.

Submitted by: Julien Grall <julien.grall@citrix.com>
Reviewed by: royger
Differential Revision: https://reviews.freebsd.org/D3805
Sponsored by: Citrix Systems R&D

8 years agoRemove debugging variable from r143761.
Gleb Smirnoff [Tue, 6 Oct 2015 09:43:49 +0000 (09:43 +0000)]
Remove debugging variable from r143761.

8 years agoReallocate a maxlen-long buffer only when the current maxlen is
Hiroki Sato [Tue, 6 Oct 2015 08:43:48 +0000 (08:43 +0000)]
Reallocate a maxlen-long buffer only when the current maxlen is
shorter than the required length.  Note that it rarely happens
because maxlen is almost always 128 which covers struct sockaddr_storage.

8 years agoAdd a comment specifying how we implement rfc3042.
Hiren Panchasara [Tue, 6 Oct 2015 07:46:19 +0000 (07:46 +0000)]
Add a comment specifying how we implement rfc3042.

Differential Revision: D3746
MFC after:     1 week
Sponsored by:     Limelight Networks

8 years agoUse LIBXOSRC instead of LIBXO when defining the path to contrib/libxo
Enji Cooper [Tue, 6 Oct 2015 07:28:54 +0000 (07:28 +0000)]
Use LIBXOSRC instead of LIBXO when defining the path to contrib/libxo

The latter is already defined in bsd.libnames.mk, so avoid the conflict
in case someone copy-pastes make variables

While here, switch path to the top of the source tree with SRCTOP

8 years agoExploit r288122 to address a cosmetic issue. Pages belonging to either
Alan Cox [Tue, 6 Oct 2015 05:49:00 +0000 (05:49 +0000)]
Exploit r288122 to address a cosmetic issue.  Pages belonging to either
the kernel or kmem object can't be paged out.  Since they can't be paged
out, they are never enqueued in a paging queue.  Nonetheless, passing
PQ_INACTIVE to vm_page_unwire() in kmem_unback() creates the appearance
that these pages are being enqueued in the inactive queue.  As of r288122,
we can avoid giving this false impression by passing PQ_NONE.

Submitted by: kmacy
Differential Revision: https://reviews.freebsd.org/D1674

8 years agoPrevious versions of bsd.own.mk included bsd.compiler.mk
Warner Losh [Tue, 6 Oct 2015 04:18:48 +0000 (04:18 +0000)]
Previous versions of bsd.own.mk included bsd.compiler.mk
only when _WITHOUT_SRCCONF wasn't defined. Restore this
behavior because bsd.ports.mk depends on this in subtle
ways. The compat include of bsd.compiler.mk should
be removed in 12 anyway.

PR: 203540

8 years agoOn some interfaces, ipfilter drops UDP packets with zero checkum.
Cy Schubert [Tue, 6 Oct 2015 03:41:11 +0000 (03:41 +0000)]
On some interfaces, ipfilter drops UDP packets with zero checkum.
This commit fixes that.

PR: 166372
Submitted by: mk@neon1.net
Reviewed by: Darren Reed <darrenr@reed.wattle.id.au>
MFC after: 1 week

8 years agoSave the link register in savectx().
Justin Hibbits [Tue, 6 Oct 2015 01:24:46 +0000 (01:24 +0000)]
Save the link register in savectx().

Pointed out by: jhb

8 years agoUse UBOOT_FILES in the dd(1) input file, as intended.
Glen Barber [Tue, 6 Oct 2015 01:05:07 +0000 (01:05 +0000)]
Use UBOOT_FILES in the dd(1) input file, as intended.

Sponsored by: The FreeBSD Foundation

8 years agoCall sync consistently using atf_check
Enji Cooper [Tue, 6 Oct 2015 01:00:12 +0000 (01:00 +0000)]
Call sync consistently using atf_check

Remove superfluous sync's

8 years agoExplicitly set BLOCKSIZE to 512 in the environment
Enji Cooper [Tue, 6 Oct 2015 00:55:31 +0000 (00:55 +0000)]
Explicitly set BLOCKSIZE to 512 in the environment

8 years agoAdd some more syncs to quiesce the filesystem after creating the
Enji Cooper [Tue, 6 Oct 2015 00:23:50 +0000 (00:23 +0000)]
Add some more syncs to quiesce the filesystem after creating the
files to see if this fixes deterministic Jenkin failures

8 years agoStart using the fact that SUBDIR.yes is added to SUBDIR
Warner Losh [Mon, 5 Oct 2015 21:41:55 +0000 (21:41 +0000)]
Start using the fact that SUBDIR.yes is added to SUBDIR
and move from the pattern of:

.if ${MK_FOO} != "no"
SUBDIR+= bar
.endif

to

SUBDIR.${MK_FOO}+= bar

since we know that MK_FOO is always either yes or no and the latter
form is easier to follow and much shorter. Various exception to this
pattern dealt with on an ah-hoc basis.

Discussed on arch@ a while ago.

8 years agoFix crash if a process sends itself a SIGTRAP. Just forward it as expected.
Bryan Drewery [Mon, 5 Oct 2015 21:39:07 +0000 (21:39 +0000)]
Fix crash if a process sends itself a SIGTRAP.  Just forward it as expected.

MFC after: 2 weeks [needs rewrite]
Relnotes: yes

8 years agoInclude additional info in ptrace(2) KTR traces:
John Baldwin [Mon, 5 Oct 2015 21:36:53 +0000 (21:36 +0000)]
Include additional info in ptrace(2) KTR traces:
- The new PC value and signal passed to PT_CONTINUE, PT_DETACH, PT_SYSCALL,
  and PT_TO_SC[EX].
- The system call code returned via PT_LWPINFO.

MFC after: 1 week

8 years agoMark swap_pager_putpages static at its definition. It was already
Warner Losh [Mon, 5 Oct 2015 21:29:17 +0000 (21:29 +0000)]
Mark swap_pager_putpages static at its definition. It was already
static at its declaration. Remove needless swapdev_strategy forward
declaration.

MFC After: 3 days

8 years agoWrap a long line to make igor(1) happy.
Glen Barber [Mon, 5 Oct 2015 20:14:25 +0000 (20:14 +0000)]
Wrap a long line to make igor(1) happy.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r288310, ctl(4) updated to support CD-ROMs and other
Glen Barber [Mon, 5 Oct 2015 20:14:22 +0000 (20:14 +0000)]
Document r288310, ctl(4) updated to support CD-ROMs and other
removable devices.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r288303, nc(1) updated to OpenBSD 5.8 version.
Glen Barber [Mon, 5 Oct 2015 20:13:51 +0000 (20:13 +0000)]
Document r288303, nc(1) updated to OpenBSD 5.8 version.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r288176, kernel symbols now installed to /usr/lib/debug/.
Glen Barber [Mon, 5 Oct 2015 20:13:49 +0000 (20:13 +0000)]
Document r288176, kernel symbols now installed to /usr/lib/debug/.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287917, unbound 1.5.4.
Glen Barber [Mon, 5 Oct 2015 20:13:47 +0000 (20:13 +0000)]
Document r287917, unbound 1.5.4.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287886, fix kqueue write events for files > 2GB
Glen Barber [Mon, 5 Oct 2015 20:13:44 +0000 (20:13 +0000)]
Document r287886, fix kqueue write events for files > 2GB

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287842, ifconfig(8) exit on error if ioctl(2) fails.
Glen Barber [Mon, 5 Oct 2015 20:13:42 +0000 (20:13 +0000)]
Document r287842, ifconfig(8) exit on error if ioctl(2) fails.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287798, IPv6 On-Link redirect handling fix.
Glen Barber [Mon, 5 Oct 2015 20:13:39 +0000 (20:13 +0000)]
Document r287798, IPv6 On-Link redirect handling fix.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287621, CTL HA reimplementation.
Glen Barber [Mon, 5 Oct 2015 20:13:37 +0000 (20:13 +0000)]
Document r287621, CTL HA reimplementation.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287576, service(8) updated to respect /etc/rc.conf.d/.
Glen Barber [Mon, 5 Oct 2015 20:13:35 +0000 (20:13 +0000)]
Document r287576, service(8) updated to respect /etc/rc.conf.d/.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287522, pciconf(8) prefer pciids from ports database,
Glen Barber [Mon, 5 Oct 2015 20:13:32 +0000 (20:13 +0000)]
Document r287522, pciconf(8) prefer pciids from ports database,
if present.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287473, sesutil(8) addition.
Glen Barber [Mon, 5 Oct 2015 20:13:30 +0000 (20:13 +0000)]
Document r287473, sesutil(8) addition.
Add Gandi.net to sponsor.ent.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287469, em(4) update to support I219 chipset.
Glen Barber [Mon, 5 Oct 2015 20:13:27 +0000 (20:13 +0000)]
Document r287469, em(4) update to support I219 chipset.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r288143, file(1) updated to 5.25.
Glen Barber [Mon, 5 Oct 2015 20:13:25 +0000 (20:13 +0000)]
Document r288143, file(1) updated to 5.25.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287371, support for HiSilicon HI6220 SoC.
Glen Barber [Mon, 5 Oct 2015 20:13:22 +0000 (20:13 +0000)]
Document r287371, support for HiSilicon HI6220 SoC.
Add ABT Systems, Ltd. to sponsor.ent.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287306, CUBIEBOARD2 kernel configuration renamed to A20.
Glen Barber [Mon, 5 Oct 2015 20:13:20 +0000 (20:13 +0000)]
Document r287306, CUBIEBOARD2 kernel configuration renamed to A20.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287225, 1-Wire implementation.
Glen Barber [Mon, 5 Oct 2015 20:13:17 +0000 (20:13 +0000)]
Document r287225, 1-Wire implementation.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287222, pf(4) support for 'scrub fragment crop|drop-ovl'
Glen Barber [Mon, 5 Oct 2015 20:13:15 +0000 (20:13 +0000)]
Document r287222, pf(4) support for 'scrub fragment crop|drop-ovl'
removed.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287117, ioat(4) driver addition.
Glen Barber [Mon, 5 Oct 2015 20:13:12 +0000 (20:13 +0000)]
Document r287117, ioat(4) driver addition.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287099, account for ashift when gathering buffers to
Glen Barber [Mon, 5 Oct 2015 20:13:10 +0000 (20:13 +0000)]
Document r287099, account for ashift when gathering buffers to
be written to l2arc device

Sponsored by: The FreeBSD Foundation

8 years agoDocument r288090, jemalloc update to 4.0.2.
Glen Barber [Mon, 5 Oct 2015 20:13:07 +0000 (20:13 +0000)]
Document r288090, jemalloc update to 4.0.2.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r286829, ability to disable em(4) CRC stripping.
Glen Barber [Mon, 5 Oct 2015 20:13:05 +0000 (20:13 +0000)]
Document r286829, ability to disable em(4) CRC stripping.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r286795, patch(1) automatic checkout feature removed.
Glen Barber [Mon, 5 Oct 2015 20:13:03 +0000 (20:13 +0000)]
Document r286795, patch(1) automatic checkout feature removed.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r286750, zoneinfo update to 2015f.
Glen Barber [Mon, 5 Oct 2015 20:13:01 +0000 (20:13 +0000)]
Document r286750, zoneinfo update to 2015f.
While here, move a few misordered entries.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r286591, uart(4) PPS runtime-tunable.
Glen Barber [Mon, 5 Oct 2015 20:12:58 +0000 (20:12 +0000)]
Document r286591, uart(4) PPS runtime-tunable.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r286503, r286505, r286506, r286510:
Glen Barber [Mon, 5 Oct 2015 20:12:56 +0000 (20:12 +0000)]
Document r286503, r286505, r286506, r286510:
apr-1.5.2
serf-1.3.8
svnlite-1.8.14
sqlite3-3.8.11.1

Sponsored by: The FreeBSD Foundation

8 years agoDocument r286444, BIO_DELETE passthru support in GELI.
Glen Barber [Mon, 5 Oct 2015 20:12:53 +0000 (20:12 +0000)]
Document r286444, BIO_DELETE passthru support in GELI.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r286441, iwm(4) addition.
Glen Barber [Mon, 5 Oct 2015 20:12:51 +0000 (20:12 +0000)]
Document r286441, iwm(4) addition.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r286289, xargs(1) '-P 0' mode.
Glen Barber [Mon, 5 Oct 2015 20:12:49 +0000 (20:12 +0000)]
Document r286289, xargs(1) '-P 0' mode.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r286231, pms(4) added to GENERIC.
Glen Barber [Mon, 5 Oct 2015 20:12:46 +0000 (20:12 +0000)]
Document r286231, pms(4) added to GENERIC.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r286062, xen(4) blkif indirect segment I/O support.
Glen Barber [Mon, 5 Oct 2015 20:12:44 +0000 (20:12 +0000)]
Document r286062, xen(4) blkif indirect segment I/O support.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r286010, ar(1) '-D' option enabled by default.
Glen Barber [Mon, 5 Oct 2015 20:12:42 +0000 (20:12 +0000)]
Document r286010, ar(1) '-D' option enabled by default.

Sponsored by: The FreeBSD Foundation

8 years agoFix a revision tag.
Glen Barber [Mon, 5 Oct 2015 20:12:40 +0000 (20:12 +0000)]
Fix a revision tag.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285972, libarchive(3) bugfix for sparse files in tar(1)
Glen Barber [Mon, 5 Oct 2015 20:12:37 +0000 (20:12 +0000)]
Document r285972, libarchive(3) bugfix for sparse files in tar(1)
archives.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285883, isl(4) addition.
Glen Barber [Mon, 5 Oct 2015 20:12:35 +0000 (20:12 +0000)]
Document r285883, isl(4) addition.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285876, cyapa(4) addition.
Glen Barber [Mon, 5 Oct 2015 20:12:32 +0000 (20:12 +0000)]
Document r285876, cyapa(4) addition.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r287168, ACPICA version 20150818.
Glen Barber [Mon, 5 Oct 2015 20:12:30 +0000 (20:12 +0000)]
Document r287168, ACPICA version 20150818.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285772, patch(1) '-V none' addition.
Glen Barber [Mon, 5 Oct 2015 20:12:27 +0000 (20:12 +0000)]
Document r285772, patch(1) '-V none' addition.
Add EMC/Isilon Storage Division to sponsors.ent.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285685, allow mounting linprocfs(5) and linsysfs(5)
Glen Barber [Mon, 5 Oct 2015 20:12:25 +0000 (20:12 +0000)]
Document r285685, allow mounting linprocfs(5) and linsysfs(5)
within a jail.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285662, pms(4) addition.
Glen Barber [Mon, 5 Oct 2015 20:12:22 +0000 (20:12 +0000)]
Document r285662, pms(4) addition.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285594, 'lenovofix' gpart(8) attribute.
Glen Barber [Mon, 5 Oct 2015 20:12:20 +0000 (20:12 +0000)]
Document r285594, 'lenovofix' gpart(8) attribute.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285524, hw.model sysctl.
Glen Barber [Mon, 5 Oct 2015 20:12:18 +0000 (20:12 +0000)]
Document r285524, hw.model sysctl.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285420, jail(8) -l flag and default shell execution when
Glen Barber [Mon, 5 Oct 2015 20:12:15 +0000 (20:12 +0000)]
Document r285420, jail(8) -l flag and default shell execution when
no commands are specified.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285387, NUMA affinity/policy configuration.
Glen Barber [Mon, 5 Oct 2015 20:12:12 +0000 (20:12 +0000)]
Document r285387, NUMA affinity/policy configuration.
Add Norse Corporation to sponsors.ent.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285336, AES mode support in IPSEC.
Glen Barber [Mon, 5 Oct 2015 20:12:10 +0000 (20:12 +0000)]
Document r285336, AES mode support in IPSEC.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285316, FreeBSD/aarch64 SMP support.
Glen Barber [Mon, 5 Oct 2015 20:12:08 +0000 (20:12 +0000)]
Document r285316, FreeBSD/aarch64 SMP support.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285277, execl(3) and execlp(3) update to use the gcc
Glen Barber [Mon, 5 Oct 2015 20:12:05 +0000 (20:12 +0000)]
Document r285277, execl(3) and execlp(3) update to use the gcc
__sentinel attribute.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285275, tcpdump(1) updated to version 4.7.4.
Glen Barber [Mon, 5 Oct 2015 20:12:03 +0000 (20:12 +0000)]
Document r285275, tcpdump(1) updated to version 4.7.4.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285253, IPv6 support in quota(1).
Glen Barber [Mon, 5 Oct 2015 20:12:00 +0000 (20:12 +0000)]
Document r285253, IPv6 support in quota(1).

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285169, ntp-4.2.8p3.
Glen Barber [Mon, 5 Oct 2015 20:11:58 +0000 (20:11 +0000)]
Document r285169, ntp-4.2.8p3.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r285142, IPSEC enabled in GENERIC by default.
Glen Barber [Mon, 5 Oct 2015 20:11:56 +0000 (20:11 +0000)]
Document r285142, IPSEC enabled in GENERIC by default.

Sponsored by: The FreeBSD Foundation

8 years agoDocument r284883, NTFS support in mkimg(1).
Glen Barber [Mon, 5 Oct 2015 20:11:53 +0000 (20:11 +0000)]
Document r284883, NTFS support in mkimg(1).

Sponsored by: The FreeBSD Foundation

8 years agoAdd decoding for modfind(2)
Bryan Drewery [Mon, 5 Oct 2015 18:11:30 +0000 (18:11 +0000)]
Add decoding for modfind(2)

8 years ago- address grammar
Jason Helfman [Mon, 5 Oct 2015 18:09:43 +0000 (18:09 +0000)]
- address grammar

PR: 203440 (based on)
Submitted by: ceratv@rpi.edu
Approved by: wblock@ (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D3813

8 years agoFix tracking of unknown syscalls for 'truss -c'.
Bryan Drewery [Mon, 5 Oct 2015 18:08:35 +0000 (18:08 +0000)]
Fix tracking of unknown syscalls for 'truss -c'.

This is done by changing get_syscall() to either lookup the known syscall
or add it into the list with the default handlers for printing.

This also simplifies some code to not have to check if the syscall variable
is set or NULL.

Reviewed by: jhb
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D3792

8 years agoThe latest version of lex requires the latest m4 to build, add a dependency
Ian Lepore [Mon, 5 Oct 2015 17:45:13 +0000 (17:45 +0000)]
The latest version of lex requires the latest m4 to build, add a dependency
when running the build-tools stage.

The requirement is due to the -P flag used when running m4 from usr.bin/lex
Makefile to generate skel.c.  With the old m4 that fails and the failure is
ignored, resulting in an empty(-ish) skel.c, which leads to later build
failures when the misconfigured new lex tool is run.

This enables building -current (and 10-stable after MFC) on a stable-8
system again.

MFC after: 3 days

8 years agoClean up some harmless unimplemented-command warning messages.
Peter Grehan [Mon, 5 Oct 2015 14:57:45 +0000 (14:57 +0000)]
Clean up some harmless unimplemented-command warning messages.

- Don't advertize trusted-computing capability in the Identify page.
  This prevents Windows from issuing a TRUSTED_RECEIVE_DMA command.
- Windows will send down SMART and SECURITY_FREEZE_LOCK
   even though smart and security capabilities were not advertized.
   Send back a silent abort.

Reviewed by: mav

8 years agoAttach interrupt controller device before other devices.
Ruslan Bukin [Mon, 5 Oct 2015 13:15:21 +0000 (13:15 +0000)]
Attach interrupt controller device before other devices.

Sponsored by: University of Cambridge

8 years agoFix printf-like formats for KASSERT.
Mark Murray [Mon, 5 Oct 2015 10:45:52 +0000 (10:45 +0000)]
Fix printf-like formats for KASSERT.

Submitted by: jenkins
Approved by: so (/dev/random blanket)

8 years agoIt appears that under some circumstances, like virtualisiation, the
Mark Murray [Mon, 5 Oct 2015 07:41:12 +0000 (07:41 +0000)]
It appears that under some circumstances, like virtualisiation, the
'rdrand' instruction may occasionally not return random numbers, in
spite of looping attempts to do so. The reusult is a KASSERT/panic.

Reluctantly accept this state-of-affairs, but make a noise about it.
if this 'noise' spams the console, it may be time to discontinue
using that source.

This is written in a general way to account for /any/ source that
might not supply random numbers when required.

Submitted by: jkh (report and slightly different fix)
Approved by: so (/dev/random blanket)

8 years agoRemove the unnecessary cast.
Kevin Lo [Mon, 5 Oct 2015 05:24:16 +0000 (05:24 +0000)]
Remove the unnecessary cast.

8 years agoMerge additional testcases and improvements to bin/ls/ls_tests from
Enji Cooper [Mon, 5 Oct 2015 00:33:57 +0000 (00:33 +0000)]
Merge additional testcases and improvements to bin/ls/ls_tests from
^/user/ngie/more-tests.

- Additional testcases added:
-- ls -D
-- ls -F
-- ls -H
-- ls -L
-- ls -R
-- ls -S
-- ls -T
-- ls -b
-- ls -d
-- ls -f
-- ls -g
-- ls -h
-- ls -i
-- ls -k
-- ls -l
-- ls -m
-- ls -n
-- ls -o
-- ls -p
-- ls -q/ls -w
-- ls -r
-- ls -s
-- ls -t
-- ls -u
-- ls -y
- Socket file creation is limited to the ls -F testcase, greatly speeding up
  the test process
- The ls -C testcase was made more robust by limiting the number of columns
  via COLUMNS and by dynamically formulating the columns/lines.
- Add `atf_test_case` before all testcase `head` functions.

X-MFC with: r284388, r288330, r288423
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

8 years agoSet correct argemdio addr, comment out arge1 as its not physically
Sean Bruno [Sun, 4 Oct 2015 22:50:37 +0000 (22:50 +0000)]
Set correct argemdio addr, comment out arge1 as its not physically
connected to anything.  Move a couple of devices out of the kernel
and into modules.

8 years agoWhen trying to execute from a misaligned address raise a SIGBUS with the
Andrew Turner [Sun, 4 Oct 2015 21:16:45 +0000 (21:16 +0000)]
When trying to execute from a misaligned address raise a SIGBUS with the
invalid address alignment code.

Obtained from: EuroBSDCon
Sponsored by: ABT Systems Ltd

8 years agoInvoke lle_event for new entry iff it has lladdr set.
Alexander V. Chernikov [Sun, 4 Oct 2015 19:10:27 +0000 (19:10 +0000)]
Invoke lle_event for new entry iff it has lladdr set.

8 years agoBump the stack protector to level "strong".
Pedro F. Giffuni [Sun, 4 Oct 2015 18:54:02 +0000 (18:54 +0000)]
Bump the stack protector to level "strong".

The general stack protector is known to be weak and has pretty small
coverage. While setting stack-protector-all would give better protection
it would come with a performance cost: for this reason Google's Chrome OS
team developed a new stack-protector-strong variant.

In addition to the protections offered by -fstack-protector, the new option
will guard any function that declares any type or length of local array,
even those in structs or unions. It will also protect functions that use a
local variable's address in a function argument or on the right-hand side
of an assignment.

The option was introduced in GCC-4.9, but support for it has been
back-ported to our base GCC (r286074) and is also available in clang.

The change was tested with dbench and doesn't introduce performance
regressions. An exp-run over the ports tree revealed no failures when
using the stricter stack-protector-all. Thanks to all testers involved.

Reference:
https://outflux.net/blog/archives/2014/01/27/fstack-protector-strong/

Tested by: pho, portmgr (antoine)
Discussed with: secteam (delphij)

Differential Revision: https://reviews.freebsd.org/D3463
PR: 203394 (exp-run)

Relnotes: yes
MFC: no (not supported in older clang)

8 years agoReplace M_NOWAIT with M_WAITOK for consistency with other wireless drivers.
Kevin Lo [Sun, 4 Oct 2015 13:40:22 +0000 (13:40 +0000)]
Replace M_NOWAIT with M_WAITOK for consistency with other wireless drivers.

8 years agoFix max TX power settings for RT5390/RT5392.
Kevin Lo [Sun, 4 Oct 2015 13:39:00 +0000 (13:39 +0000)]
Fix max TX power settings for RT5390/RT5392.
While here remove wrong definition of RT2860_USB_PHY_MAN_RST.

8 years agoWhen asserting IL bit in exception syndrome register, print the raw
Konstantin Belousov [Sun, 4 Oct 2015 12:52:30 +0000 (12:52 +0000)]
When asserting IL bit in exception syndrome register, print the raw
register value.

Reviewed by: andrew
Sponsored by: The FreeBSD Foundation

8 years agoSimplify if (lladdr) condition in nd6_cache_lladdr():
Alexander V. Chernikov [Sun, 4 Oct 2015 12:42:07 +0000 (12:42 +0000)]
Simplify if (lladdr) condition in nd6_cache_lladdr():
  For case (7) (new entry) nothing has to be done except lle_event.
  Invoke this event directly from "create new lle" code block.
  For case (4) (existing entry, same mac) useless mac update was performed,
  along with LLENTRY_RESOLVED lle_event. There was no sense in doing that,
  since nothing really had changed. Simply avoid this condition instead.
  Given that, condition was simplified to (3),(5) states which can be merged
  with previous block.

8 years agoAdd missing stack unwind information to several assembly functions on
Robert Watson [Sun, 4 Oct 2015 09:39:40 +0000 (09:39 +0000)]
Add missing stack unwind information to several assembly functions on
ARMv6/7:

- Define _SAVE() macro to allow unwind data to be conditionally defined for
  ARM assembly code in the kernel.

- Use _SAVE() to provide unwind information for bcopy_page(), and two (of
  many) instances of copyin() and copyout().

Reviewed by: andrew, imp
MFC after: 3 days
Sponsored by: University of Cambridge

8 years agoEliminate nd6_llinfo_settimer(). All consumers were converted to
Alexander V. Chernikov [Sun, 4 Oct 2015 08:33:16 +0000 (08:33 +0000)]
Eliminate nd6_llinfo_settimer(). All consumers were converted to
  use nd6_llinfo_settimer_locked() in r216022.
Make nd6_llinfo_settimer_locked() static: last external consumer was
converted in r288124.

8 years agoAdd __noinline attribute to several functions to ease dtrace instrumentation
Alexander V. Chernikov [Sun, 4 Oct 2015 08:21:15 +0000 (08:21 +0000)]
Add __noinline attribute to several functions to ease dtrace instrumentation

8 years agoRemove per complete the fec aggregation protocol.
Marcelo Araujo [Sun, 4 Oct 2015 08:00:29 +0000 (08:00 +0000)]
Remove per complete the fec aggregation protocol.
The remove began with revision r271733.

NOTE: This patch must never be merge to 10-Stable

Reviewed by: glebius
Approved by: bapt (mentor)
Relnotes: Yes
Sponsored by: EuroBSDCon Sweden.
Differential Revision: D3786

8 years agodrm2: a few minor fixes after r280183
Adrian Chadd [Sun, 4 Oct 2015 07:45:36 +0000 (07:45 +0000)]
drm2: a few minor fixes after r280183

* Remove obsolete drm_agp_*_memory() prototypes.
* Fix comment in drm_fops.c (outisde -> outside).
* Fix some formatting issues in drm_stub.c (spaces -> tabs).
* Add missing case statement (gen == 3) in intel_gpu_reset().
* Restore pci_enable_busmaster() call in the init path (fixes gpu hang on i945GM).
* Replace M_WAITOK with M_NOWAIT when the return value of malloc is checked (may be incorrect).

Submitted by: <s3erios@gmail.com>
Reviewed by: dumbbell
Approved by: dumbbell
Differential Revision: https://reviews.freebsd.org/D3413

8 years agoFix condition for nd6_llinfo_getholdsrc() introduced in r287484.
Alexander V. Chernikov [Sun, 4 Oct 2015 07:02:17 +0000 (07:02 +0000)]
Fix condition for nd6_llinfo_getholdsrc() introduced in r287484.
  Effectively it always returned NULL so SAS was always performed and
  sometimes the result might have been different.

Fix state machine change accidentally introduced in r287985:
  state (4) inside nd6_cache_lladdr() (existing entry got nd message
  with the same lladdress) started to cause lle state transition to STALE
  instead of no-action.

8 years agoFix run(4) mbuf queue flushing / freeing.
Adrian Chadd [Sun, 4 Oct 2015 05:22:17 +0000 (05:22 +0000)]
Fix run(4) mbuf queue flushing / freeing.

Ensure things are freed during interface stop, or start may end up never
being able to transmit a full queue.

8 years agoRandom zyd(4) fixes to bring TX handling in line with rsu, etc
Adrian Chadd [Sun, 4 Oct 2015 04:44:06 +0000 (04:44 +0000)]
Random zyd(4) fixes to bring TX handling in line with rsu, etc

* don't free buffers in the TX routine, only in transmit/raw_xmit
* free nodes + references
* .. and free those nodes/references /before/ net80211 detach

Tested:

* STA mode: zyd0: HMAC ZD1211B, FW 47.25, RF AL2230 S0, PA0 LED 0 BE0 NP1 Gain1 F0

8 years agoFix to make compile on gcc-4.2.1 (eg mips, sparc64.)
Adrian Chadd [Sun, 4 Oct 2015 04:29:44 +0000 (04:29 +0000)]
Fix to make compile on gcc-4.2.1 (eg mips, sparc64.)

8 years agoFix to compile using gcc-4.2 (eg mips, sparc64.)
Adrian Chadd [Sun, 4 Oct 2015 04:25:56 +0000 (04:25 +0000)]
Fix to compile using gcc-4.2 (eg mips, sparc64.)