From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27339C433DB for ; Tue, 16 Mar 2021 03:21:14 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 95E9565092 for ; Tue, 16 Mar 2021 03:21:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 95E9565092 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Dzz8S2Hrcz3bVZ for ; Tue, 16 Mar 2021 14:21:12 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Tom2esHg; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::52f; helo=mail-pg1-x52f.google.com; envelope-from=jniethe5@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Tom2esHg; dkim-atps=neutral Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Dzz5l4Dn9z30FT for ; Tue, 16 Mar 2021 14:18:51 +1100 (AEDT) Received: by mail-pg1-x52f.google.com with SMTP id x29so21684231pgk.6 for ; Mon, 15 Mar 2021 20:18:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bD2k3N8TtbJ/5mTogIWRF2QbxokniPZTNjK+oMQNzxk=; b=Tom2esHgHLHXDPPFtXcZ+klkQqtKfHzGJHneW1HACLQZPvAIjpI7KZe4F2ssDzgvNh bLHXn8YBDkKEKUFVtrfhyp+SipLasmwKXh3EvzyXVMhb0DkfEbcaBpT5ZCka+LvodEaU PE4oFxqxBA7t20q6WU9JNj1mHO+speKDkyaODITLfhy4Otaam+nyFnVAVuLBf7rDEhf4 +BgemXMebsnk8QB9W8zsc22tSqC+Uv4ll4ZlBEFBeuOPMFOlavlvDLddxnCImw6McJuQ xjyTSV7f8HfzMUvPd/tZDyDp9kfRpFZ9q4D7fp2AcMgJ42XKGfVNqVb6El2CYuKVeMWZ OQlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bD2k3N8TtbJ/5mTogIWRF2QbxokniPZTNjK+oMQNzxk=; b=UmqW0Dt/ikcqbNKNqceNu8dbuisXM8gJptSSqshSGVWEkln/6ito6JFxvBZjgQTyN3 b9/6tIG7925BNmlQjFzqYtQjtjAQ9EzADT5Njip2clm7Y93CCajlyjlgsGw+xiJOnfoM oCSChEZWzD7uQyqG5NQ4kV4N2D7EJAy+oUbkbN+E5dY/hn7w2zWoR8+vD6U7H4CRxzD1 TglQbAPBDcp1wuTGbzEAJSdc8UnSTk89X6CIb52GCzsut44fmYuMXtO3sPf5tq1mUVt5 uBuEQtwhuI5WqYw1YWB1y2Ay+ZCNlodpyFTAdL6hv3YjVaJeMFwJG1x2idfRtnkywNX5 DacQ== X-Gm-Message-State: AOAM531XMSoXnoq5mCP9Sb8VO+mnzHhwZSfOpYOPlFlkH47wYaLd6i26 VexSxlyhKUBU14D/U/g0dQ4t2DGT5jRayw== X-Google-Smtp-Source: ABdhPJwkpgbHt+1x6XK8+vQUUFrctSggl/7W+CuzK00IbGTWzaKEFGAe1+SB9TC82MVL1Ztx901dHQ== X-Received: by 2002:a63:df43:: with SMTP id h3mr1989699pgj.276.1615864729029; Mon, 15 Mar 2021 20:18:49 -0700 (PDT) Received: from localhost.localdomain (159-196-117-139.9fc475.syd.nbn.aussiebb.net. [159.196.117.139]) by smtp.gmail.com with ESMTPSA id o13sm15098809pgv.40.2021.03.15.20.18.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 20:18:48 -0700 (PDT) From: Jordan Niethe To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH v9 6/8] powerpc/configs: Enable STRICT_MODULE_RWX in skiroot_defconfig Date: Tue, 16 Mar 2021 14:17:39 +1100 Message-Id: <20210316031741.1004850-6-jniethe5@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210316031741.1004850-1-jniethe5@gmail.com> References: <20210316031741.1004850-1-jniethe5@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: christophe.leroy@c-s.fr, ajd@linux.ibm.com, Joel Stanley , npiggin@gmail.com, naveen.n.rao@linux.ibm.com, Jordan Niethe , dja@axtens.net Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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 Signed-off-by: Jordan Niethe --- 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 b806a5d3a695..50fe06cb3a31 100644 --- a/arch/powerpc/configs/skiroot_defconfig +++ b/arch/powerpc/configs/skiroot_defconfig @@ -50,6 +50,7 @@ CONFIG_CMDLINE="console=tty0 console=hvc0 ipr.fast_reboot=1 quiet" # CONFIG_PPC_MEM_KEYS is not set CONFIG_JUMP_LABEL=y CONFIG_STRICT_KERNEL_RWX=y +CONFIG_STRICT_MODULE_RWX=y CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_MODULE_SIG_FORCE=y -- 2.25.1