]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
3 years agoMFC r363287: iwm(4): Document limitations of the driver
Gordon Bergling [Fri, 24 Jul 2020 16:44:35 +0000 (16:44 +0000)]
MFC r363287: iwm(4): Document limitations of the driver

PR: 247874
Submitted by: Charles Ross <cwr at sdf dot org>
Reviewed by: brueffer, markj
Approved by: brueffer
Differential Revision: https://reviews.freebsd.org/D25666

3 years agoMFC r363288: mount_nfs(8): document alternate form of the gssname option
Gordon Bergling [Fri, 24 Jul 2020 16:41:15 +0000 (16:41 +0000)]
MFC r363288: mount_nfs(8): document alternate form of the gssname option

PR: 238506
Submitted by: Greg Veldman <freebsd at gregv dot net>
Reviewed by: 0mp, bcr (mentor)
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D25667

3 years agoMFC r363084:
Mark Johnston [Fri, 24 Jul 2020 14:51:28 +0000 (14:51 +0000)]
MFC r363084:
Add a --sctp flag to nc.

3 years agoMFC: Merge sendmail 8.16.1 to HEAD: See contrib/sendmail/RELEASE_NOTES for
Gregory Neil Shapiro [Fri, 24 Jul 2020 00:22:33 +0000 (00:22 +0000)]
MFC: Merge sendmail 8.16.1 to HEAD: See contrib/sendmail/RELEASE_NOTES for
details
     Includes build infrastructure & config updates required for changes
in 8.16.1

3 years agotuntap: drop redundant if_mtu assignment in tuncreate
Kyle Evans [Thu, 23 Jul 2020 03:25:31 +0000 (03:25 +0000)]
tuntap: drop redundant if_mtu assignment in tuncreate

ether_ifattach will immediately clobber if_mtu with ETHERMTU anyways, just
let it happen.

3 years agoMFC r363244: ether_ifattach: set mtu before calling if_attach()
Kyle Evans [Thu, 23 Jul 2020 03:24:35 +0000 (03:24 +0000)]
MFC r363244: ether_ifattach: set mtu before calling if_attach()

if_attach() -> if_attach_internal() will call if_attachdomain1(ifp) any time
an ethernet interface is setup *after*
SI_SUB_PROTO_IFATTACHDOMAIN/SI_ORDER_FIRST.  This eventually leads to
nd6_ifattach() -> nd6_setmtu0() stashing off ifp->if_mtu in ndi->maxmtu
*before* ifp->if_mtu has been properly set in some scenarios, e.g., USB
ethernet adapter plugged in later on.

For interfaces that are created in early boot, we don't have this issue as
domains aren't constructed enough for them to attach and thus it gets
deferred to domainifattach at SI_SUB_PROTO_IFATTACHDOMAIN/SI_ORDER_SECOND
*after* the mtu has been set earlier in ether_ifattach().

PR: 248005

3 years agoMFC r363061:
Cy Schubert [Thu, 23 Jul 2020 03:08:17 +0000 (03:08 +0000)]
MFC r363061:

Enable support for IEEE 802.11N, 802.11W, 802.11AC and 802.11.AX to
hostapd and wpa_supplicant.

Submitted by: bz
Relnotes: yes
Sponsored by: Rubicon Communications, LLC (d/b/a "Netgate")

3 years agoMFC: r362509
Jung-uk Kim [Wed, 22 Jul 2020 21:17:02 +0000 (21:17 +0000)]
MFC: r362509

Assume all TSCs are synchronized for AMD Family 17h processors and later
when it has passed the synchronization test.

3 years agoMFC r363228:
Brooks Davis [Wed, 22 Jul 2020 21:06:32 +0000 (21:06 +0000)]
MFC r363228:

Don't imply that all action values can be OR'd.

This is neither POSIX compliant nor what the implementation does.
This could be allowed by changing the value of TCSAFLUSH from 2 to 3,
but that doesn't seem worthwhile after 25+ years.

Reviewed by: imp
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D25659

3 years agobridge: Enter epoch for bridge_input()/bridge_output()
Kristof Provost [Wed, 22 Jul 2020 20:13:12 +0000 (20:13 +0000)]
bridge: Enter epoch for bridge_input()/bridge_output()

In stable/12 epoch is not as wide as it is in head. The network stack isn't yet
in epoch when bridge_input()/bridge_output() get called, so rather than assert
this we must enter it ourselves.

This is a direct commit to stable/12.

