Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp63555pxk; Tue, 1 Sep 2020 16:20:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyngI0vB6qSTkpD84XmkxUPDz9JIx3Yp4E5T6dFSBUP5k6sRMTdoqkVo++OfmF0HnysjtM8 X-Received: by 2002:a17:906:f1c4:: with SMTP id gx4mr3828099ejb.98.1599002403100; Tue, 01 Sep 2020 16:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599002403; cv=none; d=google.com; s=arc-20160816; b=K1DMt27x9hg2+omwqWoslMc98bkLipeBRqxtVu/itzSMYsDkyP1wG/FKPnAnMjygUZ oJu/04Fbc+YH6UqgAwon4HpJoKGcE47sexieAjIDbfVhq1Yo+vGGTF4w/XB+v8Spv2IT CbZ9AcV8J4hthb5l5zY8W5qEteOeRN5B3GoqGZbawuwgHbO98SN7cKZmiv1MEwxL1fkb IsBIH4825do6iShEmhEaC8F5uhGQMYApSTJgM3rQ3R6RY0oEvau9omO/9mOxIGzlDOkz 049zNSAcuGwPyqkgM0Z8nWwD1H6gCZtSM1/Ja4iSEm3CV1TTh2EhoAAA5Chusmz79hS2 Fddg== 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=4iyrZMhsm50EAs3g2KnI7xhSNv02uS5mIc/bNi5tMhA=; b=II72K1b3foSAbhJm0EgKMyDpKe+PVmgxazkwJ/m8d/BHvFYUwk5tyddy9RO+msmEYB xPOAlPDWHojj0gNej0JY61fRhCJ9kR44pfrPhPxCJca36jm93b5jBoOU5DBvpJrSKBey Bd1umdvGVepmzhj1Cz7YV+sz2luPCbQ0mS+vnORxF6vZ3htPI03qCQN2oXWFBADGFgAj IRqivY0UVnJ/d3aEmA/BY9q94Kade8SQxf2l+zcDlM+NHTkkQxCqAoRhsAS5Ynb3mOAV I7tfN1hlqf1O88LolwKc4IbP+mCZo73DItbkDq7yIeS0ER/QDm3oEpGxvrdcWGXek2Vh T+zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=h1W3rhK1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id g10si1459393ejz.521.2020.09.01.16.19.39; Tue, 01 Sep 2020 16:20:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=h1W3rhK1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726311AbgIAXSK (ORCPT + 99 others); Tue, 1 Sep 2020 19:18:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbgIAXSI (ORCPT ); Tue, 1 Sep 2020 19:18:08 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA735C061246 for ; Tue, 1 Sep 2020 16:18:08 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id mw10so1390455pjb.2 for ; Tue, 01 Sep 2020 16:18:08 -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=4iyrZMhsm50EAs3g2KnI7xhSNv02uS5mIc/bNi5tMhA=; b=h1W3rhK11Ac2ULHxITQVWk+mYa5KEEodEYvcXH6ZBK0sVGUcKUNSYh5WpmAqVdJ4uM laH+r/2+ofVbyxPYxM/BYCZTO3d1jcstILzzhKlZMC4jxxBsADHZmsJZMYMsDLc0Xqts f/ywKAW1F2cWVr+Ovsyf3pu5q6m5rdIcz38XA= 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=4iyrZMhsm50EAs3g2KnI7xhSNv02uS5mIc/bNi5tMhA=; b=fn2Z8dNXaR9iVRi2nNQP7CVIcebKLqwdNpv5AowBIRumNztcmT5QWMkQcYhSzwPeVs GTTUTEUtDO8NE8eDkqEnxqmh8BajZYTUy45Mcz/S24mdLFrm+6PCeZmsWzaTrqO4Sl+C cwASa17N7o5PI9oHpP04hlZXzTrcgeqEDpU8CpHDRn6KjTUk/u1AkWtCdR/YsE3s2pnN 7qUW83Fip3YUgu3LwdkVUowOs3WfZVEVaryoFmwYUfOX5d47gbqoMHp3yN/tLy3TKbuj FQ8nFE4FSU4p54NfS8V+/DEoW0JhdlURNQKQJx7mE75eTIWmKOGOJgHCruAfluWOoY9C w3vQ== X-Gm-Message-State: AOAM531VFaAzqZZOwmQjSFN6IVy8lfpW+tDcZ9JlEIbLyIKp70GT/BSf JT2dM/Gb9wdLMdgbNsjRlKyv+A== X-Received: by 2002:a17:902:7404:: with SMTP id g4mr2271545pll.176.1599002287789; Tue, 01 Sep 2020 16:18:07 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id l22sm3506944pfc.27.2020.09.01.16.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 16:18:06 -0700 (PDT) Date: Tue, 1 Sep 2020 16:18:05 -0700 From: Kees Cook To: Nick Desaulniers Cc: Michael Ellerman , Masahiro Yamada , Nicholas Piggin , Ingo Molnar , Borislav Petkov , Catalin Marinas , Mark Rutland , Ard Biesheuvel , Peter Collingbourne , James Morse , Ingo Molnar , Russell King , Arvind Sankar , Nathan Chancellor , Arnd Bergmann , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , clang-built-linux , linux-arch , linux-efi , Linux ARM , LKML Subject: Re: [PATCH v6 00/29] Warn on orphan section placement Message-ID: <202009011616.E6DC7D54EF@keescook> References: <20200821194310.3089815-1-keescook@chromium.org> <202008311240.9F94A39@keescook> <20200901071133.GA3577996@gmail.com> <20200901075937.GA3602433@gmail.com> <20200901081647.GB3602433@gmail.com> <202009010816.80F4692@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 01, 2020 at 11:02:02AM -0700, Nick Desaulniers wrote: > On Tue, Sep 1, 2020 at 8:17 AM Kees Cook wrote: > > > > On Tue, Sep 01, 2020 at 10:16:47AM +0200, Ingo Molnar wrote: > > > > This is with: > > > > > > > > GNU ld version 2.25-17.fc23 > > > > (At best, this is from 2015 ... but yes, min binutils in 2.23.) > > Ah, crap! Indeed arch/powerpc/Makefile wraps this in ld-option. Yeah, I totally missed that too. :) > Uh oh, the ppc vdso uses cc-ldoption which was removed! (I think by > me; let me send patches) How is that not an error? Yes, guilty, > officer. > commit 055efab3120b ("kbuild: drop support for cc-ldoption"). > Did I not know how to use grep, or? No, it is > commit f2af201002a8 ("powerpc/build: vdso linker warning for orphan sections") > that is wrong. Eek, yeah, the vdso needs fixing; whoops. Lucky for my series, I only need ld-option! ;) (Doing test builds now...) -- Kees Cook