From: Al Viro <viro@ZenIV.linux.org.uk>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
"Denis V. Lunev" <den@openvz.org>
Subject: Re: [git pull] VFS patches, the first series
Date: Sat, 23 Aug 2008 04:33:28 +0100 [thread overview]
Message-ID: <20080823033328.GH28946@ZenIV.linux.org.uk> (raw)
In-Reply-To: <m1iqttnc7a.fsf@frodo.ebiederm.org>
On Thu, Aug 21, 2008 at 05:08:25PM -0700, Eric W. Biederman wrote:
> I'm not certain what to do about it. The semantics of the how the
> sysctl tables are access have changed significantly. Now the first
> sysctl table to describe a directory must remain until there are no
> other tables that have entries in that directory and a sysctl table
> must have a pure path of directories for any portion of the address
> space it shares with an earlier sysctl table. This is noticeably
> different from the union mount semantics we have had previously for
> the sysctl tables.
Note that the old semantics had a lovely inherent problem (leaving aside
the utterly insane amount of walking and re-walking the trees, as you've
found out the hard way - don't tell me you hadn't cursed it when writing
the previous version of proc_sysctl.c): there's redundancy between the
trees. At the very least, just what are we supposed to get when the
stems do not match each other - either in permissions or in ctl_name?
> If it doesn't look to bad to maintain the new semantics it looks like
> the right thing to do is to add some additional checks so we get more
> precise warnings (who knows what out of tree sysctl code will do) and
> to find someplace I can insert a net/ipv4/neigh sysctl directory into
> (ipv4_net_table looks like it will work) to keep the network namespace
> code working safely.
>
> Al btw nice trick using compare to keep the dentries separate allowing
> us to cache everything in /proc. I feel silly for missing that one.
> Want to get together in the next couple of weeks and build a tree that
> updates the sysctls infrastructure to suck less?
Fine by me... BTW, fixing that particular crap is not hard - you need
to have the entry in question show up before either interface, that's all.
I missed that part of ordering mess, to be honest. I'll look into that,
hopefully will post the fix later tonight.
FWIW, I'd very much prefer ->d_compare() trick to the horrors you guys
are doing around sysfs; it might or might not be feasible depending on
what visibility rules you end up with there, but if it's feasible at all
I'd rather go for it and avoid the entire 'separate backing store' mess.
IIRC, I had described that scheme to you quite a few months ago in sysfs
context; got no response back then...
next prev parent reply other threads:[~2008-08-23 3:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20080727012212.GW28946@ZenIV.linux.org.uk>
[not found] ` <m1d4k2zui4.fsf@frodo.ebiederm.org>
[not found] ` <m1od3mthma.fsf@frodo.ebiederm.org>
2008-08-22 0:08 ` [git pull] VFS patches, the first series Eric W. Biederman
2008-08-23 3:33 ` Al Viro [this message]
2008-08-23 5:22 ` Eric W. Biederman
2008-08-23 7:24 ` Al Viro
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=20080823033328.GH28946@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--cc=den@openvz.org \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/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).