Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2043559ybp; Sat, 12 Oct 2019 03:03:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxn55/5p2qfGAgl+j4uFG17KKKo85tOJ5OxscJrWxqCRtJkt8mhdPOOuobeoRJwkElyxV2I X-Received: by 2002:a17:906:386:: with SMTP id b6mr17973578eja.148.1570874623311; Sat, 12 Oct 2019 03:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570874623; cv=none; d=google.com; s=arc-20160816; b=kLL/fRynn6kU1gnISTyns/ndP4pSUDvu+aVW7mbZesRq+eHow09AUX+wbP06DGQBT6 tCpRU/cCl1aXqJhetH1Ud7IyMz4yjwq/HZoJ+Pfpv5ZqDblO3cf2BHUOwmT4/MAcVDUJ C5dzxRBhuougd/r61G5LRPmPy13dzyoGqRHi5vg5FG4tj6cHmqYlwxllI3fDPaK47Qn4 azYr1lh6tQzRtm35Jf2CSxhbdUnafbIK8Asl6OWPH2GTvU1EQmiECCbggsKCBpKM0aCP 4gRzEuPbwJGv08FM5CPzeGkCTtnNByAyu8NhW4SQkkFkgan2yew/Bhgsq/kWuyiGyxLd afUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=RV4qXapJctJIVLcg+1uYFb1mounDb3Kgv01QDqk2pTk=; b=jLQlnXOD5Ggd8l7/vZcvroXCAEolk92ondoaOl3ZbgJb1roW+nxk+W7xploEAEMkYo Bnn9yEduSijRnIxc2KoFbi0ZKSIqQs31gP+Say3Rvf+Inb4HeqEExvQpjj8BygBeWiDY 7HiTHqWcPWVDnkLPoJ22XUrPZhI0ZIIffclcP2Zv1C3fdll+rbU1lskGH7MVu6jm8/qP Qa23rEaQn1xAuMNxc1E4nje35RQrdmq7GtO/eV5u4CVqD0D1ewoeeAvF3+TjvAFbxVdb mazvtwIHgo/RmYmxO6QoOf+82Zu2HkUK1s0lLVSjOCi3uMaZfYNHCbHpZXQ6xpN/kp9X rQTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=J6CKZ22z; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bt13si7012569edb.245.2019.10.12.03.03.19; Sat, 12 Oct 2019 03:03: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=@gmx.net header.s=badeba3b8450 header.b=J6CKZ22z; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729158AbfJLJvD (ORCPT + 99 others); Sat, 12 Oct 2019 05:51:03 -0400 Received: from mout.gmx.net ([212.227.15.19]:59821 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727115AbfJLJvC (ORCPT ); Sat, 12 Oct 2019 05:51:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1570873814; bh=8pjS8qqP1wCmF9jdsKwpdm/zvDW8dZCWsbuGTUYmHnw=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=J6CKZ22z3cpZ+/zpyRdj0H0uRJ/h7sj9IgGBbkjmN6qL2X2ARZIdDqpJzufjDVaR1 uGmCRhNhLGwwLdQCLythOpnfYpv8PEvyP/qgm1AFgnAATznFGOLmT/lqRCPATFTE0B 4v750SP85bljN9qKjtWA813iPaD71LWPNRVf6yNg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.179.223]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MCsPy-1iAOLl3LOK-008rpL; Sat, 12 Oct 2019 11:50:13 +0200 Subject: Re: [PATCH v2 23/29] parisc: Move EXCEPTION_TABLE to RO_DATA segment To: Kees Cook , Borislav Petkov Cc: 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, x86@kernel.org, linux-kernel@vger.kernel.org References: <20191011000609.29728-1-keescook@chromium.org> <20191011000609.29728-24-keescook@chromium.org> From: Helge Deller Message-ID: <8b3c27ec-9880-5957-a802-ca740d9ad6c5@gmx.de> Date: Sat, 12 Oct 2019 11:50:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <20191011000609.29728-24-keescook@chromium.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:OW210CNt72Zupg9+ou7uinpWv/FzSz2oE2Zp/PdnIFvmfis7zNJ P3Rp9iclPc+rsBMguDEUPJQm8Yn1SvGGtGHcdrp+KJhkV5wbrDyLG2gmCL/OgLYlrwnF1m9 LNy0UJ3GCHEE7hTl/1RD6xsBIN/bKRXCoTcyxTI5LmvAywZVxlNm8MA7F9Ig8LsAryEJ8IL JZhR1dSDqg/a+ayH7Komw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V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ekbu2d+u2r/C4DtxPB3BQowgPWG0MJpFwel/FxWvZ47PMkHn3Qtv4tBf68QNz N17bNoir8utOLCgGgm/z/gnQ2uVeWeKTFrRTR76F6mWi+nUkajc+Mee+U3ePQ0uyZAzVympCm aC0lcaNBAZ6cO/enINP3xeoyXFBf3SzdmzJbOAWaZnFa1gyem2qJbi/FPSUkuM5gc13cDiQeR YJ4EyjmC/J5gPlCSwJyuiuu/+yaa/hcDpx1jhRQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11.10.19 02:06, Kees Cook wrote: > 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(-) Acked-by: Helge Deller # parisc Helge > > diff --git a/arch/parisc/kernel/vmlinux.lds.S b/arch/parisc/kernel/vmlin= ux.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 =3D .; >