PR: 248046
Differential Revision: https://reviews.freebsd.org/D25715

3 years agoMFC r363308:
Kristof Provost [Wed, 22 Jul 2020 19:43:55 +0000 (19:43 +0000)]
MFC r363308:

bridge: Don't sleep during epoch

While it doesn't trigger INVARIANTS or WITNESS on head it does in stable/12.
There's also no reason for it, as we can easily report the out of memory error
to the caller (i.e. userspace). All of these can already fail.

PR: 248046

3 years agoMFC r363181:
Mark Johnston [Wed, 22 Jul 2020 14:24:41 +0000 (14:24 +0000)]
MFC r363181:
Add safexcel(4) to cryptotest.

3 years agoMFC r363180, r363182, r363251:
Mark Johnston [Wed, 22 Jul 2020 14:22:35 +0000 (14:22 +0000)]
MFC r363180, r363182, r363251:
Add a driver for the SafeXcel EIP-97.

3 years agoMFC r363141:
Tom Jones [Wed, 22 Jul 2020 10:00:13 +0000 (10:00 +0000)]
MFC r363141:

Don't print VNET pointer when initializing dummynet

When dummynet initializes it prints a debug message with the current VNET
pointer unnecessarily revealing kernel memory layout. This appears to be left
over from when the first pieces of vimage support were added.

PR: 238658
Submitted by: huangfq.daxian@gmail.com
Reviewed by: markj, bz, gnn, kp, melifaro
Approved by: jtl (co-mentor), bz (co-mentor)
Event: July 2020 Bugathon
Differential Revision: https://reviews.freebsd.org/D25619

3 years agoMFC r350749, r362275
Tom Jones [Wed, 22 Jul 2020 06:47:38 +0000 (06:47 +0000)]
MFC r350749, r362275

r350749:
Rename IPPROTO 33 from SEP to DCCP

IPPROTO 33 is DCCP in the IANA Registry:
https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml

IPPROTO_SEP was added about 20 years ago in r33804. The entries were added
straight from RFC1700, without regard to whether they were used.

The reference in RFC1700 for SEP is '[JC120] <mystery contact>', this is an
indication that the protocol number was probably in use in a private network.

As RFC1700 is no longer the authoritative list of internet numbers and that
IANA assinged 33 to DCCP in RFC4340, change the header to the actual
authoritative source.

Reviewed by: Richard Scheffenegger, bz
Approved by: bz (mentor)
Differential Revision: https://reviews.freebsd.org/D21178

r362275:
Add header definition for RFC4340, Datagram Congestion Control Protocol

Add a header definition for DCCP as defined in RFC4340. This header definition
is required to perform validation when receiving and forwarding DCCP packets.
We do not currently support DCCP.

Reviewed by: gallatin, bz
Approved by: bz (co-mentor)
MFC with: 350749
Differential Revision: https://reviews.freebsd.org/D21179

3 years agoMFC r362541:
Tom Jones [Wed, 22 Jul 2020 06:45:24 +0000 (06:45 +0000)]
MFC r362541:

pkg: Provide a friendlier message when bootstrap fails due to address resolution

The current message when bootstapping pkg fails for any reason implies that pkg
is not available. We have the error code from fetch so if bootstrap failed due
to address resolution say so.

Reviewed by:    bapt, bz
Approved by:    bz (co-mentor)
Differential Revision:  https://reviews.freebsd.org/D25323

3 years agoMFC r363205:
Vladimir Kondratyev [Tue, 21 Jul 2020 23:36:18 +0000 (23:36 +0000)]
MFC r363205:

linuxkpi: Ignore NULL pointers passed to string parameter of kstr(n)dup

That follows Linux and fixes related drm-kmod-5.3 panic.

Reviewed by: imp, hselasky
Differential Revision: https://reviews.freebsd.org/D25657

3 years agoMFC of 362369 (by Lorenzo Salvadore) and 363192
Kirk McKusick [Tue, 21 Jul 2020 23:23:08 +0000 (23:23 +0000)]
MFC of 362369 (by Lorenzo Salvadore) and 363192

Refinement of /bin/ps rtprio output

3 years agoFix the powerpc build after r363389.
Mark Johnston [Tue, 21 Jul 2020 14:35:50 +0000 (14:35 +0000)]
Fix the powerpc build after r363389.

This is a direct commit to stable/12.

Reported by: Jenkins

