]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
6 years agoMFC r329719: MFV r329718: 8520 7198 lzc_rollback_to should support rolling back to...
avg [Wed, 7 Mar 2018 13:45:29 +0000 (13:45 +0000)]
MFC r329719: MFV r329718: 8520 7198 lzc_rollback_to should support rolling back to origin

6 years agoMFC r329714: MFV r329713: 8731 ASSERT3U(nui64s, <=, UINT16_MAX) fails for large blocks
avg [Wed, 7 Mar 2018 13:39:10 +0000 (13:39 +0000)]
MFC r329714: MFV r329713: 8731 ASSERT3U(nui64s, <=, UINT16_MAX) fails for large blocks

6 years agoMFC r330338: db_nextframe/amd64: catch up with r328083 to recognize fast_syscall_common
avg [Wed, 7 Mar 2018 13:37:25 +0000 (13:37 +0000)]
MFC r330338: db_nextframe/amd64: catch up with r328083 to recognize fast_syscall_common

6 years agoMFC r327206:
eadler [Wed, 7 Mar 2018 11:09:07 +0000 (11:09 +0000)]
MFC r327206:

Fix CID 1008428.

6 years agoMFC r302779,r302807:
eadler [Wed, 7 Mar 2018 11:03:01 +0000 (11:03 +0000)]
MFC r302779,r302807:

merge upstream hg 06347b1f76fe (fix IXFR)

Initialize first_serial to 0 in dozonetransfer(..) to fix -Wuninitialized
warning

PR: 209177

6 years agoRevert MFC of r330463 r330462 r330454 r330452 r330451:
eadler [Wed, 7 Mar 2018 10:54:10 +0000 (10:54 +0000)]
Revert MFC of r330463 r330462 r330454 r330452 r330451:

These commits have KPI/KBI considerations (or are a result of those that
do). I did not properly take into account these concerns when merging to
a kbi-stable branch.

Requested by: jhb
Pointyhat to: eadler

6 years agoMFC r316339,317396,317829,326010,329554: less v530.
delphij [Wed, 7 Mar 2018 06:13:47 +0000 (06:13 +0000)]
MFC r316339,317396,317829,326010,329554: less v530.

Relnotes: yes

6 years agoMFC r329855
davidcs [Tue, 6 Mar 2018 23:12:32 +0000 (23:12 +0000)]
MFC r329855
  1. Added support to offline a port if is error recovery on successful.
  2. Sysctls to enable/disable driver_state_dump and error_recovery.
  3. Sysctl to control the delay between hw/fw reinitialization and
     restarting the fastpath.
  4. Stop periodic stats retrieval if interface has IFF_DRV_RUNNING flag off.
  5. Print contents of PEG_HALT_STATUS1 and PEG_HALT_STATUS2 on heartbeat
     failure.
  6. Speed up slowpath shutdown during error recovery.
  7. link_state update using atomic_store.
  8. Added timestamp information on driver state and minidump captures.
  9. Added support for Slowpath event logging
  10.Added additional failure injection types to simulate failures.

6 years agoMFC r330075:
markj [Tue, 6 Mar 2018 16:16:30 +0000 (16:16 +0000)]
MFC r330075:
Give the 0th domain's page daemon thread a consistent name.

6 years agoMFC: r329889
jkim [Mon, 5 Mar 2018 23:51:29 +0000 (23:51 +0000)]
MFC: r329889

Partially revert r197863 to reduce diff against i386.

6 years agoMFC r326400
asomers [Mon, 5 Mar 2018 20:37:54 +0000 (20:37 +0000)]
MFC r326400

Revert r326399

Accidentally committed wrong file

Pointy hat to:  asomers
Sponsored by:   Spectra Logic Corp

6 years agoMFC r320726, r320727
asomers [Mon, 5 Mar 2018 18:37:05 +0000 (18:37 +0000)]
MFC r320726, r320727

r320726:
Expect :snprintf_float to segfault

