]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
6 years agoMFC r326479:
eadler [Mon, 5 Mar 2018 09:17:18 +0000 (09:17 +0000)]
MFC r326479:

Add include guard to fpmath.h

6 years agoMFC r327117:
eadler [Mon, 5 Mar 2018 09:06:14 +0000 (09:06 +0000)]
MFC r327117:

calendar: add missing header file

time.h is required for strftime and struct tm

6 years agoMFC r326473:
eadler [Mon, 5 Mar 2018 09:05:37 +0000 (09:05 +0000)]
MFC r326473:

diag/httpd-error: remove

This is a script for a web server in a specific
configuration. Current web servers don't produce
similar log files and it isn't FreeBSD's
goal to produce a log file analyzer.

6 years agoMFC r326724,r326868,r326869,r327096,r327333,r327334,r327342,r327361,r327510:
eadler [Mon, 5 Mar 2018 09:01:51 +0000 (09:01 +0000)]
MFC r326724,r326868,r326869,r327096,r327333,r327334,r327342,r327361,r327510:

Add two dates derived from looking at archival source tarballs in the
TUHS collection for 7th Edition and V32.

------------------------------------------------------------------------
r326868 | eadler | 2017-12-15 03:36:48 +0000 (Fri, 15 Dec 2017) | 4 lines

bsd-family-tree: Add NetBSD 7.0.2

Pulled directly from NetBSD

------------------------------------------------------------------------
r326869 | eadler | 2017-12-15 03:46:52 +0000 (Fri, 15 Dec 2017) | 2 lines

bsd-family-tree: add dfly 5.0.[12]

------------------------------------------------------------------------
r327096 | sevan | 2017-12-22 21:54:39 +0000 (Fri, 22 Dec 2017) | 5 lines

Drop the NetBSD rcs tag introduced in r326868.

Approved by:    bcr (mentor)
Differential Revision:  https://reviews.freebsd.org/D13511

------------------------------------------------------------------------
r327333 | eadler | 2017-12-29 04:49:59 +0000 (Fri, 29 Dec 2017) | 7 lines

bsd-family-tree: add HardenedBSD

This adds HardenedBSD which is a pseudo-fork of FreeBSD. It hasn't had a
release yet, but does does have active users and a community. As such
document it as a branch off of FreeBSD-stable. Ideally this adds enough
space so that future releases are easy enough to add.

------------------------------------------------------------------------
r327334 | eadler | 2017-12-29 05:01:07 +0000 (Fri, 29 Dec 2017) | 5 lines

bsd-family-tree: add NetBSD 6.0.6

This was a missing release. Released on the same day as 6.1.5 per
https://blog.netbsd.org/tnf/entry/netbsd_6_1_5_and

------------------------------------------------------------------------
r327342 | eadler | 2017-12-29 14:31:43 +0000 (Fri, 29 Dec 2017) | 5 lines

bsd-family-tree: add NetBSD 7.1.1; correct NetBSD abbrev

Reported by: Herbert J. Skuhra <herbert@gojira.at>
Reported by: N.J. Mann <njm@njm.me.uk>

------------------------------------------------------------------------
r327361 | maxim | 2017-12-29 21:37:36 +0000 (Fri, 29 Dec 2017) | 2 lines

Sort by time.

------------------------------------------------------------------------
r327510 | eadler | 2018-01-03 03:46:28 +0000 (Wed, 03 Jan 2018) | 7 lines

bsd-family-tree: revert r327333

bsd-family-tree should only contain projects that have had actual
releases.

Requested by: core

6 years agoMFC r322668,r324239,r324240,r324422,r324476,r324688:
eadler [Mon, 5 Mar 2018 08:57:40 +0000 (08:57 +0000)]
MFC r322668,r324239,r324240,r324422,r324476,r324688:

FreeBSD 11.1 release added.

------------------------------------------------------------------------
r324239 | maxim | 2017-10-03 13:31:22 +0000 (Tue, 03 Oct 2017) | 2 lines

FreeBSD 10.4 release added.

------------------------------------------------------------------------
r324240 | maxim | 2017-10-03 14:23:49 +0000 (Tue, 03 Oct 2017) | 5 lines

o FreeBSD 10.4 happened after 11.1, adjust the branches accordingly.
o The current FreeBSD branch is 12 not 13.

Suggested by: lidl

------------------------------------------------------------------------
r324422 | eadler | 2017-10-09 04:43:05 +0000 (Mon, 09 Oct 2017) | 2 lines

Add macOS 10.13

------------------------------------------------------------------------
r324476 | eadler | 2017-10-10 05:47:10 +0000 (Tue, 10 Oct 2017) | 2 lines

Add OpenBSD 6.2, reorder macOS 10.13

------------------------------------------------------------------------
r324688 | maxim | 2017-10-17 14:37:12 +0000 (Tue, 17 Oct 2017) | 2 lines

DragonFly 5.0.0 release added.

6 years agoMFC r314705,r315406,r315407,r316025,r316082,r316731:
eadler [Mon, 5 Mar 2018 08:56:15 +0000 (08:56 +0000)]
MFC r314705,r315406,r315407,r316025,r316082,r316731:

Add macOS 10.12
NetBSD 7.1 release added.
Indentation for the DragonFlyBSD trunk fixed, EoL whitespace removed.
macOS 10.12 release date added.
DragonFly BSD 4.8.0 release added.
OpenBSD 6.1 release added.

6 years agoMFC r325217:
eadler [Mon, 5 Mar 2018 08:50:54 +0000 (08:50 +0000)]
MFC r325217:

Fix '\' in binary ascii table

6 years agoMFC r325353:
eadler [Mon, 5 Mar 2018 08:50:16 +0000 (08:50 +0000)]
MFC r325353:

chase removal of csup in r267863 from 2014..

