From: Pekka Enberg <penberg@cs.helsinki.fi>
To: Andrew Morton <akpm@osdl.org>
Cc: alan@lxorguk.ukuu.org.uk, tytso@mit.edu,
linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
tigran@veritas.com, viro@zeniv.linux.org.uk
Subject: Re: [RFC/PATCH] revoke/frevoke system calls
Date: Sat, 22 Jul 2006 10:41:39 +0300 [thread overview]
Message-ID: <1153554099.5589.9.camel@ubuntu> (raw)
In-Reply-To: <20060721235931.e8336001.akpm@osdl.org>
Hi,
On Sat, 22 Jul 2006 09:22:37 +0300 (EEST)
Pekka J Enberg <penberg@cs.Helsinki.FI> wrote:
> > There are alternatives, playing games with ->f_op, creating fake struct
> > file, and doing IS_REVOKED if-else in the paths, but I think this is by
> > far the simplest way to do it. So in the Andrew scale of sads, how
> > sad is it, exactly?-)
On Fri, 2006-07-21 at 23:59 -0700, Andrew Morton wrote:
> Sad enough. Certainly worth an if-else to fix.
Actually, we can fix it with file->f_light thing Tigran is doing:
http://developer.osdl.org/dev/fumount/kernel2/patches/2.6.12/1/forced-unmount-2.6.12-1.patch
On Fri, 2006-07-21 at 23:59 -0700, Andrew Morton wrote:
> Why is this approach so different from Tigran's, I wonder.
Not so different. I am blocking fork until I can revoke all open file
descriptors (i.e. substitute with NULL) whereas Tigran is dropping
tasklist_lock and retrying. I am not doing get_bad_file() because I
don't think we really need it. Tigran's mmap takedown code looks pretty
much what I want too.
On Fri, 2006-07-21 at 23:59 -0700, Andrew Morton wrote:
> iirc, one of the things we added file.f_mapping for was revokation, but
> this patch doesn't use it. Please ask Al Viro about this.
I searched fsdevel archives but couldn't find anything on that. Al?
Pekka
next prev parent reply other threads:[~2006-07-22 7:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-20 12:07 [RFC/PATCH] revoke/frevoke system calls Pekka J Enberg
2006-07-20 20:02 ` Kari Hurtta
2006-07-20 21:09 ` Björn Steinbrink
2006-07-21 22:16 ` Edgar Toernig
2006-07-22 0:19 ` Andrew Morton
2006-07-22 6:22 ` Pekka J Enberg
2006-07-22 6:59 ` Andrew Morton
2006-07-22 7:41 ` Pekka Enberg [this message]
[not found] <6AFvY-7ZK-15@gated-at.bofh.it>
2006-07-20 21:26 ` Bodo Eggert
2006-07-20 23:01 ` roucaries bastien
-- strict thread matches above, loose matches on Subject: below --
2006-07-22 8:05 Albert Cahalan
2006-08-07 10:45 ` Pekka Enberg
2006-08-07 15:19 ` Albert Cahalan
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=1153554099.5589.9.camel@ubuntu \
--to=penberg@cs.helsinki.fi \
--cc=akpm@osdl.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tigran@veritas.com \
--cc=tytso@mit.edu \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).