[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <37627d56-6338-768a-d82a-397c55974607@c-s.fr>
Date: Mon, 20 Apr 2020 07:35:53 +0200
From: Christophe Leroy <christophe.leroy@....fr>
To: Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>,
Michael Ellerman <mpe@...erman.id.au>
Cc: linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] powerpc/8xx: Fix STRICT_KERNEL_RWX startup test failure
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@...r.kernel.org
> Signed-off-by: Christophe Leroy <christophe.leroy@....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
Powered by blists - more mailing lists