33f9ea20 brooks Nov. 29, 2021, 10:04 p.m.
freebsd7_shmctl was missing an annotation

Reviewed by:	kib, imp
cgit
e0189cf6 markj Nov. 29, 2021, 6:57 p.m.
Reviewed by:	emaste
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D33138
cgit
9ff084f0 markj Nov. 29, 2021, 6:57 p.m.
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
cgit
7a337230 markj Nov. 29, 2021, 6:57 p.m.
Fixes:	0c9156faeccb ("Introduce DP83822 PHY driver")
cgit
1c732c85 markj Nov. 29, 2021, 6:57 p.m.
The socket option handler tries to ensure that the option length is no
larger than some reasonable maximum, and no smaller than sizeof(struct
dn_id).  But the loaded option length is stored in an int, which is
converted to an unsigned integer for the comparison with a size_t, so
negative values are not caught and instead get passed to malloc().

Change the code to use a size_t for the buffer size.

Reviewed by:	kp
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D33133
cgit
d5ea04ee markj Nov. 29, 2021, 6:57 p.m.
do_config() processes a buffer of variable-length dummynet commands.
The loop which processes this buffer loads the fixed-length header
before checking whether there are any bytes left to read, so it performs
a 4-byte read past the end of the buffer before terminating.

Restructure the loop to avoid this.

Reported by:	Jenkins (KASAN job)
Reviewed by:	kp
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D33132
cgit
3dd3a395 nc Nov. 29, 2021, 5:53 p.m.
This prevents a kernel panic on a damaged ext2 superblock.

PR:			259107
Reported by:		Robert Morris <rtm@lcs.mit.edu>
Differential Revision:	https://reviews.freebsd.org/D33029
cgit
1910048e bz Nov. 29, 2021, 5:44 p.m.
Add the Cypress dual USB3/2 HUB CYUSB330x as found in SolidRun's
HoneyComb to usbdevs.
cgit
a089c17d trasz Nov. 29, 2021, 4:45 p.m.
No functional changes.

Sponsored By:	EPSRC
cgit
fbf52467 trasz Nov. 29, 2021, 4:45 p.m.
No functional changes.

Sponsored By:	EPSRC
cgit
1cde2140 trasz Nov. 29, 2021, 4:45 p.m.
No functional changes.

Sponsored By:	EPSRC
cgit
08bb51f8 kib Nov. 29, 2021, 4:38 p.m.
Swap on file requires operational underlying mount, otherwise
swapoff_all() is guaranteed to panic due to the default strategy VOP for
reclaimed vnodes.

Reported and tested by:	peterj
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D33147
cgit
0190c38b kib Nov. 29, 2021, 4:38 p.m.
When swap is turned off due to system shutdown or reboot, ignore the
check.  Problem is that the check is not accurate by any means, free
page count can legitimately be low while system still able to page in
everything from the swap.  Then, we turn swap off if swapping on
real file or some non-standard geom provider, and typically panic
when system appears to actually need to unavailable page.

For syscall, it is better to be safe than sorry.

Reported and tested by:	peterj
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D33147
cgit
8661e085 mw Nov. 29, 2021, 4:02 p.m.
HS200 and HS400 speeds can be enabled either with 1.2, or 1.8V signaling voltage.
Because of that we have four cabability flags: MMC_CAP_MMC_HS200_120,
MMC_CAP_MMC_HS200_180, MMC_CAP_MMC_HS400_120, MMC_CAP_MMC_HS400_180.

MMC logic only enables HS200/HS400 mode if both flags are set for the corresponding speed.
Fix that by being more permissive in host timing cap check.

Reviewed by: manu, mw
MFC after: 2 weeks
Obtained from: Semihalf
Sponsored by: Alstom Group
Differential revision: https://reviews.freebsd.org/D33130
cgit
181751a8 kib Nov. 29, 2021, 3:39 p.m.
In _citrus_prop_read_TYPE_func_ generated functions, do not ignore parsed
'-' sign, negate the value as appropriate.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D33146
cgit