Re: Ext3 problems in dual booting machine with SE Linux

From: Stephen C. Tweedie
Date: Fri Jul 23 2004 - 14:47:20 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/