From: Eric Paris <eparis@redhat.com>
To: "David P. Quigley" <dpquigl@tycho.nsa.gov>
Cc: Xavier Toth <txtoth@gmail.com>,
Stephen Smalley <sds@tycho.nsa.gov>,
SELinux <selinux@tycho.nsa.gov>
Subject: Re: fuse and selinux don't seem to work well together
Date: Mon, 26 Jul 2010 21:12:18 -0400 [thread overview]
Message-ID: <1280193138.23427.111.camel@localhost> (raw)
In-Reply-To: <1280180443.2673.45.camel@moss-terrapins.epoch.ncsc.mil>
On Mon, 2010-07-26 at 17:40 -0400, David P. Quigley wrote:
> <snip>
> >
> > I'm not sure how the deadlock issues can be 'solved.' The fuse people
> > have repeatedly stated that until mount(8) (not even mount (2)) is
> > finished it is illegal to call call getxattr() and they have every right
> > to deadlock. They will not budge on this position.
> >
> > The only possibility I can think of is to extend fuse such that the
> > support of xattrs is known during mount(2). No idea what that would
> > look like.
> >
> > I believe that my autodetection patch is dead in the water with fuse as
> > it stands today....
> >
> > -Eric
>
> So where is this dead locking occuring? The only thing kernel side that
> I can think might deadlock is mount will probably lock the new super
> block for writing (although it shouldn't be available yet so maybe not)
> and when we call vfs_getxattr on the mount point it might need to grab a
> lock on the sb for something. I don't think this is the case since I
> looked through the code from vfs_getxattr through the fuse getxattr
> handler and I don't see any locking in there for the SB. I'm more
> inclined to believe that it is the userspace code for fuse or the
> interface they use to send the requests to user space. Actually the
> latter sounds more reasonable since fuse_send_request places the request
> in a queue. So if we are waiting on mount to finish before we send the
> getxattr request but mount depends on the getxattr request we can have a
> problem. Maybe the mount request can be modified to make a nested
> getxattr call on the file system to find out of it is supported and if
> it is add something to indicate xattr support?
It's not an in kernel deadlock. fuse userspace refuses to respond to
anything until mount(8) is finished. So if mount(8) at any point (even
during mount(2)) is waiting on the fuse userspace to respond you are
just stuck.
-Eric
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2010-07-27 1:12 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-23 17:14 fuse and selinux don't seem to work well together Xavier Toth
2010-07-23 17:35 ` David P. Quigley
2010-07-23 17:46 ` David P. Quigley
2010-07-23 18:32 ` David P. Quigley
2010-07-23 18:57 ` Xavier Toth
2010-07-23 19:34 ` Stephen Smalley
2010-07-25 15:14 ` Xavier Toth
2010-07-25 22:24 ` Eric Paris
2010-07-26 3:37 ` merlin
2010-07-26 13:44 ` Xavier Toth
2010-07-26 18:13 ` Xavier Toth
2010-07-26 18:30 ` Eric Paris
2010-07-26 19:22 ` David P. Quigley
2010-07-26 20:22 ` Xavier Toth
2010-07-26 20:31 ` David P. Quigley
2010-07-26 21:23 ` Eric Paris
2010-07-26 21:40 ` David P. Quigley
2010-07-27 1:12 ` Eric Paris [this message]
2010-07-27 12:43 ` Stephen Smalley
2010-07-26 21:15 ` Xavier Toth
2010-07-26 21:10 ` David P. Quigley
2010-07-26 21:35 ` Eric Paris
2010-07-26 22:29 ` David P. Quigley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1280193138.23427.111.camel@localhost \
--to=eparis@redhat.com \
--cc=dpquigl@tycho.nsa.gov \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=txtoth@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.