]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
3 years agoFix USB HID descriptor parsing error.
gordon [Tue, 9 Jun 2020 16:13:54 +0000 (16:13 +0000)]
Fix USB HID descriptor parsing error.

Approved by: so
Approved by: re (implicit)
Security: FreeBSD-SA-20:17.usb
Security: CVE-2020-7456

3 years agoAdd UPDATING entries and bump version.
gordon [Tue, 12 May 2020 17:00:23 +0000 (17:00 +0000)]
Add UPDATING entries and bump version.

Approved by: so
Approved by: re (implicit)

3 years agoFix use after free in cryptodev module.
gordon [Tue, 12 May 2020 16:57:47 +0000 (16:57 +0000)]
Fix use after free in cryptodev module.

Approved by: so
Security: FreeBSD-SA-20:15.cryptodev
Security: CVE-2019-15879

3 years agoFix improper checking in SCTP-AUTH shared key update.
gordon [Tue, 12 May 2020 16:55:32 +0000 (16:55 +0000)]
Fix improper checking in SCTP-AUTH shared key update.

Approved by: so
Security: FreeBSD-SA-20:14.sctp
Security: CVE-2019-15878

3 years agoFix memory disclosure vulnerability in libalias.
gordon [Tue, 12 May 2020 16:54:39 +0000 (16:54 +0000)]
Fix memory disclosure vulnerability in libalias.

Approved by: so
Approved by: re (implicit)
Security: FreeBSD-SA-20:13.libalias
Security: CVE-2020-7455

3 years agoFix insufficient packet length validation in libalias.
gordon [Tue, 12 May 2020 16:51:11 +0000 (16:51 +0000)]
Fix insufficient packet length validation in libalias.

Approved by: so
Approved by: re (implicit)
Security: FreeBSD-SA-20:12.libalias
Security: CVE-2020-7454

3 years agoUpdate to tzdata 2020a.
gordon [Tue, 12 May 2020 16:44:13 +0000 (16:44 +0000)]
Update to tzdata 2020a.

Approved by: so
Security: EN-20:08.tzdata

4 years agoMF11 r352638,r358076: correct Clang and lld version checks
emaste [Wed, 29 Apr 2020 18:59:37 +0000 (18:59 +0000)]
MF11 r352638,r358076: correct Clang and lld version checks

r352638 (mhorne): Allow for compiler versions >= 10
r358076 (dim): Correctly recognize linker versions greater than 10.0.

These routines determine the host compiler and linker version, and caused
attempts to build 12.1-RELEASE on 13-CURRENT to fail after the latter was
updated to Clang 10.  The host compiler version was also misdetected on
11.3 although it seems not to have caused the same build failure there.

We don't guarantee such a build config to work, but it is used by FreeBSD
ports build processes.  As a result the fixes from stable/11 will be
included with the next set of advisories, and are being committed to the
releng branch now to unblock ports builds.

PR: 245973
Reported by: sbruno, antoine
Approved by: so
Errata: EN-20:10.build
Sponsored by: The FreeBSD Foundation

4 years agoAdd UPDATING entries and bump version.
gordon [Tue, 21 Apr 2020 15:54:08 +0000 (15:54 +0000)]
Add UPDATING entries and bump version.

Approved by: so

4 years agoFix ipfw invalid mbuf handling.
gordon [Tue, 21 Apr 2020 15:52:22 +0000 (15:52 +0000)]
Fix ipfw invalid mbuf handling.

Approved by: so
Security: FreeBSD-SA-20:10.ipfw
Security: CVE-2019-5614
Security: CVE-2019-15874

4 years agoFix regression in rpc.rquotad with certain NFS servers.
gordon [Tue, 21 Apr 2020 15:50:57 +0000 (15:50 +0000)]
Fix regression in rpc.rquotad with certain NFS servers.

Approved by: so
Security: FreeBSD-EN-20:07.quotad

4 years agoAdd UPDATING entries and bump version.
gordon [Thu, 19 Mar 2020 17:01:57 +0000 (17:01 +0000)]
Add UPDATING entries and bump version.

Approved by: so

4 years agoFix multiple denial of service in ntpd.
gordon [Thu, 19 Mar 2020 16:52:41 +0000 (16:52 +0000)]
Fix multiple denial of service in ntpd.

Approved by: so
Security: FreeBSD-SA-20:09.ntp

4 years agoFix kernel memory disclosure with nested jails.
gordon [Thu, 19 Mar 2020 16:51:33 +0000 (16:51 +0000)]
Fix kernel memory disclosure with nested jails.

Approved by: so
Security: FreeBSD-SA-20:08.jail
Security: CVE-2020-7453

4 years agoFix incorrect user-controlled pointer use in epair.
gordon [Thu, 19 Mar 2020 16:50:36 +0000 (16:50 +0000)]
Fix incorrect user-controlled pointer use in epair.

