Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1612740ybg; Wed, 29 Jul 2020 20:18:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybrFYFJaEFmfmKvvYflPFYtUxuipAfyg8SV+pElS60Cxp3slnjZqzlmj1j8KA8WPPJtPC3 X-Received: by 2002:aa7:da8c:: with SMTP id q12mr810748eds.126.1596079135865; Wed, 29 Jul 2020 20:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596079135; cv=none; d=google.com; s=arc-20160816; b=DMzFebMko5ZTu8IbE5a+7CCE2l9YDU2xQuBqRgAbv0dlobm/4AOcuFs1prv8E3vZ++ LCGgGaAIpYCsL0nHE8WPVLtKR+mhgSdqxy6e3vVH97ViX0zlJBvJobg2NiTH4+ipJ7Ru YYErnTeQQKMCRwrm20GYW9NuKeEnrg/k3ApO28Xrf3ZkXM9yCar5ZYscuM36z+AJCo4v 8P3TMpJAXF47aULAvm6U+R687ugK5HaA/b9r4x1jQgqDIRydRLBFHGWqmOSE7qmvzBqe FpJTijteTjHHJa3aGtWrAyCShDP7xgYb7okrtY8UNWDkSwAut47sXqCYTkYD95Ntdc3w Fy9w== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4CIpoQaQP5rMf7isN45R+AOY024dFN4X4rA8xyXrZ0w=; b=CMsR5JxW7pXTeZyJZQlNxC0MvpGA1y03/ZrxKWtmSmVGD6g/6+L/tL2ZOfo+Wrg8JJ Idb82wP7uJJtP0dXhaTjSFdJ5XCcrSd1hf6L8b8AxUZEg/CBUjq9g8XH2qdDGPf1wBpC lLsdRITYABQYiUcPEysX7l78rcBhCTUl5JoUn/xJRYaPSgAh4Lx/UnPQ+aErtjo5Fjxn 11bi9ypLcL5WMJI7kVBHeJkYF5ZIIFhgAduOcae/IEnhKSxH13bVvN27Z7qKdzoQKPEq eh/5Yz85xZIRbkTPCMZnoWAfGPOzLqyTfHXJSo3vQpSxyulYKuyIzd6UL2hzVuC0vEiJ 9DVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EsUMbF53; 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 z43si2535617ede.148.2020.07.29.20.18.32; Wed, 29 Jul 2020 20:18:55 -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=EsUMbF53; 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 S1726806AbgG3DRw (ORCPT + 99 others); Wed, 29 Jul 2020 23:17:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726367AbgG3DRw (ORCPT ); Wed, 29 Jul 2020 23:17:52 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00FBBC0619D2 for ; Wed, 29 Jul 2020 20:17:50 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id u185so14240710pfu.1 for ; Wed, 29 Jul 2020 20:17:50 -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:content-transfer-encoding:in-reply-to; bh=4CIpoQaQP5rMf7isN45R+AOY024dFN4X4rA8xyXrZ0w=; b=EsUMbF53S5viW/2q5173Kz5KDGM7yrbvBj3CRywH8XTY/c8KgzJygFZr/0n1T25vFd +UNA/0zFuQK2bekoUC+iHK/Yt3lUd+V59LwahnR05NdrvmbQO1YUSxuDjm6K2d6RrBnf 9uu841Zv511kgsa4otfpUujxvqpQykuvKqo4s= 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:content-transfer-encoding :in-reply-to; bh=4CIpoQaQP5rMf7isN45R+AOY024dFN4X4rA8xyXrZ0w=; b=Wqef34aq2oNCIS5j/Y38KAVbBSHYcF1i7SHTYGzDi9tFH4NJClR3O0ej3x6zB3r5Im xLlWpofQc6YR3fsd+kLyOR262Aa0l8dX1M08hUVXN1O9CqKxrnsBHbLIPkgUikA9sK7U iq86fBNDPbKAiuqMu3D19X0ooJdsJIoBAuPl+mth+6eDxtfwxZxRoGgSPvJcUJypIxzc kh0RxJRk5y4dIg2NaqD0hCeePreturlbn+SnE970mGkwdUcF5pmGiDFA4qMyBdm3YbgS aI6uxyv3WpeiqOlraMad9jaYtZz0/ha+y99ID+h0Ygv+q1jAKXZhmpfksyoeQvIdN7KU Hp0A== X-Gm-Message-State: AOAM531XMdFxgoU5fPbdf9lKAqU0dmNPW8BetxPdbuTyUOe5eLX0pMse kHlj8dz2Y1Nd7L+MJeUPYsXD/+0vhAI= X-Received: by 2002:a62:17c1:: with SMTP id 184mr1160512pfx.136.1596079070298; Wed, 29 Jul 2020 20:17:50 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id s8sm3945406pfc.122.2020.07.29.20.17.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2020 20:17:49 -0700 (PDT) Date: Wed, 29 Jul 2020 20:17:48 -0700 From: Kees Cook To: Linus Torvalds Cc: Stephen Rothwell , Emese Revfy , Linux Next Mailing List , Linux Kernel Mailing List , Willy Tarreau , Catalin Marinas , Will Deacon , Sami Tolvanen Subject: Re: linux-next: build failure after merge of the origin tree Message-ID: <202007292007.D87DBD34B@keescook> References: <20200730090828.2349e159@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 04:43:04PM -0700, Linus Torvalds wrote: > On Wed, Jul 29, 2020 at 4:08 PM Stephen Rothwell wrote: > > > > include/linux/random.h:123:24: error: variable 'net_rand_state' with 'latent_entropy' attribute must not be local > > 123 | DECLARE_PER_CPU(struct rnd_state, net_rand_state) __latent_entropy; > > Hmm. > > Ok, this shows a limitation of my allmodconfig testing (and all my > normal builds) - no plugins. So that problem wasn't as obvious as it > should have been. 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...) > Adding the gcc plugin people. Otherwise the only option seems to be to > just remove that __latent_entropy marker. And just another heads-up, the patch[1] (which was never sent to a public list) also breaks arm64 (circular header needs?): $ make CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 defconfig ... $ make -j$(getconf _NPROCESSORS_ONLN) CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 ... In file included from ./arch/arm64/include/asm/smp.h:33, from ./include/linux/smp.h:82, from ./include/linux/percpu.h:7, from ./include/linux/random.h:14, from arch/arm64/kernel/pointer_auth.c:5: ./arch/arm64/include/asm/pointer_auth.h: In function ‘ptrauth_keys_init_user’: ./arch/arm64/include/asm/pointer_auth.h:40:3: error: implicit declaration of function ‘get_random_bytes’; did you mean ‘get_random_once’? [-Werror=implicit-function-declaration] 40 | get_random_bytes(&keys->apia, sizeof(keys->apia)); | ^~~~~ [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f227e3ec3b5cad859ad15666874405e8c1bbc1d4 -- Kees Cook