6 years agoMFC r326434:
eadler [Mon, 5 Mar 2018 08:49:11 +0000 (08:49 +0000)]
MFC r326434:

fmt(1): Fix usage of Nm macro

6 years agoMFC r326456:
eadler [Mon, 5 Mar 2018 08:47:27 +0000 (08:47 +0000)]
MFC r326456:

pf.os: Add OpenBSD:6.1

Obtained From: OpenBSD

6 years agoMFC r306449:
eadler [Mon, 5 Mar 2018 08:45:39 +0000 (08:45 +0000)]
MFC r306449:

Remove an extra etter.

6 years agoMFC r306435:
eadler [Mon, 5 Mar 2018 08:44:49 +0000 (08:44 +0000)]
MFC r306435:

callsign isn't required anymore

6 years agoMFC r324423,r324436:
eadler [Mon, 5 Mar 2018 08:44:08 +0000 (08:44 +0000)]
MFC r324423,r324436:

Update iso3166 codes

Based on https://raw.githubusercontent.com/lukes/ISO-3166-Countries-with-Regional-Codes/master/all/all.csv
and hand massaged.

6 years agoMFC r311830:
eadler [Mon, 5 Mar 2018 08:42:07 +0000 (08:42 +0000)]
MFC r311830:

[rsu] add support for the "green" rsu NICs.

They're still a 1T2R NIC, so reuse the same rfconfig and
nstream configuration.

6 years agoMFC r311861:
eadler [Mon, 5 Mar 2018 08:40:18 +0000 (08:40 +0000)]
MFC r311861:

[net80211] Add default parameters for 11ac.

I doubt TDMA code will ever work for 11ac, but you never know, someone
may one day make it happen.

6 years agoMFC r310891:
eadler [Mon, 5 Mar 2018 08:37:08 +0000 (08:37 +0000)]
MFC r310891:

[net80211] add placeholders for the VHT action frame handling.

Upcoming vht support will register send/receive action handlers.

6 years agoMFC r313979:
eadler [Mon, 5 Mar 2018 08:33:29 +0000 (08:33 +0000)]
MFC r313979:

[ifconfig] fix a memory leak!

6 years agoMFC r313978:
eadler [Mon, 5 Mar 2018 08:32:54 +0000 (08:32 +0000)]
MFC r313978:

[ifconfig] fix a memory leak.

6 years agoMFC r313880:
eadler [Mon, 5 Mar 2018 08:32:15 +0000 (08:32 +0000)]
MFC r313880:

[asmc] Add support for MacBook Pro 11,2

This patch will add support for MacBookPro 11.2.
For the macros, the MBP11_* macros (for the existing MacBookPro11.3) did not
match so they have been renamed to MBP113_* and a new MBP112_* has been
added (modified copy of MBP11_*).

Some trailing whitespaces may have been removed automatically.

PR: kern/214836

6 years agoMFC r313578:
eadler [Mon, 5 Mar 2018 08:30:47 +0000 (08:30 +0000)]
MFC r313578:

[net80211] add a sysctl that forces a vap restart.

Well, vap restart really does "all restart" for now, which will be a good
way of debugging firmware restart issues.

6 years agoMFC r313425:
eadler [Mon, 5 Mar 2018 08:29:38 +0000 (08:29 +0000)]
MFC r313425:

[iwm] add version 17 firmware.

6 years agoMFC r311581:
eadler [Mon, 5 Mar 2018 08:27:29 +0000 (08:27 +0000)]
MFC r311581:

Capsicum: add capability mode to users binary

Submitted by: Tyler Littlefield <tyler@tysdomain.com>
Reviewed by: cem, oshogbo
Differential Revision: https://reviews.freebsd.org/D9046

6 years agoMFC r308950:
eadler [Mon, 5 Mar 2018 08:25:23 +0000 (08:25 +0000)]
MFC r308950:

[net80211] Remove extra \n.

6 years agoMFC r308663:
eadler [Mon, 5 Mar 2018 08:24:58 +0000 (08:24 +0000)]
MFC r308663:

[net80211] announce 11n capabilities in probe requests in IBSS mode.

The 802.11-2012 specification notes that a subset of IEs should be present
in IBSS probe requests.  This is what (initially) allows nodes to discover
that other nodes are 11n capable.  Notably - HTCAP, but not HTINFO.

This isn't everything required to reliably enable 11n between net80211
peers; there's more work to come.

Tested:

* AR9380, IBSS+11n mode

6 years agoMFC r308008:
eadler [Mon, 5 Mar 2018 08:22:48 +0000 (08:22 +0000)]
MFC r308008:

[net80211] add comments!

6 years agoMFC r308007:
eadler [Mon, 5 Mar 2018 08:22:24 +0000 (08:22 +0000)]
MFC r308007:

[net80211] don't abort a background scan upon reception of a single packet.

Full offload drivers don't need this behaviour - they do it in firmware.

6 years agoMFC r306836:
eadler [Mon, 5 Mar 2018 08:21:31 +0000 (08:21 +0000)]
MFC r306836:

[ifconfig] correctly display RSSI.

6 years agoMFC r306139:
eadler [Mon, 5 Mar 2018 08:18:13 +0000 (08:18 +0000)]
MFC r306139:

[net80211] don't add IBSS node table entries for neighbors from other SSIDs.

The adhoc probe/beacon input path was creating nodes for all SSIDs.
This wasn't a problem when the NICs were configured to only process
frames for the current BSSID, but that didn't allow IBSS merges.
Once avos and I flipped on "beacons from all BSSIDs" to allow for
correct IBSS merging, we found this interesting behaviour.

This adds a check against the current SSID.

* If there's no VAP SSID, allow anything
* If there's a VAP SSID, check if the incoming frame has a suitable
  SSID and if so, allow it.

