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

From: Dikshie <dikshie_at_ppk.itb.ac.id>
Date: Wed, 3 Nov 2004 13:35:16 +0700
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
> _at__at_ -490,6 +490,7 _at__at_
>  
>  	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-
Received on Wed Nov 03 2004 - 05:35:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:20 UTC