panic: mutex accept not owned at /usr/src/sys/kern/uipc_socket.c:493

Dikshie dikshie at ppk.itb.ac.id
Tue Nov 2 22:35:33 PST 2004


Thanks for your response.
Your patch works well.

   
Robert Watson (rwatson at freebsd.org) wrote:
> It looks like there's a missing call to ACCEPT_LOCK() in
> uipc_socket.c:soabort().  It should appear before the call to SOCK_LOCK().
> Could you try the attached patch?
> 
> Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
> robert at fledge.watson.org      Principal Research Scientist, McAfee Research
> 
> Index: uipc_socket.c
> ===================================================================
> RCS file: /home/ncvs/src/sys/kern/uipc_socket.c,v
> retrieving revision 1.215
> diff -u -r1.215 uipc_socket.c
> --- uipc_socket.c	23 Oct 2004 19:06:43 -0000	1.215
> +++ uipc_socket.c	2 Nov 2004 16:57:58 -0000
> @@ -490,6 +490,7 @@
>  
>  	error = (*so->so_proto->pr_usrreqs->pru_abort)(so);
>  	if (error) {
> +		ACCEPT_LOCK();
>  		SOCK_LOCK(so);
>  		sotryfree(so);	/* note: does not decrement the ref count */
>  		return error;








with best regards,

-dikshie-


More information about the freebsd-current mailing list