Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163162743
D57043.id177954.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
427 B
Referenced Files
None
Subscribers
None
D57043.id177954.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D57043: nullfs: do not allow to mount a vnode over itself
Attached
Detach File
Event Timeline
Log In to Comment