3 years agoMFC r363266 (by cem):
Mark Johnston [Tue, 21 Jul 2020 14:17:35 +0000 (14:17 +0000)]
MFC r363266 (by cem):
Revert r240317 to prevent leaking pmap entries

3 years agoMFC r363193:
Konstantin Belousov [Tue, 21 Jul 2020 08:12:53 +0000 (08:12 +0000)]
MFC r363193:
Make CLOCK_REALTIME and TIMER_ABSTIME available for XOPEN_SOURCE >= 500.

PR: 247701

3 years agoMFC r340450,r340664,r346176 by imp: fix time conversions to and from sbt
Andriy Gapon [Tue, 21 Jul 2020 07:58:39 +0000 (07:58 +0000)]
MFC r340450,r340664,r346176 by imp: fix time conversions to and from sbt

Note that the PR is for a change elsewhere (ZFS) that expected the sane
behavior of nstosbt().

PR: 247829
Reported by: gbe, others
Tested by: gbe, others

3 years agoMFC r362958
Leandro Lupori [Mon, 20 Jul 2020 17:04:25 +0000 (17:04 +0000)]
MFC r362958

Handle non-PLT GNU IFUNC relocations in rtld

3 years agoMFC r363147: gethostname(3): Correct the reference of the undefined value HOST_NAME_MAX
Gordon Bergling [Mon, 20 Jul 2020 16:51:18 +0000 (16:51 +0000)]
MFC r363147: gethostname(3): Correct the reference of the undefined value HOST_NAME_MAX

PR: 143472
Submitted by: bcran@
Reported by: Jeremy Huddleston <jeremyhu at apple dot com>
Reviewed by: bcr (mentor)
Approved by: bcr (mentor)
Differential Revision: https://reviews.freebsd.org/D25647

3 years agoMFC r363156: lseek(2): Document the seek behavior better and update the POSIX compliance
Gordon Bergling [Mon, 20 Jul 2020 16:48:46 +0000 (16:48 +0000)]
MFC r363156: lseek(2): Document the seek behavior better and update the POSIX compliance

