Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2380357ybn; Thu, 26 Sep 2019 11:01:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbbUEoJB2NgogSaP8w4fv6qnVlhIc0AuLQuYMF8EbUwYWPM/FuDKU+p+n6C1/aWDRPSi7Z X-Received: by 2002:a17:906:ecea:: with SMTP id qt10mr4415573ejb.23.1569520880908; Thu, 26 Sep 2019 11:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569520880; cv=none; d=google.com; s=arc-20160816; b=oyVV2SMvUraro9tUwzsvzegKQHcMAsdM7AAI8J0KS1c0ObjPnMTk98+23+9R4tyGMr JiFHSM8877kTMB6IkGlRW233ZxpAN3tsnCHyq5coBPCk/OQ1RHH8KzWVfwOQPhDxUarO LMLOdG61fgIvjGgOG4PHBEg/ruga3+Zxr152BNw7OiVAUFZbyCJ+fOyt8a5Gc/UFvKvR 6DOKGH7u7/zwY72AHgkwY1gInPnHBNhH7guNtMAjwZJJNcUC2M8EIKGif/9b/TbSoG3R icp+yXGOiWsky2SlcOd0pWLO7G+uL0c5ZKv35XPJwUMabpX52g8XDgh3OT/aFXXL1gTa VBjw== 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=ct25FYY49pcH025DailB6pbS1DlS4bIVNf04cXZx2wM=; b=M9kOx9ZDI1LxAJE/30YegK0TJQIfUrTwC4iMT5w5GyQHkYXdtwuq5gt6PzHmXXWiD9 wvyNhNYZExw6LnK32lIzG6AhnioYcMmJBtFfvEUIV46/0d6XjBy3muPVr1HI10RxDrTw ogyXde5A7ivlgP9LUGm+60e6rp1hJXU1JXfAAmpumcE7km6+8REnXEvo1UpsvG3ogDzH GgnOPcg9cUZB2pNYlTS9zUtFY2lybEqKYBL+7eoLKd/5r4v0wJr4PM17HkhlzxSePfp+ 7KBkrJablgk5sOCJ26t5+9DKgjywQjkBDpUku96lnN3FP6mbBzRqGAW1bTVniEdQ1W+j R80w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=NeoCDK86; 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 w11si2141658edi.442.2019.09.26.11.00.56; Thu, 26 Sep 2019 11:01:20 -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=NeoCDK86; 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 S1728054AbfIZR4Z (ORCPT + 99 others); Thu, 26 Sep 2019 13:56:25 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:39209 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728022AbfIZR4X (ORCPT ); Thu, 26 Sep 2019 13:56:23 -0400 Received: by mail-pg1-f196.google.com with SMTP id o10so1957522pgs.6 for ; Thu, 26 Sep 2019 10:56:23 -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=ct25FYY49pcH025DailB6pbS1DlS4bIVNf04cXZx2wM=; b=NeoCDK86mT/W24oE5rtmJouGfsbTTEGkoSxTx4KF4CSxjsSlvFZN3J9odBOQnvlXiP iUyNYZOgnvxnrzhYkrDgkrU0+SzkX/L29uWuoGEThELn/fWhiKJEA65hwXsy3koRBZjm 4+HnR9f+RjX0Rbvz5f8d8QfWgEFoMfVNcSBHQ= 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=ct25FYY49pcH025DailB6pbS1DlS4bIVNf04cXZx2wM=; b=siNvgB/hNzSK61IBgErSdPiPakkHwnwKFZLkbLer52BL5UEA+zcfe8cEfa0nQIJgpV q47OFBhlyRlQj3cm6VK56ATg6J4RUBBm4iU+mn/Aso4JWySb/dEXGTYrvVbqnklcmexQ QLmMNc48W8lqc7CM/q4wgYEhOJFVDWqWsokheIxSBlEGK1BJWq76RDPLLXeXVkb1sXLb onbsRLTMam2CYg96zScC/Dg+fTBUwrJvl1c+0dDPx1kIVYl30o6hoINuzyd0ox9FMwtl iN1MJtvtHGDycPW7xXCabSopq0kzovQy8XAxfEDpB0zqioS7Khu7jS1nUpybcZPzryDZ N4ag== X-Gm-Message-State: APjAAAX5xyB63l/b6tuczZkf5wiyz9ixO/szKR3eZlB/a7IZNES9I/qX WAIf1hbCB7/EWRejyTdh5XY9+A== X-Received: by 2002:a63:186:: with SMTP id 128mr4612810pgb.157.1569520583020; Thu, 26 Sep 2019 10:56:23 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id e10sm4090474pfh.77.2019.09.26.10.56.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2019 10:56:21 -0700 (PDT) From: Kees Cook To: Thomas Gleixner Cc: Kees Cook , Rick Edgecombe , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Dave Hansen , Andy Lutomirski , Arnd Bergmann , linux-arch@vger.kernel.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 06/29] s390: Move RO_DATA into "text" PT_LOAD Program Header Date: Thu, 26 Sep 2019 10:55:39 -0700 Message-Id: <20190926175602.33098-7-keescook@chromium.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190926175602.33098-1-keescook@chromium.org> References: <20190926175602.33098-1-keescook@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation for moving NOTES into RO_DATA, this moves 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 = .; -- 2.17.1