From: Rob Landley <rob@landley.net>
To: ebiederm@xmission.com (Eric W. Biederman),
Andries Brouwer <aebr@win.tue.nl>
Cc: Andries.Brouwer@cwi.nl, torvalds@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] linuxabi
Date: Fri, 3 Oct 2003 22:37:03 -0500 [thread overview]
Message-ID: <200310032237.03431.rob@landley.net> (raw)
In-Reply-To: <m13ceahix8.fsf@ebiederm.dsl.xmission.com>
On Friday 03 October 2003 02:36, Eric W. Biederman wrote:
> Andries Brouwer <aebr@win.tue.nl> writes:
> > On Thu, Oct 02, 2003 at 08:39:50AM -0600, Eric W. Biederman wrote:
> > > This is a 2.7 project.
> >
> > I disagree. This is unrelated to kernel development, just like working
> > on sparse is unrelated to kernel development.
>
> Granted. The major point is that it requires a development cycle
> before it is ready. Only if this is to be maintained as part of
> the kernel is it needed to be 2.7 work.
Um, what's the point of having linux abi exort header files that are NOT part
of the kernel?
The theory here is that _some_ of the definitions in the kernel headers define
interfaces with userspace. Structures passed to fcntl or ioctl, constants,
etc. The kernel has to have copies of these definitions for its own use,
just as much as userspace does. (It has to get the data from and put the data
into these structures, doesn't it? How can it do this without a defiition of
these structures? An interface has two sides, and the kernel side of that
interface needs the abi definitions to provide the abi.)
The other 99% of the kernel headers should NOT get included in userspace
programs. This is the reason that, way back, #ifdef KERNEL was put in there
in the first place, with the ABI stuff being anything that was outside the
#ifdef. This solution sucked eggs for fairly obvious reasons, but rather
than separate out the ABI definitions into their own header files shared by
kernel and user space, the advice from on high became "just cut and paste out
the bits you need". This solution sucked different eggs. Any library that
talks directly to the linux kernel needs to have access the kernel ABI, and
manually extracting it from the kernel header files is a maintenance
nightmare. Even if you abstract this away into a library, the LIBRARY still
needs to do it. You've just moved the problem.
Some people here have argued variants of "tracking what the linux kernel
exports to userspace is somebody else's problem". I.E. the linux kernel
can't be bothered to keep track of what it exports to userspace. That just
gives me a warm fuzzy feeling all over, that does...
> My point is that we need to cleanly handle the fact that glibc
> defines it's own abi that is not equivalent to the kernel abi.
> A linux specific namespace does that. After libc is done with
> the definitions users will still use MS_RDONLY.
Does anything other than glibc have this problem? (Does uclibc have this
problem? cdrecord?)
Rob
next prev parent reply other threads:[~2003-10-04 3:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-01 0:01 [PATCH] linuxabi Andries.Brouwer
2003-10-01 2:05 ` Bernd Eckenfels
2003-10-01 3:34 ` viro
2003-10-01 4:52 ` H. Peter Anvin
2003-10-01 5:22 ` Philippe Troin
2003-10-01 5:50 ` Miles Bader
2003-10-01 14:33 ` Daniel Jacobowitz
2003-10-01 10:20 ` J.A. Magallon
2003-10-02 14:39 ` Eric W. Biederman
2003-10-02 15:33 ` Andries Brouwer
2003-10-03 7:36 ` Eric W. Biederman
2003-10-04 3:37 ` Rob Landley [this message]
2003-10-04 6:31 ` Erik Andersen
[not found] ` <fa.e2g5r6g.u3igb4@ifi.uio.no>
2003-10-03 16:49 ` Kai Henningsen
2003-10-03 17:32 ` Sam Ravnborg
[not found] <BCSP.62t.7@gated-at.bofh.it>
[not found] ` <CcWl.7kh.9@gated-at.bofh.it>
[not found] ` <CdIL.8ts.13@gated-at.bofh.it>
2003-10-03 14:02 ` Ihar 'Philips' Filipau
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=200310032237.03431.rob@landley.net \
--to=rob@landley.net \
--cc=Andries.Brouwer@cwi.nl \
--cc=aebr@win.tue.nl \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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