From: Greg KH <greg@kroah.com>
To: Tvrtko Ursulin <tvrtko.ursulin@sophos.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Al Viro <viro@zeniv.linux.org.uk>
Subject: Re: BUG: Securityfs and bind mounts (2.6.34)
Date: Thu, 8 Jul 2010 07:43:17 -0700 [thread overview]
Message-ID: <20100708144317.GA2364@kroah.com> (raw)
In-Reply-To: <201007081112.41252.tvrtko.ursulin@sophos.com>
On Thu, Jul 08, 2010 at 11:12:41AM +0100, Tvrtko Ursulin wrote:
>
> Hi guys,
>
> If I overlay a file in securityfs using mount --bind with a file from
> a regular filesystem, should I be allowed to rmmod the module which
> registered the overlaid securityfs file?
Why would you want to overlay securityfs in the first place?
And you might be able to rmmod the module, but I didn't think that
security modules were able to be unloaded anymore.
> I was able to do that, then I
> unmounted the bind mount, and then when attempting to unmount
> securityfs hit a BUG at
> fs/dcache.c:676 (see below). It would have made more sense to first
> umount the overlay file and then remove the module which registered
> with securityfs, nevertheless should kernel crash in this case?
Probably not, but then again, you did something that you shouldn't have,
so perhaps it is telling you not to do such a thing in the future :)
thanks,
greg k-h
next prev parent reply other threads:[~2010-07-08 14:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-08 10:12 BUG: Securityfs and bind mounts (2.6.34) Tvrtko Ursulin
2010-07-08 14:43 ` Greg KH [this message]
2010-07-08 14:55 ` Tvrtko Ursulin
2010-07-08 15:20 ` Greg KH
2010-07-08 15:32 ` Tvrtko Ursulin
2010-07-08 15:46 ` Greg KH
2010-07-08 16:14 ` Tvrtko Ursulin
2010-07-14 16:19 ` Tvrtko Ursulin
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=20100708144317.GA2364@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tvrtko.ursulin@sophos.com \
--cc=viro@zeniv.linux.org.uk \
/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.