Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp100227pxj; Thu, 3 Jun 2021 01:46:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGrisu1b8igyh3atDnyNPeULzOE9DN/jwElQsoZ2YZtaSpY4x/aeL69z1VY+S+CIFwj/4l X-Received: by 2002:aa7:c584:: with SMTP id g4mr23343829edq.335.1622710005663; Thu, 03 Jun 2021 01:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622710005; cv=none; d=google.com; s=arc-20160816; b=BbYUPdumG96nJjN3Y9hLQNdZ76XxBxmtOqH4yQkhKwteBx0oiaKLIsXSzj9WRFda/X 9rHQyJIomKyMgXwSc9hXzrSftTtd1J8JuRO6XZ6MmFieFy0HFptP63kTYnm/Xkat4EZW z+3X5sbE81c7afX48zTphQr3SN40yggfOm6w9eG6Q38MQJxjfbphku87gQvYYVrMi/zX oCofkP35kG6gHFc/szZ8J74LxqShzHCo1CLtBuPqRJUeHec6SgLi3soLdt1oyKFWRE1z VNoTbYwW0vMKeII9ysL7r6jpg4ZU9ULO0FLZEE8Mc0/yfZxka6PMLfW+4r8wpUC5ublk i+uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:cc:to:subject:from:references:in-reply-to :message-id; bh=SFFWzZypA6NY5KlIS6GdNh//VyjuABmmptFdJLCZyUk=; b=SEwMyI6I9Zrocwpq9R4DoXd+IEI+p5QBaSiiuEqtxwjyoPTIV+1br44n99XFEJQ+bH iI2gIx5kOptIkbntaDTgRCLhOshDOIthwKLWC+sMV3/y9+G5vVXPqRR+jxeZ4AFy5za5 jjNySRdq3aB0WaEouNXMSKSBm0XtndFs9EWBhg4a4zcpN6AsH8LXHc6dZSi2FsdP4iBT yia0UCVAyQyYY6oQ0te6Miet++QAgTgXYv7rxTP+1Nh0cm3x8BpBblijsZDGmiwGrX+8 puqn7jQaUyCmjSTR6gvLTIBrrNEPCLFgXRKxWGeJ1atxIj6kXD2U9sOD8/KawEx8Ezuk dRtQ== ARC-Authentication-Results: i=1; mx.google.com; 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 hs26si1850804ejc.307.2021.06.03.01.46.22; Thu, 03 Jun 2021 01:46:45 -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; 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 S229999AbhFCIn6 (ORCPT + 99 others); Thu, 3 Jun 2021 04:43:58 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:31593 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229656AbhFCIn6 (ORCPT ); Thu, 3 Jun 2021 04:43:58 -0400 Received: from localhost (mailhub3.si.c-s.fr [192.168.12.233]) by localhost (Postfix) with ESMTP id 4FwfWv3hs1zBC5j; Thu, 3 Jun 2021 10:41:47 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jq7SXitm_Ewg; Thu, 3 Jun 2021 10:41:47 +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 4FwfWt2tl3zBC60; Thu, 3 Jun 2021 10:41:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 51B978B848; Thu, 3 Jun 2021 10:41:46 +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 bwCD3RmmrU79; Thu, 3 Jun 2021 10:41:46 +0200 (CEST) Received: from po15610vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 1F5568B767; Thu, 3 Jun 2021 10:41:46 +0200 (CEST) Received: by po15610vm.idsi0.si.c-s.fr (Postfix, from userid 0) id EFB9164BD2; Thu, 3 Jun 2021 08:41:45 +0000 (UTC) Message-Id: <86c7c74a3ba5312daea7e9658b096e2bcc6f4b64.1622708530.git.christophe.leroy@csgroup.eu> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v2 10/12] powerpc/32s: Activate KUAP and KUEP by default To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 3 Jun 2021 08:41:45 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that KUAP and KUEP have been significantly optimised and can be disabled at boot time using 'nosmap' and 'nosmep' kernel parameters, them can be active by default like in other powerpc platforms. It is still possible to disable them completely in the configuration. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/Kconfig.cputype | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index 885140055b7a..52f533b19518 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++ b/arch/powerpc/platforms/Kconfig.cputype @@ -389,7 +389,7 @@ config PPC_HAVE_KUEP config PPC_KUEP bool "Kernel Userspace Execution Prevention" depends on PPC_HAVE_KUEP - default y if !PPC_BOOK3S_32 + default y help Enable support for Kernel Userspace Execution Prevention (KUEP) @@ -401,7 +401,7 @@ config PPC_HAVE_KUAP config PPC_KUAP bool "Kernel Userspace Access Protection" depends on PPC_HAVE_KUAP - default y if !PPC_BOOK3S_32 + default y help Enable support for Kernel Userspace Access Protection (KUAP) -- 2.25.0