]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
7 years agoMFC r316695, MFV r316693:
pfg [Thu, 13 Apr 2017 15:39:42 +0000 (15:39 +0000)]
MFC r316695, MFV r316693:
8046 Let calloc() do the multiplication in libzfs_fru_refresh

https://github.com/illumos/illumos-gate/commit/5697e03e6e3e2697f56ae341c7c8ce79680d6a2e

https://www.illumos.org/issues/8046

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Pedro Giffuni <pfg@freebsd.org>

7 years agoMFC r316566:
kib [Thu, 13 Apr 2017 08:21:29 +0000 (08:21 +0000)]
MFC r316566:
Remove spl*() calls from the nfsclient code.

7 years agoMFC r316284: elfcopy: remove temporary ELF file when converting from binary
emaste [Thu, 13 Apr 2017 01:36:51 +0000 (01:36 +0000)]
MFC r316284: elfcopy: remove temporary ELF file when converting from binary

Previously a command like

  objcopy --input-target binary --output-target elf64-x86-64-freebsd \
    binary_file object.o

would leave a temporary file behind.

ELF Tool Chain ticket #543

7 years agoMFC r316528:
kib [Wed, 12 Apr 2017 09:22:02 +0000 (09:22 +0000)]
MFC r316528:
Add V_VMIO flag for vinvalbuf(9).

7 years agoMFC r316526:
kib [Wed, 12 Apr 2017 09:20:02 +0000 (09:20 +0000)]
MFC r316526:
Extract calculation of ioflags from the vm_pager_putpages flags into a
helper.

7 years agoMFC r316525:
kib [Wed, 12 Apr 2017 09:13:38 +0000 (09:13 +0000)]
MFC r316525:
Some style fixes for vnode_pager_generic_putpages(), in the local
declaration block.

7 years agoMFC r316524:
kib [Wed, 12 Apr 2017 09:11:16 +0000 (09:11 +0000)]
MFC r316524:
Use int instead of boolean_t for flags argument type in
vnode_pager_generic_putpages() prototype; change the argument name to
reflect that it is flags.

7 years agoMFC r306829, r310286, r311695:
markj [Tue, 11 Apr 2017 18:48:17 +0000 (18:48 +0000)]
MFC r306829, r310286, r311695:
Lock the ND prefix list and add refcounting for prefixes.

7 years agoMFC r309591:
markj [Tue, 11 Apr 2017 17:36:19 +0000 (17:36 +0000)]
MFC r309591:
Fix style bugs and remove trailing whitespace in libproc and librtld_db.

7 years agoMFC r315208:
markj [Tue, 11 Apr 2017 17:28:23 +0000 (17:28 +0000)]
MFC r315208:
Fix a backwards comparison in the code to dump a DTrace debug buffer.

7 years agoMFC r316032:
markj [Tue, 11 Apr 2017 17:17:05 +0000 (17:17 +0000)]
MFC r316032:
Refine r301173 a bit.

7 years agoMFC r316036:
markj [Tue, 11 Apr 2017 17:16:15 +0000 (17:16 +0000)]
MFC r316036:
Typo.

7 years agoMFC r316175:
markj [Tue, 11 Apr 2017 17:15:39 +0000 (17:15 +0000)]
MFC r316175:
Avoid sleeping when the mirror I/O queue is non-empty.

7 years agoMFC r315289:
markj [Tue, 11 Apr 2017 17:13:56 +0000 (17:13 +0000)]
MFC r315289:
When draining a callout, don't clear CALLOUT_ACTIVE while it is running.

7 years agoMFC r316637-r316638
bapt [Tue, 11 Apr 2017 16:32:46 +0000 (16:32 +0000)]
MFC r316637-r316638

r316637:
When passingthrough from sdiff to diff the -H/--speed-large-files
options rename it to the long version as GNU diff only support the long
version of the option not the short version

r316638:
Remove a useless loop over the long options before passing through some
options to diff(1)

7 years agoMFC 314783:
mmokhi [Tue, 11 Apr 2017 13:42:26 +0000 (13:42 +0000)]
MFC 314783:

Regenerated Linuxulator syscall tables for r314782

Approved by: trasz

7 years agoMFC r314782:
mmokhi [Tue, 11 Apr 2017 12:49:25 +0000 (12:49 +0000)]
MFC r314782:

Add UNIMPLEMENTED() placeholder macro for
the syscalls that are not implemented in Linux kernel itself.
Cleanup DUMMY() macros.

Approved by: trasz

7 years agoMFC r316490:
ae [Tue, 11 Apr 2017 07:40:43 +0000 (07:40 +0000)]
MFC r316490:
  When we are doing SA lookup for TCP-MD5, check both source and
  destination addresses. Previous code has used only destination address
  for lookup. But for inbound packets the source address was used as SA
  destination address. Thus only outbound SA were used for both directions.
  Now we use addresses from a packet as is, thus SAs for both directions are
  needed.

  Reported by: Mike Tancsa

MFC r316507,316508:
  In the example section show that TCP-MD5 connection needs SA for both
  directions.
  Use unique SPI.

7 years agoMFC r316617:
gjb [Mon, 10 Apr 2017 16:09:19 +0000 (16:09 +0000)]
MFC r316617:
 - Increase the image size for RPI2 and IMX6-based boards from 1G
   to 1.5G.
 - Use the 'conv=sync' dd(1) option to fix writing the u-boot.imx
   file to the md(4) device for IMX6-based boards.

Sponsored by: The FreeBSD Foundation

7 years agoMFC 316520
sephe [Mon, 10 Apr 2017 05:17:18 +0000 (05:17 +0000)]
MFC 316520

    hyperv/hn: Fixat RNDIS rxfilter after the successful RNDIS init.

    Under certain conditions on certain versions of Hyper-V, the RNDIS
    rxfilter is _not_ zero on the hypervisor side after the successful
    RNDIS initialization, which breaks the assumption of any following
    code (well, it breaks the RNDIS API contract actually).  Clear the
    RNDIS rxfilter explicitly, drain packets sneaking through, and drain
    the interrupt taskqueues scheduled due to the stealth packets.

    Reported by:    dexuan@
    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D10230

