From owner-cvs-all Tue Aug 8 18:57:15 2000 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 8EC1937B98D; Tue, 8 Aug 2000 18:57:12 -0700 (PDT) (envelope-from tegge@FreeBSD.org) Received: (from tegge@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id SAA20408; Tue, 8 Aug 2000 18:57:12 -0700 (PDT) (envelope-from tegge@FreeBSD.org) Message-Id: <200008090157.SAA20408@freefall.freebsd.org> From: Tor Egge Date: Tue, 8 Aug 2000 18:57:11 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern vfs_syscalls.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG tegge 2000/08/08 18:57:11 PDT Modified files: sys/kern vfs_syscalls.c Log: Don't set flags on the mount structure before all permission checks have been done. Don't allow multiple mount operations with MNT_UPDATE at the same time on the same mount point. When the first mount operation completed, MNT_UPDATE was cleared in the mount structure, causing the second to complete as if it was a no-update mount operation with the following bad side effects: - mount structure inserted multiple times onto the mountlist - vp->v_mountedhere incorrectly set, causing next namei operation walking into the mountpoint to crash with a locking against myself panic. Plug a vnode leak in case vinvalbuf fails. Revision Changes Path 1.163 +20 -5 src/sys/kern/vfs_syscalls.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message