From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Carstens Subject: Re: [PATCH v2 06/29] s390: Move RO_DATA into "text" PT_LOAD Program Header Date: Wed, 16 Oct 2019 10:25:16 +0200 Message-ID: <20191016082516.GB4267@osiris> References: <20191011000609.29728-1-keescook@chromium.org> <20191011000609.29728-7-keescook@chromium.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20191011000609.29728-7-keescook@chromium.org> Sender: linux-kernel-owner@vger.kernel.org To: Kees Cook Cc: Borislav Petkov , Rick Edgecombe , Dave Hansen , Andy Lutomirski , Arnd Bergmann , Michael Ellerman , 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 List-Id: linux-arch.vger.kernel.org On Thu, Oct 10, 2019 at 05:05:46PM -0700, Kees Cook wrote: > In preparation for moving NOTES into RO_DATA, move RO_DATA back into the > "text" PT_LOAD Program Header, as done with other architectures. The > "data" PT_LOAD now starts with the writable data section. > > Signed-off-by: Kees Cook > --- > arch/s390/kernel/vmlinux.lds.S | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/s390/kernel/vmlinux.lds.S b/arch/s390/kernel/vmlinux.lds.S > index 7e0eb4020917..13294fef473e 100644 > --- a/arch/s390/kernel/vmlinux.lds.S > +++ b/arch/s390/kernel/vmlinux.lds.S > @@ -52,7 +52,7 @@ SECTIONS > > NOTES :text :note > > - .dummy : { *(.dummy) } :data > + .dummy : { *(.dummy) } :text > > RO_DATA_SECTION(PAGE_SIZE) > > @@ -64,7 +64,7 @@ SECTIONS > .data..ro_after_init : { > *(.data..ro_after_init) > JUMP_TABLE_DATA > - } > + } :data > EXCEPTION_TABLE(16) > . = ALIGN(PAGE_SIZE); > __end_ro_after_init = .; Acked-by: Heiko Carstens From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:22268 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391580AbfJPIZa (ORCPT ); Wed, 16 Oct 2019 04:25:30 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x9G87rZL047296 for ; Wed, 16 Oct 2019 04:25:29 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vnx1u3p9t-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 16 Oct 2019 04:25:28 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 16 Oct 2019 09:25:26 +0100 Date: Wed, 16 Oct 2019 10:25:16 +0200 From: Heiko Carstens Subject: Re: [PATCH v2 06/29] s390: Move RO_DATA into "text" PT_LOAD Program Header References: <20191011000609.29728-1-keescook@chromium.org> <20191011000609.29728-7-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191011000609.29728-7-keescook@chromium.org> Message-ID: <20191016082516.GB4267@osiris> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Kees Cook Cc: Borislav Petkov , Rick Edgecombe , Dave Hansen , Andy Lutomirski , Arnd Bergmann , Michael Ellerman , 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 Message-ID: <20191016082516.E21OrxiEtMjbJDsLJlJRV7X5sKkaoFFJ9OjKQ0zXkb8@z> On Thu, Oct 10, 2019 at 05:05:46PM -0700, Kees Cook wrote: > In preparation for moving NOTES into RO_DATA, move RO_DATA back into the > "text" PT_LOAD Program Header, as done with other architectures. The > "data" PT_LOAD now starts with the writable data section. > > Signed-off-by: Kees Cook > --- > arch/s390/kernel/vmlinux.lds.S | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/s390/kernel/vmlinux.lds.S b/arch/s390/kernel/vmlinux.lds.S > index 7e0eb4020917..13294fef473e 100644 > --- a/arch/s390/kernel/vmlinux.lds.S > +++ b/arch/s390/kernel/vmlinux.lds.S > @@ -52,7 +52,7 @@ SECTIONS > > NOTES :text :note > > - .dummy : { *(.dummy) } :data > + .dummy : { *(.dummy) } :text > > RO_DATA_SECTION(PAGE_SIZE) > > @@ -64,7 +64,7 @@ SECTIONS > .data..ro_after_init : { > *(.data..ro_after_init) > JUMP_TABLE_DATA > - } > + } :data > EXCEPTION_TABLE(16) > . = ALIGN(PAGE_SIZE); > __end_ro_after_init = .; Acked-by: Heiko Carstens