Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp484499rwb; Wed, 9 Nov 2022 05:14:35 -0800 (PST) X-Google-Smtp-Source: AMsMyM53osCqf+N3gzKX/NRhcur3lH9VrJj90V0hTwNPfMuoCKVyT9tsKRyz9+ZNLsLKqNICvcrv X-Received: by 2002:a17:906:16d9:b0:7ad:a2ef:54c8 with SMTP id t25-20020a17090616d900b007ada2ef54c8mr58110091ejd.632.1667999674895; Wed, 09 Nov 2022 05:14:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667999674; cv=none; d=google.com; s=arc-20160816; b=v2i8ZWP4OlUpyKvz1YubEg018hg0offloV5ySpTwDk2pLM2GUwBBKbY7Q9Vlv1M2b4 Ov7/0tv8gCf4RTc4TCm7RNzLs20Ezj+zdy9+XvD8JgYWOeriGLlMjrYs9atDK8+AsiCP ZJ1flakwhS+zJAHWKSkBwT/UaZLLzJNQJqD0pPs4t7Ydo8A8GLPwmJEQXk8fYFkN9dSx hVFNjQBAq9NAmVfeMWWAskLfDWJDaQXo2sl3DPVLm/W8a4Y2uIXB0x20TPH4i+2XBGEU k/Q1aO5YqXtKLs6bpo0tmBa/nk5fHkw0qYE2Fo4ICxnS+fCYPaw8CoC6CRPTn90OQ5j+ 2ZQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature:dkim-signature; bh=hjfNn8jWIDsAR7kj9048Nl6m/l0f5ueCW8Gr2KNsOhw=; b=OsbcMAiyHHSLwaVVw0oG4jVI4oDQ9Qcye9+LY/aZdIN68gtINaSR/IMCNf/NOE1dni gMh3ozzH/izEUF1lSWJ3ijR/kIJ0Nf9nuQXJACNEeNAKvUjVCBfl3FPwnkj8a7ovWCQo OybAuGUXVAMTdJMP8IVYvqsr/QHHRvg9PZ3r/F0a5W2FhxzQz8VaheaHrgnLrKEI5Bjn eQ82MugDh8UnTyYEgfBApZXHM/RpeiRrAzmlpY78LqTZgo7yJt3/YYL/sEY8WeQ8EPae vLXe4fXSvbvBIxupNcaIIKV2yEUvfTcwUizgPQoDY9QnrZFCkgaGBsPKhtl/mtCqGRQ+ q6Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=GXHgKSox; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m22-20020a056402431600b0045d03c18e5bsi18725620edc.560.2022.11.09.05.14.09; Wed, 09 Nov 2022 05:14:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=GXHgKSox; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229955AbiKINCl (ORCPT + 99 others); Wed, 9 Nov 2022 08:02:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbiKINCk (ORCPT ); Wed, 9 Nov 2022 08:02:40 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56CB12CE3A; Wed, 9 Nov 2022 05:02:39 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 16C6522794; Wed, 9 Nov 2022 13:02:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1667998958; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hjfNn8jWIDsAR7kj9048Nl6m/l0f5ueCW8Gr2KNsOhw=; b=GXHgKSoxVW2YHlobbVQ8ol4lr6y1L+R1WkwXWcywXSnO9u1Mw6EsJhKMeli8wxNFnlUIKC 9W/xzN3bTiQE3YyvMnKqzOTeNSbjgA7Hie45fMgjudI4RTWsfUHFHo2Sn/kKH+0zgjVXT0 OLoATfsROR/5PiDKsctW0VIxLonqrcs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1667998958; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hjfNn8jWIDsAR7kj9048Nl6m/l0f5ueCW8Gr2KNsOhw=; b=B+iYC70KKeLhRoB50dbtvb61T+WftFbN2iOATMC86HAbdpyATElGU6dJpnEfvX0g3a6GmK /yshg0SqwH5Qk/BA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D5EBA139F1; Wed, 9 Nov 2022 13:02:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id K9/kMu2ka2OndQAAMHmgww (envelope-from ); Wed, 09 Nov 2022 13:02:37 +0000 From: Nicolai Stange To: Daniel Jordan Cc: Nicolai Stange , Steffen Klassert , Herbert Xu , Martin Doucha , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] padata: make padata_free_shell() to respect pd's ->refcnt References: <20221019083708.27138-1-nstange@suse.de> <20221019083708.27138-3-nstange@suse.de> <20221028143546.3xc6rnfkfcml373c@parnassus.localdomain> Date: Wed, 09 Nov 2022 14:02:37 +0100 In-Reply-To: <20221028143546.3xc6rnfkfcml373c@parnassus.localdomain> (Daniel Jordan's message of "Fri, 28 Oct 2022 10:35:46 -0400") Message-ID: <87educb7rm.fsf@suse.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Daniel Jordan writes: > On Wed, Oct 19, 2022 at 10:37:05AM +0200, Nicolai Stange wrote: >>=20 >> Fixes: 07928d9bfc81 ("padata: Remove broken queue flushing") > > It looks like this issue goes back to the first padata commit. For > instance, pd->refcnt goes to zero after the last _priv is serialized, > padata_free is called in another task, and a particularly sluggish > padata_reorder call touches pd after. > > So wouldn't it be > > Fixes: 16295bec6398 ("padata: Generic parallelization/serialization inter= face") I chose 07928d9bfc81 ("padata: Remove broken queue flushing"), because that one reads like it fixed a couple of much more severe padata lifetime issues, it only missed the relatively minor one addressed here, in a sense. Or to put it the other way around: if one were to backport this patch here, 07928d9bfc81 should probably get picked first, I think. But I'd be fine with any Fixes tag, of course, I don't have a strong opinion on this matter. Thanks! Nicolai > > ? > > Otherwise, > > Acked-by: Daniel Jordan > >> Signed-off-by: Nicolai Stange >> --- --=20 SUSE Software Solutions Germany GmbH, Frankenstra=C3=9Fe 146, 90461 N=C3=BC= rnberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman (HRB 36809, AG N=C3=BCrnberg)