This prevents nodes being created for other SSIDs in probe and beacon
frames - ie, beacons overlapping IBSSes with different SSIDs, and
probe requests from arbitrary devices.

Tested:

* AR9380, IBSS mode, both local and other IBSSes.

6 years agoMFC r305895:
eadler [Mon, 5 Mar 2018 08:17:02 +0000 (08:17 +0000)]
MFC r305895:

[net80211] add a HT method to populate HTCAP based on IBSS requirements.

IBSS negotiation is a subset of the STA/AP negotiation.  We always have a
current channel, so base the HT capabilities on the current channel.
This is then put into IBSS probe requests to inform peers of our
11n capabilities.

6 years agoMFC r303339:
eadler [Mon, 5 Mar 2018 08:14:11 +0000 (08:14 +0000)]
MFC r303339:

Update my TODO items.

6 years agoMFC r318001:
eadler [Mon, 5 Mar 2018 08:05:30 +0000 (08:05 +0000)]
MFC r318001:

[iwm] include opt_iwm.h and opt_wlan.h consistently in all files.

6 years agoMFC r313306:
eadler [Mon, 5 Mar 2018 08:01:08 +0000 (08:01 +0000)]
MFC r313306:

[iwm] free node reference if rxparams addition fails.

6 years agoMFC r308185:
eadler [Mon, 5 Mar 2018 08:00:17 +0000 (08:00 +0000)]
MFC r308185:

[iwm] Set full-offload scan flag. Fixes fw panic when already associated.

* Starting a scan from wpa_supplicant or via ifconfig while associated,
  should no longer cause firmware panics or abort early.

Tested:

* AC7260, STA mode

6 years agoMFC r307158:
eadler [Mon, 5 Mar 2018 07:58:48 +0000 (07:58 +0000)]
MFC r307158:

net80211: convert all ieee80211_input_mimo*() consumers
to ieee80211_add_rx_params() + drop last (ieee80211_rx_stats) parameter

Note: there is an additional check for ieee80211_get_rx_params()
return value (which does not exist in the original diff).

6 years agoMFC r306837:
eadler [Mon, 5 Mar 2018 07:54:57 +0000 (07:54 +0000)]
MFC r306837:

[net80211] extend the ieee80211_rx_stats struct to include more information.

There are a variety of more interesting RX statistics that we should
keep track of but we don't.  This is a starting point for adding more
information.

Specifically:

* now the RX rate information and some of the packet status is
  passed up;
* The 32 bit or 64 bit TSF is passed up;
* the PHY mode is passed up;
* the "I'm decap'ed AMSDU!" state is passed up;
* number of RX chains is bumped to 4.

This is all mostly a placeholder for getting the data into the RX status
before we pass it up to net80211 - unfortunately we don't yet enforce
that drivers provide it, nor do we pass the provided info back up the
stack so anyone can use the data.

We're going to need to use some of this data moving forward.
Notably, now that some hardware can do AMSDU decap for us (the intel iwm
driver can do it when we flip it on; the ath10k port I'm doing does
it for us) then we need to pass it up through the stack so the duplicate
RX sequence numbers and crypto/IV details don't cause the packet to
be dropped and/or counted against a replay counter.

It's also the beginning of being able to do more interesting node
accounting in net80211.  Specifically, once drivers start populating
per-packet rate information, AMPDU information, timestamps, etc,
we can start providing histograms of rate-versus-RSSI, account
for receive time spent per node and other such interesting things.

(Note: I'm also hoping to include ranging and RTT information for
future chipset support; and it's likely going to include it in
this kind of fashion.)

6 years agoMFC r326572:
eadler [Mon, 5 Mar 2018 07:33:00 +0000 (07:33 +0000)]
MFC r326572:

ioat(4): Add Skylake Xeon PCI-ID

SKX IOAT is just another 3.2 version of the CBDMA engine.

6 years agoMFC r326276:
eadler [Mon, 5 Mar 2018 07:26:05 +0000 (07:26 +0000)]
MFC r326276:

various: general adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.

6 years agoMFC r314181:
eadler [Mon, 5 Mar 2018 07:14:56 +0000 (07:14 +0000)]
MFC r314181:

[ifconfig] handle illegal WPS frames

Some APs broadcast WPS IE frames with totally broken data.  Ifconfig's printwpsie()
loops through WPS frames printing the attributes out; if the frame's data is bad,
printwpsie() can end up looking at out-of-bounds addresses causing ifconfig to
bus error.

Thanks to Takashi Inoue at Nihon U for his efforts in debugging this.

PR: bin/217312

6 years agoMFC r315924:
eadler [Mon, 5 Mar 2018 07:08:58 +0000 (07:08 +0000)]
MFC r315924:

[iwm] GC unused code from if_iwm_scan.c, copyied from iwn or iwlwifi/dvm.

Obtained from: dragonflybsd.git 10881df269b93c26e5ee6af629c36db5672e6e52

6 years agoMFC r327231,r327232:
eadler [Mon, 5 Mar 2018 06:59:30 +0000 (06:59 +0000)]
MFC r327231,r327232:

kernel: Fix several typos and minor errors
lib: Fix several typos and minor errors

- duplicate words
- typos
- references to old versions of FreeBSD

6 years agoMFC r307901,r308180:
eadler [Mon, 5 Mar 2018 06:52:26 +0000 (06:52 +0000)]
MFC r307901,r308180:

FreeBSD tcp stack used to inform respective congestion control module about the
loss event but not use or obay the recommendations i.e. values set by it in some
cases.

Here is an attempt to solve that confusion by following relevant RFCs/drafts.
Stack only sets congestion window/slow start threshold values when there is no
CC module availalbe to take that action. All CC modules are inspected and
updated when needed to take appropriate action on loss.

tcp_stacks/fastpath module has been updated to adapt these changes.

