Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp104418pxk; Mon, 5 Oct 2020 19:33:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxCfEYyRajd9fzUVnnfZzT7xlHhlLt+bcK86lAaGzfx+mQgB/yeg2k0vdiLbiS+13xK7J8 X-Received: by 2002:aa7:ce0a:: with SMTP id d10mr2415941edv.254.1601951597036; Mon, 05 Oct 2020 19:33:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601951597; cv=none; d=google.com; s=arc-20160816; b=SNJJ/bKo7gIXB3jAaxgzQYDTv6tNqQDsrC8SUgfGtYMnBdglP7FpXc2T62sQMnVfm3 /scnD43F7ByYY2JXmq+SG7Y3huAxDZO1xZ3Jn+ASVGNYlc7rioFF26D6F9PtZY+2j6s8 ZnN/yHhnKGlAc+FdW6VDCPy2TzIJ8hOB2xyQp3VUj3fhXn/Nv29TkALbq+cZcjqBXwgr hOxpQ4xR0saMqv+EKjjD5/QC6onToBNKM4po0C70fmE7hTMYA6/XhDSLHte0oZa9rJjQ 9Wlu2HF1q8oRdxlTb30c9zjyskT+5h+qy7jGWXofXFGSdSG5YA0wS7F+mBkArumAyiID TABA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=d3JJ/KHtizdq3acPDh8Ta3aL+0vqj2jBwlQrIzTfRY0=; b=Pnyqh9/FebWRe1J4Zs8OP2XEDLlbSMhSkl9L6cobllgeMeeZHPE4P8qVDhnAXfqdCN ZNZ+EymbXKXonDBVy0XVUcg5b3JS27YXd65xefYgtLDvrJWTBwtgqaEZrO0ZpnfIdXkL yXKkDdwQ8xy8cuOJXDsxORNWZ1kj7iCM+vmH8ypm8EsN604aiw4/g+UusD8dIJg+Gczf c74KszcNDK34o6PWMOzGUfL9dHoQMQ2+6IcfL7o5Zcmrw0BSFhsOmKY5jA1pTCO9ugq3 HILuktLGoTRfu8FzrHNYegZvLgU+Gi1nSUfsobOB0AooCfXGSRHOV5xrh6KHr4oJ8Wa4 FqFA== ARC-Authentication-Results: i=1; mx.google.com; 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 dn5si1019451ejc.220.2020.10.05.19.32.53; Mon, 05 Oct 2020 19:33:17 -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; 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 S1726588AbgJFC3v (ORCPT + 99 others); Mon, 5 Oct 2020 22:29:51 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:42778 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbgJFC3v (ORCPT ); Mon, 5 Oct 2020 22:29:51 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 0962S93K005537; Tue, 6 Oct 2020 04:28:09 +0200 Date: Tue, 6 Oct 2020 04:28:09 +0200 From: Willy Tarreau To: Kees Cook Cc: Thibaut Sautereau , "David S . Miller" , Jakub Kicinski , netdev@vger.kernel.org, kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, Thibaut Sautereau , Linus Torvalds , Emese Revfy , "Theodore Ts'o" , Andrew Morton Subject: Re: [PATCH] random32: Restore __latent_entropy attribute on net_rand_state Message-ID: <20201006022808.GA5531@1wt.eu> References: <20201002151610.24258-1-thibaut.sautereau@clip-os.org> <202010051910.BC7E9F4@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202010051910.BC7E9F4@keescook> User-Agent: Mutt/1.6.1 (2016-04-27) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kees, On Mon, Oct 05, 2020 at 07:12:29PM -0700, Kees Cook wrote: > On Fri, Oct 02, 2020 at 05:16:11PM +0200, Thibaut Sautereau wrote: > > From: Thibaut Sautereau > > > > Commit f227e3ec3b5c ("random32: update the net random state on interrupt > > and activity") broke compilation and was temporarily fixed by Linus in > > 83bdc7275e62 ("random32: remove net_rand_state from the latent entropy > > gcc plugin") by entirely moving net_rand_state out of the things handled > > by the latent_entropy GCC plugin. > > > > From what I understand when reading the plugin code, using the > > __latent_entropy attribute on a declaration was the wrong part and > > simply keeping the __latent_entropy attribute on the variable definition > > was the correct fix. > > > > Fixes: 83bdc7275e62 ("random32: remove net_rand_state from the latent entropy gcc plugin") > > Cc: Linus Torvalds > > Cc: Willy Tarreau > > Cc: Emese Revfy > > Signed-off-by: Thibaut Sautereau > > Yes, that looks correct. Thank you! > > Acked-by: Kees Cook > > I'm not sure the best tree for this. Ted, Andrew, Linus? I'll take it > via my gcc plugin tree if no one else takes it. :) It was already merged as commit 09a6b0bc3be79 and queued for -stable. Cheers, Willy