Index: sys/kern/kern_cpuset.c =================================================================== --- sys/kern/kern_cpuset.c +++ sys/kern/kern_cpuset.c @@ -1972,8 +1972,8 @@ if (error == 0) error = copyout(mask, maskp, domainsetsize); if (error == 0) - error = copyout(&outset.ds_policy, policyp, - sizeof(outset.ds_policy)); + if (suword32(policyp, outset.ds_policy) != 0) + error = EFAULT; out: free(mask, M_TEMP); return (error);