Note: Probably, the most significant change would be to not bring congestion
window down to 1MSS on a loss signaled by 3-duplicate acks and letting
respective CC decide that value.

6 years agoMFC r308065:
eadler [Mon, 5 Mar 2018 06:47:28 +0000 (06:47 +0000)]
MFC r308065:

Remove a PCI ID for a raid controller from Adaptec that was planned,
but never released. Since no real hardware was released with this ID,
just drop it from the aacraid driver. This paves the path for future
drivers for hardware that actually has this ID.

Submitted by: Scott Benesh from Microsemi.
Differential Revision: https://reviews.freebsd.org/D8377
MFC After: 3 days

6 years agoMFC r306896:
eadler [Mon, 5 Mar 2018 06:37:02 +0000 (06:37 +0000)]
MFC r306896:

Fix spurious white space introduced in r301059

r301059 accidently introduced a subtle change for point to point interfaces
where an extra space is inserted before the netmask. This can cause issues
for scripts that parse ifconfig output.

6 years agoMFC r330364:
bdrewery [Sun, 4 Mar 2018 23:39:12 +0000 (23:39 +0000)]
MFC r330364:

  Don't read SRC_ENV_CONF for MAKEOBJDIRPREFIX guard.

6 years agoMFC r325776:
bdrewery [Sun, 4 Mar 2018 23:36:49 +0000 (23:36 +0000)]
MFC r325776:

  Rework r325568 so all 'make LINT' targets work.

6 years agoMFC r325627:
bdrewery [Sun, 4 Mar 2018 23:35:35 +0000 (23:35 +0000)]
MFC r325627:

  Deal with src.conf for top-level MAKEOBJDIRPREFIX guard.

6 years agoMFC r330127:
bdrewery [Sun, 4 Mar 2018 23:34:02 +0000 (23:34 +0000)]
MFC r330127:

  Allow overriding .MAKE.MAKEFILE_PREFERENCE.

6 years agoMFC r325292:
bdrewery [Sun, 4 Mar 2018 23:32:36 +0000 (23:32 +0000)]
MFC r325292:

  META_MODE: Respect make -s.

6 years agoMFC r329271:
bdrewery [Sun, 4 Mar 2018 23:28:42 +0000 (23:28 +0000)]
MFC r329271:

  nanosleep(2): Fix bogus incrementing of rmtp by tc_tick_sbt on [EINTR].

6 years agoMFC r325570:
bdrewery [Sun, 4 Mar 2018 23:25:26 +0000 (23:25 +0000)]
MFC r325570:

  AUTO_OBJ: Fix 'old style' kernel builds using wrong .OBJDIR.

6 years agoMFC r320367: Add "Terminus BSD Console" size 32
cperciva [Sun, 4 Mar 2018 21:58:55 +0000 (21:58 +0000)]
MFC r320367: Add "Terminus BSD Console" size 32

6 years agoMFC r305504:
eadler [Sun, 4 Mar 2018 19:17:32 +0000 (19:17 +0000)]
MFC r305504:

nullfs: stop special-casing directories in null_vptocnp

The previous code was forcing an expensive walk in vop_stdvptocnp,
which was causing performance issues on highly contended zfs.

6 years agoMFC r330236:
hselasky [Sun, 4 Mar 2018 19:15:24 +0000 (19:15 +0000)]
MFC r330236:
Correct the return value from flush_work() and flush_delayed_work() in the
LinuxKPI to comply more with Linux. This fixes an issue when these functions
are used in waiting loops.

Sponsored by: Mellanox Technologies

6 years agoMFC r307156:
eadler [Sun, 4 Mar 2018 08:00:07 +0000 (08:00 +0000)]
MFC r307156:

MFportsnap r264740: Use case insensitive match when parsing host(1) output.

Some DNS caches turn "FreeBSD.org" into "freebsd.org", which was causing
the printed SRV records to not match our regex.

PR: 170503

6 years agoMFC r330256:
eadler [Sun, 4 Mar 2018 02:41:25 +0000 (02:41 +0000)]
MFC r330256:

sys/sys: Use a more common spelling of 'dirent'

6 years agoMFC r306767:
eadler [Sat, 3 Mar 2018 21:23:31 +0000 (21:23 +0000)]
MFC r306767:

Correctly calculate snd_max in persist case.

In the persist case, take the SYN and FIN flags into account when updating
the sequence space sent.

6 years agoMFC r305137:
eadler [Sat, 3 Mar 2018 21:05:28 +0000 (21:05 +0000)]
MFC r305137:

Eliminate unnecessary loop in _cap_check()

Calling cap_rights_contains() several times with the same inputs is not
going to produce a different output. The variable being iterated, i, is
never used inside the for loop.

The loop is actually done in cap_rights_contains()

6 years agoMFC r302519:
eadler [Sat, 3 Mar 2018 18:11:02 +0000 (18:11 +0000)]
MFC r302519:

Audit the file-descriptor number argument for openat(2).  Remove a comment
about the desirability of auditing the number, as it was in fact in the
wrong place (in the common path for open(2) and openat(2), and only the
latter accepts a file-descriptor argument).  Where other ABIs support
openat(2), it may be necessary to do additional argument auditing as it is
not performed in kern_openat(9).

MFC after: 3 days

6 years agoMFC r329905:
kib [Sat, 3 Mar 2018 11:53:44 +0000 (11:53 +0000)]
MFC r329905:
Hide all vm/vm_pageout.h content under #ifdef _KERNEL.

6 years agoMFC r325800:
eadler [Sat, 3 Mar 2018 11:18:38 +0000 (11:18 +0000)]
MFC r325800:

Add a -r option to print the running kernel version.

6 years agoMFC r307519,r307629:
eadler [Sat, 3 Mar 2018 11:17:05 +0000 (11:17 +0000)]
MFC r307519,r307629:

