Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp771352rdb; Fri, 6 Oct 2023 21:02:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEV/2bbEiOwDCmpAysEsoKVJAdVQ/npMDV98KjQWz9SKAJs38D/832dJq7VCeaJ5/SnhMzQ X-Received: by 2002:a05:6a20:dd9e:b0:169:7d6f:9f22 with SMTP id kw30-20020a056a20dd9e00b001697d6f9f22mr6921074pzb.54.1696651344118; Fri, 06 Oct 2023 21:02:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696651344; cv=none; d=google.com; s=arc-20160816; b=zZh5RyHOjhFYa9FCBUWXwCLtDdXSyEEEfGVX1WctEedqiZAmR4qFTgseMJcf8hn6p8 2aZK3q/WxRxoqQk5tqf7NDqrpX3EF272+w+/qxNmJi8CvFMBoB8ZbJIwWxfEiSUK35oH MmSrw9CAJzxZ1YanDyW1txhVIgbOQHIrjVFSQ+6PuuzxZEfSrWQ7qras8uOmARsikHwH SDYslZ4me9BYEn5gAcEXGI2955fPXI/XFqDUIGzuggBN2suADtdUf4SwDvLZTW5ZDx0v U+URYb46QkeCnm/lUWELJZ2YOARz56pWz74QO2P4M6HUK+d4x8nCY5CClmBeXRNl4vw4 GC7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=IPwZe4LV+mNGPG+ZvNF/FQjBCJjS8OF46uP2mpNCfr8=; fh=Y3juP2e7qyoLu0hOu2UTdSaEtwNdBfJyr76gnUtKr2k=; b=f5wdZHFZoDV6LVSdHU8Cf6tn+JjBFSWm6eFBA+K49Jd03cDZaj5/p9e5DcbaP4a/to lLzqksQgiwmbwZHJvAupVFDcc0HS6eTG3z3eXxoT/ejo78yD0nccqTAy72tZjzYXCYof FAPtfmX9iS40c1FDdXO+IKKyLoW9bchlq++Nh3XZDvu/KFGggHmubPFOoaerYsawKlP5 FHgXiMQCeqgfQ5GiJBUL3JSuGE4ARyxy/dzqkqeClxGRenoY1D89c/IuUPJn+F+V6ocK f7tJJwPFaRhfXwSr2XDOVz02l+XSPfNWCOxFr+tcxLjm8pNxv+Xw+p5kI0nwSoZ861cZ EnqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id lr6-20020a17090b4b8600b0027779681be6si5582673pjb.70.2023.10.06.21.02.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 21:02:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 44D778964B58; Fri, 6 Oct 2023 21:02:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232681AbjJGECD (ORCPT + 99 others); Sat, 7 Oct 2023 00:02:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjJGECC (ORCPT ); Sat, 7 Oct 2023 00:02:02 -0400 Received: from wxsgout04.xfusion.com (wxsgout03.xfusion.com [36.139.52.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 189E6BD; Fri, 6 Oct 2023 21:02:00 -0700 (PDT) Received: from wuxshcsitd00600.xfusion.com (unknown [10.32.133.213]) by wxsgout04.xfusion.com (SkyGuard) with ESMTPS id 4S2WlG3PyszB0Y9d; Sat, 7 Oct 2023 11:59:38 +0800 (CST) Received: from localhost (10.82.147.3) by wuxshcsitd00600.xfusion.com (10.32.133.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sat, 7 Oct 2023 12:01:48 +0800 Date: Sat, 7 Oct 2023 12:01:48 +0800 From: Wang Jinchao To: Daniel Jordan CC: Steffen Klassert , , Subject: Re: [PATCH v2] padata: Fix the UAF issue related to parallel_data Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-Originating-IP: [10.82.147.3] X-ClientProxiedBy: wuxshcsitd00601.xfusion.com (10.32.135.241) To wuxshcsitd00600.xfusion.com (10.32.133.213) X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 06 Oct 2023 21:02:20 -0700 (PDT) X-Spam-Level: ** On Wed, Oct 04, 2023 at 03:07:10PM -0400, Daniel Jordan wrote: > On Wed, Oct 04, 2023 at 10:54:29AM -0400, Daniel Jordan wrote: > > On Thu, Sep 28, 2023 at 08:38:53AM +0800, Wang Jinchao wrote: ... > > This could use a Fixes tag. From Nicolai's patch[0] we agreed on > > > > Fixes: 07928d9bfc81 ("padata: Remove broken queue flushing") > > > > With that, > > > > Acked-by: Daniel Jordan > > > > Thanks! > > ... > > Oh, I should've also said please move the declaration of pd to the top > of the function like scripts/checkpatch.pl suggests. > > > > + if (refcount_dec_and_test(&pd->refcnt)) > > > + padata_free_pd(pd); > > > mutex_unlock(&ps->pinst->lock); > > > > > > kfree(ps); > > > -- > > > 2.40.0 > > > Thanks for suggestion, both were updated in V3. V3: https://lore.kernel.org/all/ZSDWAcUxXcwD4YUZ@fedora/