svn commit: r186601 - head/sys/kern

John Baldwin jhb at freebsd.org
Thu Jan 15 07:46:43 PST 2009


On Tuesday 30 December 2008 7:51:56 am Konstantin Belousov wrote:
> Author: kib
> Date: Tue Dec 30 12:51:56 2008
> New Revision: 186601
> URL: http://svn.freebsd.org/changeset/base/186601
>
> Log:
>   Clear the pointers to the file in the struct filedesc before file is
> closed in fdfree. Otherwise, sysctl_kern_proc_filedesc may dereference
> stale struct file * values.

Good catch!  This may fix many panics I saw at Yahoo.  The fact that this code 
didn't clear the file pointers to NULL used to bother me, but I could never 
put my finger on exactly why.

-- 
John Baldwin


More information about the svn-src-all mailing list