lkml.org 
[lkml]   [2020]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] powerpc/8xx: Fix STRICT_KERNEL_RWX startup test failure
From
Date


Le 20/04/2020 à 07:29, Christophe Leroy a écrit :
> WRITE_RO lkdtm test works.
>
> But when selecting CONFIG_DEBUG_RODATA_TEST, the kernel reports
> rodata_test: test data was not read only
>
> This is because when rodata test runs, there are still old entries
> in TLB.
>
> Flush TLB after setting kernel pages RO or NX.
>
> Fixes: d5f17ee96447 ("powerpc/8xx: don't disable large TLBs with CONFIG_STRICT_KERNEL_RWX")
> Cc: stable@vger.kernel.org
> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
> ---
> arch/powerpc/kvm/Makefile | 2 +-

Oops, this change shouldn't be there. Will send v2.

> arch/powerpc/mm/nohash/8xx.c | 3 +++
> 2 files changed, 4 insertions(+), 1 deletion(-)


Christophe

\
 
 \ /
  Last update: 2020-04-20 07:36    [W:0.040 / U:1.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site