This issue started occurring within the past month or so.

PR:   220502
Reported by:  Jenkins (amd64-head job)

r320727:
:snprintf_float: don't blindly set RLIMIT_DATA and RLIMIT_AS to 1 MB -- raise
the limit to 32MB instead.

Require user=root and memory=64MB+ first so one can be reasonably sure that
the test will function appropriately.

MFC with: r320726
PR: 220502

6 years agoRevert r330445
eadler [Mon, 5 Mar 2018 17:01:26 +0000 (17:01 +0000)]
Revert r330445

This commit was reverted in r321480 in head

Reported by: sbruno

6 years agoMFC r330027
dab [Mon, 5 Mar 2018 13:58:03 +0000 (13:58 +0000)]
MFC r330027

iconv uses strlen directly on user supplied memory

`iconv_sysctl_add` from `sys/libkern/iconv.c` incorrectly limits the
size of user strings, such that several out of bounds reads could have
been possible.

static int
iconv_sysctl_add(SYSCTL_HANDLER_ARGS)
{
struct iconv_converter_class *dcp;
struct iconv_cspair *csp;
struct iconv_add_in din;
struct iconv_add_out dout;
int error;

error = SYSCTL_IN(req, &din, sizeof(din));
if (error)
return error;
if (din.ia_version != ICONV_ADD_VER)
return EINVAL;
if (din.ia_datalen > ICONV_CSMAXDATALEN)
return EINVAL;
if (strlen(din.ia_from) >= ICONV_CSNMAXLEN)
return EINVAL;
if (strlen(din.ia_to) >= ICONV_CSNMAXLEN)
return EINVAL;
if (strlen(din.ia_converter) >= ICONV_CNVNMAXLEN)
return EINVAL;
...

Since the `din` struct is directly copied from userland, there is no
guarantee that the strings supplied will be NULL terminated. The
`strlen` calls could continue reading past the designated buffer
sizes.

Declaration of `struct iconv_add_in` is found in `sys/sys/iconv.h`:

struct iconv_add_in {
int ia_version;
char ia_converter[ICONV_CNVNMAXLEN];
char ia_to[ICONV_CSNMAXLEN];
char ia_from[ICONV_CSNMAXLEN];
int ia_datalen;
const void *ia_data;
};

Our strings are followed by the `ia_datalen` member, which is checked
before the `strlen` calls:

if (din.ia_datalen > ICONV_CSMAXDATALEN)

Since `ICONV_CSMAXDATALEN` has value `0x41000` (and is `unsigned`),
this ensures that `din.ia_datalen` contains at least 1 byte of 0, so
it is not possible to trigger a read out of bounds of the `struct`
however, this code is fragile and could introduce subtle bugs in the
future if the `struct` is ever modified.

PR: 207302
Submitted by: CTurt <cturt@hardenedbsd.org>
Reported by: CTurt <cturt@hardenedbsd.org>
Sponsored by: Dell EMC

6 years agoMFC r329994: mac_portacl(4): stop panicing INVARIANTS-enabled kernel by loading .ko
eugen [Mon, 5 Mar 2018 12:16:37 +0000 (12:16 +0000)]
MFC r329994: mac_portacl(4): stop panicing INVARIANTS-enabled kernel by loading .ko
when kernel already has options MAC_PORTACL.

PR: 183817
Approved by: avg (mentor)

6 years agoMFC r329930: route(8): make it possible to manually delete pinned route
eugen [Mon, 5 Mar 2018 12:04:43 +0000 (12:04 +0000)]
MFC r329930: route(8): make it possible to manually delete pinned route

Reported by: Andreas Longwitz <longwitz@incore.de>
Approved by: avg (mentor)

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

Remove CVS - we don't run that infrastructure anymore

6 years agoMFC r326386:
eadler [Mon, 5 Mar 2018 09:17:55 +0000 (09:17 +0000)]
MFC r326386:

Fix pthread_condattr(3) type

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.