From owner-freebsd-current@FreeBSD.ORG Sun May 4 13:05:51 2003 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 E7A0B37B401; Sun, 4 May 2003 13:05:51 -0700 (PDT) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E3DB43F85; Sun, 4 May 2003 13:05:51 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0293.cvx40-bradley.dialup.earthlink.net ([216.244.43.38] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19CPk5-0001uI-00; Sun, 04 May 2003 13:05:50 -0700 Message-ID: <3EB5724A.4F606C89@mindspring.com> Date: Sun, 04 May 2003 13:04:26 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Robert Watson References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a49d01e0a288a34e89a63f88af06237655350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: Philippe Charnier cc: current@FreeBSD.org cc: jhb@FreeBSD.org Subject: Re: panic: mutex process lock not owned at../../../kern/sys_process.c:97 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: Sun, 04 May 2003 20:05:52 -0000 Robert Watson wrote: > Try moving the PROC_UNLOCK() call from line 79 to just after line 84 > (i.e., before the error check and possible uiomove()). It looks like some > similar bugs might exist in other bits of procfs. I've attached a patch > that tries to more generally handle use of the proc lock more properly > with uiomove(), but might also not be perfect. You last patch there is exactly the patch I suggested for a similar problem, last week. -- Terry