From owner-freebsd-current@FreeBSD.ORG Wed Nov 3 06:35:33 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5541216A4CE; Wed, 3 Nov 2004 06:35:33 +0000 (GMT) Received: from mx-itb.geoph.ITB.ac.id (mx-itb.geoph.ITB.ac.id [167.205.30.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A16243D31; Wed, 3 Nov 2004 06:35:26 +0000 (GMT) (envelope-from dikshie@ppk.itb.ac.id) Received: from localhost.geoph.itb.ac.id (localhost.geoph.itb.ac.id [127.0.0.1]) by mx-itb.geoph.ITB.ac.id (Postfix) with ESMTP id C1B59217AD; Wed, 3 Nov 2004 13:47:46 +0700 (WIT) Received: from mx-itb.geoph.ITB.ac.id (localhost.geoph.itb.ac.id [127.0.0.1]) by localhost.geoph.itb.ac.id (VaMailArmor-2.0.1.16) id 08011-26F5EA07; Wed, 03 Nov 2004 13:47:46 +0700 Received: from ipv6.ppk.itb.ac.id (ipv6.ppk.ITB.ac.id [167.205.25.15]) by mx-itb.geoph.ITB.ac.id (Postfix) with ESMTP id B7D38216C5; Wed, 3 Nov 2004 13:47:46 +0700 (WIT) Received: by ipv6.ppk.itb.ac.id (Postfix, from userid 1001) id 6959A114CD; Wed, 3 Nov 2004 13:35:16 +0700 (WIT) Date: Wed, 3 Nov 2004 13:35:16 +0700 From: Dikshie To: Robert Watson Message-ID: <20041103063516.GA18205@ppk.itb.ac.id> References: <20041102122546.GB9392@ppk.itb.ac.id> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Operating-System: (FreeBSD 5.3-STABLE i386) X-Uptime: 1:33PM up 43 mins, 2 users, load averages: 1.43, 1.51, 1.29 X-Organization: Pusat Penelitian Kelautan (PPK) X-Location: Labtek VI Building, Institute of Technology, Bandung, Indonesia X-Web-Site: http://ipv6.ppk.itb.ac.id/~dikshie X-Yahoo-ID: dikshie X-GnuPG-Key: http://ipv6.ppk.itb.ac.id/gpg/ X-FingerPrint: 19AC 2592 1394 6C96 BABB 9060 50B8 D244 88E3 B55D X-AntiVirus: checked by Vexira MailArmor (version: 2.0.1.16; VAE: 6.28.0.12; VDF: 6.28.0.50; host: mx-itb.geoph.itb.ac.id) cc: freebsd-current@freebsd.org Subject: Re: panic: mutex accept not owned at /usr/src/sys/kern/uipc_socket.c:493 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Nov 2004 06:35:33 -0000 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-