Increase timeout so low-end platforms have a chance to complete test
procedures.

This fixes operation in QEMU/MIPS64.

6 years agoMFC r325450:
eadler [Sat, 3 Mar 2018 11:12:09 +0000 (11:12 +0000)]
MFC r325450:

Fix cosmetic nit when printing out "override $mode" and "$owner/$group ..."

The wrong index was being checked for == ' ' in the resulting stringified
mode from strmode(3) -- it should have been the 11th value, not the 10th.

PR: 76711

6 years agoMFC r325319:
eadler [Sat, 3 Mar 2018 11:11:07 +0000 (11:11 +0000)]
MFC r325319:

Remove artificial limit for -i.

6 years agoMFC r303727:
eadler [Sat, 3 Mar 2018 11:02:34 +0000 (11:02 +0000)]
MFC r303727:

uuid_to_string(3) is allocating memory and can fail on that.
Check if any error accrued.

6 years agoMFC r323645:
eadler [Sat, 3 Mar 2018 10:50:16 +0000 (10:50 +0000)]
MFC r323645:

kern.osreldate is an integer, not a string

PR: 217501

6 years agoMFC r322657:
eadler [Sat, 3 Mar 2018 10:47:30 +0000 (10:47 +0000)]
MFC r322657:

typo

PR: 211160

6 years agoMFC r322428:
eadler [Sat, 3 Mar 2018 10:45:19 +0000 (10:45 +0000)]
MFC r322428:

Set usage() to show -d flag
mkesdb supports the -d flag for enabling debug mode, as documented in the manual.

PR: 209865
Submitted by: Maya Rashish <coypu AT sdf DOT org>
Reviewed by: imp
Approved by: bcr (mentor)
Obtained from: NetBSD
MFC after: 7 days
Differential Revision: https://reviews.freebsd.org/D11987

6 years agoMFC r322210,r322613,r322831:
eadler [Sat, 3 Mar 2018 10:43:41 +0000 (10:43 +0000)]
MFC r322210,r322613,r322831:

pgrep naively appends the delimiter to all PIDs including the last
e.g. "pgrep -d, getty" outputs "1399,1386,1309,1308,1307,1306,1305,1302,"
Ensure the list is correctly delimited by suppressing the emission of the
delimiter after the final PID.

The r322210 change to pgrep's PID delimiting behaviour causes pgrep's default
output to not include a trailing new line, which is a potential POLA violation
for existing consumers. Change pgrep to always emit a trailing new line on
completion of its output, regardless of the delimeter in use (which technically
is also a potential POLA violation for existing consumers that rely on the
pre-r322210 buggy behaviour, but a line has to be drawn somewhere).

Only emit the trailing new line added in r322613 when not operating in quiet
mode.

PR: 221534 (r322613)

6 years agoMFC r321426:
eadler [Sat, 3 Mar 2018 10:37:53 +0000 (10:37 +0000)]
MFC r321426:

cleanobj: Unhide removal of directory.

6 years agoMFC r320406:
eadler [Sat, 3 Mar 2018 10:35:00 +0000 (10:35 +0000)]
MFC r320406:

A little tweak for performance

6 years agoMFC r319843:
eadler [Sat, 3 Mar 2018 10:32:00 +0000 (10:32 +0000)]
MFC r319843:

Fix 'restart' action: rc.subr only expects to restart one service, not two.

PR: 217393

6 years agoMFC 319851:
eadler [Sat, 3 Mar 2018 10:30:54 +0000 (10:30 +0000)]
MFC 319851:

Remove the outdated definition.

6 years agoMFC r319602:
eadler [Sat, 3 Mar 2018 10:29:29 +0000 (10:29 +0000)]
MFC r319602:

Clarify -q is only for pgrep.

6 years agoMFC r318891:
eadler [Sat, 3 Mar 2018 10:27:33 +0000 (10:27 +0000)]
MFC r318891:

Fix long standing issue in bsdconfig's keymap selection

Since the translation to vt as terminal emulator, the keymaps files
path has changed and this change does not get followed in bsdconfig.
This implicates boot time warnings about a wrong keymap file, what
is very confusing for the new users and for me too, so initialize
the default keymaps search path depending on terminal type.

6 years agoMFC r314409:
eadler [Sat, 3 Mar 2018 10:18:32 +0000 (10:18 +0000)]
MFC r314409:

dc(1): Introduce e command, equivalent to p, but writes to stderr

Obtained from: OpenBSD
MFC after: 2 weeks

6 years agoMFC r313276:
eadler [Sat, 3 Mar 2018 10:15:37 +0000 (10:15 +0000)]
MFC r313276:

Use kldload -n when loading if_deqna

This fixes if_deqna from being loaded by accident twice if it's already loaded
in the kernel.

6 years agoMFC r325095:
eadler [Sat, 3 Mar 2018 10:01:12 +0000 (10:01 +0000)]
MFC r325095:

Update URLs in usr.bin

- http -> https
- contents have moved locations
- removal of URL if I could not find new location

6 years agoMFC r322424:
eadler [Sat, 3 Mar 2018 09:59:04 +0000 (09:59 +0000)]
MFC r322424:

Correct the -H longopt equivillant

PR: 209876

6 years agoDocument SA-17:12 and correct EN-17:09 link [1]
delphij [Sat, 3 Mar 2018 08:45:56 +0000 (08:45 +0000)]
Document SA-17:12 and correct EN-17:09 link [1]

Reported by: eadler [1]

6 years agostand: Make pc98 build
kevans [Sat, 3 Mar 2018 06:37:53 +0000 (06:37 +0000)]
stand: Make pc98 build

This is a direct commit to stable/11 due to pc98 removal from head.

