Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp237508ybp; Thu, 10 Oct 2019 17:14:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyi20uhMdGUdhTCpkdIKXarGDoL8o/iAEOmYsZ/fWVJCdY/k2sxG8/G3RTuEUqjWe7IZX45 X-Received: by 2002:a17:906:f847:: with SMTP id ks7mr10948261ejb.213.1570752867039; Thu, 10 Oct 2019 17:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570752867; cv=none; d=google.com; s=arc-20160816; b=iv65lVLZu7pPuDEK15ZEF/BBd1SJpOX0VyajHODq/WOXve43bz5gZbq/p6wkBAAwTe NLj1UQGhnC7LkK0bmOBbvwgxPTT7hpMmpnD6JT9SXYqoByOvFWJlRdAhCJvOvQKPz7RP Tn83Cc5caiTaVmqpc7lsXiG7gVxQsl9jeQSAXys9keghBP/oeCANcxdLgTSiOXlGzk+x rvD6f+zWaqZj7PrJAC8PegVwlWLZ+Ur8kl9SQFLnJyZOYsEjfdqYa4zpMQ+c9oeFnWkk 2L8IAIiUNoz22jJhn1RD7+5XzTCaXiykCqdTwA/fnDhUFCz2VtSu0h6kaBCcx5wqpNHR SdmA== 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=l+J574mlC+dRmZJG9pHhpppQFEze5VvTPTaNiTnbyaQ=; b=oZvMV3v2knoUzKcFM3GIzt3bDb8dLi0HCFTzGLPskXRcdQJt+eDAmREwwoFx4bMUf6 1rKlcAPdd6Wzha5Hf59MiYMvyelxGXH8VycSRHNgYR3TbPCU/XpdjTw+Knfz/xNwNEr6 +OAtPF0eWiFkFVwg69PJHXzwIfneKJVcuRwqWu+M3hKqRV0RPLWm8p6+J4XAezT39cxd z/qWiGxe1YPnh7AMsTaKl0h3XJrl8vqXCcn1ECceLxZxJK/YBPpBEDBdn2lPhBmtdzf9 nonIB88Zy03n3LoLJkbs0jCXGZZs9WrVeebkLixbvRSr+OIiBHMjAz5qnhM4tq5kmauj Xz7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=C1PlvZ+0; 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 i23si4085254edr.191.2019.10.10.17.14.04; Thu, 10 Oct 2019 17:14:27 -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=C1PlvZ+0; 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 S1727857AbfJKANa (ORCPT + 99 others); Thu, 10 Oct 2019 20:13:30 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33612 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727635AbfJKAM7 (ORCPT ); Thu, 10 Oct 2019 20:12:59 -0400 Received: by mail-pf1-f195.google.com with SMTP id q10so4967521pfl.0 for ; Thu, 10 Oct 2019 17:12:59 -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=l+J574mlC+dRmZJG9pHhpppQFEze5VvTPTaNiTnbyaQ=; b=C1PlvZ+0BEdj9jtliX0A0Huqq47ruf9nBVH5STuBjosSplWIN8Wr5Bj0uznajZR412 88yKrget+DCqKxVlllcxd6K5szWGkcPAUypn6xoncOXOV6R6YV83ztEsCSkeh78n0AI2 yKxfXdh2vdcul3D71BzoL2J/wyWHTxCQ4Jyq0= 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=l+J574mlC+dRmZJG9pHhpppQFEze5VvTPTaNiTnbyaQ=; b=ATZpXo+g74+MoK/zUxkM6W7fnpds1RQw7jCV/onqRx0ywszeU+Kn8GunrpbyEFrJ9l E2SMIBGu4yV9HeH10w3/57UuXdewVPDs4T748QLfJFHvxN0b5XrQP3vyON3+OkUbfzFD jEVtX+WljRGhBCJG/qmdHD9i3VL0o/xcBPVPFT5zM3o574Af7QXwOpUyBz8TBzKrh2Wj F3EZ9B2TZ26KEs1s1lRpEzrIuomZ5rq+Qr5luZ3X+NucgzbJnAZ82C2t+i/T49ccKMqy HHIwfCDDwDw08mwIuLJKBygTAwyTtzQ+9D2Bri8ULFlCT8V23yo6LcDKoWazWCLfBSmd YrTw== X-Gm-Message-State: APjAAAVpTPstGOpQo2O5nrX8nlKM5JSsn2K5lMAjRWtqETAi0wmM7G1d JUK56tKP87eHXwN/75pU3p4+zA== X-Received: by 2002:a63:44f:: with SMTP id 76mr14137515pge.164.1570752778758; Thu, 10 Oct 2019 17:12:58 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id a8sm7285998pfa.182.2019.10.10.17.12.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 17:12:56 -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 19/29] c6x: Move EXCEPTION_TABLE to RO_DATA segment Date: Thu, 10 Oct 2019 17:05:59 -0700 Message-Id: <20191011000609.29728-20-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/c6x/kernel/vmlinux.lds.S | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/c6x/kernel/vmlinux.lds.S b/arch/c6x/kernel/vmlinux.lds.S index a3547f9d415b..ac99ba0864bf 100644 --- a/arch/c6x/kernel/vmlinux.lds.S +++ b/arch/c6x/kernel/vmlinux.lds.S @@ -5,6 +5,9 @@ * Copyright (C) 2010, 2011 Texas Instruments Incorporated * Mark Salter */ + +#define RO_EXCEPTION_TABLE_ALIGN 16 + #include #include #include @@ -80,8 +83,6 @@ SECTIONS *(.gnu.warning) } - EXCEPTION_TABLE(16) - RO_DATA(PAGE_SIZE) .const : { -- 2.17.1