Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3271519ybz; Sun, 19 Apr 2020 22:38:04 -0700 (PDT) X-Google-Smtp-Source: APiQypJc93sti3ENSq5G0JCisOR7iU/fCHRu5ii0WK9F9vH0vIrcgg4GElBldAH6KEbQVinAu1ag X-Received: by 2002:a17:906:2d4a:: with SMTP id e10mr5096843eji.222.1587361084173; Sun, 19 Apr 2020 22:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587361084; cv=none; d=google.com; s=arc-20160816; b=RL4Pf/QURSlG0DUdTEZRXjby8kIgLahI0o0/32vmdfHlY28y7909HdBBt1elUykBNv ZVgd7zd+U/9mbDRK3WCjIkqzRlIOtnGqDmtovC+T59fuHDpyjxB8cbr9BI0L/zpJJs1x 6zbe1jqutow0f/6x1PDBBqyYR7gCI246SU7NaNxtQhuMpCIpK1p7h1lsf82bE+O2/xjm 3HQQG09miM33My8/nahM4POJnpmqeiJHi9QEjwSfpq4f1hvXwYJ6SYexxEh4xffUGaqV 8Wnx1yUUi2r4plld1IBVeNfkvXTfRWj6M3TAH03HNruLuL4/27vN4CPpEibfSL7vP9Pi t8Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=gbvV/0yUNCxbrnMP2PABrPUQIbZfdpXkHJe2K9NCY3M=; b=M25Bc+7/ADnjIv3XqFlvvDSeJ/h+f+eN0sa8iTMnryGOC6Ur/NcmlO9bOphUXodPJS JTf6CDDyCv+x0732sOy/oPAfdjJFnXcVCDKeihEQvsIOC3ow8N7lnGg7L/uC32Ibc7zN g6GwgHaUl834QPcnpa1MTzpfAUVVrTfYbY9kMRf7pEDDkznunaNY8Qs+mW2Vau+QSXMm 5ncZuzkoCypxXlueTo2hNB3TB7viJpy/1AhulwWtZKIJa78Q25WZhesz+Q7+diBx9DCR zTsv/amrUhBBEBVLYJyxI6L3QHfJ5kfEExH8Z6a54WlX3HkHUStw0XoZpzPTG+lhcy57 LTfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=IDpwaVO2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si16758808ejd.424.2020.04.19.22.37.41; Sun, 19 Apr 2020 22:38:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=IDpwaVO2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726079AbgDTFgD (ORCPT + 99 others); Mon, 20 Apr 2020 01:36:03 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:28188 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbgDTFgD (ORCPT ); Mon, 20 Apr 2020 01:36:03 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 495FmC2y0Cz9tyFs; Mon, 20 Apr 2020 07:35:55 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=IDpwaVO2; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id eED5noZUcD5x; Mon, 20 Apr 2020 07:35:55 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 495FmC1W0Lz9tyFq; Mon, 20 Apr 2020 07:35:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1587360955; bh=gbvV/0yUNCxbrnMP2PABrPUQIbZfdpXkHJe2K9NCY3M=; h=Subject:From:To:Cc:References:Date:In-Reply-To:From; b=IDpwaVO2uqNHZ1HQUx5DEwfo4UyoPWPh4v68CJhUA2BF960jS/IUU2ak/iFHymki1 6Q7Ul/t15W0eiGSL5e1zXDWNRDdEjWfxj3EXY9MkQTXpdqqn+fNxRe+wXnYsCi6buC xn3Amae/bvKFx459VMc+QYMFumRdZNDKMdRf+/SM= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 0A68D8B776; Mon, 20 Apr 2020 07:36:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 5Pu0Xd3vKtx1; Mon, 20 Apr 2020 07:35:59 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 02DC88B752; Mon, 20 Apr 2020 07:35:58 +0200 (CEST) Subject: Re: [PATCH] powerpc/8xx: Fix STRICT_KERNEL_RWX startup test failure From: Christophe Leroy To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <0231963e81d6e72ff725212c14f4011d2ee36a9e.1587360530.git.christophe.leroy@c-s.fr> Message-ID: <37627d56-6338-768a-d82a-397c55974607@c-s.fr> Date: Mon, 20 Apr 2020 07:35:53 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <0231963e81d6e72ff725212c14f4011d2ee36a9e.1587360530.git.christophe.leroy@c-s.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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