Approved by: so
Security: FreeBSD-SA-20:07.epair
Security: CVE-2020-7452

4 years agoFix insufficient oce(4) ioctl(2) privilege checking.
gordon [Thu, 19 Mar 2020 16:48:29 +0000 (16:48 +0000)]
Fix insufficient oce(4) ioctl(2) privilege checking.

Approved by: so
Security: FreeBSD-SA-20:05.if_oce_ioctl
Security: CVE-2019-15876

4 years agoFix TCP IPv6 SYN cache kernel information disclosure.
gordon [Thu, 19 Mar 2020 16:46:01 +0000 (16:46 +0000)]
Fix TCP IPv6 SYN cache kernel information disclosure.

Approved by: so
Security: FreeBSD-SA-20:04.tcp
Security: CVE-2020-7451

4 years agoFix incorrect checksum calculations with IPv6 extension headers.
gordon [Thu, 19 Mar 2020 16:43:37 +0000 (16:43 +0000)]
Fix incorrect checksum calculations with IPv6 extension headers.

Approved by: so
Security: FreeBSD-EN-20:06.ipv6

4 years agoFix missing pfctl(8) tunable.
gordon [Thu, 19 Mar 2020 16:35:15 +0000 (16:35 +0000)]
Fix missing pfctl(8) tunable.

Approved by: so
Security: FreeBSD-EN-20:04.pfctl

4 years agoAdd UPDATING entries and bump version.
gordon [Tue, 28 Jan 2020 18:58:37 +0000 (18:58 +0000)]
Add UPDATING entries and bump version.

Approved by: so

4 years agoFix kernel stack data disclosure
gordon [Tue, 28 Jan 2020 18:57:45 +0000 (18:57 +0000)]
Fix kernel stack data disclosure

Reported by: Ilja Van Sprundel
Approved by: so
Security: FreeBSD-SA-20:03.thrmisc
Security: CVE-2019-15875

4 years agoFix libfetch buffer overflow
gordon [Tue, 28 Jan 2020 18:55:25 +0000 (18:55 +0000)]
Fix libfetch buffer overflow

Reported by: Duncan Overbruck
Approved by: so
Security: FreeBSD-SA-20:01.libfetch
Security: CVE-2020-7450

4 years agoFix nmount invalid pointer dereference
gordon [Tue, 28 Jan 2020 18:54:15 +0000 (18:54 +0000)]
Fix nmount invalid pointer dereference

Submitted by: Andrew Turner
Approved by: so
Security: FreeBSD-EN-20:02.nmount

4 years agoFix imprecise ordering of SSP canary initialization
gordon [Tue, 28 Jan 2020 18:53:14 +0000 (18:53 +0000)]
Fix imprecise ordering of SSP canary initialization

Submitted by: Kyle Evans
Approved by: so
Security: FreeBSD-EN-20:01.ssp

4 years agoAdd UPDATING entries and bump version numbers.
gordon [Tue, 12 Nov 2019 18:13:51 +0000 (18:13 +0000)]
Add UPDATING entries and bump version numbers.

Approved by: so

4 years agoFix Machine Check Exception on Page Size Change.
gordon [Tue, 12 Nov 2019 18:13:04 +0000 (18:13 +0000)]
Fix Machine Check Exception on Page Size Change.

Approved by: so
Security: FreeBSD-SA-19:25.mcepsc
Security: CVE-2018-12207

4 years agoImport tzdata 2019c.
gordon [Wed, 23 Oct 2019 03:25:32 +0000 (03:25 +0000)]
Import tzdata 2019c.

Approved by: so
Security: FreeBSD-EN-19:18.tzdata

4 years agoThat's EN-19:17.ipfw. It's not an SA.
gordon [Tue, 20 Aug 2019 18:02:37 +0000 (18:02 +0000)]
That's EN-19:17.ipfw. It's not an SA.

Reported by: kevans@
Approved by: so

4 years agoBump version information and add UPDATING entries.
gordon [Tue, 20 Aug 2019 17:52:28 +0000 (17:52 +0000)]
Bump version information and add UPDATING entries.

Approved by: so

4 years agoFix reference count overflow in mqueuefs.
gordon [Tue, 20 Aug 2019 17:51:32 +0000 (17:51 +0000)]
Fix reference count overflow in mqueuefs.

Approved by: so
Security: FreeBSD-SA-19:24.mqueuefs
Security: CVE-2019-5603

4 years agoFix kernel memory disclosure from /dev/midistat.
gordon [Tue, 20 Aug 2019 17:50:33 +0000 (17:50 +0000)]
Fix kernel memory disclosure from /dev/midistat.

Approved by: so
Security: FreeBSD-SA-19:23.midi
Security: CVE-2019-5612

4 years agoFix IPv6 remote denial of service.
gordon [Tue, 20 Aug 2019 17:49:33 +0000 (17:49 +0000)]
Fix IPv6 remote denial of service.

