Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7231284ybp; Wed, 16 Oct 2019 05:52:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIyKNUO6EjCuPOR93RQO22AHBcrSKSQJ7KH/sXOhYuD85YQwBgckjoHanZGuhSx0J8VORP X-Received: by 2002:a17:906:4448:: with SMTP id i8mr4502752ejp.298.1571230334875; Wed, 16 Oct 2019 05:52:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571230334; cv=none; d=google.com; s=arc-20160816; b=xC+h1Lb9zB4cFWSyDXI3UoKb2CEJDeMSMcYDiTk9s7RgHQzHnkdnW/5n9H7fXtjPdX OPQtfCFgBYntB92eNU6nBTIfnQ5Wyd+/SH7toyrkRzgN1J8naB/CGtxRVmwbVb09SCQ6 12yOESrxTS7GuecW4dF6yU/wePCBSYXR1Ph6x/YkXYCNvj0Pa4AeBLW5A1nJBCbNXF4I 38qBA8LpSVgzDt4kiUCCY95XvogUtvrVXNqMWSesyyDZgqlsk3iiy9Daza/jbn9fGbJ+ nUPhtVYM1beZMWU1A5KGVb3C9h0g5kbLwfk8Vyh0nrU0aw+oHBueAICl47MA8wv6pEdZ wOBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date; bh=XknYW3JAQkXgAbrr4EwRXL0XT4QfUN6ljVdbTZs1Y1A=; b=FTcelZMJ8q9ZmiagrCjU+lpfaJ/064BfqtEmMe0nxSry6aAM2A4MXGx9MdE7e5NpJo lX9z/mYzvQAzNSJO42yNj8zjJP6CjmEatxS8EvuL1yG7anIhG1sPQx7XlMzlpOSR+CPK BlxiEUuw4eBu2hYdlmzwCvL84uN87EiAl0ZJexbjpdwG/4SadMCNMAPne3a3KUJ8qsBb KNIYLhdbsLipRabJR2pBW9JzpocW15km2vl7nITIp7eTHtj4gRC7herd5Vh244ODQOqf Plieo4FDwy0rRQlGo+4+Xei+bS5T31IYvv8DAfv5lsOwYkydugOEYlhcojSz+BXSeCQ6 xS9w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id jo19si15256564ejb.271.2019.10.16.05.51.51; Wed, 16 Oct 2019 05:52:14 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391588AbfJPIZb (ORCPT + 99 others); Wed, 16 Oct 2019 04:25:31 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:27148 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391579AbfJPIZb (ORCPT ); Wed, 16 Oct 2019 04:25:31 -0400 Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x9G87aTg079850 for ; Wed, 16 Oct 2019 04:25:30 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vng3u2scc-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 16 Oct 2019 04:25:29 -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 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 16 Oct 2019 09:25:19 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x9G8PIPc38863276 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 Oct 2019 08:25:18 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0D4AF4204B; Wed, 16 Oct 2019 08:25:18 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7779D4203F; Wed, 16 Oct 2019 08:25:17 +0000 (GMT) Received: from osiris (unknown [9.152.212.85]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 16 Oct 2019 08:25:17 +0000 (GMT) Date: Wed, 16 Oct 2019 10:25:16 +0200 From: Heiko Carstens 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 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> X-TM-AS-GCONF: 00 x-cbid: 19101608-0016-0000-0000-000002B87DB7 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19101608-0017-0000-0000-000033199F3E Message-Id: <20191016082516.GB4267@osiris> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-16_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910160074 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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