From owner-freebsd-bugs Wed May 30 11:10: 7 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A7C8437B422 for ; Wed, 30 May 2001 11:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4UIA2X09121; Wed, 30 May 2001 11:10:02 -0700 (PDT) (envelope-from gnats) Date: Wed, 30 May 2001 11:10:02 -0700 (PDT) Message-Id: <200105301810.f4UIA2X09121@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Jean-Luc Richier Subject: Re: kern/27776: rpc.lockd panic with FreeBSD-5.0 Reply-To: Jean-Luc Richier Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/27776; it has been noted by GNATS. From: Jean-Luc Richier To: freebsd-gnats-submit@FreeBSD.org, Jean-Luc.Richier@imag.fr Cc: Subject: Re: kern/27776: rpc.lockd panic with FreeBSD-5.0 Date: Wed, 30 May 2001 20:03:00 +0200 This is a multi-part message in MIME format. --------------010151A749A1FAC1BAFB19CD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit About the, proposed patch, I see I made a mistake as my diff contains a diff which is not for the bug, but for an attempt to prot to IPv6 The correct patch is simpler, cf the attached file -- Jean-Luc RICHIER (Jean-Luc.Richier@Imag.Fr richier@imag.fr) Laboratoire Logiciels, Systemes et Reseaux (LSR-IMAG) IMAG-CAMPUS, BP 72, F-38402 St Martin d'Heres Cedex Tel : +33 4 76 82 72 32 Fax : +33 4 76 82 72 87 --------------010151A749A1FAC1BAFB19CD Content-Type: text/plain; charset=us-ascii; name="patch_nfs_lock.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch_nfs_lock.c" *** /usr/src/sys/nfs/nfs_lock.c.DIST Sat May 26 01:36:46 2001 --- /usr/src/sys/nfs/nfs_lock.c Wed May 30 11:58:06 2001 *************** *** 260,267 **** ((ansp->la_msg_ident.msg_seq != -1) && (timevalcmp(&p->p_nlminfo->pid_start, &ansp->la_msg_ident.pid_start, !=) || ! p->p_nlminfo->msg_seq != ansp->la_msg_ident.msg_seq))) return (EPIPE); p->p_nlminfo->retcode = ansp->la_errno; p->p_nlminfo->set_getlk_pid = ansp->la_set_getlk_pid; --- 261,270 ---- ((ansp->la_msg_ident.msg_seq != -1) && (timevalcmp(&p->p_nlminfo->pid_start, &ansp->la_msg_ident.pid_start, !=) || ! p->p_nlminfo->msg_seq != ansp->la_msg_ident.msg_seq))) { + PROC_UNLOCK(p); return (EPIPE); + } p->p_nlminfo->retcode = ansp->la_errno; p->p_nlminfo->set_getlk_pid = ansp->la_set_getlk_pid; *************** *** 269,273 **** --- 272,277 ---- (void)wakeup((void *)p->p_nlminfo); + PROC_UNLOCK(p); return (0); } --------------010151A749A1FAC1BAFB19CD-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message