r363086 markj July 10, 2020, 7:58 p.m.
r363085 markj July 10, 2020, 7:58 p.m.
MFC with:	r363084
ViewVC
r363084 markj July 10, 2020, 7:54 p.m.
The change adds an SCTP mode akin to UDP mode.  This is handy for doing
smoke testing of SCTP.

Use a long option to minimize the risk of option conflicts with OpenBSD.
For bonus points, this change unbreaks --no-tcpopt by adding a missing
case required by getopt_long().

Reviewed by:	delphij, tuexen
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D25610
ViewVC
r363081 eugen July 10, 2020, 5:42 p.m.
Also, make it not break if STRIPBIN points to strip version without -o support
and destination does not exist before installing.

Reported by:	lwhsu
MFC after:      1 month
X-MFC-With:     363064
ViewVC
r363080 tuexen July 10, 2020, 4:59 p.m.
r363079 markj July 10, 2020, 2:56 p.m.
With this change, a kernel compiled with "options SCTP_SUPPORT" and
without "options SCTP" supports dynamic loading of the SCTP stack.

Currently sctp.ko cannot be unloaded since some prerequisite teardown
logic is not yet implemented.  Attempts to unload the module will return
EOPNOTSUPP.

Discussed with:	tuexen
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D21997
ViewVC
r363078 hselasky July 10, 2020, 12:06 p.m.
checks if the bitmap pointed to by the first argument is a subset of
the bitmap pointed to by the second argument. The function returns one
on success and zero on failure.

MFC after:		1 week
Sponsored by:		Mellanox Technologies
ViewVC
r363077 hselasky July 10, 2020, 11:27 a.m.
basically multiplies its two arguments and returns SIZE_MAX if the
result overflows the size_t type.  Else the product of the two
arguments is returned.

Bump the FreeBSD_version to mitigate issues with existing
implementation of array_size() in drm-devel-kmod.

Discussed with:		manu@
MFC after:		1 week
Sponsored by:		Mellanox Technologies
ViewVC
r363076 tuexen July 10, 2020, 11:15 a.m.
stack is not affected.
Thanks to Mark Wodrich from Google for finding and reporting the
bug.

MFC after:		1 week
ViewVC
r363073 andrew July 10, 2020, 9:34 a.m.
Sponsored by:	Innovate UK
ViewVC
r363072 mjg July 10, 2020, 9:24 a.m.
The kernel would unlock already unlocked mutex if the buffer got filled up
before the mount list ended.

Reported by:	pho
Fixes:	r363069 ("vfs: depessimize getfsstat when only the count is requested")
ViewVC
r363071 mjg July 10, 2020, 9:01 a.m.
.. even without the -w switch
ViewVC
r363070 grehan July 10, 2020, 7:26 a.m.
This fixes a coredump with NetBSD guests when XHCI is configured.
On seeing the AC64 flag clear, the NetBSD XHCI driver was only writing
to the lower 32-bits of 64-bit physical address registers. The emulation
relies on a write to the hi 32-bits to calculate a host virtual address
for internal use, and has always supported 64-bit addressing.

All other guests were seen to write to both the lo- and hi- address
registers, regardless of the AC64 setting.

Discussed with:  Leon Dang (author)
Tested with:  Ubuntu 16/18/20, Windows10, OpenBSD UEFI guests.

MFC after:	2 weeks.
ViewVC
r363069 mjg July 10, 2020, 6:47 a.m.
This avoids relocking mountlist_mtx for each entry.
ViewVC
r363068 mjg July 10, 2020, 6:46 a.m.
It is quite often called for the very same buffer.
ViewVC