Re: user-mode port 0.44-2.4.7

Andrea Arcangeli (andrea@suse.de)
Mon, 23 Jul 2001 18:45:28 +0200


On Mon, Jul 23, 2001 at 09:33:28AM -0700, Linus Torvalds wrote:
>
> On Mon, 23 Jul 2001, Andrea Arcangeli wrote:
> >
> > in my tree I did some further cleanup, here the ones that you can
> > interested about:
>
> Andrea, please drop the "volatile" from xtime. It's bogus.

it's the other way around, it's needed and gcc trapped a kernel bug.

If the contents of memory not declared volatile changes under GCC (like
it can happen right now for xtime since it's declared non volatile), gcc
has the full rights to crash the kernel at runtime.

I know there are other bugs like this one in the kernel, but this is not
a good reason to fix the known ones IMHO.

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