Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp649367ybl; Fri, 31 Jan 2020 05:37:32 -0800 (PST) X-Google-Smtp-Source: APXvYqwHZrbwtahxzk2hxOb4gv+Fq5ree3rA6Aag2YRVJVJTZFbckS5tmw3Jo+vekcHw5M+MorPX X-Received: by 2002:aca:814:: with SMTP id 20mr6382266oii.159.1580477852517; Fri, 31 Jan 2020 05:37:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580477852; cv=none; d=google.com; s=arc-20160816; b=WOWoErLpj75vRyEPWzL1Lf84LYrXsk5mg9dw8gbPV5eXWeYPwRj2HIKlNpQfIOYT6X un9TPEkYXZ9M+tOAGNkBxh23Ok1p/nHbe6JZLXfM3Dnrds2u3P7nxVSBhxUBzR4WfWh6 vH1OnJ9WBIj6dHZw4z8PAsktFaOdQKnmAkKG7fnaz7lxtX2XRwTKlH8WbkAPBMDhtcGg EhWo6/uV53O5oKsd/kxWfls3Nii4Vu+M69TX2qbHEJ89bE5tJhXJLMXlwsR94c4YDNl9 ZPCMllsGhUPo5uGgISeEdjG8Wo+DVMwjy/txjNyQcBl8mrEoG+YxYisMo5bsmIfAoVow W8jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id:dkim-signature; bh=OmRcEv/1K7wC1Q/InXWM+Ks2W4FG83wJdW7eZXfJcmc=; b=JJBniqLe5P7UXtV074JUGBk5gAzdIySHyPr27jOe3ENR5BmHqiApTg/s/Aotw4W9uo TrXJVdU4Jyz+h7c+GdjXU8dBqZr3fnod+VipLrH6BqtcJHCKHv5wsgb+8Hbj7tD0V7XR P6zOLGg+5ZlR4iSTwmw096YbTZujUYW4thhO3oE2ct9n289a6qwUFDygTdsiHFYr26w6 LzLbho7x5NVzG9rblXFTc8eH64NGNVJZAgIHiV5bElm+uRMeA1j3oxnGXqS/2+Zl2Rn4 apMORcr2n75fjATj8MWA7IZTqyhZ8kmVOFU6YIk9ex5TspSV7famxSp21Tct3Df6hs+u LpZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=noK71AZg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a22si4798376otp.84.2020.01.31.05.37.21; Fri, 31 Jan 2020 05:37:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=noK71AZg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728860AbgAaNfH (ORCPT + 99 others); Fri, 31 Jan 2020 08:35:07 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:37896 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728762AbgAaNey (ORCPT ); Fri, 31 Jan 2020 08:34:54 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 488J9m3qVnzB09ZC; Fri, 31 Jan 2020 14:34:52 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=noK71AZg; 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 w_FxrLnA5i_p; Fri, 31 Jan 2020 14:34:52 +0100 (CET) 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 488J9m2lyxz9vCRQ; Fri, 31 Jan 2020 14:34:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1580477692; bh=OmRcEv/1K7wC1Q/InXWM+Ks2W4FG83wJdW7eZXfJcmc=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=noK71AZg1WDSL1CfnPZQbXhz2EPx+L/104myvjnzhLfveYLZBwXaiuK+XM6rDgQjy tcLooNunw5Q8pheyTW+lCQXEAkLPnE7CioQrGWvMywHq5rzJyqUCV3j5RFi/CgeFnY BHPz74yyClff3IQFVh0u4qXzTSmCdYypGNjDSF20= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 989118B8AA; Fri, 31 Jan 2020 14:34:53 +0100 (CET) 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 YW2ArcXMJCsb; Fri, 31 Jan 2020 14:34:53 +0100 (CET) Received: from po14934vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.230.105]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 73E528B8A2; Fri, 31 Jan 2020 14:34:53 +0100 (CET) Received: by po14934vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 6C50565288; Fri, 31 Jan 2020 13:34:53 +0000 (UTC) Message-Id: In-Reply-To: <84be5ad6a996adf5693260749dcb4d8c69182073.1580477672.git.christophe.leroy@c-s.fr> References: <84be5ad6a996adf5693260749dcb4d8c69182073.1580477672.git.christophe.leroy@c-s.fr> From: Christophe Leroy Subject: [PATCH v2 5/7] powerpc/configs: Enable STRICT_MODULE_RWX in skiroot_defconfig To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , ruscur@russell.cc Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Fri, 31 Jan 2020 13:34:53 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Russell Currey skiroot_defconfig is the only powerpc defconfig with STRICT_KERNEL_RWX enabled, and if you want memory protection for kernel text you'd want it for modules too, so enable STRICT_MODULE_RWX there. Acked-by: Joel Stanley Signed-off-by: Russell Currey --- v2: no change Signed-off-by: Christophe Leroy --- arch/powerpc/configs/skiroot_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/skiroot_defconfig b/arch/powerpc/configs/skiroot_defconfig index 069f67f12731..b74358c3ede8 100644 --- a/arch/powerpc/configs/skiroot_defconfig +++ b/arch/powerpc/configs/skiroot_defconfig @@ -31,6 +31,7 @@ CONFIG_PERF_EVENTS=y CONFIG_SLAB_FREELIST_HARDENED=y CONFIG_JUMP_LABEL=y CONFIG_STRICT_KERNEL_RWX=y +CONFIG_STRICT_MODULE_RWX=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_MODULE_SIG=y -- 2.25.0