cvs commit: src/sys/kern kern_thread.c

John Baldwin jhb at freebsd.org
Mon Jul 28 21:43:13 UTC 2008


On Saturday 26 July 2008 02:58:50 pm Konstantin Belousov wrote:
> kib         2008-07-26 18:58:50 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:        (Branch: RELENG_7)
>     sys/kern             kern_thread.c 
>   Log:
>   SVN rev 180830 on 2008-07-26 18:58:50Z by kib
>   
>   Although being recorded as MFC of the r177369, this change was
>   introduced for the KSE case in the r177083. Both were done by jeff,
>   MFC is needed due to recent cpuset(2) commit to RELENG_7.
>   
>   r177083:
>   KSE may free a thread that was never actually forked. This will leave
>   td_cpuset NULL. Check for this condition before dereferencing the
>   cpuset.
>   
>   r177369:
>   Restore the NULL check for td_cpuset. This can happen if a partially
>   constructed thread was torn down as is the case when we fail to allocate
>   a kernel stack.

Thanks.

-- 
John Baldwin


More information about the cvs-src mailing list