Approved by: so
Security: FreeBSD-SA-19:22.mbuf
Security: CVE-2019-5611

4 years agoFix ipfw(8) jail keyword prior to jail startup.
gordon [Tue, 20 Aug 2019 17:46:40 +0000 (17:46 +0000)]
Fix ipfw(8) jail keyword prior to jail startup.

Approved by: so
Security: FreeBSD-EN-19:17.ipfw

4 years agoAdd bhyve instruction emulation improvements (opcode 03H and F7H).
gordon [Tue, 20 Aug 2019 17:45:44 +0000 (17:45 +0000)]
Add bhyve instruction emulation improvements (opcode 03H and F7H).

Approved by: so
Security: FreeBSD-EN-19:16.bhyve

4 years agoBump version information and add UPDATING entries.
gordon [Tue, 6 Aug 2019 17:14:09 +0000 (17:14 +0000)]
Bump version information and add UPDATING entries.

Approved by: so

4 years agoFix insufficient validation of guest-supplied data (e1000 device).
gordon [Tue, 6 Aug 2019 17:13:17 +0000 (17:13 +0000)]
Fix insufficient validation of guest-supplied data (e1000 device).

Approved by: so
Security: FreeBSD-SA-19:21.bhyve
Security: CVE-2019-5609

4 years agoFix insufficient message length validation in bsnmp library.
gordon [Tue, 6 Aug 2019 17:12:17 +0000 (17:12 +0000)]
Fix insufficient message length validation in bsnmp library.

Approved by: so
Security: FreeBSD-SA-19:20.bsnmp
Security: CVE-2019-5610

4 years agoFix ICMPv6 / MLDv2 out-of-bounds memory access.
gordon [Tue, 6 Aug 2019 17:11:17 +0000 (17:11 +0000)]
Fix ICMPv6 / MLDv2 out-of-bounds memory access.

Approved by: so
Security: FreeBSD-SA-19:19.mldv2
Security: CVE-2019-5608

4 years agoFix multiple vulnerabilities in bzip2.
gordon [Tue, 6 Aug 2019 17:09:47 +0000 (17:09 +0000)]
Fix multiple vulnerabilities in bzip2.

Approved by: so
Security: FreeBSD-SA-19:18.bzip2
Security: CVE-2016-3189
Security: CVE-2019-12900

4 years agoBump version information and update UPDATING.
gordon [Wed, 24 Jul 2019 12:58:21 +0000 (12:58 +0000)]
Bump version information and update UPDATING.

Approved by: so

4 years agoFix file descriptor reference count leak.
gordon [Wed, 24 Jul 2019 12:57:49 +0000 (12:57 +0000)]
Fix file descriptor reference count leak.

Approved by: so
Security: FreeBSD-SA-19:17.fd
Security: CVE-2019-5607

4 years agoFix byhve out-of-bounds read in XHCI device.
gordon [Wed, 24 Jul 2019 12:56:06 +0000 (12:56 +0000)]
Fix byhve out-of-bounds read in XHCI device.

Approved by: so
Security: FreeBSD-SA-19:16.bhyve
Security: CVE-2019-5604

4 years agoFix reference count overflow in mqueuefs.
gordon [Wed, 24 Jul 2019 12:55:16 +0000 (12:55 +0000)]
Fix reference count overflow in mqueuefs.

Approved by: so
Security: FreeBSD-SA-19:15.mqueuefs
Security: CVE-2019-5603

4 years agoFix kernel memory disclosure in freebsd32_ioctl.
gordon [Wed, 24 Jul 2019 12:54:10 +0000 (12:54 +0000)]
Fix kernel memory disclosure in freebsd32_ioctl.

Approved by: so
Security: FreeBSD-SA-19:14.freebsd32
Security: CVE-2019-5605

4 years agoFix pts write-after-free.
gordon [Wed, 24 Jul 2019 12:53:06 +0000 (12:53 +0000)]
Fix pts write-after-free.

Approved by: so
Security: FreeBSD-SA-19:13.pts
Security: CVE-2019-5606

4 years agoFix multiple telnet client vulnerabilities.
gordon [Wed, 24 Jul 2019 12:51:52 +0000 (12:51 +0000)]
Fix multiple telnet client vulnerabilities.

Approved by: so
Security: FreeBSD-SA-19:12.telnet
Security: CVE-2019-0053

4 years agoFix panic from Intel CPU vulnerability mitigation.
gordon [Wed, 24 Jul 2019 12:50:46 +0000 (12:50 +0000)]
Fix panic from Intel CPU vulnerability mitigation.

Approved by: so
Security: FreeBSD-EN-19:13.mds

4 years ago- Switch releng/11.3 to -RELEASE.
gjb [Thu, 4 Jul 2019 23:58:11 +0000 (23:58 +0000)]
- Switch releng/11.3 to -RELEASE.
- Add the anticipated 11.3-RELEASE date to UPDATING.
- Set a static __FreeBSD_version.

