From owner-cvs-all Thu Jul 29 21: 2:12 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id DE2A5151FE; Thu, 29 Jul 1999 21:02:09 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) Received: (from wpaul@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id VAA04640; Thu, 29 Jul 1999 21:02:06 -0700 (PDT) (envelope-from wpaul@FreeBSD.org) Message-Id: <199907300402.VAA04640@freefall.freebsd.org> From: Bill Paul Date: Thu, 29 Jul 1999 21:02:06 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/nfs nfs_vnops.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk wpaul 1999/07/29 21:02:06 PDT Modified files: sys/nfs nfs_vnops.c Log: Fix two bugs in nfs_readdirplus(). The first is that in some cases, vnodes are locked and never unlocked, which leads to processes starting to wedge up after doing a mount -o nfsv3,tcp,rdirplus foo:/fs /fs; ls /fs. The second is that sometimes cnp is accessed without having been properly initialized: cnp->cn_nameptr points to an earlier name while "len" contains the length of a current name of different size. This leads to an attempt to dereference *(cn->cn_nameptr + len) which will sometimes cause a page fault and a panic. With these two fixes, client side readdirplus works correctly with FreeBSD, IRIX 6.5.4 and Solaris 2.5.1 and 2.6 servers. Submitted by: Matthew Dillon Revision Changes Path 1.136 +6 -3 src/sys/nfs/nfs_vnops.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message