Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31700846rwd; Fri, 7 Jul 2023 03:14:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlFRoGGWkoVmbfC+PjGbDPqvFxDhCUcf6XkrDgLxHLKsUAvlZPJC/Bn7AO3OxqdekeUu9nR5 X-Received: by 2002:a17:90b:3702:b0:260:fe48:360e with SMTP id mg2-20020a17090b370200b00260fe48360emr3435162pjb.29.1688724850832; Fri, 07 Jul 2023 03:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688724850; cv=none; d=google.com; s=arc-20160816; b=yWaWcudhdVKJ0na6BAmZ8SSKeNDliIQ/5ZUkaGmEevWCz2+wpud2DsUK8qrBFVb+YB 0mpCiAaTQAdR/7bQkXeZ8P7vZzsOz6zrqrx3Q9Z2Qc4mKM6390PvUtyUG8KpbfVCDXma jT7hu6vQYMm7ZOAMjnrbO0BVOctpP2mIL/fCpOqMCy6T/6AqRM6Pp5Ou1Dm5XKAMbhhC QdqBMilmTUC5ZT2/e7dkshEpxiuC8ImHASOp5gFJFsaqfPvfT5jat5NwHhbZi7PQ6Muu WH5f80lOas2q1NgkN+SZCn38Mztj0Eb2Zj4wz2Fp03KLn9BhljXA2yqUCcLr6mJrUrpA pzPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=MrmoA/2LJQZ73EOUbvcjcu6up5HFZqAzS99xlspfknU=; fh=IwjWlr25mnwvi24y+nwMamm3++yg4y4996DixgKtgzE=; b=vYlqdenTvTTCmu/z3+u45PI/IJNyZ9e7STIpnW27GdyHT7aP3b3tKnj3UrJcD8P5lE w69OFx/kX35829vX/HVPcS5vkZUM5+DcA9COMjlkbP7prYmZf/tCnltac5o9wA0wS74Z wZyjKl/dqYdmH1i+HX32dCJmSTfW94afsFlKEAY5q14i9aAHu9DSkbizB6OXGuRT5pm8 u0XZdtYvAWQlB3Y8Z5SHYYLeKdRLkqZXloMk021hEBuvT7LATaqI3AnHSvdjQP1zLAyt F0qOrgmVhMGnWqPIqeBVSmuH6NPjLlo+DnzMr5wqQp+M8qZchup0yaNSljA1xosKWL9S bhSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j187-20020a638bc4000000b00542d3727da9si3659081pge.464.2023.07.07.03.13.56; Fri, 07 Jul 2023 03:14:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232696AbjGGJTT (ORCPT + 99 others); Fri, 7 Jul 2023 05:19:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232373AbjGGJTS (ORCPT ); Fri, 7 Jul 2023 05:19:18 -0400 Received: from dggsgout11.his.huawei.com (dggsgout11.his.huawei.com [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A33D11991; Fri, 7 Jul 2023 02:19:16 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.143]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4Qy7BR0TBpz4f404N; Fri, 7 Jul 2023 17:19:11 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP4 (Coremail) with SMTP id gCh0CgA30JOP2KdkjEChNQ--.15491S3; Fri, 07 Jul 2023 17:19:11 +0800 (CST) Subject: Re: [PATCH -next v2 2/2] md/raid5-cache: fix null-ptr-deref in r5l_reclaim_thread() To: Yu Kuai , Song Liu Cc: xni@redhat.com, logang@deltatee.com, hch@lst.de, shli@fb.com, linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com, yangerkun@huawwe.com, "yukuai (C)" References: <20230628010756.70649-1-yukuai1@huaweicloud.com> <20230628010756.70649-3-yukuai1@huaweicloud.com> <4690dfff-ad72-bf83-7feb-75018712eb17@huaweicloud.com> From: Yu Kuai Message-ID: Date: Fri, 7 Jul 2023 17:19:10 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <4690dfff-ad72-bf83-7feb-75018712eb17@huaweicloud.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgA30JOP2KdkjEChNQ--.15491S3 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYg7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWDJwA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87 Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE 6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y6r17McIj6I8E87Iv67AKxVWUJVW8JwAm72 CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IY64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7M4II rI8v6xkF7I0E8cxan2IY04v7Mxk0xIA0c2IEe2xFo4CEbIxvr21l42xK82IYc2Ij64vIr4 1l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK 67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI 8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAv wI8IcIk0rVW3JVWrJr1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267 AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUbE_M3UUUUU== X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org Hi, 在 2023/07/07 17:16, Yu Kuai 写道: > Perhaps you means this order? > > r5l_exit_log >  flush_work(&log->disable_writeback_work) >  conf->log = NULL >  md_unregister_thread(&log->reclaim_thread) > > I think this is better indeed. Never mind, this is wrong, I got confused... Please ignore this and take a look at my original fix. Thanks, Kuai