7 years agoMFC 316519
sephe [Mon, 10 Apr 2017 04:59:44 +0000 (04:59 +0000)]
MFC 316519

    hyperv/storvsc: Fixup SRB status.

    This unbreaks GEN2 Hyper-V cd support.

    Submitted by:   Hongjiang Zhang <honzhan microsoft com>
    Reviewed by:    dexuan@
    Sponsored by:   Microsoft
    Differential Revision:  https://reviews.freebsd.org/D10212

7 years agoFix reference count leak with L2 caching.
karels [Mon, 10 Apr 2017 01:26:12 +0000 (01:26 +0000)]
Fix reference count leak with L2 caching.

MFC r315956

ip_forward, TCP/IPv6, and probably SCTP leaked references to L2 cache
entry because they used their own routes on the stack, not in_pcb routes.
The original model for route caching was callers that provided a route
structure to ip{,6}input() would keep the route, and this model was used
for L2 caching as well. Instead, change L2 caching to be done by default
only when using a route structure in the in_pcb; the pcb deallocation
code frees L2 as well as L3 cacches. A separate change will add route
caching to TCP/IPv6.

Another suggestion was to have the transport protocols indicate willingness
to use L2 caching, but this approach keeps the changes in the network
level

Reviewed by:    ae gnn
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D10059

7 years agoMFC r313959:
trasz [Sun, 9 Apr 2017 19:30:49 +0000 (19:30 +0000)]
MFC r313959:

Add USB Mass Storage CTL frontend.  This makes it possible
for USB OTG-capable hardware to implement device side of USB
Mass Storage, ie pretend it's a flash drive.  It's configured
in the same way as other CTL frontends, using ctladm(8)
or ctld(8).  Differently from usfs(4), all the configuration
can be done without rebuilding the kernel.

Testing and review is welcome.  Right now I'm still moving,
and I don't have access to my test environment, so I'm somewhat
reluctant to making larger changes to this code; on the other
hand I don't want to let it sit on Phab until my testing setup
is back, because I want to get it into 11.1-RELEASE.

Relnotes: yes
Sponsored by: The FreeBSD Foundation

7 years agoMFC r316412: Add IDs for Intel Cougar Point USB 2.0 controller.
mav [Sun, 9 Apr 2017 06:44:01 +0000 (06:44 +0000)]
MFC r316412: Add IDs for Intel Cougar Point USB 2.0 controller.

7 years agoMFC r316355
kp [Sat, 8 Apr 2017 09:48:21 +0000 (09:48 +0000)]
MFC r316355

pf: Fix leak of pf_state_keys

If we hit the state limit we returned from pf_create_state() without cleaning
up.

PR: 217997
Submitted by: Max <maximos@als.nnov.ru>

7 years agoMFC r314561:
gjb [Fri, 7 Apr 2017 16:08:54 +0000 (16:08 +0000)]
MFC r314561:
 Increase the EC2 image size.  The recent snapshot builds of EC2
 images for 12-CURRENT (and now 11-STABLE) failed due to a full
 filesystem on the md(4) device during creation.

Sponsored by: The FreeBSD Foundation

7 years agoMFC r315162:
pfg [Fri, 7 Apr 2017 16:08:04 +0000 (16:08 +0000)]
MFC r315162:
libc: provide some bounds-checking through reallocarray(3).

reallocarray(3) is a non portable extension that originated in OpenBSD.
Given that it is already in FreeBSD's libc it is useful for the cases
where reallocation involves a multiplication.

7 years agoMFC r316329:
ae [Fri, 7 Apr 2017 10:45:28 +0000 (10:45 +0000)]
MFC r316329:
  Reset the cached state of last lookup in the dynamic states when an
  external action is completed, but the rule search is continued.

  External action handler can change the content of @args argument,
  that is used for dynamic state lookup. Enforce the new lookup to be able
  install new state, when the search is continued.

  Obtained from: Yandex LLC
  Sponsored by: Yandex LLC

7 years agoMFC 316283:
n_hibma [Fri, 7 Apr 2017 09:13:26 +0000 (09:13 +0000)]
MFC 316283:

Allow superseding the lease renewal and rebind times.

Also make sure that the renewal is never more than 1/2 * expiry and
rebind never more than 7/4 * renewal (the default values in the spec).
This should allow adjusting high values from the server as well as
making sure the values from the server make sense.

Renewal and rebind times will be adjusted down if the expiry time is set
very high in a server, not the other way around. This change just makes
sure the values keep making sense.

and 316285:

Make dhcp-lease-time option supersedable as well.

Note: It is not recommended to set this value to above the value that
the server provided, unless that value is bogus.

7 years agoImprovements for the brand detection and prioritization.
kib [Thu, 6 Apr 2017 15:19:18 +0000 (15:19 +0000)]
Improvements for the brand detection and prioritization.

MFC r315701 (by ed):
Set the interpreter path to /nonexistent.

MFC r315749:
Adjust r314851 to not require every brand to specify interpreter path.

MFC r315753:
Add a flag BI_BRAND_ONLY_STATIC to specify that the brand only
matches static binaries.

MFC r315754:
Update r315753 with the proper flag name.

MFC r316211:
A followup to r315749, two more places where brand->interp_path was
accessed unconditionally.

7 years agoBring kernel space CloudABI code in sync with HEAD.
ed [Thu, 6 Apr 2017 15:10:36 +0000 (15:10 +0000)]
Bring kernel space CloudABI code in sync with HEAD.

MFC r312353, r312354 and r312355:

  Sync in the latest CloudABI generated source files.

  Languages like C++17 and Go provide direct support for slice types:
  pointer/length pairs. The CloudABI generator now has more complete for
  this, meaning that for the C binding, pointer/length pairs now use an
  automatic naming scheme of ${name} and ${name}_len.

  Apart from this change and some reformatting, the ABI definitions are
  identical. Binary compatibility is preserved entirely.

MFC r315700:

  Make file descriptor passing work for CloudABI's sendmsg().

  Reduce the potential amount of code duplication between cloudabi32 and
  cloudabi64 by creating a cloudabi_sock_recv() utility function. The
  cloudabi32 and cloudabi64 modules will then only contain code to convert
  the iovecs to the native pointer size.

  In cloudabi_sock_recv(), we can now construct an SCM_RIGHTS cmsghdr in
  an mbuf and pass that on to kern_sendit().

