From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A5D9C433E6 for ; Tue, 1 Sep 2020 23:19:24 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D730F206EF for ; Tue, 1 Sep 2020 23:19:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="S2okWJq/"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="h1W3rhK1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D730F206EF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4UnFiPvxPkvbSDgmh3NrQ5+3AxdPJgbdhg9qjrq9M8A=; b=S2okWJq/2GDy+NhTmxi+aLd+p VrDxzWDVYmwm7BJLiv0gnD7xfLCcNrrjwWiLH6vye+Lli7b3VHPrd76QJ8N0ixqtH5HUc2RrkhSWl Tv7BIKib8+Y2ZRxwQ0OkUoFBSTxXyYrTkJ1S3O1WYrUyAb7NnrMo/JpDt0W34hE6vy20f8p+YU+be pCtIrFhcRs/k/VurWxmMCLmCfsdebJQeDO8nLj9buMsSlwoZOBa/H/hsDH8EhikdbQDyKRpPZdHr+ A2ZktncJ57Qjhm55smYwDeAWOi4U95V8cKStMDeroZSQzWc2s8oOcj2tKFnH52JuH4hQZndPC7vfU B+hjkdUVw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDFXa-0005od-4Z; Tue, 01 Sep 2020 23:18:14 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDFXX-0005n6-ES for linux-arm-kernel@lists.infradead.org; Tue, 01 Sep 2020 23:18:12 +0000 Received: by mail-pl1-x642.google.com with SMTP id z15so1334386plo.7 for ; Tue, 01 Sep 2020 16:18:09 -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=WLQmEmBOvmr7B1JqhE1AAuHwAXLyJdlUU0DrT4B/9lZcy08jE/Jr/5hPvS/4u+y6r2 tDWM5iuNYH3Rt3La0HU3OBeg4JT2oLbu/VjlYOMwJkIxOwvKDr22sqxrMgF3P+5S5Xx5 EKPeL1cGxbvbS7Jc14WT+ti2jNAJHGYZjZa1hpWUI7nx8TJQ+yqiSDy3uyNJrIg9dTIE WRKYFP4S66HMEdVUnn6yO0EPEiTBY4RNcW3JLoQsGTsfNKRvgn1B+YPgv8f1rZFTu6pw cS54yPCSteLhgWgR39QyB7PO5XHdZVfhNU1e2/RDn3BDgNwheISmEF/ZeJVRSSnogccN H2PA== X-Gm-Message-State: AOAM53075TPHOZaHDd1ZMuZCqEqlmXYZqwsnuW0QWZ0AIQkaAL8mJzla Mo/5afhCEpzvVAXzF8Elx53UYg== X-Google-Smtp-Source: ABdhPJygBwAH2kY44WcP2KmDZ++JT1L7dvXf2P1Gp3pBp8hQP0G/2rd4h4BS1PltNzQUpbBUJyzvFQ== 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 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-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200901_191811_506460_66D58B6F X-CRM114-Status: GOOD ( 16.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , linux-arch , linux-efi , LKML , Arnd Bergmann , Michael Ellerman , Masahiro Yamada , "maintainer:X86 ARCHITECTURE \(32-BIT AND 64-BIT\)" , Russell King , Nicholas Piggin , Ard Biesheuvel , clang-built-linux , Arvind Sankar , Ingo Molnar , James Morse , Catalin Marinas , Nathan Chancellor , Borislav Petkov , Peter Collingbourne , Ingo Molnar , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel