Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp237739ybp; Thu, 10 Oct 2019 17:14:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwCrVuIuKoi3piE+dicyxVcfIDRFMXvJtRn/oMIu3r27sz0CtVmqO7NE5xYt/znJ4mgUQRF X-Received: by 2002:a17:906:1ec6:: with SMTP id m6mr10812640ejj.6.1570752883090; Thu, 10 Oct 2019 17:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570752883; cv=none; d=google.com; s=arc-20160816; b=ch42RpmWYi87EBBN7Kse57ONV5IOkAQVCtxQJE0yM46iImBau3cMvrZ7zOJjERLzEn HftNNY+rCtyS8+ayJFgAqEFxZWmELeNBrlH4XwGo90mr2RHTK82QzWFgWnBQo9b3YTf1 Kw82eIxli9lRtJDaRMaDzPNjJhNcl3qK6TpLH67FFOI/1wun1XME+arEZ2aL6vK648Fi QS+iU3RbnBsFr6Xr1BAUnNgoa1oWVkkiKXpGHz0xBSV4rACb2w6/29reRKonNiHq50YC WAAkTftnCQ9kx+ffEo+W9U4+9VSPdbJpDB9h+af1mMJQIj235aL0T+h7Np/DhxMpDKV1 EYtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=bvYKnL/TaFkIaenIAvKRMlAb1gjfrMgYQ33pk+cyLNw=; b=tqmfNVH9r6Hur7ud3mZigPr2tuSba4WUpheqi4AOIvO6/sF2GXKSRRVD70YTD+Tfn7 qhS7Bcs9T7l6Oa0IeE9ZJDNkTTgYaZY07UTNRdaCHFXdCPuwsj6Xg05h+kmlTFmjoVju fXzrHwYbPzkXESAvS0C4pDb/9RenyEZJCyNhrFOa26nPmnQkuK/WPk327a4FvI+uEJU8 b3DuCKSF+eSE21kTVSZ2ZDwKOI13Y8Lwg+8hq3dAlxPNswWMC6/ODGXVmsEWaVHT6RTT 4wUhRLF8cRlWcAATk2KI1sDUFdCtzZh8X0XG9c/MC1CkqofeAK7Nfd1nevOe71nBP2u1 3Q3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VJjnLJGI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8si4952168edi.22.2019.10.10.17.14.19; Thu, 10 Oct 2019 17:14:43 -0700 (PDT) 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=@chromium.org header.s=google header.b=VJjnLJGI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727617AbfJKAM5 (ORCPT + 99 others); Thu, 10 Oct 2019 20:12:57 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:41298 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727592AbfJKAM4 (ORCPT ); Thu, 10 Oct 2019 20:12:56 -0400 Received: by mail-pl1-f193.google.com with SMTP id t10so3593860plr.8 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=Bc+O+k+lKFoONh+4nQoI1ps+1SvqmPRVOcOVzHW7XhNmc7EGsT7gF6u0tQP2HUu6+y F38nVcWM3fc/pe0CPRx53xxRWh7sp+dAP0N1K7sPpFgxzHDBHNsThm9JwBQB6jwFzELb rNeBqTCkGAs0wjpYF70aTL1McWPF9Nj1CxrmCia2HNKnRb+goVlbp/H91nXtS6mOAbCt +Pi+iRke+YwduwNDTzgNGBD2vscAE233O5G5a5ol6BL+bgBzfa23oSdezg3wzF5tvQ87 LDmSwUYRS+C8s4kPun04vIt+qIhkB7Q/6I9rfoZPX5tKjR0iIRZtdJTDHIiLOhDJ8d3t i9zw== X-Gm-Message-State: APjAAAWdrIyTdVZK0CCTsqZEm/L0Ubrh7BI8tjRDsbzwWDPrtC3SOZ7p zbmDsTzRsj7iQjvv21rvhDPjnA== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 -- 2.17.1