MFC r315736:

  Make file descriptor passing for CloudABI's recvmsg() work.

  Similar to the change for sendmsg(), create a pointer size independent
  implementation of recvmsg() and let cloudabi32 and cloudabi64 call into
  it. In case userspace requests one or more file descriptors, call
  kern_recvit() in such a way that we get the control message headers in
  an mbuf. Iterate over all of the headers and copy the file descriptors
  to userspace.

7 years agoMFC r315861:
ed [Thu, 6 Apr 2017 13:51:54 +0000 (13:51 +0000)]
MFC r315861:

  Stop providing the compat_3_brand.

  As of r315860, the ELF image activator works fine for CloudABI without it.

7 years agoMFC r315860:
ed [Thu, 6 Apr 2017 13:50:23 +0000 (13:50 +0000)]
MFC r315860:

  Don't require the presence of the compat_3_brand.

  The existing ELF image activator requires the brandinfo to provide such
  a string unconditionally, even if the executable format in question
  doesn't use this type of branding. Skip matching when it's a null
  pointer.

7 years agoMFC r315857: Remove "UNMAPPED" messages printed on da periph attach.
mav [Thu, 6 Apr 2017 06:31:48 +0000 (06:31 +0000)]
MFC r315857: Remove "UNMAPPED" messages printed on da periph attach.

I think this message is not very useful for end user.  Also its formatting
does not match other messages printed at that time.  Those who really need
this information can always find it in `camcontrol negotiate daX -v`.

7 years agoMFC r314946:
cy [Thu, 6 Apr 2017 06:11:04 +0000 (06:11 +0000)]
MFC r314946:

Configure leap-second smearing (always).

Leap-second smearing is an experimental option that may be specified in
ntp.conf(5) and the -x option on the command line to spread the effect
of a leap-second over an interval as specified by the leapsmearinterval
config file statement. Recommended values are between 7200 (2 hours) and
86400 (24 hours).

It is advised that leap-second smearing not be used for public NTP
servers (https://www.meinbergglobal.com/download/burnicki/Leap\
%20Second%20Smearing%20With%20NTP.pdf). It is also advised that NTP
clients not use a mix of NTP servers using leap-second smearing with
NTP servers not using leap-second smearing as that could cause
undefined client behaviour.

Leap-second smearing was committed to ports net/ntp and net/ntp-devel
by r426825 on 2016-11-22.

Suggested by: des

7 years agoMFC r316368:
ngie [Thu, 6 Apr 2017 05:10:57 +0000 (05:10 +0000)]
MFC r316368:
r316368 (by jkim):

Fix typos to stop removing new files.

7 years agoDirect commit of fixes to stable/11, resolving PCI passthrough and initialization
sbruno [Wed, 5 Apr 2017 19:46:24 +0000 (19:46 +0000)]
Direct commit of fixes to stable/11, resolving PCI passthrough and initialization
issues when trying to passthrough a i340 (igb) to VMware.

While here, cleanup some bits of em(4) to DTRT as well.

PR: 218113
Submitted by: Kaho Toshikazu <kaho@elam.kais.kyoto-u.ac.jp>

7 years agoMFC r308343
sbruno [Wed, 5 Apr 2017 19:33:04 +0000 (19:33 +0000)]
MFC r308343

r266979 missed a call to enable capabilities of the hw leading to an
inability to enable features of the device.

PR:             213845

7 years agoMFC r316497:
brooks [Wed, 5 Apr 2017 19:15:06 +0000 (19:15 +0000)]
MFC r316497:

Correct a kernel stack leak in 32-bit compat when vfc_name is short.

Don't zero unused pointer members again.

Per discussion with secteam we are not issuing an advisory for this
issue as we have no current evidence it leaks exploitable information.

Reviewed by: rwatson, glebius, delphij
Sponsored by: DARPA, AFRL

7 years agoMFC r315673, r315674: Make CAM SIM lock optional.
mav [Tue, 4 Apr 2017 17:59:10 +0000 (17:59 +0000)]
MFC r315673, r315674: Make CAM SIM lock optional.

For three years now CAM does not use SIM lock, but still enforces SIM to
use it.  Remove this requirement, allowing SIMs to have any locking they
prefer, if they pass no mutex to cam_sim_alloc().

7 years agoMFC r315564:
trasz [Mon, 3 Apr 2017 21:06:49 +0000 (21:06 +0000)]
MFC r315564:

Improve formatting.

7 years agoMFC r312078 by cem:
trasz [Mon, 3 Apr 2017 21:05:27 +0000 (21:05 +0000)]
MFC r312078 by cem:

fstyp.8: Move initial exFAT blurb to the -u section

Didn't notice the second list in r312003.

7 years agoMFC r312003 by cem:
trasz [Mon, 3 Apr 2017 21:04:14 +0000 (21:04 +0000)]
MFC r312003 by cem:

fstyp(8): Detect exFAT filesystems

Simply detect the exFAT filesystem name in the Volume Boot Record
(superblock).

7 years agoMFC r306041: Always pass -m to ld for converting binary files to ELF
emaste [Mon, 3 Apr 2017 20:46:55 +0000 (20:46 +0000)]
MFC r306041: Always pass -m to ld for converting binary files to ELF

This is in preparation for linking with LLVM's lld, which does not have
a compiled-in default output emulation. lld requires that it is
specified via the -m option, or obtained from the object file(s) being
linked.

This will also allow all build targets to share a common linker binary.

Sponsored by: The FreeBSD Foundation

7 years agoMFC r304624: Remove duplicate symbol from libhx509 version-script.map
emaste [Mon, 3 Apr 2017 19:57:05 +0000 (19:57 +0000)]
MFC r304624: Remove duplicate symbol from libhx509 version-script.map

Upstream commit r21331 (7758a5d0) added semiprivate function
_hx509_request_to_pkcs10 twice. This change has been committed upstream
as 8ef0071d.

Sponsored by: The FreeBSD Foundation

7 years agoMFC r303156: Remove duplicate symbols from libroken version-script.map
emaste [Mon, 3 Apr 2017 17:37:41 +0000 (17:37 +0000)]
MFC r303156: Remove duplicate symbols from libroken version-script.map

Upstream commit r24759 (efed563) prefixed some symbols with rk_, but
introduced 6 duplicate symbols in the version script (because the
rk_-prefixed versions of the symbols were already present).

Sponsored by: The FreeBSD Foundation

7 years agoMFC r316013:
ae [Mon, 3 Apr 2017 13:04:36 +0000 (13:04 +0000)]
MFC r316013:
  Make pfil's locking macros private.

  Obtained from: Yandex LLC

