Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1117391ybp; Fri, 11 Oct 2019 09:12:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbmZKl6iWe5Sbu7FrCvPQCPqdXFLe/iRudt9HruErdsd5YKRO+x8txCOXDiqApn6e3goIY X-Received: by 2002:aa7:dd0f:: with SMTP id i15mr14953698edv.0.1570810325596; Fri, 11 Oct 2019 09:12:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570810325; cv=none; d=google.com; s=arc-20160816; b=gmNO6MV/TFta3KQYeINMRdDYPjE9Am0SPFW5j98cZPviKPtmEA+IygMkvyjBrLB2A9 JM9H93WlhLPL8n9CCgyhP5++OAXrsWllNgIqScnqJr5CTnUz+rd69iaYlaPx5GdOduZ6 EUwIM2HjEPcdfpYWvJiHX5u/8DO2XPFqQe5Y7fqH4qJbAUmYZ1aMemzApAEbyCGMI6D6 NYmLJdnKSurdyx764w3rBxzYSFQU7S349xoR163UGyUXFufmIMRxEVqhauSM3YyCdkmD M3UwvUgqXN3aqYrTA+mHNRlyxJHIhC4/T2rP4t1A0d2POD5bCcAQxBlFOvTzXEGwx3Q1 hesw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=rz208JH/bAYgb34feMbXc7rOAmJSapYVvu3TBVmWgf0=; b=T+JFVxA4UDATnl7/qKwjntfH2mRSf7Hw2uz3yuNARxqqJXauQfuPCz7UjKXsWXNuKb gU5vdDSHqPbxphl74n/DfohxM8JFI31/VE4eJWD2fyYNM6K9Ts8AhrtY5/lqcem4bhks 5CX0JB2ewlU1mZDkWY3OuLZ5Sh6bLUEoVaYxhwWfCn6P/6VO+7g6gcXB99cuA33K4dfv uKhJszNYLSDjPepouwd66RK7l4KF6tOdBk+/iR5uo+LMnOHJ+i/+wNPgqpJocme5JvSO 3haiovNGh+wywaFguPm+W9/yRqLC0UdSzLIMDrWHP5P63ciPK5uVzCOTDwfLK11JxwFh AVXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=k3VEdnK1; 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 h26si6357113edb.141.2019.10.11.09.11.41; Fri, 11 Oct 2019 09:12:05 -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=k3VEdnK1; 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 S1728191AbfJKQJ1 (ORCPT + 99 others); Fri, 11 Oct 2019 12:09:27 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:37636 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727984AbfJKQJ0 (ORCPT ); Fri, 11 Oct 2019 12:09:26 -0400 Received: by mail-pf1-f196.google.com with SMTP id y5so6371063pfo.4 for ; Fri, 11 Oct 2019 09:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rz208JH/bAYgb34feMbXc7rOAmJSapYVvu3TBVmWgf0=; b=k3VEdnK1XLODdhPbFCe/vXjRUrVGk8LtbhfzFlecnP8Kmv9f4bYkCsfO3n/TqN0AdN qBPqcub0N0dKdLHi1OxIweb3/6eczWoee7LuePEuJPxxCrmCNRf0LI9uLqFq5rTIaXHw uP6X5tVwyIUzUKipWUOB9mLE9R+uA81t/qC+c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=rz208JH/bAYgb34feMbXc7rOAmJSapYVvu3TBVmWgf0=; b=B5JAw6aJMg3fW7nCE2EUSjVoQBoojZfwFju+UuV5uzYdH0jZw9NCGV3O45fKej+ifg 1E/4CEL0eD8PheeqZ8+cegRiEEm8mProx3tVIvyaxXoUpmlf2d8N0oeYf/5JeQriH7s2 xUpJbhwaX9ZdWaePqUhAeSZWv5kOsLzvs1Aye4TiJ2Ve7DH/In0mqT/bZ3OFjs25FDGr 3CEaInRRis6Zlp41HC1yz5i0bHmdX0xXiicjr/Uw2NaZ1l6uOyMh7JG9+MyasykUE0jS PFB6zucx1OgKDIPh+0q7klpX9gtsIgrJUPPEYXn0Qenepwwck/zmvvY+VSpKtxZcIlPB Sb/Q== X-Gm-Message-State: APjAAAW4WtjxEMt6LVNDQy2caIrha/FymMN1iEY6xiqrWYQ2pd1nDzC7 5dKw90ca1YX0q/w2QSHmqrkung== X-Received: by 2002:a63:b5b:: with SMTP id a27mr18354873pgl.262.1570810165767; Fri, 11 Oct 2019 09:09:25 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id d3sm8459551pgb.3.2019.10.11.09.09.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2019 09:09:24 -0700 (PDT) Date: Fri, 11 Oct 2019 09:09:22 -0700 From: Kees Cook To: Michael Ellerman Cc: Borislav Petkov , Rick Edgecombe , Dave Hansen , Andy Lutomirski , Arnd Bergmann , 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, Joel Stanley , Segher Boessenkool Subject: Re: [PATCH v2 02/29] powerpc: Remove PT_NOTE workaround Message-ID: <201910110908.040009F27@keescook> References: <20191011000609.29728-1-keescook@chromium.org> <20191011000609.29728-3-keescook@chromium.org> <878sprx1br.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878sprx1br.fsf@mpe.ellerman.id.au> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 11, 2019 at 05:07:04PM +1100, Michael Ellerman wrote: > Kees Cook writes: > > In preparation for moving NOTES into RO_DATA, remove the PT_NOTE > > workaround since the kernel requires at least gcc 4.6 now. > > > > Signed-off-by: Kees Cook > > --- > > arch/powerpc/kernel/vmlinux.lds.S | 24 ++---------------------- > > 1 file changed, 2 insertions(+), 22 deletions(-) > > Acked-by: Michael Ellerman Thanks! > For the archives, Joel tried a similar patch a while back which caused > some problems, see: > > https://lore.kernel.org/linuxppc-dev/20190321003253.22100-1-joel@jms.id.au/ > > and a v2: > > https://lore.kernel.org/linuxppc-dev/20190329064453.12761-1-joel@jms.id.au/ > > This is similar to his v2. The only outstanding comment on his v2 was > from Segher: > (And I do not know if there are any tools that expect the notes in a phdr, > or even specifically the second phdr). > > But this patch solves that by not changing the note. Ah yes. Agreed: I'm retaining the note and dropping the workarounds. FWIW, this builds happily for me in my tests. -Kees -- Kees Cook