Message ID | 20170324144632.5896-3-opendmb@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 26BEA60327 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 24 Mar 2017 14:48:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A57C205FD for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 24 Mar 2017 14:48:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0EED6223A6; Fri, 24 Mar 2017 14:48:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 773C2205FD for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 24 Mar 2017 14:48:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=cGPuUPxmFfzbaqoMwLlLJu4800tYt62wkFpbYqIh+fE=; b=ORtPpKrjSjxvcwjZ6JW21aSIwo GXYQ2jIER21L3UAE1fYI6T8scHsXeZgYfF1CH4LFHoZPxDoAzXFqWxCL1TuBFRGYT9j6CqyuHrWRH 1O5ggzEo9MO+9tYVgy+newArnbZuLKftn6XQrTwX7BBW1BTBTqUXxeZ0awscdzvb3VQzpMuHMIRCa xN0znLK/EPi5Rdd6nh8lbtTexUXyRqe/+lSJpsgLxxeQIPhPEb92dVQTiSJsVrt1EHAEjZOX2k6nM Stx08Wpw2EsW6MogY1v4mR7i1E1Q+tIvnANsBgujyT210EHF5zv5hsEXO7w3mLM4tMMe1V9uhXAOB g+FUkSVg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1crQVn-0002Ni-40; Fri, 24 Mar 2017 14:48:19 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1crQVY-0001zS-Ko for linux-arm-kernel@lists.infradead.org; Fri, 24 Mar 2017 14:48:07 +0000 Received: by mail-wm0-x242.google.com with SMTP id z133so1050095wmb.2 for <linux-arm-kernel@lists.infradead.org>; Fri, 24 Mar 2017 07:47:45 -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; bh=c51C8yvPDDj6pYpnBp4ymcSch+VeaBwOLpExnHBlJ74=; b=rb533GW8fFSsM1bB3wSbNm1s71OnThMfWWYrHNLfy9MSEcKKBnTH12XtI7K2ebPH14 4VNK6xPPdAAonW2cTg6KNk6XeVsqH+5eBifZCF45qoMIfukEGzaZN3TnETzeQl19pSzV Dbn2AsIwmlG8X0cczvGsMTE7OwdogD6g7TDhtltAW2b7gzuxRWq6t+vLpm7wOLecVDju 3I//Ql52v6G3SRHFDKjDjt493an8reFJV3pJZIYqVjh8wTjnSclvyPn54yrL7s3B2b4a /FvtWjGDbTyS0jAEVbRKXctNLRb0XdxVpLNK68w7CIdJPiDY60q+Vk1183YweWnGa9wn STwQ== 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; bh=c51C8yvPDDj6pYpnBp4ymcSch+VeaBwOLpExnHBlJ74=; b=JU1bz94O5B4XKuTQCmXvR8MnDktJKsyv3vVtJKxRWk7UTOVZTsp8ybJba+sE+ETJDP FuGrBTsI4Q0HmaLFF7i0IFqI+Os6FqfE17VZYfk5Sv7qBuHe80iLpQinJu04NQzzMgam ZTyoSfatZM/1BTekKNrDBZ45P44q95IBha6OUfrhZH/xV2IdzEHyawtiWeB2M4BzXSDw bauWwoonOmdnTYPagyWFj+oRWh3KsGjty4aUEEYH8MstyyUPlkz0wa7L/iD78fcO3Ska E1ayA2p/dPDys8u1dYivHEvrzwvwLF9v5p4JcI2+qzyI8ga0LpjN+rAv28TF24RbL3hS WoXA== X-Gm-Message-State: AFeK/H1nz8vaZWSXK6S+LTurXMB7UrRSQmAvlbWnLdFeIleuGuNyazYNh5s28myPh7FGBg== X-Received: by 10.28.224.69 with SMTP id x66mr3412419wmg.21.1490366864085; Fri, 24 Mar 2017 07:47:44 -0700 (PDT) Received: from stb-bld-02.irv.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id k32sm3154947wre.18.2017.03.24.07.47.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Mar 2017 07:47:43 -0700 (PDT) From: Doug Berger <opendmb@gmail.com> To: catalin.marinas@arm.com Subject: [PATCH 2/9] arm64: mm: mark fault_info __ro_after_init Date: Fri, 24 Mar 2017 07:46:25 -0700 Message-Id: <20170324144632.5896-3-opendmb@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170324144632.5896-1-opendmb@gmail.com> References: <20170324144632.5896-1-opendmb@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170324_074804_970132_BFAC0258 X-CRM114-Status: GOOD ( 10.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: mark.rutland@arm.com, wangkefeng.wang@huawei.com, linus.walleij@linaro.org, will.deacon@arm.com, mingo@kernel.org, panand@redhat.com, f.fainelli@gmail.com, jonathanh@nvidia.com, bgolaszewski@baylibre.com, bcm-kernel-feedback-list@broadcom.com, shijie.huang@arm.com, opendmb@gmail.com, treding@nvidia.com, devicetree@vger.kernel.org, vladimir.murzin@arm.com, cmetcalf@mellanox.com, suzuki.poulose@arm.com, andre.przywara@arm.com, robh+dt@kernel.org, gregory.0xf0@gmail.com, sandeepa.s.prabhu@gmail.com, horms+renesas@verge.net.au, linux-arm-kernel@lists.infradead.org, mirza.krak@gmail.com, linux-kernel@vger.kernel.org, james.morse@arm.com, olof@lixom.net, computersforpeace@gmail.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm64/mm/fault.c b/arch/arm64/mm/fault.c index cdf1260f1005..43319ed58a47 100644 --- a/arch/arm64/mm/fault.c +++ b/arch/arm64/mm/fault.c @@ -493,7 +493,7 @@ static struct fault_info { int sig; int code; const char *name; -} fault_info[] = { +} fault_info[] __ro_after_init = { { do_bad, SIGBUS, 0, "ttbr address size fault" }, { do_bad, SIGBUS, 0, "level 1 address size fault" }, { do_bad, SIGBUS, 0, "level 2 address size fault" },
The fault_info table must be made writeable to allow installation of custom memory abort handlers, but it can be made read-only after initialization to provide some protection. Signed-off-by: Doug Berger <opendmb@gmail.com> --- arch/arm64/mm/fault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)