a75400c5 wma Oct. 1, 2021, 9:24 a.m.
Having it included confuses KOBJOPLOOKUP resulting in kobj_error_method
being called instead of a devmethod from the switch driver.
That in turn returns ENXIO which was treated as a pointer and
dereferenced by etherswitch ioctl logic causing the kernel to panic.

Fixes: b542c9e42ba4 (modules: felix: Add needed dependencies)
cgit
8cbbe351 wma Oct. 1, 2021, 9:24 a.m.
It was missed during the conversion of kernel configs.
Although the driver is already built as a kernel module we might
want to have it built-in for diskless booting and such.
cgit
4dbd8c72 kevans Oct. 1, 2021, 4:55 a.m.
This is declared in stdio.h, no need for this one.
cgit
5487294d kevans Oct. 1, 2021, 4:55 a.m.
This is consistent with, e.g., NetBSD's implementation, which declares
these as noreturn in ssp/ssp.h.
cgit
cfb9be50 kevans Oct. 1, 2021, 4:47 a.m.
We'd likely be better served by converting these to the equivalent mem*
calls, but just kill the knob for now. The b* macros being defined get
in the way of _FORTIFY_SOURCE.

Reviewed by:	imp, markj
Differential Revision:	https://reviews.freebsd.org/D32235
cgit
0f43c5b5 kevans Oct. 1, 2021, 2:31 a.m.
4b5554ce kevans Oct. 1, 2021, 2:31 a.m.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D32237
cgit
9c999a25 kevans Oct. 1, 2021, 2:31 a.m.
NOTE_ABSTIME values are converted to values relative to boottime in
filt_timervalidate(), and negative values are currently rejected.  We
don't reject times in the past in general, so clamp this up to 0 as
needed such that the timer fires immediately rather than imposing what
looks like an arbitrary restriction.

Another possible scenario is that the system clock had to be adjusted
by ~minutes or ~hours and we have less than that in terms of uptime,
making a reasonable short-timeout suddenly invalid. Firing it is still
a valid choice in this scenario so that applications can at least
expect a consistent behavior.

Reviewed by:	kib, markj
Discussed with:	allanjude
Differential Revision:	https://reviews.freebsd.org/D32230
cgit
1b7a2680 jkim Oct. 1, 2021, 2:05 a.m.
(cherry picked from commit c509b6ab0d7e5bafc5348b08653b8738bd40716e)
cgit
ce73f768 cperciva Sept. 30, 2021, 9:48 p.m.
Booting on an EC2 c5.xlarge instance, this reduces the number of I/Os
performed from 609 to 432, reduces the total number of blocks read
from 61963 to 60797, and reduces the time spent in the loader by 39 ms.

Note that b4cb3fe0e39a allowed the bcache to be retained for most of
the boot process, but relies on mounting filesystems; this commit
allows the bcache to be retained at the start of the boot process,
before the root filesystem has been located.

Reviewed by:	imp, tsoome
MFC after:	1 week
Sponsored by:	https://www.patreon.com/cperciva
Differential Revision:	https://reviews.freebsd.org/D32239
cgit
a6499c56 kevans Sept. 30, 2021, 9:31 p.m.
These aren't a part of or use libjail(3), but rather are direct
syscalls.  Still, they seem like good additions, allowing us to attach
to already-running jails.

Reviewed by:	freqlabs
Differential Revision:	https://reviews.freebsd.org/D26927
cgit
6a7647ec kevans Sept. 30, 2021, 9:30 p.m.
This is implemented as an iterator, reusing parts of the earlier logic
to populate jailparams from a passed in table.

The user may request any number of parameters to pull in while we're
searching, but we'll force jid and name to appear at a minimum.

Reviewed by:	freqlabs
Differential Revision:	https://reviews.freebsd.org/D26756
cgit
9eb5fd35 imp Sept. 30, 2021, 8:16 p.m.
Match the PCI simple comm devices (or try to). Be conservative and use
legacy interrupts rather than msi messages by default for this 'catch
all' since it matches what Linux does (it has opt-in generally for MSI,
but also matches more devices because it does a catch-all like
implemented in this commit).

Sponsored by:		Netflix
Reviewed by:		kbowling
Differential Revision:	https://reviews.freebsd.org/D32228
cgit
bf400807 imp Sept. 30, 2021, 8:15 p.m.
Some setups claim to have one MSI, but they don't actually work. Allow
these to be flagged.

Sponsored by:		Netflix
Reviewed by:		kbowling
Differential Revision:	https://reviews.freebsd.org/D32229
cgit
1ad2d877 emaste Sept. 30, 2021, 3:50 p.m.
Previously mgb_admin_intr printed a diagnostic message if no interrupt
status bits were set, but it's not valid to call device_printf() from a
filter.  Just drop the message as it has no user-facing value.

Also return FILTER_STRAY in this case - there is nothing further for
the driver to do.

Reviewed by:	kbowling
MFC after:	1 week
Fixes:		8890ab7758b8 ("Introduce if_mgb driver...")
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32231
cgit