Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp237846ybp; Thu, 10 Oct 2019 17:14:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6/8JE1yRMNtoz+qgihH9sY/gZHbaxJqUxSAblUQLg+5DJr4rA0SojdvRAu7Y/dalQLmWE X-Received: by 2002:a17:906:519:: with SMTP id j25mr10895668eja.65.1570752890291; Thu, 10 Oct 2019 17:14:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570752890; cv=none; d=google.com; s=arc-20160816; b=W5DzTIY1VxUWYsnj7t2ZKVIyHtarbPnH1wwdUdxoCQWC8h5oLIzarjCTFkBT+KXiHi IqJ6g5JZwT2gMbuTwntg5NdsQvdq1ZJfeIpnRB4JiyKG0eVkeJJue9/P4GN90SJ2ppQV Kc7zTAzoFUzpWqbAIiaXzsncnD//wNzFJuYHOodANMygoSJ6odQZ84RpxWEz0/Bzbz4g cULtRNbBjQ08vuJBtoBioD/oU9YbaEbk9qSTzNfNR2fxFQesC6rTFCXnLyx1Jvs8SAfH 9iYZeGV3BRQ0uJIn94h9RKiPCmaBo1iQFsfxg5S1QiNKV+tKkMrH5WdMIJtGBZOXI7/J S6ag== 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=MdMMErkL0TaCB+AMS9GPl9j3KdOjHrVPYKwcXQnru9o=; b=TeKYwgaAsDoqWUHw3eEuNukgX27WdPpKdUk9phFRbEoA6QWaB8xv2ef3e9dswkZ9Sv me7oEV100wjCA5ghcheOYToQHqEm8c4A+oob6X+ufsmf4xbgoj6o9Pk7rIjdmgHzd6+R EbeNuyf8eI4hU/C3wz6J6X2Yxmlmv7b0VoackCCmT5xUMYQJYNgbVSFbdVjuIm/lePse xqrDWhWEFfeM5MrcLZn5H5UxN/TAmLFteCCI+HhrGpsezLAqK9lhq9icf9QApnv0FqmZ XGaKlKugdNWbaTX9YRxk+PCiDH0fvi+bVtckWnjDsV+Os9uuiMtztkkOQjEmKAcKyliq m6Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=H+PGC98b; 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 g13si4201559ejf.133.2019.10.10.17.14.27; Thu, 10 Oct 2019 17:14:50 -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=H+PGC98b; 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 S1727577AbfJKAMz (ORCPT + 99 others); Thu, 10 Oct 2019 20:12:55 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:43976 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727551AbfJKAMz (ORCPT ); Thu, 10 Oct 2019 20:12:55 -0400 Received: by mail-pf1-f194.google.com with SMTP id a2so4941657pfo.10 for ; Thu, 10 Oct 2019 17:12:54 -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=MdMMErkL0TaCB+AMS9GPl9j3KdOjHrVPYKwcXQnru9o=; b=H+PGC98bol8nQLCHGKVMnumPCpE3rZsdeAzu/63Zl+MVbbl4Sn0Xj0/MJ8+SrojoRq PDLZ+DEdfwhU0nbRPNgAZmDKGI8JIpf0k65nc/pgyy9bqCoX2oIyxBmx8SkXP421+0dD CN9qS2yDtmYN+7Q+QtAoazHu9DvsNkSQPOn/k= 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=MdMMErkL0TaCB+AMS9GPl9j3KdOjHrVPYKwcXQnru9o=; b=NRbDm3nIWrZRAVUFyfD3/wtnu01mdKcEtVZY75/UI8WJr9Md5BqdmoZFIPjDQUpPlI c35VFQkIUOaqIG6q8dXCQ+MZG0CUNvnG/KFkGH7QNUYyULHddpCMLN/jmRj4n6+7bU0U nK7WRMzaTVXxZB347ZINJzPuWEY7Wl/dKQOKagys/Qch34WtbaMGt5FCtWs3MLkwonkv 4hB1eBrZNuL/IJ/SGiWe/M2kq0fHMWvM6WJUW7yQFUSySMYzP5fpsOeWMmTa0nR6pxDe su4JNlTjPuuofSXniFsNujM8cUbzENp1JI3Xq/h7Q31l+kiKp9MBWYeHxMyidLAz+fmI Ou6Q== X-Gm-Message-State: APjAAAVH3xS/SbEa7H1fIfiB/qkypEhZjpMyKs0hixGVJaEDFf8/5zF9 1BTGLtBGU+iJ0oDBIksJLHUNxQ== X-Received: by 2002:a63:1201:: with SMTP id h1mr14569419pgl.340.1570752774490; Thu, 10 Oct 2019 17:12:54 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id l22sm6398506pgj.4.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 23/29] parisc: Move EXCEPTION_TABLE to RO_DATA segment Date: Thu, 10 Oct 2019 17:06:03 -0700 Message-Id: <20191011000609.29728-24-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/parisc/kernel/vmlinux.lds.S | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/parisc/kernel/vmlinux.lds.S b/arch/parisc/kernel/vmlinux.lds.S index 12b3d7d5e9e4..53e29d88f99c 100644 --- a/arch/parisc/kernel/vmlinux.lds.S +++ b/arch/parisc/kernel/vmlinux.lds.S @@ -19,6 +19,7 @@ *(.data..vm0.pte) #define CC_USING_PATCHABLE_FUNCTION_ENTRY +#define RO_EXCEPTION_TABLE_ALIGN 8 #include @@ -129,9 +130,6 @@ SECTIONS RO_DATA(8) - /* RO because of BUILDTIME_EXTABLE_SORT */ - EXCEPTION_TABLE(8) - /* unwind info */ .PARISC.unwind : { __start___unwind = .; -- 2.17.1