mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Stephen C. Tweedie" <sct@redhat.com>
To: Steve G <linux_4ever@yahoo.com>
Cc: James Morris <jmorris@redhat.com>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Stephen Smalley <sds@epoch.ncsc.mil>,
	Stephen Tweedie <sct@redhat.com>
Subject: Re: Ext3 problems in dual booting machine with SE Linux
Date: 23 Jul 2004 20:44:07 +0100	[thread overview]
Message-ID: <1090611847.2140.42.camel@sisko.scot.redhat.com> (raw)
In-Reply-To: <20040723190104.48863.qmail@web50609.mail.yahoo.com>

Hi,

On Fri, 2004-07-23 at 20:01, Steve G wrote:
> >You may have hit either the 2.4/2.6 xattr compatibility bug, or some other
> >xattr bug since fixed in the kernel.  I'd suggest using a 2.4.25 or
> >greater kernel if you want to access ext2/ext3 xattrs which were created
> >under 2.6.  2.4 kernels below this do not have 2.6 compatible xattrs for
> >ext2 and ext3.
> 
> If Ext3 is now no longer compatible with itself, should it have been called Ext4?

The comatibility issue affects ext2 too.  It's triggered by the presence
of extended attributes on "fast" ext2 symlinks, something which is
normally only triggered by SELinux; but the problem is not in SELinux,
it's in the core xattr and symlink code.

> Is there any version number embedded in the filesystem so newer versions of Ext3
> can act in a way compatible with older systems? 

It's not so simple.  Changing it now would make the new xattr code
incompatible with the old xattr code.  We're somewhat stuck with this
now.

> This seems like an open door to mischief. Any removable media can now be used to
> oops a kernel. There are systems that are under configuration control and moving
> to 2.4.25 is not really an option. They should be able to read/write any ext3
> media inserted into them.

Agreed.  Any oops on an older system is a bug --- ext3 shouldn't be
oopsing on bogus data.  I'll have a look at that (though I'm away for
most of the next 2 weeks so it probably won't be until I get back.) 
Such a bug in any ext3 implementation needs fixed, as it's exploitable
via removable media whether or not there are xattrs in the picture.

--Stephen


  reply	other threads:[~2004-07-23 19:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-23 15:37 Steve G
2004-07-23 17:37 ` James Morris
2004-07-23 19:01   ` Steve G
2004-07-23 19:44     ` Stephen C. Tweedie [this message]
2004-07-23 20:58     ` Valdis.Kletnieks
2004-07-23 20:46 ` Valdis.Kletnieks
2004-07-23 21:21   ` Steve G
2004-07-23 21:28     ` Valdis.Kletnieks

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=1090611847.2140.42.camel@sisko.scot.redhat.com \
    --to=sct@redhat.com \
    --cc=jmorris@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux_4ever@yahoo.com \
    --cc=sds@epoch.ncsc.mil \
    /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

all inboxes | Powered by JetHome®