Approved by: re (implicit)
Sponsored by: Rubicon Communications, LLC (Netgate)

4 years agoDocument three open issues affecting 11.3-RELEASE.
gjb [Thu, 4 Jul 2019 17:15:36 +0000 (17:15 +0000)]
Document three open issues affecting 11.3-RELEASE.

Approved by: re (implicit)
Sponsored by: Rubicon Communications, LLC (Netgate)

4 years agoDocument SA-19:09, SA-19:11.
gjb [Wed, 3 Jul 2019 01:04:11 +0000 (01:04 +0000)]
Document SA-19:09, SA-19:11.

Approved by: re (implicit)
Sponsored by: Rubicon Communications, LLC (Netgate)

4 years agoDocument r349620, tzdata 2019b.
gjb [Wed, 3 Jul 2019 00:58:10 +0000 (00:58 +0000)]
Document r349620, tzdata 2019b.

Approved by: re (implicit)
Sponsored by: Rubicon Communications, LLC (Netgate)

4 years agoUpdate UPDATING and bump newvers.sh
gordon [Wed, 3 Jul 2019 00:04:50 +0000 (00:04 +0000)]
Update UPDATING and bump newvers.sh

Approved by: so
Approved by: re (implicit)

4 years agoFix privilege escalation in cd(4) driver.
gordon [Wed, 3 Jul 2019 00:03:55 +0000 (00:03 +0000)]
Fix privilege escalation in cd(4) driver.

Approved by: so
Approved by: re (implicit)
Security: FreeBSD-SA-19:11.cd_ioctl
Security: CVE-2019-5602

4 years agoFix iconv buffer overflow.
gordon [Wed, 3 Jul 2019 00:00:39 +0000 (00:00 +0000)]
Fix iconv buffer overflow.

Approved by: so
Approved by: re (implicit)
Security: FreeBSD-SA-19:09.iconv

4 years agoImport tzdata 2019b.
gordon [Tue, 2 Jul 2019 23:59:45 +0000 (23:59 +0000)]
Import tzdata 2019b.

Approved by: so
Approved by: re (implicit)
Security: FreeBSD-EN-19:12.tzdata

4 years agoUpdate releng/11.3 to RC3 as part of the 11.3-RELEASE cycle.
gjb [Fri, 28 Jun 2019 00:00:02 +0000 (00:00 +0000)]
Update releng/11.3 to RC3 as part of the 11.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: Rubicon Communications, LLC (Netgate)

4 years agoMFC r349376: Fix strsep_quote() on strings without quotes.
mav [Thu, 27 Jun 2019 14:26:57 +0000 (14:26 +0000)]
MFC r349376: Fix strsep_quote() on strings without quotes.

For strings without quotes and escapes dstptr and srcptr are equal, so
zeroing *dstptr before checking *srcptr is not a good idea.  In practice
it means that in -maproot=65534:65533 everything after the colon is lost.

The problem was there since r293305, but before r346976 it was covered by
improper strsep_quote() usage.

PR: 238725

Approved by: re (gjb)

4 years agoMerge from stable/11:
ae [Wed, 26 Jun 2019 17:21:30 +0000 (17:21 +0000)]
Merge from stable/11:
  Fix the uninitialized use of source IPv6 address in NAT64LSN.

  This code is already refactored in head/, but due to the missing
  epoch(9) support it is impossible to merge. So, it is direct commit to
  stable/11.

  Reported by: Patrick M. Hausen <hausen punkt de>
  Tested by: Patrick M. Hausen <hausen punkt de>
Approved by: re (kib, gjb)

4 years agoBump the release.manpath.freebsd macro version, although I do not
gjb [Wed, 26 Jun 2019 15:16:23 +0000 (15:16 +0000)]
Bump the release.manpath.freebsd macro version, although I do not
see any place this is actually used.

Approved by: re (implicit)
Sponsored by: Rubicon Communications, LLC (Netgate)

4 years agoConnect the installation page to the build.
gjb [Tue, 25 Jun 2019 19:36:01 +0000 (19:36 +0000)]
Connect the installation page to the build.

Approved by: re (implicit)
Sponsored by: Rubicon Communications, LLC (Netgate)

4 years agoRelease notes documentation:
gjb [Tue, 25 Jun 2019 19:36:00 +0000 (19:36 +0000)]
Release notes documentation:
- Update version numbers in the installation page.

Approved by: re (implicit)
Sponsored by: Rubicon Communications, LLC (Netgate)

4 years agoRelease notes documentation:
gjb [Tue, 25 Jun 2019 19:35:58 +0000 (19:35 +0000)]
Release notes documentation:
- Add versions of ports-mgmt/pkg, x11/gnome3, and x11/kde5.

Approved by: re (implicit)
Sponsored by: Rubicon Communications, LLC (Netgate)