Several improvements in head that were MFC'd left the pc98 build broken in
stable/11. Massage the pc98 bits to get it to at least build.

6 years agoMFC r321105:
np [Sat, 3 Mar 2018 03:12:19 +0000 (03:12 +0000)]
MFC r321105:

cxgbetool(8): Add loadboot and loadboot-cfg subcommands to install or
remove bootrom and boot config.

6 years agoMFC r328315:
np [Sat, 3 Mar 2018 02:39:54 +0000 (02:39 +0000)]
MFC r328315:

cxgb(4): Validate offset/len in the GET_EEPROM ioctl.

6 years agoMFC r319506, r319872, r321063, r321103, r321179, r321390, r321435,
np [Sat, 3 Mar 2018 02:30:52 +0000 (02:30 +0000)]
MFC r319506, r319872, r321063, r321103, r321179, r321390, r321435,
r321582, r321671, r322014, r322034, r322055, r322123, r322167, r322425,
r322549, r322914, r322960, r322962, r322964, r322985, r322990, r323006,
r323026, r323041, r323069, r323078, r323343, r323514, r323520, r324296,
r324379, r324386, r324443, r324945, r325596, r325680, r325880,
r325883-r325884, r325961, r326026, r326042, r327062, r327093, r327332,
r327528, r328420, and r328423.

r319506:
cxgbe(4): Update the statistics for compound tx work requests once per
work request, not once per frame.

r319872:
cxgbe(4):  Do not request an FEC setting that the port does not support.

r321063:
cxgbe(4): Various link/media related improvements.

- Deal with changes to port_type, and not just port_mod when a
  transceiver is changed.  This fixes hot swapping of transceivers of
  different types (QSFP+ or QSA or QSFP28 in a QSFP28 port, SFP+ or
  SFP28 in a SFP28 port, etc.).

- Always refresh media information for ifconfig if the port is down.
  The firmware does not generate tranceiver-change interrupts unless at
  least one VI is enabled on the physical port.  Before this change
  ifconfig diplayed potentially stale information for ports that were
  administratively down.

- Always recalculate and reapply L1 config on a transceiver change.

- Display PAUSE settings in ifconfig.  The driver sysctls for this
  continue to work as well.

r321103:
cxgbe(4): New ioctls to flash bootrom and boot config to the card.

r321179:
cxgbe/t4_tom: Log more details about the newly ESTABLISHED tid to the
trace buffer.

r321390:
cxgbe(4): Install the firmware bundled with the driver to the card if it
doesn't seem to have one.  This lets the driver recover automatically
from incomplete firmware upgrades (panic, reboot, power loss, etc. in
the middle of an upgrade).

r321435:
cxgbe(4): Display some more TOE parameters related to retransmission
and keepalive in the sysctl MIB.  Provide tunables to change some of
these parameters.  These are supposed to be setup by the firmware so
these tunables are for experimentation only.

r321582:
cxgbe(4): Some updates to the common code.

- Updated register ranges.
- Helper routines for access to TP registers.
- Updated routine to read flash parameters.

r321671:
cxgbe/iw_cxgbe: Log the end point's history and flags to the trace
buffer just before it's freed.

r322014:
cxgbe(4): Initial import of the "collect" component of Chelsio unified
debug (cudbg) code, hooked up to the main driver via an ioctl.

The ioctl can be used to collect the chip's internal state in a
compressed dump file.  These dumps can be decoded with the "view"
component of cudbg.

r322034:
cxgbe(4): Always use the first and not the last virtual interface
associated with a port in begin_synchronized_op.

r322055:
cxgbe(4): Allow the TOE timer tunables to be set with microsecond
precision.  These timers are already displayed in microseconds in the
sysctl MIB.  Add variables to track these tunables while here.

r322123:
cxgbe(4): Avoid a NULL dereference that would occur during module unload
if there were problems earlier during attach.

r322167:
cxgbe(4): Add the T6 and T5 Unified Wire configuration files to the
kernel, just like for T4, when the driver is compiled into the kernel.

r322425:
cxgbe(4): Save the last reported link parameters and compare them with
the current state to determine whether to generate a link-state change
notification.  This fixes a bug introduced in r321063 that caused the
driver to sometimes skip these notifications.

r322549:
cxgbe/t4_tom: Use correct name for the ISS-valid bit in options2.

r322914:
cxgbe(4): Dump the mailbox contents in the same format as CH_DUMP_MBOX.

r322960:
cxgbe(4): Verify that the driver accesses the firmware mailbox in a
thread-safe manner.

r322962:
cxgbe(4): Remove write only variable from t4_port_init.

r322964:
cxgbe(4): vi_mac_funcs should include the base Ethernet function.  It is
already used in the driver as if it does.

r322985:
cxgbe(4): Maintain one ifmedia per physical port instead of one per
Virtual Interface (VI).  All autonomous VIs that share a port share the
same media.

r322990:
cxgbe(4): Do not access the mailbox without appropriate locks while
creating hardware VIs.

This fixes a bad race on systems with hw.cxgbe.num_vis > 1.

r323006:
cxgbe(4): Update T6/T5/T4 firmwares to 1.16.59.0.

r323026:
cxgbe(4): Zero out the memory allocated for the debug dump.
cudbg_collect seems to expect it this way.

r323041:
cxgbe(4): Add two new debug flags -- one to allow manual firmware
install after full initialization, and another to disable the TCB
cache (T6+).  The latter works as a tunable only.

Note that debug_flags are for debugging only and should not be set
normally.

r323069:
cxgbe/t4_tom: Add a knob to select the congestion control algorigthm
used by the TOE hardware for fully offloaded connections.  The knob
affects new connections only.

r323078:
cxgbe/t4_tom: There may not be a tid to update if the connection isn't
established.

r323343:
cxgbe(4): Fix a couple of problems in the sge_wrq data path.