7 years agoMFC r316012:
ae [Mon, 3 Apr 2017 12:48:56 +0000 (12:48 +0000)]
MFC r316012:
  Declare module version.

7 years agoMFC 316275:
n_hibma [Mon, 3 Apr 2017 10:28:18 +0000 (10:28 +0000)]
MFC 316275:

Add nctgpio conf lines so it can be compiled into the kernel.

7 years agoMFC r316011:
kib [Mon, 3 Apr 2017 09:41:43 +0000 (09:41 +0000)]
MFC r316011:
Timeout DMAR commands.

7 years agoMFC r316009:
kib [Mon, 3 Apr 2017 09:36:44 +0000 (09:36 +0000)]
MFC r316009:
Fix TUNABLE_UINT64() on 32bit architectures.

7 years agoMFC r304041:
ae [Mon, 3 Apr 2017 08:50:54 +0000 (08:50 +0000)]
MFC r304041:
  Move logging via BPF support into separate file.

  * make interface cloner VNET-aware;
  * simplify cloner code and use if_clone_simple();
  * migrate LOGIF_LOCK() to rmlock;
  * add ipfw_bpf_mtap2() function to pass mbuf to BPF;
  * introduce new additional ipfwlog0 pseudo interface. It differs from
    ipfw0 by DLT type used in bpfattach. This interface is intended to
    used by ipfw modules to dump packets with additional info attached.
    Currently pflog format is used. ipfw_bpf_mtap2() function uses second
    argument to determine which interface use for dumping. If dlen is equal
    to ETHER_HDR_LEN it uses old ipfw0 interface, if dlen is equal to
    PFLOG_HDRLEN - ipfwlog0 will be used.

  Obtained from: Yandex LLC
  Sponsored by: Yandex LLC

MFC r304043:
  Add three helper function to manage tables from external modules.

  ipfw_objhash_lookup_table_kidx does lookup kernel index of table;
  ipfw_ref_table/ipfw_unref_table takes and releases reference to table.

  Obtained from: Yandex LLC
  Sponsored by: Yandex LLC

MFC r304046, 304108:
  Add ipfw_nat64 module that implements stateless and stateful NAT64.

  The module works together with ipfw(4) and implemented as its external
  action module.

  Stateless NAT64 registers external action with name nat64stl. This
  keyword should be used to create NAT64 instance and to address this
  instance in rules. Stateless NAT64 uses two lookup tables with mapped
  IPv4->IPv6 and IPv6->IPv4 addresses to perform translation.

  A configuration of instance should looks like this:
   1. Create lookup tables:
   # ipfw table T46 create type addr valtype ipv6
   # ipfw table T64 create type addr valtype ipv4
   2. Fill T46 and T64 tables.
   3. Add rule to allow neighbor solicitation and advertisement:
   # ipfw add allow icmp6 from any to any icmp6types 135,136
   4. Create NAT64 instance:
   # ipfw nat64stl NAT create table4 T46 table6 T64
   5. Add rules that matches the traffic:
   # ipfw add nat64stl NAT ip from any to table(T46)
   # ipfw add nat64stl NAT ip from table(T64) to 64:ff9b::/96
   6. Configure DNS64 for IPv6 clients and add route to 64:ff9b::/96
      via NAT64 host.

  Stateful NAT64 registers external action with name nat64lsn. The only
  one option required to create nat64lsn instance - prefix4. It defines
  the pool of IPv4 addresses used for translation.

  A configuration of instance should looks like this:
   1. Add rule to allow neighbor solicitation and advertisement:
   # ipfw add allow icmp6 from any to any icmp6types 135,136
   2. Create NAT64 instance:
   # ipfw nat64lsn NAT create prefix4 A.B.C.D/28
   3. Add rules that matches the traffic:
   # ipfw add nat64lsn NAT ip from any to A.B.C.D/28
   # ipfw add nat64lsn NAT ip6 from any to 64:ff9b::/96
   4. Configure DNS64 for IPv6 clients and add route to 64:ff9b::/96
      via NAT64 host.

  Obtained from: Yandex LLC
  Relnotes: yes
  Sponsored by: Yandex LLC
  Differential Revision: https://reviews.freebsd.org/D6434

MFC r304048:
  Replace __noinline with special debug macro NAT64NOINLINE.

MFC r304061:
  Use %ju to print unsigned 64-bit value.

MFC r304076:
  Make statistics nat64lsn, nat64stl an nptv6 output netstat-like:
  "@value @description" and fix build due to -Wformat errors.

MFC r304378 (by bz):
  Try to fix gcc compilation errors (which are right).
  nat64_getlasthdr() returns an int, which can be -1 in case of error,
  storing the result in an uint8_t and then comparing to < 0 is not
  helpful.  Do what is done in the rest of the code and make proto an
  int here as well.

MFC r309187:
  Fix ICMPv6 Time Exceeded error message translation.

MFC r314718:
  Use new ipfw_lookup_table() in the nat64 too.

MFC r315204,315233:
  Use memset with structure size.

7 years agoMFC r307570:
ae [Mon, 3 Apr 2017 07:40:38 +0000 (07:40 +0000)]
MFC r307570:
  Add support for non-contiguous IPv6 masks in ipfw(8) rules.

  For example fe::640:0:0/ffff::ffff:ffff:0:0 will match
  addresses fe:*:*:*:0:640:*:*

  Submitted by: Eugene Mamchits <mamchits at yandex-team dot ru>
  Obtained from: Yandex LLC
  Sponsored by: Yandex LLC

7 years agoMFC r303012:
ae [Mon, 3 Apr 2017 07:30:47 +0000 (07:30 +0000)]
MFC r303012:
  Add ipfw_nptv6 module that implements Network Prefix Translation for IPv6
  as defined in RFC 6296. The module works together with ipfw(4) and
  implemented as its external action module. When it is loaded, it registers
  as eaction and can be used in rules. The usage pattern is similar to
  ipfw_nat(4). All matched by rule traffic goes to the NPT module.

  Reviewed by: hrs
  Obtained from: Yandex LLC
  Relnotes: yes
  Sponsored by: Yandex LLC
  Differential Revision: https://reviews.freebsd.org/D6420

MFC r304049:
  Add `stats reset` command implementation to NPTv6 module
  to be able reset statistics counters.

  Obtained from: Yandex LLC
  Sponsored by: Yandex LLC