4 years agoRelease notes documentation:
gjb [Tue, 25 Jun 2019 19:35:57 +0000 (19:35 +0000)]
Release notes documentation:
- Remove empty sections.

Approved by: re (implicit)
Sponsored by: Rubicon Communications, LLC (Netgate)

4 years agoRelease notes documentation:
gjb [Tue, 25 Jun 2019 19:35:56 +0000 (19:35 +0000)]
Release notes documentation:
- r338938, oce(4) version 11.0.50.0.
- r341987, mlx4en(4) and mlx5en(4) version 3.5.0.
- r349181, ixl(4) and ixlv(4) version 1.11.9 and 1.5.8.

Approved by: re (implicit)
Sponsored by: Rubicon Communications, LLC (Netgate)

4 years agoRelease notes documentation:
gjb [Mon, 24 Jun 2019 19:52:08 +0000 (19:52 +0000)]
Release notes documentation:
- r347037, virtual machine image reduction, and note how to resize
           the images.
- r346479, init_exec kenv(1) variable addition.
- r346518, spi(8) addition.
- r348482, deprecated IPSec algorithm warnings.
- r347962, driver deprecations.

Approved by: re (implicit)
Sponsored by: Rubicon Communications, LLC (Netgate)

4 years agoUpdate releng/11.3 to RC2 as part of the 11.3-RELEASE cycle.
gjb [Fri, 21 Jun 2019 00:01:12 +0000 (00:01 +0000)]
Update releng/11.3 to RC2 as part of the 11.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

4 years agoUpdate the pkg.conf used to populate the dvd1.iso to use
gjb [Wed, 19 Jun 2019 15:26:52 +0000 (15:26 +0000)]
Update the pkg.conf used to populate the dvd1.iso to use
the release_3 package set.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

4 years agoMFS r349163: ixl(4)/ixlv(4): Update Intel XL710 PF and VF drivers to ixl-1.11.9 and...
erj [Wed, 19 Jun 2019 00:37:54 +0000 (00:37 +0000)]
MFS r349163: ixl(4)/ixlv(4): Update Intel XL710 PF and VF drivers to ixl-1.11.9 and ixlv-1.5.8

Update the legacy (non-iflib) drivers in stable/11 with recent changes from the
Intel out-of-tree version.

Major changes:

- Support for new BASE-T device with additional link speeds (2.5G and 5G) and EEE
- Additional I2C access methods backported from ixl-iflib
- FW LLDP Agent control with sysctl added for X722 devices (this already
  existed for 710 devices)
- MAC/VLAN filters handling has been refactored
- Building and loading if_ixlv as a KLD has been fixed

This commit is not from CURRENT since the driver in 12/13 uses iflib, and the decision was
made to not use iflib in FreeBSD 11 releases.

Submitted by: Krzysztof Galazka <krzysztof.galazka@intel.com>
Approved by: re@ (gjb@)
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D20290

4 years agoPost-branch updates to release-related documentation:
gjb [Fri, 14 Jun 2019 00:30:52 +0000 (00:30 +0000)]
Post-branch updates to release-related documentation:

- Bump copyright years.
- Note in parenthesis 11.3 may be the last 11.x release.
- Prune stale errata items from 11.2-RELEASE.
- Fix mailing list in the readme page.
- Bump version numbers accordingly.

This has no effect or impact on the in-progress 11.3-RC1
build.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

4 years agoCopy stable/11@r349022 to releng/11.3 as part of the 11.3-RELEASE
gjb [Fri, 14 Jun 2019 00:03:48 +0000 (00:03 +0000)]
Copy stable/11@r349022 to releng/11.3 as part of the 11.3-RELEASE
cycle.
Update releng/11.3 from BETA3 to RC1.
Switch the default dvd1.iso pkg(8) repository from latest to
quarterly.
Bump __FreeBSD_version.
Prune vestigial svn:mergeinfo from the new branch.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

4 years agoRelease notes documentation:
gjb [Thu, 13 Jun 2019 19:51:48 +0000 (19:51 +0000)]
Release notes documentation:
- r346296, clang (and friends) 8.0.0.
- r346981, WPA 2.8.
- r348343, OpenSSL 1.0.2s.
- r348607, libarchive(3) updates.
- r348980, OpenPAM updates.
- r346855, cxgbe(4) hash filters, NAT offloading, SMAC/DMAC
           swapping filtering.
- r346940, cxgbe(4) T4/5/6 firmware update.
- r348588, geli(8) weak algorithm deprecation warnings.
- r346690, ZFS parallel mounting.
- r348753, deprecation warnings enabled.
- r346212, NAT64 CLAT support.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

4 years agoMFC r348682:
ae [Wed, 12 Jun 2019 16:34:02 +0000 (16:34 +0000)]
MFC r348682:
  Initialize V_nat64out methods explicitly.

  It looks like initialization of static variable doesn't work for
  VIMAGE and this leads to panic.

Approved by: re (gjb)

