aaa6fa65 kib Feb. 3, 2022, 1:02 a.m.
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D34140
cgit
e2fe58d6 rmacklem Feb. 2, 2022, 10:10 p.m.
Commit b0b7d978b6a8 changed the NFSv4 server's default
behaviour to check the file's mode or ACL for permission to
open the file, to be Linux and Solaris compatible.
However, it turns out that Linux makes an exception for
the case of Claim_delegate_cur(_fh).

When a NFSv4 client is returning a delegation, it must
acquire Opens against the server to replace the ones
done locally in the client.  The client does this via
an Open operation with Claim_delegate_cur(_fh).  If
this operation fails, due to a change to the file's
mode or ACL after the delegation was issued, the
client does not have any way to retain the open.

As such, the Linux client allows the file's owner
to perform an Open with Claim_delegate_cur(_fh)
no matter what the mode or ACL allows.

This patch makes the FreeBSD server allow this case,
to be Linux compatible.

This patch only affects the case where delegations
are enabled, which is not the default.

MFC after:	2 weeks
cgit
03f6e182 imp Feb. 2, 2022, 9:34 p.m.
Sort MK_BOOT before MK_CTF and remove now-useless NO_LINT while I'm
here.

Suggested by:		brooks, emaste
Sponsored by:		Netflix
cgit
03475562 imp Feb. 2, 2022, 9:27 p.m.
When MK_LIB32 is true, we descend into stand for make includes, make
clean, etc. We shouldn't do this, so set MK_BOOT=no when we're building
includes.

Fixes:		6497250f6f7f
PR:		261497
Sponsored by:	Netflix
Reviewed by:	emaste, brooks (he suggested this)
Differential Revision:	https://reviews.freebsd.org/D34141
cgit
356deeb2 imp Feb. 2, 2022, 9:27 p.m.
qemu's bsd-user doesn't implement sendfile, so just skip those tests
that use it.

Sponsored by:		Netflix
cgit
63b7c2df jhb Feb. 2, 2022, 8:25 p.m.
8bd5e2f1 jhb Feb. 2, 2022, 8:18 p.m.
ld.bfd in binutils 2.34+ now reports an error in more cases for custom
ldscripts that do not place PHDRs in a LOAD segment.  However, EFI
binaries are not dynamic binaries which need PHDRs, so pass
--no-dynamic-linker to disable this check.

Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D34124
cgit
6ad26abc tuexen Feb. 1, 2022, 2:44 p.m.
MFC after:	1 week
Sponsored by:	Netflix, Inc.
cgit
5f64777a tuexen Feb. 1, 2022, 2:37 p.m.
The inp_gencnt will be used to identify a TCP endpoint by an upcoming
command line tool to set TCP socket options.

Reviewed by:		rscheff
MFC after: 		1 week
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D34137
cgit
21a37c3c kib Feb. 2, 2022, 5:27 p.m.
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
cgit
658a47d1 tsoome Feb. 2, 2022, 1:42 p.m.
c0f397da tsoome Feb. 2, 2022, 12:26 p.m.
a88e1a04 hselasky Feb. 2, 2022, noon
If port resume fails, likely the USB device is detached. Ignore such errors,
because else the USB stack might try forever trying to resume the device,
before it will proceed detaching it.

MFC after:	1 week
Sponsored by:	NVIDIA Networking
cgit
e7c54421 kib Feb. 2, 2022, 9:40 a.m.
Eliminate shlq $3,address shift after masking of the va is done, which
is needed to convert pt_entry_t[] array index into byte offset.
Do it by preshifting the mask, and compensating the right shift of va.

Suggested by:	alc
Reviewed by:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D33786
cgit
0b8643ea kib Feb. 2, 2022, 9:39 a.m.
Noted and reviewed by:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D33549
cgit