MFC r304076:
  Make statistics nat64lsn, nat64stl an nptv6 output netstat-like:
  "@value @description" and fix build due to -Wformat errors.

MFC r314507:
  Fix NPTv6 rule counters when one_pass is not enabled.

  Consider the rule matching when both @done and @retval values
  returned from ipfw_run_eaction() are zero. And modify ipfw_nptv6()
  to return IP_FW_DENY and @done=0 when addresses do not match.

  Obtained from: Yandex LLC
  Sponsored by: Yandex LLC

7 years agoMFC r312404, r312519, r313277:
delphij [Mon, 3 Apr 2017 06:13:05 +0000 (06:13 +0000)]
MFC r312404, r312519, r313277:

Use S_ISREG instead of manual & (also it's better to compare the
result from & and the pattern instead of just assuming it's one bit
value).

Pointed out by Tianjie Mao <tjmao tjmao com>.

7 years agoMFC r315619: pet manlint
delphij [Mon, 3 Apr 2017 06:07:40 +0000 (06:07 +0000)]
MFC r315619: pet manlint

7 years agoMFC r316029: lld: hack version and help output for compatibility with libtool
emaste [Mon, 3 Apr 2017 01:57:03 +0000 (01:57 +0000)]
MFC r316029: lld: hack version and help output for compatibility with libtool

GNU libtool checks the output from invoking the linker with --version
and --help, in order to determine the linker "flavour" and the command-
ine arguments to use for various link operations (e.g. generating shared
libraries). To detect GNU ld it looks for the strings "GNU" and
"supported targets:.*elf". Since LLD is compatible with GNU ld we
include those same strings to fool libtool.

Quoting from a comment in the change:
  This is somewhat ugly hack, but in reality, we had no choice other
  than doing this. Considering the very long release cycle of Libtool,
  it is not easy to improve it to recognize LLD as a GNU compatible
  linker in a timely manner. Even if we can make it, there are still a
  lot of "configure" scripts out there that are generated by old
  version of Libtool. We cannot convince every software developer to
  migrate to the latest version and re-generate scripts. So we have
  this hack.

Upstream LLVM revisions r298532, r298568, r298591

Sponsored by: The FreeBSD Foundation

7 years agoMerge r315910:
glebius [Mon, 3 Apr 2017 00:46:32 +0000 (00:46 +0000)]
Merge r315910:
  Make sendfile(2) more robust against file change.  This fixes a possible
  crash when the file shrinks.  This also fixes sendfile(2) not sending more
  data in a case when the file grows, and the request is open-ended or
  specifies a size that is greater than old file size.

  PR:           217789
  Reviewed by:  gallatin

7 years agoRegenerate src.conf.5 after the addition of WITH/WITHOUT_LLD_IS_LD.
dim [Sun, 2 Apr 2017 17:34:45 +0000 (17:34 +0000)]
Regenerate src.conf.5 after the addition of WITH/WITHOUT_LLD_IS_LD.

7 years agoUpdate clang, llvm, lld, lldb, compiler-rt and libc++ to 4.0.0 release:
dim [Sun, 2 Apr 2017 17:24:58 +0000 (17:24 +0000)]
Update clang, llvm, lld, lldb, compiler-rt and libc++ to 4.0.0 release:

MFC r309142 (by emaste):

Add WITH_LLD_AS_LD build knob

If set it installs LLD as /usr/bin/ld.  LLD (as of version 3.9) is not
capable of linking the world and kernel, but can self-host and link many
substantial applications. GNU ld continues to be used for the world and
kernel build, regardless of how this knob is set.

It is on by default for arm64, and off for all other CPU architectures.

Sponsored by: The FreeBSD Foundation

MFC r310840:

Reapply 310775, now it also builds correctly if lldb is disabled:

Move llvm-objdump from CLANG_EXTRAS to installed by default

We currently install three tools from binutils 2.17.50: as, ld, and
objdump. Work is underway to migrate to a permissively-licensed
tool-chain, with one goal being the retirement of binutils 2.17.50.

LLVM's llvm-objdump is intended to be compatible with GNU objdump
although it is currently missing some options and may have formatting
differences. Enable it by default for testing and further investigation.
It may later be changed to install as /usr/bin/objdump, it becomes a
fully viable replacement.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D8879

MFC r312855 (by emaste):

Rename LLD_AS_LD to LLD_IS_LD, for consistency with CLANG_IS_CC

Reported by: Dan McGregor <dan.mcgregor usask.ca>

MFC r313559 | glebius | 2017-02-10 18:34:48 +0100 (Fri, 10 Feb 2017) | 5 lines

Don't check struct rtentry on FreeBSD, it is an internal kernel structure.
On other systems it may be API structure for SIOCADDRT/SIOCDELRT.

Reviewed by: emaste, dim

MFC r314152 (by jkim):

Remove an assembler flag, which is redundant since r309124.  The upstream
took care of it by introducing a macro NO_EXEC_STACK_DIRECTIVE.

http://llvm.org/viewvc/llvm-project?rev=273500&view=rev

Reviewed by: dim

MFC r314564:

Upgrade our copies of clang, llvm, lld, lldb, compiler-rt and libc++ to
4.0.0 (branches/release_40 296509).  The release will follow soon.

Please note that from 3.5.0 onwards, clang, llvm and lldb require C++11
support to build; see UPDATING for more information.

Also note that as of 4.0.0, lld should be able to link the base system
on amd64 and aarch64.  See the WITH_LLD_IS_LLD setting in src.conf(5).
Though please be aware that this is work in progress.

Release notes for llvm, clang and lld will be available here:
<http://releases.llvm.org/4.0.0/docs/ReleaseNotes.html>
<http://releases.llvm.org/4.0.0/tools/clang/docs/ReleaseNotes.html>
<http://releases.llvm.org/4.0.0/tools/lld/docs/ReleaseNotes.html>

Thanks to Ed Maste, Jan Beich, Antoine Brodin and Eric Fiselier for
their help.

Relnotes: yes
Exp-run: antoine
PR: 215969, 216008

MFC r314708:

