Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1138192pxa; Thu, 20 Aug 2020 03:41:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQH5bW+p/V9PJVbmT27JO2i4ERSEkoLqlfYg+eseq6UiJqDu25QEuqBNkfFO4NThkFPlqe X-Received: by 2002:aa7:c0d3:: with SMTP id j19mr2161226edp.157.1597920066921; Thu, 20 Aug 2020 03:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597920066; cv=none; d=google.com; s=arc-20160816; b=cBImx83SvpQ/iiW+9q06E6nS7FqakUaYQ2d3PuUTqZ0KFAr+8EzuB3lnvGCZGxhiSN Fa/qg+hKnEwmlPZR8MY0sve/roanNlVdXlKqvoD1VraW8An/hWlpaLNhwMWLwc+2eLSk hkP4PD8jwYcx3tOdH19g9Hl8H4Hq1w7bY8RF2Vz5LNVFPkA6mpadwowbXbP3vUGcyZh4 vH0w8AxpreVd3OkSYTUJhYXBfq5H4IR1bCsT6NWl6ddQunxf1CUTF/0B2Tv+bCtEkPWo gbbrKj2lxzyMI2zFuqqGaWSS+TN2Y5tARupW2Go5FD0OMPbEXl6t0PFpV48L+RvS7Je6 Bqvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dlmcl6hTSTfhK9t5bbUmbxhlcviv2E8RjVgBT5cmuRo=; b=tSAAquLZX/wA9JQ2KXX371LdAebGVofPHKjE07SssHkvIWHaB1e4UtdZ8jo2RnbAbB BFHkeBPfJEy8ByNR/ZppiKp5g4T83sB0aHGI8Grrrf1bN8XVCEwoS4L9PM6L+b1o6xE5 CBpvXktfQe1/ouxN35260kvZlcDsKG9gxcrVSDQ13neV/ZK3oMQIUoyN0XD7xt3mHEYm cb+I8qPCMBI6wCGLe/cZB3En3xTJYnT4WMLZzk+jrVvFQ7kpMSpRs4eyWfmLWAGVoznD kjAwA0hkWFGy/OFb8hi82+pJ2q+aSyksjZ1R4ez+n31ek0WtVtCFduEd8AJjSX+4bpbM SHUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="z/9+9wDE"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p62si1303021edb.9.2020.08.20.03.40.43; Thu, 20 Aug 2020 03:41:06 -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=@kernel.org header.s=default header.b="z/9+9wDE"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731906AbgHTKiM (ORCPT + 99 others); Thu, 20 Aug 2020 06:38:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:40218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730153AbgHTKSQ (ORCPT ); Thu, 20 Aug 2020 06:18:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7DF38208E4; Thu, 20 Aug 2020 10:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597918688; bh=H5Yk/M5cqaUgNP3OsbDB380S9GO0SXXJgrLFMOVXvfk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z/9+9wDEtp2SF1EpMGdtc5K8WY779uSMpkk40cWURAK6JQMRwj5S+me9YsTKJiOdk L5/CE+htRx12JbulgH3iccYLYOv0ry6EDcUv3RzUjM+qhRINCuszscNtXXl38alMjr wOQ5WJjRdcrIb+ZkA4M33p62rZX/7ujGPJ4ku3ks= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stephen Rothwell , Emese Revfy , Kees Cook , Willy Tarreau , Linus Torvalds Subject: [PATCH 4.4 030/149] random32: remove net_rand_state from the latent entropy gcc plugin Date: Thu, 20 Aug 2020 11:21:47 +0200 Message-Id: <20200820092127.184424955@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820092125.688850368@linuxfoundation.org> References: <20200820092125.688850368@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Linus Torvalds commit 83bdc7275e6206f560d247be856bceba3e1ed8f2 upstream. It turns out that the plugin right now ends up being really unhappy about the change from 'static' to 'extern' storage that happened in commit f227e3ec3b5c ("random32: update the net random state on interrupt and activity"). This is probably a trivial fix for the latent_entropy plugin, but for now, just remove net_rand_state from the list of things the plugin worries about. Reported-by: Stephen Rothwell Cc: Emese Revfy Cc: Kees Cook Cc: Willy Tarreau Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- include/linux/random.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/random.h +++ b/include/linux/random.h @@ -47,7 +47,7 @@ struct rnd_state { __u32 s1, s2, s3, s4; }; -DECLARE_PER_CPU(struct rnd_state, net_rand_state) __latent_entropy; +DECLARE_PER_CPU(struct rnd_state, net_rand_state); u32 prandom_u32_state(struct rnd_state *state); void prandom_bytes_state(struct rnd_state *state, void *buf, size_t nbytes);