freebsd.git
8 years agoWrap a long line to make igor(1) happy.
gjb [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
gjb [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.
gjb [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/.
gjb [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.
gjb [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
gjb [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.
gjb [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.
gjb [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.
gjb [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/.
gjb [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,
gjb [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.
gjb [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.
gjb [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.
gjb [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.
gjb [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.
gjb [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.
gjb [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'
gjb [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.
gjb [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
gjb [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.
gjb [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.
gjb [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.
gjb [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.
gjb [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.
gjb [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:
gjb [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.
gjb [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.
gjb [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.
gjb [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.
gjb [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.
gjb [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.
gjb [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.
gjb [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)
gjb [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.
gjb [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.
gjb [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.
gjb [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.
gjb [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)
gjb [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.
gjb [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.
gjb [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.
gjb [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
gjb [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.
gjb [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.
gjb [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.
gjb [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
gjb [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.
gjb [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).
gjb [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.
gjb [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.
gjb [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).
gjb [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)
bdrewery [Mon, 5 Oct 2015 18:11:30 +0000 (18:11 +0000)]
Add decoding for modfind(2)

8 years ago- address grammar
jgh [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'.
bdrewery [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 [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.
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.
br [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.
markm [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
markm [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.
kevlo [Mon, 5 Oct 2015 05:24:16 +0000 (05:24 +0000)]
Remove the unnecessary cast.

8 years agoRevert r288682
ngie [Mon, 5 Oct 2015 03:26:51 +0000 (03:26 +0000)]
Revert r288682

I meant to do this on ^/user/ngie/more-tests

Pointyhat to: ngie (use svn info next time...)

8 years agoRemove some paths preparing for a re-copy from head
ngie [Mon, 5 Oct 2015 03:25:30 +0000 (03:25 +0000)]
Remove some paths preparing for a re-copy from head

8 years agoMerge additional testcases and improvements to bin/ls/ls_tests from
ngie [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
sbruno [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 [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.
melifaro [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".
pfg [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.
kevlo [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.
kevlo [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
kib [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():
melifaro [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
rwatson [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
melifaro [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
melifaro [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.
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 [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.
melifaro [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 [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 [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 [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 [Sun, 4 Oct 2015 04:25:56 +0000 (04:25 +0000)]
Fix to compile using gcc-4.2 (eg mips, sparc64.)

8 years agoInitialize fd to -1 so that gcc doesn't emit an unitialized warning.
sbruno [Sun, 4 Oct 2015 01:56:11 +0000 (01:56 +0000)]
Initialize fd to -1 so that gcc doesn't emit an unitialized warning.

8 years agoAdd a little, but very useful script for use with programs that work using an
pjd [Sun, 4 Oct 2015 00:40:12 +0000 (00:40 +0000)]
Add a little, but very useful script for use with programs that work using an
event loop and should sleep only when waiting for events (eg. via kevent(2)).
When a program is going to sleep in the kernel, the script will show its name,
PID, kernel stack trace and userland stack trace. Sleeping in kevent(2) is
ignored as it is expected to be valid.

Sample output:

# ./blocking lynxd

lynxd(15042) is blocking...

              kernel`_cv_wait_sig+0x124
              kernel`seltdwait+0xae
              kernel`sys_poll+0x3a3
              kernel`amd64_syscall+0x343
              kernel`0xffffffff806c79ab

              lynxd`poll+0xa
              lynxd`pqSocketCheck+0xa2
              lynxd`pqWaitTimed+0x29
              lynxd`connectDBComplete+0xd7
              lynxd`PQsetdbLogin+0x2ec
              lynxd`db_connect+0x3c
              lynxd`main+0x198
              lynxd`_start+0x16f
              0x2

lynxd(1925) is blocking...

              kernel`_cv_wait+0x125
              zfs.ko`zio_wait+0x5b
              zfs.ko`dmu_buf_hold_array_by_dnode+0x1dc
              zfs.ko`dmu_read+0xcb
              zfs.ko`zfs_freebsd_getpages+0x37b
              kernel`VOP_GETPAGES_APV+0xa7
              kernel`vnode_pager_getpages+0x9a
              kernel`vm_fault_hold+0x885
              kernel`vm_fault+0x77
              kernel`trap_pfault+0x211
              kernel`trap+0x506
              kernel`0xffffffff806c76c2

              lynxd`EVP_add_cipher+0x13
              lynxd`SSL_library_init+0x11
              lynxd`main+0x94
              lynxd`_start+0x16f
              0x2

lynxd(1925) is blocking...

              kernel`_cv_wait+0x125
              zfs.ko`zio_wait+0x5b
              zfs.ko`dbuf_read+0x791
              zfs.ko`dbuf_findbp+0x12f
              zfs.ko`dbuf_hold_impl+0xa2
              zfs.ko`dbuf_hold+0x1b
              zfs.ko`dmu_buf_hold_array_by_dnode+0x153
              zfs.ko`dmu_read_uio+0x66
              zfs.ko`zfs_freebsd_read+0x3a3
              kernel`VOP_READ_APV+0xa1
              kernel`vn_read+0x13a
              kernel`vn_io_fault+0x10b
              kernel`dofileread+0x95
              kernel`kern_readv+0x68
              kernel`sys_read+0x63
              kernel`amd64_syscall+0x343
              kernel`0xffffffff806c79ab

              lynxd`_read+0xa
              lynxd`__srefill+0x122
              lynxd`fgets+0x78
              lynxd`file_gets+0x1d
              lynxd`BIO_gets+0x64
              lynxd`PEM_read_bio+0xf5
              lynxd`PEM_X509_INFO_read_bio+0x90
              lynxd`X509_load_cert_crl_file+0x47
              lynxd`by_file_ctrl+0x2e
              lynxd`X509_STORE_load_locations+0x4a
              lynxd`sslctx_init+0x255
              lynxd`main+0x215
              lynxd`_start+0x16f
              0x2

Requested by: gnn
Obtained from: Wheel Systems http://wheelsystems.com

8 years agonet80211: reduce code duplication in the ieee80211_ioctl_setwmeparam() + fix comments.
adrian [Sat, 3 Oct 2015 22:38:08 +0000 (22:38 +0000)]
net80211: reduce code duplication in the ieee80211_ioctl_setwmeparam() + fix comments.

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3701

8 years agorum(4): add WME support.
adrian [Sat, 3 Oct 2015 22:35:37 +0000 (22:35 +0000)]
rum(4): add WME support.

Tested:

* WUSB54GC, HOSTAP and STA modes.
* Me: rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3700

8 years agorun(4): fix WME support (untested).
adrian [Sat, 3 Oct 2015 22:33:45 +0000 (22:33 +0000)]
run(4): fix WME support (untested).

Now run(4) fetches parameters from ic->ic_wme.wme_params array, which is never initialized
(and can be safely removed). This patch replaces &ic->ic_wme.wme_params with
&ic->ic_wme.wme_chanParams.cap_wmeParams (contains parameters for local station;
used by other drivers with WME support).

Tested:

* me: STA: run0: MAC/BBP RT5390 (rev 0x0502), RF RT5370 (MIMO 1T1R), address 38:83:45:11:78:ae

8 years agoRevert r288628 and instead fix a discrepancy between the posix_fadvise(2)
markj [Sat, 3 Oct 2015 22:27:14 +0000 (22:27 +0000)]
Revert r288628 and instead fix a discrepancy between the posix_fadvise(2)
man page and POSIX: posix_fadvise(2) returns an error number on failure.

Reported by: jilles
MFC after: 1 week

8 years agorum(4): fix stats interpretation in rum_ratectl_task()
adrian [Sat, 3 Oct 2015 22:26:59 +0000 (22:26 +0000)]
rum(4): fix stats interpretation in rum_ratectl_task()

Testing:

* WUSB54GC, STA mode

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3690

8 years agorum(4): set short/long retry limits
adrian [Sat, 3 Oct 2015 22:22:26 +0000 (22:22 +0000)]
rum(4): set short/long retry limits

Now device will use retry limit, which is set via 'ifconfig <interface>
maxretry <number>'.

Tested:

* Tested on WUSB54GC, STA mode.

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3689

8 years agorum(4): fix sequence number generation.
adrian [Sat, 3 Oct 2015 22:15:59 +0000 (22:15 +0000)]
rum(4): fix sequence number generation.

* drop erroneous RT2573_TX_MORE_FRAG flag;
* provide RT2573_TX_HWSEQ where needed.

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3672

8 years agonet80211: drop ieee80211_beacon_offsets parameter from ieee80211_beacon_alloc() and...
adrian [Sat, 3 Oct 2015 22:12:25 +0000 (22:12 +0000)]
net80211: drop ieee80211_beacon_offsets parameter from ieee80211_beacon_alloc() and ieee80211_beacon_update()

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3659

8 years agonet80211: drop redundant 3rd parameter from iv_key_set().
adrian [Sat, 3 Oct 2015 21:48:27 +0000 (21:48 +0000)]
net80211: drop redundant 3rd parameter from iv_key_set().

The MAC can be fetched from the key struct.

I added the ndis updates to make it compile.

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3657

8 years agorum(4): drop unused 'node id' parameter.
adrian [Sat, 3 Oct 2015 20:53:10 +0000 (20:53 +0000)]
rum(4): drop unused 'node id' parameter.

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3655

8 years agorum(4): add support for hardware encryption (WEP, TKIP and CCMP).
adrian [Sat, 3 Oct 2015 20:49:08 +0000 (20:49 +0000)]
rum(4): add support for hardware encryption (WEP, TKIP and CCMP).

This diff includes:

* Transmitter Addresses, Keys and TKIP MIC addition to the Security Key Table.
* Proper SEC Control Registers initialization and maintenance.
* Additional flags and values in TX descriptor, which are required for encryption support.
* Error checking in RX path.

Tested:

* Tested on WUSB54GC, STA (WEP, TKIP, CCMP), HOSTAP (CCMP) and IBSS (CCMP, WPA-None) modes.
* rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, STA mode (CCMP+TKIP)

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3640

8 years agorum(4): implement iv_update_beacon call (fixes client power save support).
adrian [Sat, 3 Oct 2015 20:45:43 +0000 (20:45 +0000)]
rum(4): implement iv_update_beacon call (fixes client power save support).

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3632

8 years agorum(4): attach rum_update_slot to ic_updateslot.
adrian [Sat, 3 Oct 2015 20:44:16 +0000 (20:44 +0000)]
rum(4): attach rum_update_slot to ic_updateslot.

Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3631

8 years agoMake GCC happy
bdrewery [Sat, 3 Oct 2015 20:24:23 +0000 (20:24 +0000)]
Make GCC happy

8 years agoInclude stddef.h for ptrdiff_t
bdrewery [Sat, 3 Oct 2015 20:06:50 +0000 (20:06 +0000)]
Include stddef.h for ptrdiff_t

8 years agoThe return value of posix_fadvise(2) is just an error status, so
markj [Sat, 3 Oct 2015 19:37:41 +0000 (19:37 +0000)]
The return value of posix_fadvise(2) is just an error status, so
sys_posix_fadvise() should simply return the errno (or 0) to syscallenter()
rather than setting a return value.

MFC after: 1 week