shared lock instead of exclusive in set_rootvnode

Kostik Belousov kostikbel at gmail.com
Tue Mar 4 03:15:53 PST 2008


On Mon, Mar 03, 2008 at 09:09:46PM +0100, Roman Divacky wrote:
> hi
> 
> in set_rootvnode() there is 
> 
> p->p_fd->fd_cdir = rootvnode;
> p->p_fd->fd_rdir = rootvnode;
> 
> protected just by FILEDESC_SLOCK(), I dont think this is correct
> although it might be benign as this is used only during boot.
> 
> still, if it's not correct it should be fixed
> 
> comments?

Seems right. Did you boot with patched kernel ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080304/31b6d791/attachment.pgp


More information about the freebsd-current mailing list