Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2526064ybv; Fri, 21 Feb 2020 17:42:02 -0800 (PST) X-Google-Smtp-Source: APXvYqz0IMGsNW9d1ya4gZNbLRAb+V2qTVWYXhYWTdPaZWhXzpNDb0zD8NWG8ynOnIO47pYxh5Z3 X-Received: by 2002:aca:48d0:: with SMTP id v199mr4423522oia.10.1582335721983; Fri, 21 Feb 2020 17:42:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582335721; cv=none; d=google.com; s=arc-20160816; b=OL+STWFe28teCInjrZ+7jFIlqbn3IBSm7imM3psvj5PNQoA7eRvLd14kUvNjoL4TyP qsRX3xhNCWXKKDeNSLCfZ/bgzOI0ZF9NSQxd961J5HgxDWv6fDyTxYQ3A4RmeYArffJB kEVimKIRKEnwvhtrgq036toW0AHr4/6Fxu7bvSnWnvjnqpsdtwMLaJYjK8mu+gPR1UbX Z59LxoNbn3QCj5M8jQGFnyiZ5hH1iv1HFkQANXTkalY4Yed+7Ca5oYCk8EnyfcptG3yA 77sgSslvtLm0IV0OahOaZNfCCpO7YNTIebTtcvmWtSL2NXgpsVFsUTVLnUyYB2U9YDc3 8QaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=q4yfRrXYVjqxoLo7OCNidxitqR5YhxWw1S4yTZYBcuQ=; b=tD8ojOv6e72phJ1aKbmYqZgz/17cWd9LhtkcZt2CeXRweMv1JNuwDk1X0qfMRaeLqo mYO6UVHkqv0ZOnReFWhv/rxmfwhBrA6GHfNd/TzRluH1lyPvMaBvU+ddfrLkn4HTc8PU oDSatfU2B129sCG1m/kBKL7lmDacTLBBwjRqr1/tk4aqEjlqlpUkoVjGv76VJbfIMdrg Vv66Pci24eJ3dCOoAiPkjrn3VMlPrbXqYFwNf1WjpLfJaJDEKgQ0rBliI7BqEvL4aaL/ QwTUIPJWo5gGBFFpf5q044UkAdKxfuOxyJKD4QGyx9uA+Cpn84siX1ElEHNnFYvpWRRV NxZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q26si1491290oij.38.2020.02.21.17.41.50; Fri, 21 Feb 2020 17:42:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727686AbgBVBlr (ORCPT + 99 others); Fri, 21 Feb 2020 20:41:47 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:52202 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726912AbgBVBlr (ORCPT ); Fri, 21 Feb 2020 20:41:47 -0500 Received: from gwarestrin.me.apana.org.au ([192.168.0.7] helo=gwarestrin.arnor.me.apana.org.au) by fornost.hmeau.com with smtp (Exim 4.89 #2 (Debian)) id 1j5JnR-0002uz-Gc; Sat, 22 Feb 2020 12:41:34 +1100 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Sat, 22 Feb 2020 12:41:33 +1100 Date: Sat, 22 Feb 2020 12:41:33 +1100 From: Herbert Xu To: Daniel Jordan Cc: Steffen Klassert , Geert Uytterhoeven , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] padata: fix uninitialized return value in padata_replace() Message-ID: <20200222014133.GB19028@gondor.apana.org.au> References: <20200210181100.1288437-1-daniel.m.jordan@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200210181100.1288437-1-daniel.m.jordan@oracle.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Feb 10, 2020 at 01:11:00PM -0500, Daniel Jordan wrote: > According to Geert's report[0], > > kernel/padata.c: warning: 'err' may be used uninitialized in this > function [-Wuninitialized]: => 539:2 > > Warning is seen only with older compilers on certain archs. The > runtime effect is potentially returning garbage down the stack when > padata's cpumasks are modified before any pcrypt requests have run. > > Simplest fix is to initialize err to the success value. > > [0] http://lkml.kernel.org/r/20200210135506.11536-1-geert@linux-m68k.org > > Reported-by: Geert Uytterhoeven > Fixes: bbefa1dd6a6d ("crypto: pcrypt - Avoid deadlock by using per-instance padata queues") > Signed-off-by: Daniel Jordan > Cc: Herbert Xu > Cc: Steffen Klassert > Cc: linux-crypto@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- > kernel/padata.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt