Page MenuHomeFreeBSD

D57043.diff
No OneTemporary

D57043.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
Thu, Aug 27, 9:44 PM (1 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37412897
Default Alt Text
D57043.diff (427 B)

Event Timeline