Opened 12 years ago

#480 new enhancement

VFS deadlocks when FS calles VFS operation (namespace_rwlock)

Reported by: Zdenek Bouska Owned by: Jakub Jermář
Priority: major Milestone:
Component: helenos/srv/vfs Version: mainline
Keywords: Cc:
Blocker for: Depends on:
See also:


Jakub on mailing list:

The solution with a global namespace lock traded flexibility for
simplicity. When your fs implementation uses the VFS input interface
(e.g. via libc wrappers) it always creates a possibility for a deadlock
because it creates a loop and there may always be some locks taken or
resources consumed along the codepaths that form the loop. The more
operations this loop involves, the more likely it is that there will be
a deadlock.

We should probably change this behavior and remove this inflexibility as
it is a potential security problem at the same time; if we want to have
unprivileged file systems (or just privileged less than VFS), VFS needs
to be able to gracefully survive someone's attempt to do crazy stuff.

Change History (0)

Note: See TracTickets for help on using tickets.