kevlo [Mon, 5 Oct 2015 05:24:16 +0000 (05:24 +0000)]
Remove the unnecessary cast.
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...)
ngie [Mon, 5 Oct 2015 03:25:30 +0000 (03:25 +0000)]
Remove some paths preparing for a re-copy from head
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
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.
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
melifaro [Sun, 4 Oct 2015 19:10:27 +0000 (19:10 +0000)]
Invoke lle_event for new entry iff it has lladdr set.
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)
kevlo [Sun, 4 Oct 2015 13:40:22 +0000 (13:40 +0000)]
Replace M_NOWAIT with M_WAITOK for consistency with other wireless drivers.
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.
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
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.
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
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.
melifaro [Sun, 4 Oct 2015 08:21:15 +0000 (08:21 +0000)]
Add __noinline attribute to several functions to ease dtrace instrumentation
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
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
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.
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.
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
adrian [Sun, 4 Oct 2015 04:29:44 +0000 (04:29 +0000)]
Fix to make compile on gcc-4.2.1 (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.)
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
bdrewery [Sat, 3 Oct 2015 20:24:23 +0000 (20:24 +0000)]
Make GCC happy
bdrewery [Sat, 3 Oct 2015 20:06:50 +0000 (20:06 +0000)]
Include stddef.h for ptrdiff_t
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
alc [Sat, 3 Oct 2015 19:27:52 +0000 (19:27 +0000)]
Reduce the scope of a variable to the only file where it is used.
bdrewery [Sat, 3 Oct 2015 19:08:36 +0000 (19:08 +0000)]
Style fix.
bdrewery [Sat, 3 Oct 2015 18:57:15 +0000 (18:57 +0000)]
Add decoding for struct statfs.
Reviewed by: jhb (briefly)
adrian [Sat, 3 Oct 2015 17:49:11 +0000 (17:49 +0000)]
rum(4): split rum_prepare_beacon() into 'alloc' and 'set' stages
Note: I manually had to merge this; I merged in the "put beacon_offsets
into vap" commit before this.
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3628
adrian [Sat, 3 Oct 2015 17:34:11 +0000 (17:34 +0000)]
rum(4): add support for AHDEMO mode.
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3627
adrian [Sat, 3 Oct 2015 17:30:57 +0000 (17:30 +0000)]
rum(4): simplify rum_set_bssid(), rum_set_macaddr() and rum_update_promisc()
Tested:
* rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, STA mode
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3626
bdrewery [Sat, 3 Oct 2015 17:28:46 +0000 (17:28 +0000)]
Mute this cookie as well
adrian [Sat, 3 Oct 2015 17:18:35 +0000 (17:18 +0000)]
rum(4): do not corrupt MAC address
Don't override the NIC MAC address with an overridden MAC address for
a VAP.
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3625
adrian [Sat, 3 Oct 2015 17:11:21 +0000 (17:11 +0000)]
rum(4): add error handling for rum_enable_tsf_sync() and rum_prepare_beacon()
Tested:
* rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, STA mode
Note: haven't tested AP mode yet; will do once the rest of the
AP mode / power save commits are in.
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3624
alc [Sat, 3 Oct 2015 17:04:52 +0000 (17:04 +0000)]
Perform a single batched update to the object's paging-in-progress count
rather than updating it for each page.
adrian [Sat, 3 Oct 2015 16:37:38 +0000 (16:37 +0000)]
rum(4): move some code from rum_init() into separate function.
Tested:
* rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, STA mode
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3623
bdrewery [Sat, 3 Oct 2015 16:34:21 +0000 (16:34 +0000)]
Remove redundant COMPAT_32BIT guard on pkgconfig files. This is already handled
by the LIBRARIES_ONLY mechanism protecting FILES.
Sponsored by: EMC / Isilon Storage Division
adrian [Sat, 3 Oct 2015 16:21:06 +0000 (16:21 +0000)]
rum(4): add error handling in initialization path
Tested:
* Tested on WUSB54GC, STA mode.
* rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528, STA mode
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3622
bdrewery [Sat, 3 Oct 2015 16:09:55 +0000 (16:09 +0000)]
Avoid make compatibility mode issues with creating cookies from r287844 and r287848.
Also hide the cookie creation.
Suggested by: imp, Daniel O'Connor
adrian [Sat, 3 Oct 2015 15:58:00 +0000 (15:58 +0000)]
rum(4): simplify error handling rum_raw_xmit()
Move the mbuf free responsibility to the caller of the hardware xmit
function, not the hardware xmit function itself.
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3621
adrian [Sat, 3 Oct 2015 15:52:58 +0000 (15:52 +0000)]
rum(4): check mbuf size before accessing its contents
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3610
adrian [Sat, 3 Oct 2015 15:49:55 +0000 (15:49 +0000)]
rum(4): add TSF field into radiotap headers
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3607
adrian [Sat, 3 Oct 2015 15:48:21 +0000 (15:48 +0000)]
run(4): Add initial support for IBSS merge.
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3592
hrs [Sat, 3 Oct 2015 12:49:05 +0000 (12:49 +0000)]
Use getaddrinfo() to fill struct sockaddr_un. It now supports
SOCK_DGRAM and SOCK_SEQPACKET in addition to SOCK_STREAM.
hrs [Sat, 3 Oct 2015 12:40:54 +0000 (12:40 +0000)]
- Move PF_LOCAL at the end of the array. PF_INET{,6} is used more often.
- Add SOCKTYPE_ANY to PF_LOCAL.
- Apply AI_CANONNAME to only AF_INET{,6}. It is not meaningful for the
other AFs.
hrs [Sat, 3 Oct 2015 12:09:12 +0000 (12:09 +0000)]
- Schedule DAD for IN6_IFF_TENTATIVE addresses in nd6_timer(). This
catches cases that DAD probes cannot be sent because of
IFF_UP && !IFF_DRV_RUNNING.
- nd6_dad_starttimer() now calls nd6_dad_ns_output(), instead of
calling it before nd6_dad_starttimer().
- Do not release an entry in dadq when a duplicate entry is being
added.
mav [Sat, 3 Oct 2015 11:05:58 +0000 (11:05 +0000)]
Restore original array_rd_sz semantics.
Before r278702 prefetch was blocked for I/Os > 1MB, after -- >= 1MB.
1MB I/Os are used for bulk operations in CTL (XCOPY, VERIFY), and disabling
prefetch for them reduced the performance.
This is temporary local patch, that should be replaced when upstreamed.
Discussed with: mahrens
MFC after: 3 days
hrs [Sat, 3 Oct 2015 09:15:23 +0000 (09:15 +0000)]
Add IFCAP_LINKSTATE support.
adrian [Sat, 3 Oct 2015 06:35:17 +0000 (06:35 +0000)]
Remove beacon offsets usage from if_rum.
Differential Revision: https://reviews.freebsd.org/D3658
adrian [Sat, 3 Oct 2015 06:07:01 +0000 (06:07 +0000)]
urtwn(4): fix sequence numbering for QoS frames
Tested:
* urtwn0: MAC/BB RTL8188EU, RF 6052 1T1R, STA mode
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3684
adrian [Sat, 3 Oct 2015 05:55:16 +0000 (05:55 +0000)]
ural(4): reduce copy-paste in ural_newstate().
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3656
adrian [Sat, 3 Oct 2015 05:46:35 +0000 (05:46 +0000)]
rum(4): add command queue for running sleepable tasks in non-sleepable contexts
Tested:
* Tested on WUSB54GC, STA mode.
* rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3629
adrian [Sat, 3 Oct 2015 05:44:05 +0000 (05:44 +0000)]
rum(4): some non-functional changes / cleanup
* Remove unused sc_txtap_len/sc_rxtap_len fields.
* Remove unused ackrate variable.
* Remove unneded warning in rum_update_mcast().
* Use nitems().
* Replace some hardcoded values for RT2573_MAC_CSR1 register.
* Remove second argument for RUM_LOCK_ASSERT() - it is always the same.
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3605
melifaro [Sat, 3 Oct 2015 05:42:25 +0000 (05:42 +0000)]
Bump number of prefixes in O_IP_<SRC|DST> from 15 to 31 (max possible).
PR: 203459
Submitted by: groos at xiplink.com
MFC after: 2 weeks
ae [Sat, 3 Oct 2015 03:57:58 +0000 (03:57 +0000)]
Always detach encap handler when reconfiguring tunnel.
Reported by: hrs
MFC after: 1 week
ae [Sat, 3 Oct 2015 03:12:57 +0000 (03:12 +0000)]
Fix possible segmentation fault.
PR: 203494
MFC after: 1 week
adrian [Sat, 3 Oct 2015 00:57:33 +0000 (00:57 +0000)]
net80211: add a possibility to retrieve current TX key without encapsulation.
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3639
adrian [Sat, 3 Oct 2015 00:50:13 +0000 (00:50 +0000)]
net80211: add new method for ieee80211_cipher (ic_setiv).
This can be used to update IV state for the caller without adding
information to the mbuf. Some hardware (eg rum) apparently requires
bits of this.
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3638
adrian [Sat, 3 Oct 2015 00:03:07 +0000 (00:03 +0000)]
net80211: get rid of tx_phase1_done flag (ieee80211_crypto_tkip.c).
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3596
grehan [Fri, 2 Oct 2015 22:05:51 +0000 (22:05 +0000)]
Fix post-test typo that snuck in.
adrian [Fri, 2 Oct 2015 21:25:48 +0000 (21:25 +0000)]
net80211: separate ieee80211_crypto_get_keyid() from ieee80211_crypto_encap()
Tested:
* rum(4), STA mode
* rsu(4), STA mode
* urtwn(4), STA mode
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3637
grehan [Fri, 2 Oct 2015 21:09:49 +0000 (21:09 +0000)]
Simple sysctl-like firmware query interface. Similar in operation
to the qemu one, and uses the same i/o ports but with different
messaging. Requires the 'bootrom' option to be enabled.
This is used by UEFI (and potentially other BIOSs/firmware) to
request information from bhyve. Currently, only the number of
vCPUs is made available, with more to follow.
A very large thankyou to Ben Perrault who helped out testing
an earlier version of this, and bhyve/Windows in general.
Reviewed by: tychon
Discussed with: neel
Sponsored by: Nahanni Systems
bdrewery [Fri, 2 Oct 2015 17:58:16 +0000 (17:58 +0000)]
All the games moved to usr.bin/ in r288485.
Sponsored by: EMC / Isilon Storage Division
bdrewery [Fri, 2 Oct 2015 17:54:05 +0000 (17:54 +0000)]
Remove defunct games removed in r279150.
Sponsored by: EMC / Isilon Storage Division
bdrewery [Fri, 2 Oct 2015 17:51:47 +0000 (17:51 +0000)]
/usr/src/games was removed in r288485.
delphij [Fri, 2 Oct 2015 16:35:41 +0000 (16:35 +0000)]
Fix a regression with SA-15:24 patch that prevented NIS from
working.
adrian [Fri, 2 Oct 2015 15:30:37 +0000 (15:30 +0000)]
rum(4): sync rum_enable_tsf(_sync) with run(4).
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3611
adrian [Fri, 2 Oct 2015 15:28:44 +0000 (15:28 +0000)]
rum(4): create few wrappers.
Tested:
rum0: <Belkin Belkin 54g USB Network Adapter, class 0/0, rev 2.00/0.01, addr 22> on usbus0
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3609
adrian [Fri, 2 Oct 2015 15:26:33 +0000 (15:26 +0000)]
rum(4): move common part of rum_bbp_write() and rum_bbp_read() into rum_bbp_busy().
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3608
adrian [Fri, 2 Oct 2015 15:22:00 +0000 (15:22 +0000)]
rum(4): reduce code duplication.
Tested:
rum0: <Belkin Belkin 54g USB Network Adapter, class 0/0, rev 2.00/0.01, addr 21> on usbus0
rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528
Submitted by: <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3606
kib [Fri, 2 Oct 2015 13:30:56 +0000 (13:30 +0000)]
Add aarch64 support to truss(1).
Reviewed by: jhb
Discussed with: emaste (license)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3750
kib [Fri, 2 Oct 2015 13:25:59 +0000 (13:25 +0000)]
Do not set 'flush to zero' VFPSCR_FZ bit by default. The correct
implementation of IEEE 754 arithmetic depends on denormals operating
correctly. Both perl test suite and paranoia tripped over the
setting.
Reported by: Stefan Parvu <sparvu@kronometrix.org>
Discussed with: andrew
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
kib [Fri, 2 Oct 2015 13:21:08 +0000 (13:21 +0000)]
FreeBSD does not support SMP on ARMv5. Since processor is always
self-consistent, there is no need in anything but compiler barrier in
the implementation of atomic_thread_fence_*() on ARMv5. Split
implementation of fences for ARMv4/5 and ARMv6; the former use
compiler barriers, the later also perform hardware barriers.
An issue which is fixed by the change is the faults from the CP15
coprocessor accesses in the user mode. This was uncovered by the
pthread_once() changes in r287556.
Reported by: Mattia Rossi <mattia.rossi.mailinglists@gmail.com>
Discussed with: alc, cognet, jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
emaste [Fri, 2 Oct 2015 13:16:06 +0000 (13:16 +0000)]
Add debug file extension to kldxref(8) after r288176
After r288176 kernel debug files have the extension .debug. They also
moved to /usr/lib/debug/boot/kernel by default so in the normal case
kldxref does not encounter them. A src.conf(5) setting may be used to
continue installing them in /boot/kernel though, so have kldxref skip
.debug files in addition to .symbols files.
Reported by: fabient
Sponsored by: The FreeBSD Foundation
mav [Fri, 2 Oct 2015 11:27:34 +0000 (11:27 +0000)]
Document CD block size of 2048.
ed [Fri, 2 Oct 2015 11:17:15 +0000 (11:17 +0000)]
Make truss print CloudABI system call names.
This change adds the bits that are necessary to fetch system call
arguments and return values from trapframes for CloudABI. This allows us
to properly print system calls with the right name. We need to make sure
that we properly convert error numbers when system calls fail.
We still need to improve truss to pretty-print some of the system calls
that have flags.
mav [Fri, 2 Oct 2015 11:16:46 +0000 (11:16 +0000)]
Set default block size for CD to expected 2048 bytes.
cperciva [Fri, 2 Oct 2015 10:08:11 +0000 (10:08 +0000)]
Final step of eliminating the "games" distribution: Merge src/games
(or what's left of it, at least) into src/usr.bin.
This change will not be MFCed.
Discussed at: EuroBSDCon 2014
Committed from: EuroBSDCon 2015
phk [Fri, 2 Oct 2015 09:23:14 +0000 (09:23 +0000)]
Fail the sbuf if vsnprintf(3) fails.
araujo [Fri, 2 Oct 2015 08:58:50 +0000 (08:58 +0000)]
The rpc.yppasswdd has an option to not allow shell changes (-s), but is
always passed a shell by the remote yppasswd. If an NIS client overrides the
shell provided by the ypserv, then yppasswd (pam_unix, actually, afaict)
will pass this new shell to the yppasswdd. If this shell has been set on the
client to a shell which is invalid on the server, a user will never be able
to change their password on the client.
PR: 67142
Submitted by: russell@rucus.ru.ac.za
Approved by: bapt (mentor)
Sponsored by: EuroBSDCon Sweden.
bdrewery [Fri, 2 Oct 2015 07:00:43 +0000 (07:00 +0000)]
META_MODE: For some reason meta mode cannot generate the intermediate tab.c
files. Split up all of the targets to be more clear on how they are generated
to fix the problem.
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
bdrewery [Fri, 2 Oct 2015 06:24:09 +0000 (06:24 +0000)]
META_MODE: Fix stage_links not running in the right order without -j.
This fixes staging errors for non-parallel builds that have LINKS.
Creating hardlinks must always happen after the actual files are installed.
The staging code was protected by an .ORDER statement that only affected
parallel -j builds but not non-parallel builds. Fix this by making the
real stage_links.SET (stage_links.links, stage_links.mlinks, etc) targets
depend on the main targets for all of the other possible staging needs. For
example, stage_links.links will depend on stage_as and stage_files, which have
their own dependencies to stage_as.prog or stage_files.prog or stage_files.SET,
which is enough to satistfy the ordering.
Also remove the requirement that symlinks be created last, as they can
safely be made without the source being present unlike hardlinks. This also
fixes symlinks to come before hardlinks as it is possible, in theory, to
hardlink a symlink. This is not actually supported here though.
Sponsored by: EMC / Isilon Storage Division
adrian [Fri, 2 Oct 2015 02:21:36 +0000 (02:21 +0000)]
Fix neeed -> neeeded.
Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
Differential Revision: https://reviews.freebsd.org/D3595
grehan [Fri, 2 Oct 2015 02:09:50 +0000 (02:09 +0000)]
- Increase the max number of indirect descriptors to match
the largest that the Windows virtio driver can send down
- Always advertize indirect descriptors. The Illumos virtio
driver won't attach unless this capability is seen.
Reviewed by: neel
bdrewery [Thu, 1 Oct 2015 21:52:25 +0000 (21:52 +0000)]
Don't create cookie until the command is all finished, it or the commands
after may fail.
Sponsored by: EMC / Isilon Storage Division