Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2146979ybg; Thu, 30 Jul 2020 11:28:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCzSaFpFapJ8r6SL5JZVDFa+5bVw4A4s8br6tb6Gz4NFqtr+cK0fj2YQEWAsE+XyCq/Czr X-Received: by 2002:a17:906:858:: with SMTP id f24mr345677ejd.543.1596133717307; Thu, 30 Jul 2020 11:28:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596133717; cv=none; d=google.com; s=arc-20160816; b=IsT53xuspdiCxtG8YOcKy0MdcPI6wFiUlYK3BWOUPC/oxvOqFObptumzlMVlak9MNx bMIFQEUmFaB1ZXeCn0yBI+gZw2Io3ZWkloKSB5hon1ZDrMLfVZnrwdS50aE2D6WkA1Pq AlmCEEYdLowlBKe1Q4my94bJTlzjTRubOR502GxzpuUNKjftYTn33/wkD5H7RiE4BJw2 cqSXfwfG99IeQKm21YB13oUTjJMHoBzAt9vrPPHOOKykTzhqOD4Pc3MCjYTo5V/t0+DS AFLWUaUv5FdJlOCmh0r2Ry8Bi03aFmO09cOK6Pi6aXPsuM5vT5dPdLwkmw84Y1EvcYZK 2oNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8HJPemEM+DsX1ym3tw6eDYthggE6P8XVpHiArahohvw=; b=BkCSv3ZKoDfeOJn0Rk9xaLN6j7R7i2lwBWeefXoOSZwdxP5UgLez4MUpWe0ZskYCWK nECptHxtYdI8NMUjkk0Q2YiikhxHzxYZ9PBmfxH6OHkXwO8dezuOAeSat2FJKWPLoVMN w6Q8ee3XfzzxTEY5MV6N7IRUOTj8joXpjbCmtBSwlSxE72APB9RorPH15wceSgAlLT7v 54WUstL5WvKe8qQ/eaznBHEYMduC+24MGfKlPuFgUcOilrynfhXpspzIu9bWvfy2E14z pUjf/Bk0YcbtJ962LUaCRaThN+ttWePtY0+EaZiiM9cbidWb/BCe421V8QlNHB4VGAYz GkuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=LhoHToaN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p19si3437179eju.726.2020.07.30.11.28.14; Thu, 30 Jul 2020 11:28:37 -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=@linux-foundation.org header.s=google header.b=LhoHToaN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727945AbgG3SZE (ORCPT + 99 others); Thu, 30 Jul 2020 14:25:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726343AbgG3SZE (ORCPT ); Thu, 30 Jul 2020 14:25:04 -0400 Received: from mail-il1-x144.google.com (mail-il1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7823C061574 for ; Thu, 30 Jul 2020 11:25:03 -0700 (PDT) Received: by mail-il1-x144.google.com with SMTP id x1so2967072ilp.7 for ; Thu, 30 Jul 2020 11:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8HJPemEM+DsX1ym3tw6eDYthggE6P8XVpHiArahohvw=; b=LhoHToaNhTqfFNAglQSgfcTA/R0qG2CUkLAO0ke6yQ9Uhl6H4WM2Q/V0+507Qqu3w3 HJcLPzVRHx8KSGSR4P/r05Nvll7YyAdcfKR3R5Iqqv5MkEx1+ahjaYBErUMC/uMGNIzB QXHFg9FsehPLhU1OyG99/4mmHLMVOqOb/T4zY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8HJPemEM+DsX1ym3tw6eDYthggE6P8XVpHiArahohvw=; b=acVoLgpYPLM+ry0hwwVzW7OB3UMvbBqJNWPvNf0EXOsw2SJD12b7q9DZpzl5Hyd9sZ PQ61itfUJQzVxYjPhREWUGrwf+0+GVAtYjPAq/SvA2w6Bjq5T/7R3y1NR+7uF+un01Jr u8CHmobA3jRAsshdobcVdSdiuy6fFWdk9zSweuuAGHXkeXUApDt6ys5Dde33E4UvTqXa 9XFZ4IzSNpMQFOklq6S9MAZ8lJU1gWL6UGjGP+z2RbC4ypfSUylwb+P+V29KZgOhr6Pl bdT0VcZpnONLd9cSP6TJCt3DMHkMqOEn18MBIxhez0aaIm4CjCWTXfgHDv4pSGm4xY2r Js1g== X-Gm-Message-State: AOAM530WNAT5OYQz1sV8s8zPMM6ruf4oyq1KvQwrfDuMLX7XNeXNWC6R /fJAiWzXxMw+YYDQYkJjG+rhDDDzIrg= X-Received: by 2002:a92:8e4f:: with SMTP id k15mr5740403ilh.59.1596133502772; Thu, 30 Jul 2020 11:25:02 -0700 (PDT) Received: from mail-io1-f47.google.com (mail-io1-f47.google.com. [209.85.166.47]) by smtp.gmail.com with ESMTPSA id h9sm3215114ilc.59.2020.07.30.11.25.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Jul 2020 11:25:02 -0700 (PDT) Received: by mail-io1-f47.google.com with SMTP id w12so15594473iom.4 for ; Thu, 30 Jul 2020 11:25:01 -0700 (PDT) X-Received: by 2002:a02:852c:: with SMTP id g41mr599301jai.58.1596133500947; Thu, 30 Jul 2020 11:25:00 -0700 (PDT) MIME-Version: 1.0 References: <20200730090828.2349e159@canb.auug.org.au> <202007292007.D87DBD34B@keescook> In-Reply-To: <202007292007.D87DBD34B@keescook> From: Linus Torvalds Date: Thu, 30 Jul 2020 11:24:44 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: linux-next: build failure after merge of the origin tree To: Kees Cook Cc: Stephen Rothwell , Emese Revfy , Linux Next Mailing List , Linux Kernel Mailing List , Willy Tarreau , Catalin Marinas , Will Deacon , Sami Tolvanen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 29, 2020 at 8:17 PM Kees Cook wrote: > > I'll look into this more tomorrow. (But yes, __latent_entropy is > absolutely used for globals already, as you found, but this is the first > percpu it was applied to...) Note that it was always per-cpu. The only thing that changed was that it was declared static in lib/random.c vs being externally visible. So it's not about the percpu part - although that then showed the arm64 circular include file problem. It's literally that now the exact same thing is declared in a header file and not marked "static". Now, I don't think the __latent_entropy code ever really worked all that well for per-cpu initializations. It ends up generating one single initializer, which obviously isn't optimal. But I guess it's as good as it gets. Unrelated side note: I notice that the plugins could be simplified a bit now that we require gcc 4.9 or later. There's a fair amount of cruft for the earlier gcc versions. I'm not sure how seriously the gcc plugins are actually maintained (no offense) aside from just keeping them limping along. Does anybody actually use them in production? I thought google had mostly moved on to clang. Linus