lkml.org 
[lkml]   [2011]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86, AMD: Correct F15h IC aliasing issue

* Borislav Petkov <bp@amd64.org> wrote:

> > Was this done with a stock kernel, or with the simple patch
> > applied?
>
> with the simplest version of Linus' patch:
>
> diff --git a/arch/x86/mm/mmap.c b/arch/x86/mm/mmap.c
> index 1dab519..6b1094d 100644
> --- a/arch/x86/mm/mmap.c
> +++ b/arch/x86/mm/mmap.c
> @@ -90,6 +90,8 @@ static unsigned long mmap_rnd(void)
> rnd = (long)get_random_int() % (1<<8);
> else
> rnd = (long)(get_random_int() % (1<<28));
> +
> + rnd &= ~0x7;

So, unless i got the stats right, unmodified kernel has like a 75%
mis-aligned rate, while with the simple fix this goes down to 30%?

Have you run the numbers on the stock, unmodified kernel by any
chance, just to make sure the stats are ok?

Thanks,

Ingo


\
 
 \ /
  Last update: 2011-07-26 20:51    [W:1.305 / U:0.968 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site