For now, revert r287232 from upstream llvm trunk (by Daniil Fukalov):

  [SCEV] limit recursion depth of CompareSCEVComplexity

  Summary:
  CompareSCEVComplexity goes too deep (50+ on a quite a big unrolled
  loop) and runs almost infinite time.

  Added cache of "equal" SCEV pairs to earlier cutoff of further
  estimation. Recursion depth limit was also introduced as a parameter.

  Reviewers: sanjoy

  Subscribers: mzolotukhin, tstellarAMD, llvm-commits

  Differential Revision: https://reviews.llvm.org/D26389

This commit is the cause of excessive compile times on skein_block.c
(and possibly other files) during kernel builds on amd64.

We never saw the problematic behavior described in this upstream commit,
so for now it is better to revert it.  An upstream bug has been filed
here: https://bugs.llvm.org/show_bug.cgi?id=32142

Reported by: mjg

MFC r314795:

Reapply r287232 from upstream llvm trunk (by Daniil Fukalov):

  [SCEV] limit recursion depth of CompareSCEVComplexity

  Summary:
  CompareSCEVComplexity goes too deep (50+ on a quite a big unrolled
  loop) and runs almost infinite time.

  Added cache of "equal" SCEV pairs to earlier cutoff of further
  estimation. Recursion depth limit was also introduced as a parameter.

  Reviewers: sanjoy

  Subscribers: mzolotukhin, tstellarAMD, llvm-commits

  Differential Revision: https://reviews.llvm.org/D26389

Pull in r296992 from upstream llvm trunk (by Sanjoy Das):

  [SCEV] Decrease the recursion threshold for CompareValueComplexity

  Fixes PR32142.

  r287232 accidentally increased the recursion threshold for
  CompareValueComplexity from 2 to 32.  This change reverses that
  change by introducing a separate flag for CompareValueComplexity's
  threshold.

The latter revision fixes the excessive compile times for skein_block.c.

MFC r314907 | mmel | 2017-03-08 12:40:27 +0100 (Wed, 08 Mar 2017) | 7 lines

Unbreak ARMv6 world.

The new compiler_rt library imported with clang 4.0.0 have several fatal
issues (non-functional __udivsi3 for example) with ARM specific instrict
functions. As temporary workaround, until upstream solve these problems,
disable all thumb[1][2] related feature.

MFC r315016:

Update clang, llvm, lld, lldb, compiler-rt and libc++ to 4.0.0 release.
We were already very close to the last release candidate, so this is a
pretty minor update.

Relnotes: yes

MFC r316005:

Revert r314907, and pull in r298713 from upstream compiler-rt trunk (by
Weiming Zhao):

  builtins: Select correct code fragments when compiling for Thumb1/Thum2/ARM ISA.

  Summary:
  Value of __ARM_ARCH_ISA_THUMB isn't based on the actual compilation
  mode (-mthumb, -marm), it reflect's capability of given CPU.

  Due to this:
   - use  __tbumb__ and __thumb2__ insteand of __ARM_ARCH_ISA_THUMB
   - use '.thumb' directive consistently  in all affected files
   - decorate all thumb functions using
     DEFINE_COMPILERRT_THUMB_FUNCTION()

  ---------
  Note: This patch doesn't fix broken Thumb1 variant of __udivsi3 !

  Reviewers: weimingz, rengolin, compnerd

  Subscribers: aemerson, dim

  Differential Revision: https://reviews.llvm.org/D30938

Discussed with: mmel

7 years agoRFC: 312593, 313958
bapt [Sun, 2 Apr 2017 15:13:35 +0000 (15:13 +0000)]
RFC: 312593, 313958

Update mandoc to 1.14

7 years agoMFC: r315086 (by jhb)
bapt [Sun, 2 Apr 2017 15:04:26 +0000 (15:04 +0000)]
MFC: r315086 (by jhb)

Fix removal of /usr/share/info.

- The GNU as manual is named as.info.gz.
- Remove the generated /usr/share/info/dir file.

Reported by: "Herbert J. Skuhra" <herbert@mailbox.org>

7 years agoMFC r315709: Switch from using periph_links to sim_links.
mav [Sun, 2 Apr 2017 11:00:47 +0000 (11:00 +0000)]
MFC r315709: Switch from using periph_links to sim_links.

periph_links field belongs to periph drivers and must not be used here.

7 years agoMFC r315682, r315683: Remove some dead code left after r246713.
mav [Sun, 2 Apr 2017 10:58:55 +0000 (10:58 +0000)]
MFC r315682, r315683: Remove some dead code left after r246713.

7 years agoMFC r315681: Improve command timeout handling.
mav [Sun, 2 Apr 2017 10:57:19 +0000 (10:57 +0000)]
MFC r315681: Improve command timeout handling.

Let firmware do its best first, and if it can't, try software recovery.
I would remove software timeout handler completely, but found bunch of
complains on command timeout on sparc64 mailing list few years ago, so
better be safe in case of interrupt loss.

7 years agoMFC r315678: Remove questionable reqp->req_time access.
mav [Sun, 2 Apr 2017 10:55:40 +0000 (10:55 +0000)]
MFC r315678: Remove questionable reqp->req_time access.

7 years agoMFC r315677: Clean/unify some macro usage.
mav [Sun, 2 Apr 2017 10:54:28 +0000 (10:54 +0000)]
MFC r315677: Clean/unify some macro usage.

7 years agoMFC r315587, r315652: Remove some dead/useless code.
mav [Sun, 2 Apr 2017 10:53:03 +0000 (10:53 +0000)]
MFC r315587, r315652: Remove some dead/useless code.

7 years agoMFC r315579, r315670: Add initial support for multiple MSI-X vectors.
mav [Sun, 2 Apr 2017 10:50:49 +0000 (10:50 +0000)]
MFC r315579, r315670: Add initial support for multiple MSI-X vectors.

For 24xx and above use 2 vectors (default and response queue).
For 26xx and above use 3 vectors (default, response and ATIO queues).
Due to global lock interrupt hardlers never run simultaneously now, but
at least this allows to save one regitster read per interrupt.

7 years agoMFC r315968:
kib [Sun, 2 Apr 2017 07:11:15 +0000 (07:11 +0000)]
MFC r315968:
Provide less laborius way to enable busdma DMAR to only short list of devices.

7 years agoMFC r313483:
asomers [Sun, 2 Apr 2017 03:08:25 +0000 (03:08 +0000)]
MFC r313483:

Fix setting birthtime in ZFS

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
* In zfs_freebsd_setattr, if the caller wants to set the birthtime,
  set the bits that zfs_settattr expects

