svn commit: r285039 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Thu Jul 2 14:31:47 UTC 2015
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);
}
More information about the svn-src-head
mailing list