Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp231761ybp; Thu, 10 Oct 2019 17:08:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhkyYpjb8pfsrbo+5xPuEQ+qa6xQ/XArbLZTyjnnxdlmAZ8EJK4dhZ0IADoUIU1SPa6Yo+ X-Received: by 2002:a05:6402:656:: with SMTP id u22mr11041869edx.70.1570752483188; Thu, 10 Oct 2019 17:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570752483; cv=none; d=google.com; s=arc-20160816; b=TnNO8zgjGAwEcOtrrp942RRTO9gq8uAUjHG5H/a/TyB8rDxUQ+YIKQ7CY0o5gZSqo2 J1zeafM8iJ02fL9SV9SJyHA/Pkh0GdKYsxPAlzyMAgWgKRInhOGx+zUWm9TZZuPY0iio EOPg3KahOzBkMH2kuDiazh8JjlAg8TcNcmHIreysJdEY1epkmxCVimXT86vYqdXhlXMe JOzN+/vihtGxIYjO+fGLiyaJFKf+bVGETAZN5XMqKDWE1I4xJinXBvgAfPlUFXMBZFpU CWI40NOco4KntZoy4r/tNZkoC15rDxWOS3eahoKMhS+IDr4PeAQiQif26hVMi25Ihnns F1/A== 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=bl12US5Yp4ZwWvaEnQTrcBCg3LoqQRPWnxt7WskOqWM=; b=ZqnXXbu62oFYoKxR/OSw0/nr6rKqAz8e+bo8S45jtcH04mXLpeIb7ea1WIWN50OsZj ngSVD29zNl8LlRJLgeKLUY/7743Gcq5Z9ELCZc0w1VY74XxAw9su+Bf81MsTg9HJEqkg uo+fNAdg68feIMdHXTLn2tw7DcU/ywW5JAGNHBvToJniVC9dj0yvnYr3QHXQySPATSha S6kw3g0Ytp20hunfNwK3yQZrx/v03ckkV77PM5sTFBZOSNtUoSCOT+40SUZwq39zA6Io 5hKJkuI/SoTfhSbE7j5wyVoIpDazLaQI1Zza46cwDXCr+bo9enszEdOeSJa3FR4GbV2P OpXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MPX+iPje; 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 e1si4208336ejf.28.2019.10.10.17.07.40; Thu, 10 Oct 2019 17:08:03 -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=MPX+iPje; 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 S1727558AbfJKAG2 (ORCPT + 99 others); Thu, 10 Oct 2019 20:06:28 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:35021 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727540AbfJKAG0 (ORCPT ); Thu, 10 Oct 2019 20:06:26 -0400 Received: by mail-pg1-f194.google.com with SMTP id p30so4699718pgl.2 for ; Thu, 10 Oct 2019 17:06:26 -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=bl12US5Yp4ZwWvaEnQTrcBCg3LoqQRPWnxt7WskOqWM=; b=MPX+iPjeGRBi9W7v8BaGtEQ7Z0gPfVJ+oEGukA1Qx5FZM3UbvHSgUUNTtJdbrvF0DJ Lniffb/JdJpDuc2hFDvI6xqzg3lDsRa6goVJDwHcZqncxHEEePqIwXD0wmcvebpFmc8f hOMnZpwmNvMPGn7QBG585RWKNTpfnKyDCS46Y= 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=bl12US5Yp4ZwWvaEnQTrcBCg3LoqQRPWnxt7WskOqWM=; b=R/mKlrTwqtOtJfRf56i6rqNSovIj2tU4VBnqcic7qRMGIVhlKpyRhImnt6+X3WOXQ6 4Fu7qtEz+tlsxPoX9FfWqgDR/UABPnDmUtp0L2yqD/HP2BP7yDi8aYqA5Ra7go7d2qyt fdjen2sMeoIy64nIgLrVgW1ImVD1Pzsg4SbYPyMokJ1xJAvaBsRuG5TTJgjTS52z9W3R nWfVQUR6wfgC7RxPpHRgobVztfAShxoKN6SijxJhxFR8clD7PANSp5rfec62WGuLl8co fvAe1RdC1COSinX2nI40qN7mVMwpq0Z+s29LTsES4dICj7sfe5D+pWtmezyJ+Opre6mL C+kg== X-Gm-Message-State: APjAAAVGz542yvmChdrh7RKUsqkes1uBrnI0ZB5uAK5b04n7YYAkRM24 puaHK76OzsDwDR06BsrNfesamA== X-Received: by 2002:a17:90a:9318:: with SMTP id p24mr14062359pjo.31.1570752386117; Thu, 10 Oct 2019 17:06:26 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id 6sm10807049pfa.162.2019.10.10.17.06.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 17:06:24 -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 06/29] s390: Move RO_DATA into "text" PT_LOAD Program Header Date: Thu, 10 Oct 2019 17:05:46 -0700 Message-Id: <20191011000609.29728-7-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 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 = .; -- 2.17.1