Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jul 2015 14:31:47 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285039 - head/sys/kern
Message-ID:  <201507021431.t62EVlTL080328@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Jul  2 14:31:47 2015
New Revision: 285039
URL: https://svnweb.freebsd.org/changeset/base/285039

Log:
  Vnode is not referenced by the vfs_domount() at the point where
  asserts are made.  Remove them, since we might dereference freed
  memory.  Leaked locks are asserted by the syscall return code anyway.
  
  Reported and tested by:	pho
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/kern/vfs_mount.c

Modified: head/sys/kern/vfs_mount.c
==============================================================================
--- head/sys/kern/vfs_mount.c	Thu Jul  2 14:00:07 2015	(r285038)
+++ head/sys/kern/vfs_mount.c	Thu Jul  2 14:31:47 2015	(r285039)
@@ -1108,9 +1108,6 @@ vfs_domount(
 	} else
 		error = vfs_domount_update(td, vp, fsflags, optlist);
 
-	ASSERT_VI_UNLOCKED(vp, __func__);
-	ASSERT_VOP_UNLOCKED(vp, __func__);
-
 	return (error);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507021431.t62EVlTL080328>