Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1701086rwb; Tue, 29 Nov 2022 18:06:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf6VtJMnevvK1Bn3mjyFzuYS+hjVD0XQBfVeE5pXDI4wMeQKCkOsi/IIMjteP0CM0oAhJZBo X-Received: by 2002:a05:6402:444a:b0:459:401:c23e with SMTP id o10-20020a056402444a00b004590401c23emr39776824edb.23.1669773961003; Tue, 29 Nov 2022 18:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669773960; cv=none; d=google.com; s=arc-20160816; b=QkNJNN8SHFMoHcc4FGRlCqJ2ymLhRCVBpIsJxHhuhYwPH8lOyFV2XluxREfBxNLipr P3UaX/SutI9Rcxuf4jVzsld2rDMfcieHV6obH2gEtaQr9rMM67q/2EeVKm7NQd/mB4Ic eq/XiDlklPF1lAKxFvFEoD13sHV/wLXnwncWKXxp3mG2sr2vpsheJWH8N+vrfhnNn2H/ 815zQAUSdDD5Vwk4B2iGq8Bb9sSLfglqJt3dCrsOr8b6aDIDRhGL7iGkno/VIkyYbOal O8WNY7plRiJxJ/kivydaUzOtiuz949j2nIO5lY2ZBYpb8G4fQhR5qZHOMspswxolnIdm E1JQ== 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=N4kY6IZsr5Y0IvSSpRCrrA36YgcrHbC1J44/EVrpWJ8=; b=wh/EitQz3TuIxb/K8x2Xy6qUK9RkE+ta6dyrbo/KITCAwv/CJ0ZBQiy3ztUhTVvgvR DPOVrUMb0mLbKgHmQMuzND1hIw1EjYdZwzCRtA0s76GEzpXPizgx0egfXbguf69ckE7W jcRN+HZEXV4gEOsug7ShBm/KvQ70OsX/Ca011ZsCaGOMkq72w6wezDAE3TGLK1G8rl9e awRlEz4UUwJxSB4qeqWrOcqHoawu+G6z4wBWVjIbNyw0kwnft3TaUQVB/qA9wyPYTTuf +KZVdKrD3bDs3BKtS/FQoiARoVuIZd3a0V3AFiX1OWd/HXBUcvh/4Ua0ICtNLHdv0HqM kjcw== 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 c13-20020a170906340d00b0077083e6dde7si144721ejb.183.2022.11.29.18.05.40; Tue, 29 Nov 2022 18:06:00 -0800 (PST) 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 S230049AbiK3BdL (ORCPT + 85 others); Tue, 29 Nov 2022 20:33:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbiK3BdK (ORCPT ); Tue, 29 Nov 2022 20:33:10 -0500 Received: from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com [45.249.212.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 693AA6D497; Tue, 29 Nov 2022 17:33:08 -0800 (PST) Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4NMMCY5RF5z4f3npq; Wed, 30 Nov 2022 09:32:57 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP1 (Coremail) with SMTP id cCh0CgCHL67KsoZjwoA9BQ--.16355S3; Wed, 30 Nov 2022 09:33:00 +0800 (CST) Subject: Re: [PATCH -next 8/8] block: fix null-pointer dereference in ioc_pd_init To: Christoph Hellwig , Li Nan Cc: tj@kernel.org, josef@toxicpanda.com, axboe@kernel.dk, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com, "yukuai (C)" References: <20221128154434.4177442-1-linan122@huawei.com> <20221128154434.4177442-9-linan122@huawei.com> From: Yu Kuai Message-ID: Date: Wed, 30 Nov 2022 09:32:58 +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: Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: cCh0CgCHL67KsoZjwoA9BQ--.16355S3 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYx7kC6x804xWl14x267AKxVW8JVW5JwAF c2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII 0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26w1j6s0DM28EF7xv wVC0I7IYx2IY6xkF7I0E14v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4 x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG 64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r 1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwACI402YVCY1x02628vn2kI c2xKxwCYjI0SjxkI62AI1cAE67vIY487MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4 AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE 17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMI IF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_WFyUJVCq 3wCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIda VFxhVjvjDU0xZFpf9x07UWE__UUUUU= X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE 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, ?? 2022/11/29 22:25, Christoph Hellwig ะด??: > On Mon, Nov 28, 2022 at 11:44:34PM +0800, Li Nan wrote: >> Fix problem by moving rq_qos_exit() to disk_release(). > > No, that now means it is removed to later. You need to add proper > synchronization. > . > Can you explain a bit more? Maybe I'm being noob, here disk is about to be freed, and I can think of any contention. Thanks, Kuai