4 years agoMFH (r313975, r315909, r317827, r344533): upgrade to latest OpenPAM
des [Wed, 12 Jun 2019 01:53:14 +0000 (01:53 +0000)]
MFH (r313975, r315909, r317827, r344533): upgrade to latest OpenPAM

Approved by: re (gjb)

4 years agoMFC r348797:
hselasky [Tue, 11 Jun 2019 08:50:26 +0000 (08:50 +0000)]
MFC r348797:
Fix for reading the configuration descriptor in libusb. Catch invalid
configuration descriptor reads early on to avoid issues with devices
that don't check for a valid USB configuration read request.

Submitted by: takahiro.kurosawa@gmail.com
PR: 238412
Approved by: re (kib)

4 years agoMFC r348667:
cy [Tue, 11 Jun 2019 03:40:25 +0000 (03:40 +0000)]
MFC r348667:

While working on a PR, more are discovered.
Remove more #ifdefs missed in r343701.

Approved by: re (gjb@)

4 years agoMFC r348666:
cy [Tue, 11 Jun 2019 03:39:20 +0000 (03:39 +0000)]
MFC r348666:

Clean up #ifdefs from old unsupported releases of FreeBSD.

Approved by: re (gjb@)

4 years agoMFC r342747 (mmacy): zfsboot: support newer ZFS versions
kevans [Mon, 10 Jun 2019 16:36:31 +0000 (16:36 +0000)]
MFC r342747 (mmacy): zfsboot: support newer ZFS versions

declare v3 objset size/layout to fix userboot and possibly other loader
issues

- fix for userboot assertion failure in zfs_dev_close in free due to out of
  bounds write
- fix for zfs_alloc / zfs_free mismatch assertion failure when booting GPT
  on BIOS

Approved by: re (gjb)