* In zfs_setattr, if XAT_CREATETIME is set, set xoa_createtime,
  expected by zfs_xvattr_set.  The two levels of indirection seem
  excessive, but it minimizes diffs vs OpenZFS.

* In zfs_setattr, check for overflow of va_birthtime (from delphij)

* Remove red herring in zfs_getattr

sys/cddl/contrib/opensolaris/uts/common/sys/vnode.h
* Un-booby-trap some macros

New tests are under review at https://github.com/pjd/pjdfstest/pull/6

Reviewed by: avg
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D9353

7 years agoMFC r314056:
asomers [Sun, 2 Apr 2017 03:00:50 +0000 (03:00 +0000)]
MFC r314056:

Improve pjdfstest run instructions

In the Kyua era, it's no longer necessary to set PJDFSTEST_TEST_PATH.  Just
use TMPDIR instead.

Reviewed by: ngie
MFC after: 3 weeks
Relnotes: yes
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D9340

7 years agoMFC r315041
asomers [Sun, 2 Apr 2017 02:16:39 +0000 (02:16 +0000)]
MFC r315041

Increase WARNS for pw tests

ATF tests have a default WARNS of 0, unlike other usermode programs.

Reviewed by:  ngie, julian
MFC after:    3 weeks
Sponsored by: Spectra Logic Corporation
Differential Revision:        https://reviews.freebsd.org/D9933

7 years agoMFC r315040
asomers [Sun, 2 Apr 2017 02:16:01 +0000 (02:16 +0000)]
MFC r315040

Increase WARNS for rtld-elf tests

ATF tests have a default WARNS of 0, unlike other usermode programs.

Reviewed by:  ngie, julian
MFC after:    3 weeks
Sponsored by: Spectra Logic Corporation
Differential Revision:        https://reviews.freebsd.org/D9933

7 years agoMFC r315039
asomers [Sun, 2 Apr 2017 02:15:25 +0000 (02:15 +0000)]
MFC r315039

Increase WARNS for libutil tests

ATF tests have a default WARNS of 0, unlike other usermode programs.

Reviewed by:  ngie, julian
MFC after:    3 weeks
Sponsored by: Spectra Logic Corporation
Differential Revision:        https://reviews.freebsd.org/D9933

7 years agoMFC r315038
asomers [Sun, 2 Apr 2017 02:14:44 +0000 (02:14 +0000)]
MFC r315038

Increase WARNS for libproc tests

ATF tests have a default WARNS of 0, unlike other usermode programs.

Reviewed by:  ngie, julian
MFC after:    3 weeks
Sponsored by: Spectra Logic Corporation
Differential Revision:        https://reviews.freebsd.org/D9933

7 years agoMFC r315036
asomers [Sun, 2 Apr 2017 02:12:27 +0000 (02:12 +0000)]
MFC r315036

Increase WARNS for libmp tests

ATF tests have a default WARNS of 0, unlike other usermode programs.

Reviewed by:  ngie, julian
MFC after:    3 weeks
Sponsored by: Spectra Logic Corporation
Differential Revision:        https://reviews.freebsd.org/D9933

7 years agoMFC r315035
asomers [Sun, 2 Apr 2017 02:11:53 +0000 (02:11 +0000)]
MFC r315035

Increase WARNS for libcrypt tests

ATF tests have a default WARNS of 0, unlike other usermode programs.

Reviewed by:  ngie, julian
MFC after:    3 weeks
Sponsored by: Spectra Logic Corporation
Differential Revision:        https://reviews.freebsd.org/D9933

7 years agoMFC r315034
asomers [Sun, 2 Apr 2017 02:11:13 +0000 (02:11 +0000)]
MFC r315034

Document that the msun tests require WARNS=0

ATF tests have a default WARNS of 0, unlike other usermode programs.  This
change is technically a noop, but it documents that the msun tests don't
work with any warnings enabled, at least not on all architectures.

Reviewed by:  ngie
MFC after:    3 weeks
Sponsored by: Spectra Logic Corporation
Differential Revision:        https://reviews.freebsd.org/D9933

7 years agoMFC r315033
asomers [Sun, 2 Apr 2017 02:10:19 +0000 (02:10 +0000)]
MFC r315033

Increase WARNS for nss tests

ATF tests have a default WARNS of 0, unlike other usermode programs.

Reviewed by:  ngie
MFC after:    3 weeks
Sponsored by: Spectra Logic Corporation
Differential Revision:        https://reviews.freebsd.org/D9933

7 years agoMFC r315032
asomers [Sun, 2 Apr 2017 02:09:39 +0000 (02:09 +0000)]
MFC r315032

Increase WARNS for iconv tests

ATF tests have a default WARNS of 0, unlike other usermode programs.

Reviewed by: ngie
MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation
Differential Revision: https://reviews.freebsd.org/D9933

7 years agoMFC r314963:
asomers [Sat, 1 Apr 2017 21:53:58 +0000 (21:53 +0000)]
MFC r314963:

Fix harmless mismerge from r286964

MFC after: 3 days
Sponsored by: Spectra Logic Corp

7 years agoMFC r314947:
asomers [Sat, 1 Apr 2017 21:06:22 +0000 (21:06 +0000)]
MFC r314947:

Slight rewording in nvme(4)

Reviewed by: jimharris, imp
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D9927

7 years agoMFC r314341:
asomers [Sat, 1 Apr 2017 20:51:22 +0000 (20:51 +0000)]
MFC r314341:

Update devd.conf for ports change 421360

Ports change 421360 changed the name and UID of the postgres user

Reviewed by: trasz, imp, girgen
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D9746

7 years agoMFC r310146,r311912,r312369,r312617,r312614,r312659,r312974,r312977,r313005,r314826:
jhibbits [Sat, 1 Apr 2017 19:27:06 +0000 (19:27 +0000)]
MFC r310146,r311912,r312369,r312617,r312614,r312659,r312974,r312977,r313005,r314826:

  A series of Clang-related powerpc commits

  r310146:
    Use the right bitwise OR operation for clearing single-step at trap time.
  r311912:
    Force all TOC references in asm to include '@toc'
  r312369:
    Use the explicit expanded form of cmp.
  r312617:
    Hide the 'MOREARGS' macro, it conflicts with contrib code, and is only used
    in one file.
  r312614:
    Don't pass -Wa,-many through clang, the integrated as doesn't support it.
  r312659:
    Avoid using non-zero argument for __builtin_frame_address().
  r312974:
    Add a INTR_TRIG_INVALID, and use it in the powerpc interrupt code.
  r312977:
    Force the setting of bit 7 in the sysmouse packet byte 1 to be unsigned.
  r313005:
    Update CFLAGS for clang compatibility
  r314826:
    Clang in base now supports -mlongcall, so remove this hack

