You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/tools/miri/ci/ci.sh
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -165,8 +165,8 @@ case $HOST_TARGET in
165
165
# Partially supported targets (tier 2)
166
166
BASIC="empty_main integer heap_alloc libc-mem vec string btreemap"# ensures we have the basics: pre-main code, system allocator
167
167
UNIX="hello panic/panic panic/unwind concurrency/simple atomic libc-mem libc-misc libc-random env num_cpus"# the things that are very similar across all Unixes, and hence easily supported there
168
-
TEST_TARGET=x86_64-unknown-freebsd run_tests_minimal $BASIC$UNIXtime hashmap random thread sync concurrency fs libc-pipe
169
-
TEST_TARGET=i686-unknown-freebsd run_tests_minimal $BASIC$UNIXtime hashmap random thread sync concurrency fs libc-pipe
// `cpusetsize` must be large enough to contain the entire CPU mask.
101
+
// FreeBSD only uses `cpusetsize` to verify that it's sufficient for the kernel's CPU mask.
102
+
// If it's too small, the syscall returns ERANGE.
103
+
// If it's large enough, copying the kernel mask to user space is safe, regardless of the actual size.
104
+
// See https://github.com/freebsd/freebsd-src/blob/909aa6781340f8c0b4ae01c6366bf1556ee2d1be/sys/kern/kern_cpuset.c#L1985
105
+
if set_size < u64::from(this.machine.num_cpus).div_ceil(8){
0 commit comments