From patchwork Fri Oct 11 00:06:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 11184673 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C6D39139A for ; Fri, 11 Oct 2019 00:12:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A868D21920 for ; Fri, 11 Oct 2019 00:12:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="VJjnLJGI" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727603AbfJKAM4 (ORCPT ); Thu, 10 Oct 2019 20:12:56 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:42536 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727589AbfJKAM4 (ORCPT ); Thu, 10 Oct 2019 20:12:56 -0400 Received: by mail-pl1-f195.google.com with SMTP id e5so3582840pls.9 for ; Thu, 10 Oct 2019 17:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bvYKnL/TaFkIaenIAvKRMlAb1gjfrMgYQ33pk+cyLNw=; b=VJjnLJGIO0uGgKBCPhgyxZ/iGefUMJczEPz55L/NXxQm4X5HtH7Z6IwSEISlxXbPIi 0AKWMzRKkEkFoTXpqSQ6so/StMfOF2yJFPqmtCJOuv0Jt6L5qcDOFqlnVgUtBy87cn2m oVq9vePrz89q5V3+gDCK4GhXWqgAgeYpXsYQQ= 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=bvYKnL/TaFkIaenIAvKRMlAb1gjfrMgYQ33pk+cyLNw=; b=VJLVpyJs+zVHjUU1VaE7hXAjIA3DiEyiMLJFoVo4Yr5pXW/ObkoLhaoUNkzv3N6RfP VBEunBi+l9/QA8KcnPNxF+kU7I+ihteXUmqnfjzTbjB6nr4RteeiZE8IuYFi3klYBKHk OH4ZAGm0lCv3gSx06nsb7ypeEvYKtU6+iHS7QNGSDqLIoJtxPba28OemlWX1MYHk+MmW MeQSBuoMTzXXpCStSg4NHUtgmKgBEKZUdkIocj2gHbVvHyc1QG/49sY+C4/1P5YCqTcm w8+eqiuYZKNP9xXeaQf7m1h4TWwynngdDgWuFIPlzflS8Z0f3XkxP3CqmuD1wS+7q10M g8ig== X-Gm-Message-State: APjAAAVpHRXdfhDGE5EEEXpaJ11SbaFhGZza8rj0pevEJ9jEnDU+cJ0K Bn67iw+Gvk20MCVFTB0f/uD37Q== X-Google-Smtp-Source: APXvYqz1nJHbdicuisYaMkUGL4dW9cHVrS4hPr3bZVo4nTa2ffJhe6O1BBJ7QgwtCPb4vvcDzPVB3A== X-Received: by 2002:a17:902:b410:: with SMTP id x16mr12316640plr.46.1570752775741; Thu, 10 Oct 2019 17:12:55 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id j128sm7319082pfg.51.2019.10.10.17.12.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 17:12:52 -0700 (PDT) From: Kees Cook To: Borislav Petkov Cc: Kees Cook , Rick Edgecombe , Dave Hansen , Andy Lutomirski , Arnd Bergmann , Michael Ellerman , Heiko Carstens , Will Deacon , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-alpha@vger.kernel.org, linux-ia64@vger.kernel.org, linux-s390@vger.kernel.org, linux-c6x-dev@linux-c6x.org, Yoshinori Sato , Michal Simek , linux-parisc@vger.kernel.org, linux-xtensa@linux-xtensa.org, x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 22/29] microblaze: Move EXCEPTION_TABLE to RO_DATA segment Date: Thu, 10 Oct 2019 17:06:02 -0700 Message-Id: <20191011000609.29728-23-keescook@chromium.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191011000609.29728-1-keescook@chromium.org> References: <20191011000609.29728-1-keescook@chromium.org> Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org Since the EXCEPTION_TABLE is read-only, collapse it into RO_DATA. Signed-off-by: Kees Cook --- arch/microblaze/kernel/vmlinux.lds.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/microblaze/kernel/vmlinux.lds.S b/arch/microblaze/kernel/vmlinux.lds.S index b8efb08204a1..760cac41cbfe 100644 --- a/arch/microblaze/kernel/vmlinux.lds.S +++ b/arch/microblaze/kernel/vmlinux.lds.S @@ -11,6 +11,8 @@ OUTPUT_ARCH(microblaze) ENTRY(microblaze_start) +#define RO_EXCEPTION_TABLE_ALIGN 16 + #include #include #include @@ -52,7 +54,6 @@ SECTIONS { . = ALIGN(16); RO_DATA(4096) - EXCEPTION_TABLE(16) /* * sdata2 section can go anywhere, but must be word aligned