From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Viro To: 9fans@cse.psu.edu Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [9fans] [RFC] sysremove()/sysmount() race Date: Mon, 5 Mar 2001 03:37:34 -0500 Topicbox-Message-UUID: 6c05766e-eac9-11e9-9e20-41e7f4b1d025 Folks, AFAICS there is a window during mount() when you can remove() the mountpoint. There's no locking between namec() and cmount(), so as far as I can see there's nothing to stop sysremove() from happening in that window. Since nothing is mounted yet, we end up removing the mountpoint (after mount we would attempt to remove the root of mounted fs). I'm not saying that it's a bug, but... how well does userland deal with that? AFAICS kernel should be OK... Cheers, Al PS: ssh'd from a Linux box that runs 2.4.2+namespaces patch. 2 users, 5 different namespaces right now... ;-) Off to porting libfs...