PR: 162765
Submitted by: arundel@
Reported by: arundel@
Reviewed by: bcr (mentor)
Approved by: bcr (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D25646

3 years agoMFC r363146: arp(8) clarify the use of the '-a flag'
Gordon Bergling [Mon, 20 Jul 2020 16:45:44 +0000 (16:45 +0000)]
MFC r363146: arp(8) clarify the use of the '-a flag'

PR: 238146
Submitted by: Andrew Stevenson <andrew at ugh dot net dot au>
Reported by: Andrew Stevenson <andrew at ugh dot net dot au>
Reviewed by: bcr (mentor)
Approved by: bcr (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D25645

3 years agoMFC r363144, r363188: Add stepping to the kern.hwpmc.cpuid string on x86.
Alexander Motin [Mon, 20 Jul 2020 13:50:10 +0000 (13:50 +0000)]
MFC r363144, r363188: Add stepping to the kern.hwpmc.cpuid string on x86.

It follows the equivalent Linux change to be able to differentiate
skylakex and cascadelakex, sharing the same model but not stepping.

3 years agoMFC r363102:
Mark Johnston [Mon, 20 Jul 2020 13:37:14 +0000 (13:37 +0000)]
MFC r363102:
ping(8): Check for integer truncation when handling the value for -s.

PR: 239976

3 years agoMFC r363162:
Mark Johnston [Mon, 20 Jul 2020 13:30:42 +0000 (13:30 +0000)]
MFC r363162:
Print arm64 physmem info during boot.

PR: 243682

3 years agoMFC r362766 bhyve: fix NVMe Active Namespace list
Chuck Tuffli [Mon, 20 Jul 2020 00:44:27 +0000 (00:44 +0000)]
MFC r362766 bhyve: fix NVMe Active Namespace list

3 years agoMFC r362765 bhyve: NVMe handle zero length DSM ranges
Chuck Tuffli [Mon, 20 Jul 2020 00:42:34 +0000 (00:42 +0000)]
MFC r362765 bhyve: NVMe handle zero length DSM ranges

3 years agoMFC r362764 bhyve: fix NVMe Get Features, Predictable Latency
Chuck Tuffli [Mon, 20 Jul 2020 00:39:54 +0000 (00:39 +0000)]
MFC r362764 bhyve: fix NVMe Get Features, Predictable Latency

3 years agoMFC r362763 bhyve: add NVMe Feature Interrupt Vector Config
Chuck Tuffli [Mon, 20 Jul 2020 00:38:21 +0000 (00:38 +0000)]
MFC r362763 bhyve: add NVMe Feature Interrupt Vector Config

3 years agoMFC r362762 bhyve: add basic NVMe Firmware Commit support
Chuck Tuffli [Mon, 20 Jul 2020 00:35:42 +0000 (00:35 +0000)]
MFC r362762 bhyve: add basic NVMe Firmware Commit support

3 years agoMFC r362761 bhyve: Add AER support to NVMe emulation
Chuck Tuffli [Mon, 20 Jul 2020 00:33:16 +0000 (00:33 +0000)]
MFC r362761 bhyve: Add AER support to NVMe emulation

3 years agoMFC r362760 bhyve: validate the NVMe LBA start and count
Chuck Tuffli [Mon, 20 Jul 2020 00:20:55 +0000 (00:20 +0000)]
MFC r362760 bhyve: validate the NVMe LBA start and count

3 years agoUpdate to bmake-20200710
Simon J. Gerraty [Mon, 20 Jul 2020 00:17:08 +0000 (00:17 +0000)]
Update to bmake-20200710

Key changes include reduced noise at end of failed build log
and avoid evaluation of unnecessary terms in conditionals.
In META MODE; a target flagged .META is out-of-date if meta file
is missing

MFC of r361986, r363117

3 years agoMFC r362759 bhyve: implement NVMe SMART data I/O statistics
Chuck Tuffli [Sun, 19 Jul 2020 23:45:49 +0000 (23:45 +0000)]
MFC r362759 bhyve: implement NVMe SMART data I/O statistics

3 years agoMFC r362758 bhyve: validate NVMe deallocate range values
Chuck Tuffli [Sun, 19 Jul 2020 23:42:46 +0000 (23:42 +0000)]
MFC r362758 bhyve: validate NVMe deallocate range values

3 years agoMFC r362757 bhyve: base pci_nvme_ioreq size on advertised MDTS
Chuck Tuffli [Sun, 19 Jul 2020 23:40:34 +0000 (23:40 +0000)]
MFC r362757 bhyve: base pci_nvme_ioreq size on advertised MDTS

3 years agoMFC r362756 bhyve: refactor NVMe I/O read/write
Chuck Tuffli [Sun, 19 Jul 2020 23:37:19 +0000 (23:37 +0000)]
MFC r362756 bhyve: refactor NVMe I/O read/write

3 years agoMFC r362755 bhyve: implement NVMe Format NVM command
Chuck Tuffli [Sun, 19 Jul 2020 23:34:01 +0000 (23:34 +0000)]
MFC r362755 bhyve: implement NVMe Format NVM command

3 years agoMFC r362754 bhyve: make unsupported NVMe commands a debug message
Chuck Tuffli [Sun, 19 Jul 2020 23:29:34 +0000 (23:29 +0000)]
MFC r362754 bhyve: make unsupported NVMe commands a debug message

3 years agoMFC r362753 bhyve: add more compliant NVMe Get/Set Features
Chuck Tuffli [Sun, 19 Jul 2020 23:27:11 +0000 (23:27 +0000)]
MFC r362753 bhyve: add more compliant NVMe Get/Set Features

3 years agoMFC r362752 bhyve: fix NVMe queue creation and deletion
Chuck Tuffli [Sun, 19 Jul 2020 23:24:06 +0000 (23:24 +0000)]
MFC r362752 bhyve: fix NVMe queue creation and deletion

3 years agoMFC r362751 bhyve: fix NVMe Get Log Page command
Chuck Tuffli [Sun, 19 Jul 2020 23:20:57 +0000 (23:20 +0000)]
MFC r362751 bhyve: fix NVMe Get Log Page command

3 years agoMFC r362750 bhyve: implement NVMe Namespace Identification Descriptor
Chuck Tuffli [Sun, 19 Jul 2020 23:17:43 +0000 (23:17 +0000)]
MFC r362750 bhyve: implement NVMe Namespace Identification Descriptor

3 years agoMFC r362749 bhyve: Consolidate NVMe CQ update
Chuck Tuffli [Sun, 19 Jul 2020 22:58:11 +0000 (22:58 +0000)]
MFC r362749 bhyve: Consolidate NVMe CQ update

3 years agoMFC r362748 bhyve: add locks around NVMe queue accesses
Chuck Tuffli [Sun, 19 Jul 2020 22:55:52 +0000 (22:55 +0000)]
MFC r362748 bhyve: add locks around NVMe queue accesses

3 years agoMFC r362747 bhyve: add a comment explaining NVME dsm option
Chuck Tuffli [Sun, 19 Jul 2020 22:52:42 +0000 (22:52 +0000)]
MFC r362747 bhyve: add a comment explaining NVME dsm option

3 years agoMFC r362746 bhyve: implement NVMe Flush command
Chuck Tuffli [Sun, 19 Jul 2020 22:40:02 +0000 (22:40 +0000)]
MFC r362746 bhyve: implement NVMe Flush command

3 years agoMFC r362745 bhyve: refactor NVMe IO command handling
Chuck Tuffli [Sun, 19 Jul 2020 22:37:47 +0000 (22:37 +0000)]
MFC r362745 bhyve: refactor NVMe IO command handling

3 years agoMFC 362744 bhyve: convert NVMe logging statements
Chuck Tuffli [Sun, 19 Jul 2020 22:27:15 +0000 (22:27 +0000)]
MFC 362744 bhyve: convert NVMe logging statements

3 years agoMFC r362027 pci: loosen PCIe hot-plug requirements
Chuck Tuffli [Sun, 19 Jul 2020 22:23:54 +0000 (22:23 +0000)]
MFC r362027 pci: loosen PCIe hot-plug requirements

3 years agoMFC r362947
Pawel Biernacki [Sun, 19 Jul 2020 15:16:57 +0000 (15:16 +0000)]
MFC r362947

truss: print more information about traced sysctls

3 years agoMFC r362937: Use KERN_MAXPHYS.
Xin LI [Sun, 19 Jul 2020 01:59:56 +0000 (01:59 +0000)]
MFC r362937: Use KERN_MAXPHYS.

3 years agoMFC r362936: Gather writes to larger chunks (MAXPHYS) instead of issuing
Xin LI [Sat, 18 Jul 2020 23:05:16 +0000 (23:05 +0000)]
MFC r362936: Gather writes to larger chunks (MAXPHYS) instead of issuing
them in sectors.

3 years agoFix mismerge of r363038.
Konstantin Belousov [Sat, 18 Jul 2020 20:17:40 +0000 (20:17 +0000)]
Fix mismerge of r363038.

The reset of p to NULL for non-curproc was missed, cauing ESRCH error not
returned as it should be.

Reported by: lampa@fit.vutbr.cz
PR: 248070

3 years agoMFC r362708
Joerg Wunsch [Fri, 17 Jul 2020 22:04:58 +0000 (22:04 +0000)]
MFC r362708

Explain how to learn about possible recognized locale names

3 years agoMFC r363062: shmfd: make shm_size a vm_ooffset_t
Kyle Evans [Fri, 17 Jul 2020 14:17:13 +0000 (14:17 +0000)]
MFC r363062: shmfd: make shm_size a vm_ooffset_t

On 32-bit platforms, this expands the shm_size to a 64-bit quantity and
resolves a mismatch between the shmfd size and underlying vm_object size.
The implementation did not account for this kind of mismatch.

For compatibility's sake, the old shm_size has been replaced with
shm_oldsize (still popualted) and the new member appended to the end.

3 years agoMFC r363088: fix tests for install(1): add support for STRIPBIN's -o option.
Eugene Grosbein [Fri, 17 Jul 2020 06:52:03 +0000 (06:52 +0000)]
MFC r363088: fix tests for install(1): add support for STRIPBIN's -o option.

3 years agoFix a mismerge in r363243.
Mark Johnston [Thu, 16 Jul 2020 13:50:21 +0000 (13:50 +0000)]
Fix a mismerge in r363243.

This is a direct commit to stable/12.

Reported by: Jenkins

3 years agoMFC r363051, r363055:
Mark Johnston [Thu, 16 Jul 2020 13:38:20 +0000 (13:38 +0000)]
MFC r363051, r363055:
Avoid copying out kernel pointers from msgctl/semctl(IPC_STAT).

3 years agoMFC r363158:
Mark Johnston [Thu, 16 Jul 2020 13:37:11 +0000 (13:37 +0000)]
MFC r363158:
Add vm_map_valid_range_KBI().

3 years agoMFC r362952
Peter Grehan [Thu, 16 Jul 2020 03:05:10 +0000 (03:05 +0000)]
MFC r362952

Silence ACPI RTC error/warning in Linux guests.

3 years agoMFC r362644
Peter Grehan [Thu, 16 Jul 2020 02:53:13 +0000 (02:53 +0000)]
MFC r362644

Prevent calling USB backends multiple times.

3 years agoMFC r362233: newsyslog(8): make configuration parser more robust.
Eugene Grosbein [Wed, 15 Jul 2020 22:41:58 +0000 (22:41 +0000)]
MFC r362233: newsyslog(8): make configuration parser more robust.

3 years agoMFC r362634:
David Bright [Wed, 15 Jul 2020 17:34:08 +0000 (17:34 +0000)]
MFC r362634:

Add CAP_EVENT to pidfiles.

CAP_EVENT was omitted on pidfiles (in
pidfile_open()). There seems no reason why a process that creates
and writes a pidfile cannot monitor events on that file. This mod adds
the capability.

Sponsored by: Dell EMC Isilon

3 years agoMFC r363140:
Oleksandr Tymoshenko [Tue, 14 Jul 2020 18:31:00 +0000 (18:31 +0000)]
MFC r363140:

Fix invalid VHDX generation for image larger than 4Gb

- Part of BAT payload location was lost due to invalid
    BAT entry encoding type (32 bits instead of 64 bits)
- The sequence of PB/SB entries in BAT was broken due to
    off-by-one index check. It worked for smaller than
    4Gb because there were no SB entries in BAT.

3 years agoMFC r362811: Decode APEI tables (BERT, EINJ, ERST, HEST).
Alexander Motin [Tue, 14 Jul 2020 17:23:25 +0000 (17:23 +0000)]
MFC r362811: Decode APEI tables (BERT, EINJ, ERST, HEST).

3 years agoMFC r362997:
Cy Schubert [Tue, 14 Jul 2020 13:21:09 +0000 (13:21 +0000)]
MFC r362997:

Update sqlite to 3.32.3 (3320300).

Release Announcement: https://www.sqlite.org/releaselog/3_32_3.html
See also: ports r541414

PR: 247819
Reported by: Pavel Volkov <pavelivolkov at gmail.com>

3 years agoMFC r362516:
Oleksandr Tymoshenko [Tue, 14 Jul 2020 05:24:07 +0000 (05:24 +0000)]
MFC r362516:

Fix crash in drill(1) when IP has two subsequent dots

Cherry-pick crash fix from the upstream repo

PR: 226575
Reported by: Goran Mekić <meka@tilda.center>
Obtained from: https://git.nlnetlabs.nl/ldns/commit/?id=98291475

3 years agoiovctl(8): Correct a typo in the manpage and correct the SYNOPSIS
Gordon Bergling [Mon, 13 Jul 2020 19:28:10 +0000 (19:28 +0000)]
iovctl(8): Correct a typo in the manpage and correct the SYNOPSIS

PR: 246831
Submitted by: Jose Luis Duran <jlduran at gmail dot com>
Reviewed by: bcr (mentor)
Approved by: bcr (mentor)

3 years agoMFC r358995 (by pkelsey): Fix iflib freelist state corruption
Alexander Motin [Mon, 13 Jul 2020 17:20:20 +0000 (17:20 +0000)]
MFC r358995 (by pkelsey): Fix iflib freelist state corruption

This fixes a bug in iflib freelist management that breaks the required
correspondence between freelist indexes and driver ring slots.

PR: 243126, 243392, 240628

3 years agoMFC r362970, r362971:
Mark Johnston [Mon, 13 Jul 2020 16:43:23 +0000 (16:43 +0000)]
MFC r362970, r362971:
Permit cpuset_(get|set)domain() in capability mode.

3 years agoMFC r362968:
Mark Johnston [Mon, 13 Jul 2020 16:42:30 +0000 (16:42 +0000)]
MFC r362968:
Allow accesses of the caller's CPU and domain sets in capability mode.

3 years agoMFC r362966:
Mark Johnston [Mon, 13 Jul 2020 16:41:58 +0000 (16:41 +0000)]
MFC r362966:
Lift cpuset Capsicum checks into a subroutine.

3 years agoMFC r362781 and r362794:
Hans Petter Selasky [Mon, 13 Jul 2020 15:40:55 +0000 (15:40 +0000)]
MFC r362781 and r362794:
Implement is_signed(), type_max() and type_min() function macros in the
LinuxKPI.

Sponsored by: Mellanox Technologies

3 years agoMFC r362829:
Hans Petter Selasky [Mon, 13 Jul 2020 15:36:57 +0000 (15:36 +0000)]
MFC r362829:
The "pid" field in the LinuxKPI task struct is typically set to the thread ID
and not the process ID. Make sure the linux_task_exiting() function uses tdfind()
to lookup the BSD procedure structure pointer by the "pid" field, and only
fallback to pfind() when no match is found! This makes linux_task_exiting()
in line with the rest of the code.

Differential Revision: https://reviews.freebsd.org/D25509
Submitted by: Greg V <greg@unrelenting.technology>
Sponsored by: Mellanox Technologies

3 years agoMFC r362953:
Hans Petter Selasky [Mon, 13 Jul 2020 15:33:06 +0000 (15:33 +0000)]
MFC r362953:
Infiniband clients must be attached and detached in a specific order in ibcore.

Currently the linking order of the infiniband, IB, modules decide in which
order the clients are attached and detached. For example one IB client may
use resources from another IB client. This can lead to a potential deadlock
at shutdown. For example if the ipoib is unregistered after the ib_multicast
client is detached, then if ipoib is using multicast addresses a deadlock may
happen, because ib_multicast will wait for all its resources to be freed before
returning from the remove method.

Fix this by using module_xxx_order() instead of module_xxx().

Differential Revision: https://reviews.freebsd.org/D23973
Sponsored by: Mellanox Technologies

3 years agoMFC r362946:
Hans Petter Selasky [Mon, 13 Jul 2020 15:28:06 +0000 (15:28 +0000)]
MFC r362946:
Fix include file order in io.h in the LinuxKPI.
Make sure sys/types.h is included before machine/vm.h.

PR: 247775
Submitted by: pkubaj@
Sponsored by: Mellanox Technologies

3 years agoMFC 362491:
Mateusz Piotrowski [Sun, 12 Jul 2020 19:39:17 +0000 (19:39 +0000)]
MFC 362491:

Improve the rcorder manual page

- Fix formatting issues such as:
  - Use Ql instead of Dq Li as Li is deprecated
  - Address some mandoc warnings
- Add arguments missing from the list of options (i.e., document "-k keep"
  instead of just "-k").
- Document that -k and -s can be specified multiple times
- Use sshd instead of named for the example in the BUGS section, as named
  is not in the base system. Also, use Nm instead of Xr there as it is not
  the sshd binary that is required to be running, but the service.
- Use Sy instead of Cm for KEYWORDS. Cm is reserved for command-line
  modifiers of the CLI.
- Add an EXAMPLES section
- Cross-reference service(8).

3 years agoMFC r340655
Thomas Munro [Sun, 12 Jul 2020 10:07:01 +0000 (10:07 +0000)]
MFC r340655
  pom: Fix fencepost bugs.

PR: 231705
Submitted by:   Andrew Gierth <andrew@tao11.riddles.org.uk>
Approved by: allanjude (mentor)

3 years agoMFC r344656
Thomas Munro [Sun, 12 Jul 2020 09:49:53 +0000 (09:49 +0000)]
MFC r344656
  truss: Add support for fsync(2) and fdatasync(2).

Approved by:    mjg (mentor)
Differential Revision:  https://reviews.freebsd.org/D19295

3 years agoMFC r362942: shutdown.8: Fix typo
Niclas Zeising [Sun, 12 Jul 2020 07:25:02 +0000 (07:25 +0000)]
MFC r362942: shutdown.8: Fix typo

Fix a typo in shutdown.8, use ',' instead of '.' when listing items.

3 years agoMFC r350162:
Ganbold Tsagaankhuu [Sat, 11 Jul 2020 16:38:46 +0000 (16:38 +0000)]
MFC r350162:

Add emmc support for Rockchip RK3399 SoC.
Tested on NanoPC-T4 board.

3 years agoMFC r362396
Allan Jude [Sat, 11 Jul 2020 15:57:46 +0000 (15:57 +0000)]
MFC r362396
  ZFS: Allow setting checksum=skein on boot pools

PR: 245889
Reported by: delphij
Sponsored by: Klara Inc.
Event: July 2020 Bugathon

3 years agoMFC r346369
Allan Jude [Sat, 11 Jul 2020 14:55:11 +0000 (14:55 +0000)]
MFC r346369
  Close filedescriptors when done with them.

MFC r362412
  fix -c flag to work with input on stdin

PR: 247295
Sponsored by: Klara Inc.
Event: July 2020 Bugathon

3 years agoMFC r363013:
Dimitry Andric [Sat, 11 Jul 2020 09:43:16 +0000 (09:43 +0000)]
MFC r363013:

Merge commit 065fc1eafe7c from llvm git (by Richard Smith):

  PR45521: Preserve the value kind when performing a standard
  conversion sequence on a glvalue expression.

  If the sequence is supposed to perform an lvalue-to-rvalue
  conversion, then one will be specified as the first conversion in the
  sequence. Otherwise, one should not be invented.

This should fix clang crashing with "can't implicitly cast lvalue to
rvalue with this cast kind", followed by "UNREACHABLE executed at
/usr/src/contrib/llvm-project/clang/lib/Sema/Sema.cpp:538!", when
building recent versions of Ceph, and the CPAN module SYBER/Date-5.2.0.

Reported by: Willem Jan Withagen <wjw@digiware.nl>, eserte12@yahoo.de
PR: 245530, 247812

3 years agoMFC r362622
Vincenzo Maffione [Fri, 10 Jul 2020 18:30:53 +0000 (18:30 +0000)]
MFC r362622

iflib: netmap: add support for partial ring openings

Reviewed by:    gallatin
Differential Revision:  https://reviews.freebsd.org/D25254

3 years agoMFC r362633, r362633
Vincenzo Maffione [Fri, 10 Jul 2020 18:19:04 +0000 (18:19 +0000)]
MFC r362633, r362633

iflib: netmap: add per-tx-queue netmap support

Reviewed by:    gallatin
Differential Revision:  https://reviews.freebsd.org/D25253

3 years agoMFC r362612
Pawel Biernacki [Thu, 9 Jul 2020 20:54:16 +0000 (20:54 +0000)]
MFC r362612

bhyve: allow for automatic destruction on power-off

3 years agoMFC of 362560
Kirk McKusick [Thu, 9 Jul 2020 19:11:57 +0000 (19:11 +0000)]
MFC of 362560

Correctly describe libufs library sbget() and sbput() return values.

3 years agoMFC r362738: sh/tests: Re-enable bin.sh.execution.functional_test.bg12.0
Jilles Tjoelker [Thu, 9 Jul 2020 17:43:25 +0000 (17:43 +0000)]
MFC r362738: sh/tests: Re-enable bin.sh.execution.functional_test.bg12.0

PR: 247559

3 years agoMFC r362737: sh/tests: Fix flaky execution/bg12.0
Jilles Tjoelker [Thu, 9 Jul 2020 17:42:31 +0000 (17:42 +0000)]
MFC r362737: sh/tests: Fix flaky execution/bg12.0

When job control is not enabled, the shell ignores SIGINT while waiting for
a foreground process unless that process exits on SIGINT. In this case, the
foreground process is sleep and it does not exit on SIGINT because the
signal is only sent to the shell. Depending on order of events, this could
cause the SIGINT to be unexpectedly ignored.

On lightly loaded bare metal, the chance of this happening tends to be less
than 0.01% but with higher loads and/or virtualization it becomes more
likely.

Starting the sleep in background and using the wait builtin ensures SIGINT
will not be ignored.

PR: 247559
Reported by: lwhsu

3 years agoMFC r362112
Andrew Gallatin [Thu, 9 Jul 2020 17:10:18 +0000 (17:10 +0000)]
MFC r362112
x86: Bump default msi/msix vector limit to 2048

3 years agoMFC r362979:
Brooks Davis [Thu, 9 Jul 2020 16:58:53 +0000 (16:58 +0000)]
MFC r362979:

Fix a -Wvoid-pointer-to-enum-cast warning missed in r359978.

This pattern is used in callbacks with void * data arguments and seems
both relatively uncommon and relatively harmless.  Silence the warning
by casting through uintptr_t.

This warning is on by default in Clang 11.

Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D24425

3 years agoMFC r362497:
Mark Johnston [Thu, 9 Jul 2020 14:42:41 +0000 (14:42 +0000)]
MFC r362497:
Move the definition of SCTP's system_base_info into sctp_crc32.c.

3 years agoMFC r362614, r362618:
Mark Johnston [Thu, 9 Jul 2020 14:18:14 +0000 (14:18 +0000)]
MFC r362614, r362618:
Add SCTP_SUPPORT handling to config.mk.

3 years agoMFC r362619:
Mark Johnston [Thu, 9 Jul 2020 14:17:04 +0000 (14:17 +0000)]
MFC r362619:
ipfw: Support the literal IPv6 address syntax in the fwd command.