- start_wrq_wr must not drain the wr_list if there are incomplete_wrs
  pending.  This can happen when a t4_wrq_tx runs between two
  start_wrq_wr.

- commit_wrq_wr must examine the cookie's pidx and ndesc with the
  queue's lock held.  Otherwise there is a bad race when incomplete WRs
  are being completed and commit_wrq_wr for the WR that is ahead in the
  queue updates the next incomplete WR's cookie's pidx/ndesc but the
  commit_wrq_wr for the second one is using stale values that it read
  without the lock.

r323514:
cxgbetool(8): mode must be specified when creating the dump file.

r323520:
cxgbe(4): Ignore capabilities that depend on TOE when the firmware
reports TOE is not available.

r324296:
cxgbe(4): Provide knobs to set the holdoff parameters of TOE rx queues
separately from NIC rx queues instead of using the same parameters for
both types of queues.

r324379:
cxgbetool(8): Do not create a large file devoid of useful content when
the dumpstate ioctl fails.  Make the file world-readable while here.

r324386:
cxgbe(4): Update T6, T5, and T4 firmwares to 1.16.63.0.

r324443:
cxgbetool(8): Do not close uninitialized fd on malloc failure.

r324945:
cxgbe(4): Read the MPS buffer group map from the firmware as it could be
different from hardware defaults.  The congestion channel map, which is
still fixed, needs to be tracked separately now.  Change the congestion
setting for TOE rx queues to match the drivers on other OSes while here.

r325596:
cxgbe(4): Do not request settings not supported by the port.

r325680:
cxgbe(4): Excluce mdi from the check against port capabilities.

r325880:
cxgbe(4):  Combine all _10g and _1g tunables and drop the suffix from
their names.  The finer-grained knobs weren't practically useful.

r325883:
cxgbe(4): Sanitize t4_num_vis during MOD_LOAD like all other t4_*
tunables.  Add num_vis to the intrs_and_queues structure as it affects
the number of interrupts requested and queues created.  In future
cfg_itype_and_nqueues might lower it incrementally instead of going
straight to 1 when enough interrupts aren't available.

r325884:
cxgbe(4): Remove rsrv_noflowq from intrs_and_queues structure as it does
not influence or get affected by the number of interrupts or queues.

r325961:
cxgbe(4): Add core Vdd to the sysctl MIB.

r326026:
cxgbe(4): Add a custom board to the device id list.

r326042:
cxgbe(4): Fix unsafe mailbox access in cudbg.

r327062:
cxgbe(4):  Read the MFG diags version from the VPD and make it available
in the sysctl MIB.

r327093:
cxgbe(4): Do not forward interrupts to queues with freelists.  This
leaves the firmware event queue (fwq) as the only queue that can take
interrupts for others.

This simplifies cfg_itype_and_nqueues and queue allocation in the driver
at the cost of a little (never?) used configuration.  It also allows
service_iq to be split into two specialized variants in the future.

r327332:
cxgbe(4): Reduce duplication by consolidating minor variations of the
same code into a single routine.

r327528:
cxgbe(4): Add a knob to enable/disable PCIe relaxed ordering.  Disable it by
default when running on Intel CPUs.

r328420:
cxgbe(4): Do not display harmless warning in non-debug builds.

r328423:
cxgbe(4): Accept old names of a couple of tunables.

Sponsored by: Chelsio Communications

6 years agoMFC 328608: Export tcp_always_keepalive for use by the Chelsio TOM module.
jhb [Sat, 3 Mar 2018 00:54:12 +0000 (00:54 +0000)]
MFC 328608: Export tcp_always_keepalive for use by the Chelsio TOM module.

This used to work by accident with ld.bfd even though always_keepalive
was marked as static. LLD honors static more correctly, so export this
variable properly (including moving it into the tcp_* namespace).

Relative to HEAD the MFC includes two additional changes:
- The t3_tom module used for cxgb(4) is also patched.
- A strong reference from the new name (tcp_always_keepalive) to the old
  name (always_keepalive) has been added to preserve the KBI for existing
  modules.

Suggested by: kib (strong reference)
Sponsored by: Chelsio Communications

6 years agoMFC r328314:
np [Sat, 3 Mar 2018 00:22:32 +0000 (00:22 +0000)]
MFC r328314:

Do not generate illegal mbuf chains during IP fragment reassembly.  Only
the first mbuf of the reassembled datagram should have a pkthdr.

6 years agoMFC r323221:
np [Sat, 3 Mar 2018 00:10:37 +0000 (00:10 +0000)]
MFC r323221:

Make LACP based lagg work with interfaces (like 100Gbps and 25Gbps) that
report extended media types.

lacp_aggregator_bandwidth() uses the media to determine the speed of the
interface and returns 0 for IFM_OTHER without the bits in the extended
range.

Reported by: kbowling@
Reviewed by: eugen_grosbein.net, mjoras@
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D12188

6 years agoMFC r320943-r320944, r321008, r321072, r321128
manu [Fri, 2 Mar 2018 15:17:42 +0000 (15:17 +0000)]
MFC r320943-r320944, r321008, r321072, r321128

r320943:
Add ipfw_status command to etc/rc.d/ipfw

This is helpful when using service/conf management tools.

Sonsored-By: Gandi.net

r320944:
Add an rc.d script to setup a netflow export via ng_netflow
The default is to export netflow data on localhost on the netflow port.
ngtee is used to have the lowest overhead possible.
The ipfw ng hook is the netflow port (it can only be numeric)
Default is netflow version 5.

Sponsored-By: Gandi.net
Reviewed by: bapt (earlier version), olivier (earlier version)

r321008:
etc/rc.d: Only install ipfw_netflow is MK_IPFW and MK_NETGRAPH is defined

While here only install ipfw rc script if MK_IPFW is defined.