4 years agoMFC r348569: [zfsboot] Fix boot env back compat (#190)
kevans [Mon, 10 Jun 2019 15:55:38 +0000 (15:55 +0000)]
MFC r348569: [zfsboot] Fix boot env back compat (#190)

* Fix boot env back compat

zfsboot must try zfsloader before loader in order to remain compatible
with boot environments created prior to zfs functionality being rolled
into loader proper.

* Improve comments in zfsboot

Explain the significance of the load path order, and put the comment
about looping through the paths in the appropriate scope.

Approved by: re (gjb)

4 years agoMFC r348510: bectl(8): Don't accept jid=0 from jail_getid
kevans [Mon, 10 Jun 2019 14:47:56 +0000 (14:47 +0000)]
MFC r348510: bectl(8): Don't accept jid=0 from jail_getid

This will trivially exist, but we don't want it - none of our jailed BEs
will have jid=0.

Approved by: re (gjb)

4 years agoMFC r348601:
slavash [Mon, 10 Jun 2019 13:44:29 +0000 (13:44 +0000)]
MFC r348601:
Fix prio vs. nonprio tagged traffic in RDMACM

In current RDMACM implementation RDMACM server will not find a GID
index when the request was prio-tagged and the sever is non
prio-tagged and vise-versa.
According to 802.1Q-2014, VLAN tagged packets with VLAN id 0 should
be considered as untagged. Treat RDMACM request the same.

Reviewed by:    hselasky, kib
Sponsored by:   Mellanox Technologies
Approved by:    re (gjb@)

4 years agoMFC r348631:
hselasky [Mon, 10 Jun 2019 13:36:12 +0000 (13:36 +0000)]
MFC r348631:
In usb(4) fix a lost completion event issue towards libusb(3). It may happen
if a USB transfer is cancelled that we need to fake a completion event.
Implement missing support in ugen_fs_copy_out() to handle this.

This fixes issues with webcamd(8) and firefox.

Approved by: re (gjb)
Sponsored by: Mellanox Technologies

4 years agoMFC r348604:
hselasky [Mon, 10 Jun 2019 13:15:49 +0000 (13:15 +0000)]
MFC r348604:
In xhci(4) there is no stream ID in the completion TRB.
Instead iterate all the stream IDs in stream mode to find
the matching USB transfer.

Approved by: re(kib)
Sponsored by: Mellanox Technologies

4 years agoMFC r348575:
cy [Mon, 10 Jun 2019 12:40:38 +0000 (12:40 +0000)]
MFC r348575:

Properly define the fourth argument to ipf_check, the main entry point
into ipfilter. A proper definition simplifies dtrace scripts a little.

Approved by: re (delphij@)

4 years agoMFC r348603:
hselasky [Sun, 9 Jun 2019 08:18:24 +0000 (08:18 +0000)]
MFC r348603:
Make sure the DMA tags get freed in mlx5en(4).

Approved by: re (gjb)
Sponsored by: Mellanox Technologies

4 years agoMFC r348718:
cy [Sun, 9 Jun 2019 02:32:52 +0000 (02:32 +0000)]
MFC r348718:

Whitespace adjustment.

Approved by: re (gjb@)

4 years agoMFC r348320:
cy [Sat, 8 Jun 2019 22:29:51 +0000 (22:29 +0000)]
MFC r348320:

Contuation of r343701, removal of irrelevant #ifdefs.

Approved by: re (gjb@)

4 years agoMFC r348312:
cy [Sat, 8 Jun 2019 22:28:28 +0000 (22:28 +0000)]
MFC r348312:

style(9)

Approved by: re (gjb@)

4 years agoMFC r348311:
cy [Sat, 8 Jun 2019 22:27:09 +0000 (22:27 +0000)]
MFC r348311:

Fix indentation and while at it simplfy the code.

Reported by: lwhsu@
Approved by: re (gjb@)

4 years agoMFC r348310:
cy [Sat, 8 Jun 2019 22:25:47 +0000 (22:25 +0000)]
MFC r348310:

Remove compile-time tests for unsupported versions of FreeBSD.

Approved by: re (gjb@)

4 years agoMFC r348500:
dim [Fri, 7 Jun 2019 18:52:36 +0000 (18:52 +0000)]
MFC r348500:

Partially revert r271349, which disabled the msun cexp test #4 on i386.

Ensure the expected result is stored first in a volatile variable with
the desired type.  This makes all the tests succeed.

Slightly changed from the original pull request, but functionally the
same.

Approved by: re (gjb)
Obtained from: https://github.com/freebsd/freebsd/pull/401
Submitted by: Moritz Buhl <gh@moritzbuhl.de>
PR: 191676

4 years agoMFC r348302:
delphij [Fri, 7 Jun 2019 02:36:26 +0000 (02:36 +0000)]
MFC r348302:

Chase r261913: hardcoded default crypt(3) algorithm is SHA-512 when DES
is not available.

Submitted by: Ali Mashtizadeh <ali mashtizadeh.com>
Approved by: re (gjb)

4 years agoUpdate stable/11 to BETA3 as part of the 11.3-RELEASE cycle.
gjb [Fri, 7 Jun 2019 00:00:12 +0000 (00:00 +0000)]
Update stable/11 to BETA3 as part of the 11.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

4 years agoMFC 348542: Add 'device cxgbe' explicitly in the synopsis.
jhb [Thu, 6 Jun 2019 20:03:55 +0000 (20:03 +0000)]
MFC 348542: Add 'device cxgbe' explicitly in the synopsis.

ccr depends on symbols exported by the cxgbe driver as well as having
a runtime dependency.  While the runtime depenency was noted in the
manpage already, the compile-time dependency wasn't as clear.

PR: 238265
Approved by: re (gjb)

4 years agoMFC 348543: Warn about deprecated features on all major OS versions.
jhb [Thu, 6 Jun 2019 19:41:05 +0000 (19:41 +0000)]
MFC 348543: Warn about deprecated features on all major OS versions.

Approved by: re (gjb)

4 years agoMFC r348439:
gjb [Thu, 6 Jun 2019 12:44:43 +0000 (12:44 +0000)]
MFC r348439:
 Increase the size of the Vagrant default image size, as the 3GB
 size is too small to bootstrap the firstboot_pkgs list.

 While here, add the growfs(8) startup script to /etc/rc.conf,
 as Vagrant images can be resized by modifying the Vagrantfile.

Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

4 years agoMFC r348065:
allanjude [Thu, 6 Jun 2019 05:10:32 +0000 (05:10 +0000)]
MFC r348065:

Correct the way remaining battery life is calculated

Previously, if a system had multiple batteries, the remaining life
percentage was calculated as the average of each battery's percent
remaining. This results in rather incorrect values when you consider the
case of the Thinkpad X270 that has a small 3 cell internally battery, and
a hot-swappable 9 cell battery that is used first. Battery 0 is at 100%,
but battery 1 is at 10%, you do not infact have 55% of your capacity
remaining.

The new method calculates the percentage based on remaining capacity
out of total capacity, giving a much more accurate reading.

PR: 229818
Submitted by: Keegan Drake H.P. <kd-dev@pm.me>
Sponsored by: Klara Systems
Event: Waterloo Hackathon 2019
Approved by: re (gjb)

4 years agoMFC r347953:
allanjude [Thu, 6 Jun 2019 05:09:43 +0000 (05:09 +0000)]
MFC r347953:

MFV/ZoL: `zfs userspace` ignored all unresolved UIDs after the first

zfsonlinux/zfs@88cfff182432e4d1c24c877f33b47ee6cf109eee

zfs_main: fix `zfs userspace` squashing unresolved entries

The `zfs userspace` squashes all entries with unresolved numeric
values into a single output entry due to the comparsion always
made by the string name which is empty in case of unresolved IDs.

Fix this by falling to a numerical comparison when either one
of string values is not found. This then compares any numerical
values after all with a name resolved.

Signed-off-by: Pavel Boldin <boldin.pavel@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reported by: clusteradm
Obtained from: ZFS-on-Linux

Approved by: re (gjb)

4 years agoMFC r348491:
np [Wed, 5 Jun 2019 21:46:56 +0000 (21:46 +0000)]
MFC r348491:

cxgbe/t4_tom: adjust the hardware receive window to match changes to the
receive sockbuf's high water mark.

Calculate rx credits on the spot instead of tracking sbused/sb_cc and
rx_credits in the toepcb.  The previous method worked when the high
water mark changed due to SB_AUTOSIZE but not when it was adjusted
directly (for example, by the soreserve in nfsrvd_addsock).

This fixes a connection hang while running iozone over an NFS mounted
share where nfsd's TCP sockets are being handled by t4_tom.

Sponsored by: Chelsio Communications

Approved by: re@ (gjb@)

4 years agoMFC r347990:
mm [Tue, 4 Jun 2019 10:35:54 +0000 (10:35 +0000)]
MFC r347990:
Sync libarchive with vendor.

Relevant vendor changes:
  Issue #795: XAR - do not try to add xattrs without an allocated name
  PR #812: non-recursive option for extract and list
  PR #958: support reading metadata from compressed files
  PR #999: add --exclude-vcs option to bsdtar
  Issue #1062: treat empty archives with a GNU volume header as valid
  PR #1074: Handle ZIP files with trailing 0s in the extra fields
            (Android APK archives)
  PR #1109: Ignore padding in Zip extra field data (Android APK archives)
  PR #1167: fix problems related to unreadable directories
  Issue #1168: fix handling of strtol() and strtoul()
  PR #1172: RAR5 - fix invalid window buffer read in E8E9 filter
  PR #1174: ZIP reader - fix of MSZIP signature parsing
  PR #1175: gzip filter - fix reading files larger than 4GB from memory
  PR #1177: gzip filter - fix memory leak with repeated header reads
  PR #1180: ZIP reader - add support for Info-ZIP Unicode Path Extra Field
  PR #1181: RAR5 - fix merge_block() recursion
            (OSS-Fuzz 12999, 13029, 13144, 13478, 13490)
  PR #1183: fix memory leak when decompressing ZIP files with LZMA
  PR #1184: fix RAR5 OSS-Fuzz issues 12466, 14490, 14491, 12817
    OSS-Fuzz 12466: RAR5 - fix buffer overflow when parsing huffman tables
    OSS-Fuzz 14490, 14491: RAR5 - fix bad shift-left operations
    OSS-Fuzz 12817: RAR5 - handle a case with truncated huffman tables
  PR #1186: RAR5 - fix invalid type used for dictionary size mask
            (OSS-Fuzz 14537)
  PR #1187: RAR5 - fix integer overflow (OSS-Fuzz 14555)
  PR #1190: RAR5 - RAR5 don't try to unpack entries marked as directories
            (OSS-Fuzz 14574)
  PR #1196: RAR5 - fix a potential SIGSEGV on 32-bit builds
  OSS-Fuzz 2582: RAR - fix use after free if there is an invalid entry
  OSS-Fuzz 14331: RAR5 - fix maximum owner name length
  OSS-Fuzz 13965: RAR5 - use unsigned int for volume number + range check

  Additional RAR5 reader changes:
    - support symlinks, hardlinks, file owner, file group, versioned files
    - change ARCHIVE_FORMAT_RAR_V5 to 0x100000
    - set correct mode for readonly directories
    - support readonly, hidden and system Windows file attributes

MFC r347999:
Install missing data file for
lib.libarchive.functional_test.test_read_format_zip_utf8_paths

Approved by: re (gjb blanket)

4 years agoMFC 348206,348231,348454: GELI crypto deprecation warnings.
jhb [Mon, 3 Jun 2019 21:04:23 +0000 (21:04 +0000)]
MFC 348206,348231,348454: GELI crypto deprecation warnings.

348206:
Add deprecation warnings for weaker algorithms to geli(4).

- Triple DES has been formally deprecated in Kerberos (RFC 8429)
  and is soon to be deprecated in IPsec (RFC 8221).
- Blowfish is deprecated.  FreeBSD doesn't support its successor
  (Twofish).
- MD5 is generally considered a weak digest that has known attacks.

geli refuses to create new volumes using these algorithms via 'geli
init'.  It also warns when attaching to existing volumes or creating
temporary volumes via 'geli onetime' .  The plan is to fully remove
support for these algorithms in FreeBSD 13.

Note that none of these algorithms have ever been the default
algorithm used by geli(8).  Users would have had to explicitly select
these algorithms when creating volumes in the past.

348231:
Correct the argument passed to g_eli_algo2str()

348454:
Remove tests for the deprecated algorithms in r348206

The tests are failing because the return value and output have changed, but
before test code structure adjusted, removing these test cases help people
be able to focus on more important cases.

Approved by: re (gjb)
Relnotes: yes