Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Nov 2004 13:35:16 +0700
From:      Dikshie <dikshie@ppk.itb.ac.id>
To:        Robert Watson <rwatson@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: panic: mutex accept not owned at /usr/src/sys/kern/uipc_socket.c:493
Message-ID:  <20041103063516.GA18205@ppk.itb.ac.id>
In-Reply-To: <Pine.NEB.3.96L.1041102165313.11071K-100000@fledge.watson.org>
References:  <20041102122546.GB9392@ppk.itb.ac.id> <Pine.NEB.3.96L.1041102165313.11071K-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help

Thanks for your response.
Your patch works well.

   
Robert Watson (rwatson@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@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-



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041103063516.GA18205>