7 years agoMFC r314885:
jhibbits [Sat, 1 Apr 2017 18:52:48 +0000 (18:52 +0000)]
MFC r314885:

  Fix booting with >4GB RAM on PowerMac G5 hardware

  ===
  From Nathan Whitehorn:

  Open Firmware runs in virtual mode on the Powermac G5. This runs inside
  the
  kernel page table, which preserves all address translations made by OF
  before
  the kernel starts; as a result, the kernel address space is a strict
  superset of
  OF's.

  Where this explodes is if OF uses an unmapped SLB entry. The SLB
  fault handler
  runs in real mode and refers to the PCPU pointer in SPRG0,
  which blows up the
  kernel. Having a value of SPRG0 that works for the kernel is
  less fatal than
  preserving OF's value in this case.

  ===

  The result of this is seemingly random panics from
  NULL dereferences, or hangs
  immediately upon boot.  By not restoring SPRG0 for
  Open Firmware entry the
  kernel PCPU pointer is preserved and SLB faults
  are successful, resulting in a
  stable kernel.

PR: 205458

7 years agoMFC r313994:
trasz [Sat, 1 Apr 2017 17:15:53 +0000 (17:15 +0000)]
MFC r313994:

Simplify devfs_fsync() by removing it. This might also be a minor
optimization, as vn_isdisk() needs to lock a global mutex.

Sponsored by: DARPA, AFRL

7 years agoMFC r313994:
trasz [Sat, 1 Apr 2017 17:13:00 +0000 (17:13 +0000)]
MFC r313994:

Change the "devfs_fsync: vop_stdfsync failed" from panic to a printf.
It's not a proper fix, but should be better than what we have now.
Since it got broken some six months ago it results in an incredibly
annoying and trivially reproducible panic every time eg an USB disk
gets disconnected.

Sponsored by: DARPA, AFRL

7 years agoMFC r314046:
trasz [Sat, 1 Apr 2017 17:09:55 +0000 (17:09 +0000)]
MFC r314046:

Get rid of foo_sys() in linuxulator code.  It was commented out, and it
would be useless anyway - there is no point in pretending to have block
devices; our "block" devices are in fact character ones, and can only
be accessed as such.

Sponsored by: DARPA, AFRL

7 years agoMFC r313769:
trasz [Sat, 1 Apr 2017 17:07:09 +0000 (17:07 +0000)]
MFC r313769:

Fix definition of linux64 ptrace syscall.

Relnotes: yes
Sponsored by: DARPA, AFRL

7 years agoMFC r314148, r314150
asomers [Sat, 1 Apr 2017 16:51:49 +0000 (16:51 +0000)]
MFC r314148, r314150

r314148:
Misc Coverity fixes in xnb(4)

Most of these are null pointer dereferences or missing error checks in the
unit tests. One is a missing error check in xnb_attach_failed. None can
cause real problems in running systems.

Reported by: Coverity
CIDs: 1092469 1092468 1092467 2092466 1092465 1092512 1092511 1092510
CIDs: 1092510 1092509 1092508 1092507
Reviewed by: royger
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D9234

r314150:
Fix the xnb(4) unit tests

One test was inadvertently expecting a bug in the kernel's sscanf
implementation circa 2012. I don't know when that bug got fixed.

Reported by: royger
Reviewed by: royger
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D9766

7 years agoMFC r313770:
trasz [Sat, 1 Apr 2017 16:38:20 +0000 (16:38 +0000)]
MFC r313770:

Regen after r313769.

Sponsored by: DARPA, AFRL

7 years agoMFC r313769:
trasz [Sat, 1 Apr 2017 16:35:42 +0000 (16:35 +0000)]
MFC r313769:

Fix definition of linux64 ptrace syscall.

Sponsored by: DARPA, AFRL

7 years agoMFC r313069:
asomers [Sat, 1 Apr 2017 16:22:07 +0000 (16:22 +0000)]
MFC r313069:

Allow 999.local to run scripts in any language

If one of the scripts listed in (daily|weekly|monthly)_local is executable,
999.local should simply execute it. Only if the script isn't executable
should 999.local assume it needs /bin/sh.

Reviewed by: brian
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp

7 years agoMFC r315947:
dim [Sat, 1 Apr 2017 11:24:34 +0000 (11:24 +0000)]
MFC r315947:

Import libcxxrt master 8a853717e61d5d55cbdf74d9d0a7545da5d5ff92.

Interesting fixes which were not already merged:
0c7c611 Merge C++ demangler bug fixes from ELF Tool Chain (#40)
2b208d9 __cxa_demangle_gnu3: demangle 'z' as '...', not 'ellipsis' (#41)

7 years agoMFC r316133:
ae [Sat, 1 Apr 2017 10:02:36 +0000 (10:02 +0000)]
MFC r316133:
  Fix bug in r308972 that leads to panic when non-compressed IPComp
  packet is received.

  Reported by: Denis Ahrens <denis h3q com>

7 years agoMFC r316061:
bapt [Sat, 1 Apr 2017 09:33:22 +0000 (09:33 +0000)]
MFC r316061:

Update pci_vendors to 2017-03-16

7 years agoMFC r316060:
bapt [Sat, 1 Apr 2017 09:31:20 +0000 (09:31 +0000)]
MFC r316060:

Import tzdata 2017b

7 years agoMFC: r315912 (by eugen@) and r315935
bapt [Sat, 1 Apr 2017 09:27:00 +0000 (09:27 +0000)]
MFC: r315912 (by eugen@) and r315935

Properly initialise with content of pw.conf(5) that was mistakenly ignored.
Also, respect "defaultgroup" if specified there.

Add a regression test

PR: 217934
Reported by: Victor Sudakov <vas@mpeks.tomsk.su>

7 years agoMFC r315934:
kib [Sat, 1 Apr 2017 08:40:47 +0000 (08:40 +0000)]
MFC r315934:
Avoid leaking allocated but unused context after creation race.