freebsd-skq/sys
Kyle Evans f1b18a668d cpuset_set{affinity,domain}: do not allow empty masks
cpuset_modify() would not currently catch this, because it only checks that
the new mask is a subset of the root set and circumvents the EDEADLK check
in cpuset_testupdate().

This change both directly validates the mask coming in since we can
trivially detect an empty mask, and it updates cpuset_testupdate to catch
stuff like this going forward by always ensuring we don't end up with an
empty mask.

The check_mask argument has been renamed because the 'check' verbiage does
not imply to me that it's actually doing a different operation. We're either
augmenting the existing mask, or we are replacing it entirely.

Reported by:	syzbot+4e3b1009de98d2fabcda@syzkaller.appspotmail.com
Discussed with:	andrew
Reviewed by:	andrew, markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D27511
2020-12-08 18:47:22 +00:00
..
amd64 Fix i386 linux module after r367395. 2020-12-05 14:53:24 +00:00
arm arm: Let the GDB stub write to SP, LR and GP registers 2020-12-07 15:09:28 +00:00
arm64 arm64: fix struct l_sigaction_t layout 2020-12-08 18:24:33 +00:00
bsm
cam mmccam: Convert some printf to CAM_DEBUG 2020-11-30 14:49:13 +00:00
cddl Check that the frame pointer is within the current stack. 2020-12-08 18:00:58 +00:00
compat Prefer using the MIN() function macro over the min() inline function 2020-12-07 09:48:06 +00:00
conf New Netgraph module ng_macfilter: 2020-12-08 15:09:42 +00:00
contrib Make MAXPHYS tunable. Bump MAXPHYS to 1M. 2020-11-28 12:12:51 +00:00
crypto Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
ddb Add a kstack_contains() helper function. 2020-12-01 17:04:46 +00:00
dev [ath] also remove the magic size value here for the transmit antenna statistics. 2020-12-08 17:28:42 +00:00
dts Brand our DTS with the Linux version it was imported from 2020-10-10 07:18:51 +00:00
fs In ext2fs, BA_CLRBUF is used in ext2_balloc() not UFS_BALLOC(). 2020-12-08 00:49:31 +00:00
gdb gdb(4): Don't escape GDB special characters at application layer 2020-09-30 14:55:54 +00:00
geom Make MAXPHYS tunable. Bump MAXPHYS to 1M. 2020-11-28 12:12:51 +00:00
gnu Brand our DTS with the Linux version it was imported from 2020-10-10 07:18:51 +00:00
i386 Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
isa
kern cpuset_set{affinity,domain}: do not allow empty masks 2020-12-08 18:47:22 +00:00
kgssapi State kgssapi dependency on xdr. 2020-09-17 22:29:38 +00:00
libkern arc4random(9): Integrate with RANDOM_FENESTRASX push-reseed 2020-10-10 21:48:06 +00:00
mips Various fixes for the MIPS DDB stack unwinder. 2020-12-04 20:14:25 +00:00
modules New Netgraph module ng_macfilter: 2020-12-08 15:09:42 +00:00
net The list of ports in configuration path shall be protected by locks, 2020-12-08 16:46:00 +00:00
net80211 net80211: fix a typo 2020-11-04 12:07:33 +00:00
netgraph New Netgraph module ng_macfilter: 2020-12-08 15:09:42 +00:00
netinet Add TCP feature Proportional Rate Reduction (PRR) - RFC6937 2020-12-04 11:29:27 +00:00
netinet6 Expose nonstandard IPv6 kernel definitions to standalone builds. 2020-12-04 21:51:47 +00:00
netipsec Trigger soft lifetime expiration on sequence number 2020-10-16 11:27:01 +00:00
netpfil pf: Fix table entry counter toggling 2020-12-02 16:01:43 +00:00
netsmb
nfs
nfsclient
nfsserver nfs: Mark unused statistics variable as reserved 2020-11-18 04:35:49 +00:00
nlm
ofed Fix for referencing file via its vnode in ibore. 2020-11-02 10:44:29 +00:00
opencrypto Remove the cloned file descriptors for /dev/crypto. 2020-11-25 00:10:54 +00:00
powerpc Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
riscv Stack unwinding robustness fixes for RISC-V. 2020-12-08 17:57:18 +00:00
rpc
security pipe: allow for lockless pipe_stat 2020-11-19 06:30:25 +00:00
sys Bump __FreeBSD_version for removal of crypto fd's in r368005. 2020-12-07 18:58:08 +00:00
teken Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
tests
tools Brand our DTS with the Linux version it was imported from 2020-10-10 07:18:51 +00:00
ufs Document the BA_CLRBUF flag used in ufs and ext2fs filesystems. 2020-12-06 20:50:21 +00:00
vm uma: Make uma_zone_set_maxcache() work better with small limits 2020-12-06 22:45:50 +00:00
x86 busdma: Annotate bus_dmamap_sync() with fence 2020-12-04 21:34:04 +00:00
xdr
xen
Makefile