Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1130568ybt; Thu, 18 Jun 2020 00:59:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD6YgGIgUhAaLG4HV/opSkmSeYo7Qi1rRwP0Dm9jksSvB2eT563rRVfsrW3kYKXIN+I5Nr X-Received: by 2002:aa7:db51:: with SMTP id n17mr2740440edt.241.1592467150293; Thu, 18 Jun 2020 00:59:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592467150; cv=none; d=google.com; s=arc-20160816; b=OUgVJddGInSv7gl+tqnNiuCEFR1LZD8Hljc0tPpR6CSGImIyJuHxinfNxm6prPC8p+ Dvp1GRxy4aC3+6rRZ7UvbZS9LQw7+fqJCsmFvMMCIuHYkpReH5Inqw+i7qhwFDQ4M5b/ F2HH97nOg0eeKRW8YD8WEsdM6g3zKoJ6uKj1PABQ93G06vhM8gZOKl2z0nxTbGBDyTfb loitcga09RzhGQSS+K0jrgAmOpIf5emCLgfK4ATyfoKVt8cTJaAp8Sn1yAtgevifTkCh w0devUc3alqOfZoXcCvI3YqTPUkSxqwREZI3K4J3sMANOO2M7hTWMQ6EYmTraIrsUuqq EnDw== 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=r3BAiILM0KISoS+A4f9sClVzZgBKN+XIsuOyp9jpE6c=; b=HUWNNzeuL1dtC9cAscbpl4GhhuAH5lPbczbfc58kJg5lY9yL647d5Y9sBVslxmweWf /f1YzEJa83SFkw79rhTF2WeGZiJbgAVdMoUltSZS+gN4KzEhL1Rm+CCNCPn4qDE7klbj eNrpeMaUlr4choeSeP5bpFv6ZP3B5L/JOrodfMIk8lmJYiKs3NSsx7065X77KPTcItht 6Dn9A397+fhRaVqIZFC5Ub4s/ndaG42eBLc+CrvW4hcpXjbcTxryCaARZnE1Efi9lavt Onhqgy8YU1vEg6bYHZ+7N2N6K+R7TrtNXBwIx9ssVOsJ4ZFC+A1T/nwrSUFqxchY+YF4 jZTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 dn12si1810030ejc.287.2020.06.18.00.58.46; Thu, 18 Jun 2020 00:59:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728269AbgFRH5s (ORCPT + 99 others); Thu, 18 Jun 2020 03:57:48 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:60480 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728218AbgFRH5r (ORCPT ); Thu, 18 Jun 2020 03:57:47 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1jlpQV-0002BA-26; Thu, 18 Jun 2020 17:57:36 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 18 Jun 2020 17:57:35 +1000 Date: Thu, 18 Jun 2020 17:57:35 +1000 From: Herbert Xu To: Daniel Jordan Cc: Steffen Klassert , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] padata: upgrade smp_mb__after_atomic to smp_mb in padata_do_serial Message-ID: <20200618075734.GH10091@gondor.apana.org.au> References: <20200608212652.3469814-1-daniel.m.jordan@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200608212652.3469814-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, Jun 08, 2020 at 05:26:52PM -0400, Daniel Jordan wrote: > A 5.7 kernel hangs during a tcrypt test of padata that waits for an AEAD > request to finish. This is only seen on large machines running many > concurrent requests. > > The issue is that padata never serializes the request. The removal of > the reorder_objects atomic missed that the memory barrier in > padata_do_serial() depends on it. > > Upgrade the barrier from smp_mb__after_atomic to smp_mb to get correct > ordering again. > > Fixes: 3facced7aeed1 ("padata: remove reorder_objects") > 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 | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt