Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1389433pxk; Fri, 2 Oct 2020 08:24:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw92QHzJoTEQulRnShe6HewVrYGUminqFMugUv16r08wecoYDNoVsHb7UNsv/DnE6+9OX4V X-Received: by 2002:a50:cbc7:: with SMTP id l7mr2921458edi.148.1601652278072; Fri, 02 Oct 2020 08:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601652278; cv=none; d=google.com; s=arc-20160816; b=Aj2ayZ3hVn6ziku5YfxTSHb23TGCbgiEBbEgNNl5CM92wkP/SiVgjAQoy04SBdrgvw Ue8l9or2+Ytd5yBUcW+WyqJSEDcQCfIURSuo1qYKf7DsDnBzWtzAdEzbnWMidCfSmpTv ya0O60uJSEgwaquEY+jsGVffCtLFv5hMh231xQGJwRVLveieZZCdl3SrbCDd6LFsus2W terB6J06vyemnXYfMfS9ZB2iIgRVSHCtwHV0NX/oYgrqI2OZzM04qQpzCjKJPXxDiaaR pRyzLyya+Pl/IeEx6LR3lFyB5r6QxyN/w7yXLfJ3p7xxPcPDu2+TdN7I17vPZ3MLmPMz oGQA== 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=9XrlM4CXiPYbGKbSH/HocHSgOetxOqN5rO6iSchyU+c=; b=f3FgBY3K4nQT8d4AlFZNXpBuRNlik/BdI4zDXpR9AZ7VI1L0TyY/VlGwjIlPAMZ0gV BmSqVyeDt4wBuUH6JpPj860/FOjunGkdb487BmRz2kqDEbb+EfWK3yKkKFGl/mAexi7s /56xklFhW/+Pz5e56Qyp5ztvLaHesBj2efmjX6gMGhmyYAErl8KBaqXuVEjCOBnU72MI TXAY+wIvXVb2wwBdbzoQFFSQXaJ4gLrWv6zB49QiZz54/KPYO1rKZApQbbQB7vBxFAH2 /StHsd5lHqVqTT9Lr7UmjaRW93MHfr+BJq5oNg/qtQkukg8CnbZSgpZMyOp4kVgT7xy0 i2SQ== 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 e2si1243101edu.7.2020.10.02.08.24.09; Fri, 02 Oct 2020 08:24:38 -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 S2388280AbgJBPWn (ORCPT + 99 others); Fri, 2 Oct 2020 11:22:43 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:42353 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbgJBPWn (ORCPT ); Fri, 2 Oct 2020 11:22:43 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 092FMJhG003890; Fri, 2 Oct 2020 17:22:19 +0200 Date: Fri, 2 Oct 2020 17:22:19 +0200 From: Willy Tarreau To: Thibaut Sautereau Cc: "David S . Miller" , Jakub Kicinski , Kees Cook , netdev@vger.kernel.org, kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, Thibaut Sautereau , Linus Torvalds , Emese Revfy Subject: Re: [PATCH] random32: Restore __latent_entropy attribute on net_rand_state Message-ID: <20201002152219.GB3875@1wt.eu> References: <20201002151610.24258-1-thibaut.sautereau@clip-os.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201002151610.24258-1-thibaut.sautereau@clip-os.org> User-Agent: Mutt/1.6.1 (2016-04-27) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Ah thank you, this is what I tried to figure and failed to! Spender mentioned that a one-liner was all that was needed to fix this but never responded to my request asking about it. Willy