Reported by: ngie

r321072:
ipfw_netflow: add +ipfw_netflow_enable="NO" to defaults/rc.conf and document
usage in rc.conf(5)

Reported by: markj
Sponsored by: Gandi.net

r321128:
ipfw_netflow: Add support for FIB

If ipfw_netflow_fib, the ipfw rule will only match packets in that FIB.

While here correct some value in rc.conf(5) to be int and not str.

Sponsored by: Gandi.net

6 years agoMFC r329864:
kib [Fri, 2 Mar 2018 10:57:46 +0000 (10:57 +0000)]
MFC r329864:
Do not return out of bound pointers from intr_lookup_source().

6 years agoMFC of 329880.
mckusick [Fri, 2 Mar 2018 04:41:52 +0000 (04:41 +0000)]
MFC of 329880.

Add error number to "fsync: giving up on dirty" message.

6 years agoMFC r330033:
gjb [Thu, 1 Mar 2018 16:41:37 +0000 (16:41 +0000)]
MFC r330033:
 Bump the size of virtual machine disk images from 20G to 30G,
 providing more space for a local buildworld to succeed without
 attaching separate disks for /usr/src and /usr/obj.

Sponsored by: The FreeBSD Foundation

6 years agoMFC r314077:
eadler [Thu, 1 Mar 2018 16:03:13 +0000 (16:03 +0000)]
MFC r314077:

Add 7265D firmware.

6 years agoRevert MFC of r330233
eadler [Thu, 1 Mar 2018 15:21:52 +0000 (15:21 +0000)]
Revert MFC of r330233

This was an additional commit that I did not intend to MFC... and also
broke the build

Pointy Hat To: me

6 years agoMFC r329314: MFV r329313: 8857 zio_remove_child() panic due to already destroyed...
avg [Thu, 1 Mar 2018 10:35:05 +0000 (10:35 +0000)]
MFC r329314: MFV r329313: 8857 zio_remove_child() panic due to already destroyed parent zio

PR: 223803

6 years agoMFC r329711: MFV r329710: 8966 use after end of the lifetime of a local variable
avg [Thu, 1 Mar 2018 08:33:20 +0000 (08:33 +0000)]
MFC r329711: MFV r329710: 8966 use after end of the lifetime of a local variable

PR: 225162

6 years agoMFC r324570,r324580:
eadler [Thu, 1 Mar 2018 08:05:52 +0000 (08:05 +0000)]
MFC r324570,r324580:

[net80211] begin handling multiple hardware decap'ed A-MSDU in the RX path.

The duplicate detection code currently expects A-MSDU frames to be encaped -
they're decap'ed /after/ duplicate detection.

However for ath10k (and iwm hardware later on) the firmware supports
doing A-MSDU decap in hardware - which shows up as multiple frames with
the same sequence number and IV.

This is the first part of decap handling - if we see a stretch of A-MSDU
frames from the driver with the MORE bit set, then don't treat them
as duplicates.

This isn't 100% complete as crypto sequence number handling and "A-MSDU in
A-MPDU" needs handling, but it's a start.

This should be a glorified no-op for everyone.  Please tell me if it isn't.

6 years agoMFC r307602:
eadler [Thu, 1 Mar 2018 07:59:14 +0000 (07:59 +0000)]
MFC r307602:

[net80211] Initial full-offload scan support.

This is a very simple addition to the net80211 scan support.

It doesn't implement a replacement scan interface - it just disables
the pieces that we should disable to make this lifecycle a bit
more managable.

There's more work to come before full scan offload support is available
but it should be good enough for driver work.

* add a flag to say "full offload"
* don't do probe requests when scanning full-offload - firmware can do that
* don't do powersave transitions and buffering - firmware can do that

tested:

* iwm(4) - STA mode
* ath10k port (local, not in freebsd-head yet)

6 years agoMFC r314080:
eadler [Thu, 1 Mar 2018 07:55:48 +0000 (07:55 +0000)]
MFC r314080:

6 years agoMFC r313419,r313420,r313421,r313423,r313426,r313428,r314078,r314079,r319584,r319586...
eadler [Thu, 1 Mar 2018 07:42:20 +0000 (07:42 +0000)]
MFC r313419,r313420,r313421,r313423,r313426,r313428,r314078,r314079,r319584,r319586,r319588,r324469,r324470,r324435,r325122:

[iwmfw] add version 17 firmware.
[iwmfw] add version 17 firmware.
[iwmfw] add version 17 firmware.
[iwmfw] add this 3 megabyte firmware image.
[iwmfw] bump firmware to version 17.
[iwmfw] back this out to version 16 for now.
[iwmfw] add 7265D firmware.
[iwmfw] add 7265D firmware.
[iwmfw] add 7265D-22 firmware
[iwmfw] 8000C ver 22 firmware.
[iwmfw] bump built firmware now to version 22 for 7265D and 8000C.
[iwmfw] Add missing SUBDIR needed for iwmfw to load after ^/head@r324434
[iwmfw] Add the firmware for the Intel 8265 WiFi device.

6 years agoMFC r325122,r325124,r325125:
eadler [Thu, 1 Mar 2018 07:22:53 +0000 (07:22 +0000)]
MFC r325122,r325124,r325125:

Fill in the blanks for iwm8265fw(4) rules, missed in r324434

Now using "device iwmfw" or "device iwm8265fw" in one's kernel configuration
will potentially result in a working IWM8265 series wireless SoC.

This is an alternative to the fix that was made in r324470 for
`sys/modules/iwmfw`.

6 years agoMFC r325123:
eadler [Thu, 1 Mar 2018 07:18:28 +0000 (07:18 +0000)]
MFC r325123:

Reference iwm8265fw support in iwm(4) as well

This documentation update is similar to what was done in iwmfw(4) in r325121.