Re: [PATCH] x86, AMD: Correct F15h IC aliasing issue

From: Ingo Molnar
Date: Sun Jul 24 2011 - 14:13:18 EST



* Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

> On Sun, Jul 24, 2011 at 10:22 AM, Borislav Petkov <bp@xxxxxxxxx> wrote:
> >
> >> So at a MINIMUM, I would say that this is acceptable only when the
> >> process doing the allocation hasn't got ASLR disabled.
> >
> > I guess I could look at randomize_va_space before enabling it.
>
> That's not what I meant - I meant the per-process PF_RANDOMIZE and
> ADDR_NO_RANDOMIZE personality flags (although the global
> "randomize_va_space" thing obviously is one input to that too)
>
> In fact, if 99% of your problem is ASLR-induced, might I suggest
> just making the whole thing a tweak to ASLR instead, and not use
> ASLR for bits 14:12? That should be fundamentally much safer: it
> doesn't change any semantics at all, it just makes for slightly
> less random bits to be used.

Indeed - that would be much nicer and smaller as well. It could also
go away easily if this bug is fixed in a future CPU.

Thanks,

Ingo
--
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/