586ed321 dchagin May 11, 2022, 7:40 a.m.
Reviewed by:		jhb
Differential revision:	https://reviews.freebsd.org/D34982
MFC after:		2 weeks
cgit
c8b5c478 dchagin May 11, 2022, 7:39 a.m.
MFC after:		2 weeks
cgit
f35093f8 dchagin May 11, 2022, 7:36 a.m.
Linux has more tolerant checks of the user supplied cpuset_t's.

Minimum cpuset_t size that the Linux kernel permits in case of
getaffinity() is the maximum CPU id, present in the system / NBBY,
the maximum size is not limited.
For setaffinity(), Linux does not limit the size of the user-provided
cpuset_t, internally using only the meaningful part of the set, where
the upper bound is the maximum CPU id, present in the system, no larger
than the size of the kernel cpuset_t.
Unlike FreeBSD, Linux ignores high bits if set in the setaffinity(),
so clear it in the sched_setaffinity() and Linuxulator itself.

Reviewed by:		Pau Amma (man pages)
In collaboration with:	jhb
Differential revision:	https://reviews.freebsd.org/D34849
MFC after:		2 weeks
cgit
50dd2cea jmg May 11, 2022, 3:14 a.m.
Thanks-to:	kevans@
cgit
826c58d6 mjg May 11, 2022, midnight
Fixes:	ff80dd034a8ca732
Sponsored by:	Rubicon Communications, LLC ("Netgate")
cgit
bf46c0a9 mckusick May 10, 2022, 11:06 p.m.
No functional change.
cgit
cc1a53bc markj May 10, 2022, 9:38 p.m.
Leave -Wcast-align disabled, at least for now, since there are numerous
instances of that warning in places where buffer pointers are cast to
pointers to various filesystem structures.  Fixing this properly would
be too much work for too little gain.

MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
cgit
f775c417 markj May 10, 2022, 9:26 p.m.
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
cgit
ff80dd03 mjg May 10, 2022, 9:16 p.m.
Reviewed by:	kp
Sponsored by:	Rubicon Communications, LLC ("Netgate")
cgit
c4a6d412 jhb May 10, 2022, 5:21 p.m.
67eeba26 jhb May 10, 2022, 5:21 p.m.
bce4876e jhb May 10, 2022, 5:21 p.m.
0018a304 jhb May 10, 2022, 5:21 p.m.
3a3a104e jhb May 10, 2022, 5:21 p.m.
28140529 jhb May 10, 2022, 5:21 p.m.