Page MenuHomeFreeBSD

D57043.id177954.diff
No OneTemporary

D57043.id177954.diff

diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c
--- a/sys/fs/nullfs/null_vfsops.c
+++ b/sys/fs/nullfs/null_vfsops.c
@@ -151,6 +151,14 @@
*/
lowerrootvp = ndp->ni_vp;
+ /*
+ * Do not allow to mount a vnode over itself.
+ */
+ if (mp->mnt_vnodecovered == lowerrootvp) {
+ vput(lowerrootvp);
+ return (EDEADLK);
+ }
+
/*
* Check multi null mount to avoid `lock against myself' panic.
*/

File Metadata

Mime Type
text/plain
Expires
Tue, Jul 21, 4:05 PM (51 m, 51 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33239181
Default Alt Text
D57043.id177954.diff (427 B)

Event Timeline