Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp547602rwi; Wed, 26 Oct 2022 04:27:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4mQvlkzMF0oW9qFzZ2SjqTp1Bo6qWD6KCoNv6eIQZJlpg5mrDwXvVPvJ1VwCxB1Oc88QrR X-Received: by 2002:a17:907:1b22:b0:741:8809:b4e6 with SMTP id mp34-20020a1709071b2200b007418809b4e6mr37315020ejc.84.1666783639015; Wed, 26 Oct 2022 04:27:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666783639; cv=none; d=google.com; s=arc-20160816; b=SlasWCYPV4zOB+kOq8HRRuYoAPWYwP90NUCVR5SwDntbM/3oii20HPWFdcrtQ2ZUv0 DScon2gUIiSQ7UAxBmwU2TGCgamfT7iXWbuykh1inbVraGWbI+LaXT5+oKPTwNi8LVh0 ZsFHjuq1p0LwZyfA+cSZ+A8B5solFZ8JKkDy+WsRlLrKrIskMpxLST9TC+t3J+fqsxJy L/QtXv7XEI2wsLZK/4NPjEf4gW8A0qwE+DsJi3hJe6QVcNfG5GwKm0N9lKpZ7SCa1uzE E9lbh87uoSd1ahLSDbb8FXyJhzeR0TlQSuPQr0TnruFbA/J9VAm05UWMnDJtpPxsL5LJ utnA== 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=0JQHnXrSbPrg7sgZJ2b2qYHCuYIh0HlljrCTJI/Ot/Y=; b=q9+zlf1MuNS26O5r+CdyUp0+SYy63fbbzqAbQoNo0+aRS+oiOCMreqsjp0XLJ1YSHr oQrBZ5BICdFPBAkMkrcghbSVYH/Rdii1vsrJDfGFsZixZHcSYhxxC9thN20kyk7nwB5n SCa34iBW60f/T0oLCkZY7aSwVdIOHnJ5N/5Ph8BOwBaVRQdjZZOhMntbFUrR/0HxjW8l 1ZS1ujXKnsD88FMJxLLNty4Mqcw139voAzxwdXuQQvjz2NhPi63KK9ilZ4VTSEAsPvMm CdKKu+fcTit8+EUOw3ZCCjPpeGRGm5ccYQVHkMrT0QjxaaAhkZ2G9sIotV30LHiKbC9o vcPA== 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 w2-20020a056402268200b00461f1a036f0si6096218edd.335.2022.10.26.04.26.53; Wed, 26 Oct 2022 04:27:19 -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 S232848AbiJZLQy (ORCPT + 99 others); Wed, 26 Oct 2022 07:16:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231903AbiJZLQw (ORCPT ); Wed, 26 Oct 2022 07:16:52 -0400 Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 567515B9F3; Wed, 26 Oct 2022 04:16:50 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.30.67.153]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4My5mx69nQzmWY9; Wed, 26 Oct 2022 19:14:41 +0800 (CST) Received: from [10.174.176.73] (unknown [10.174.176.73]) by APP4 (Coremail) with SMTP id gCh0CgCHlugeF1ljB87mAA--.3468S3; Wed, 26 Oct 2022 19:16:48 +0800 (CST) Subject: Re: [PATCH -nect RFC v2 0/2] block: fix uaf in bd_link_disk_holder() To: Yu Kuai , Christoph Hellwig Cc: axboe@kernel.dk, willy@infradead.org, kch@nvidia.com, martin.petersen@oracle.com, johannes.thumshirn@wdc.com, ming.lei@redhat.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com, "yukuai (C)" References: <20221020132049.3947415-1-yukuai3@huawei.com> <20221020164712.GA14773@lst.de> <0ad09045-1012-e86b-41f2-a88d02e8f1ed@huaweicloud.com> From: Yu Kuai Message-ID: <11d1397b-a1a1-5e8a-0443-183a3222c7c8@huaweicloud.com> Date: Wed, 26 Oct 2022 19:16:46 +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: <0ad09045-1012-e86b-41f2-a88d02e8f1ed@huaweicloud.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: gCh0CgCHlugeF1ljB87mAA--.3468S3 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYg7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW7JVWDJwA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2js IEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE 5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeV CFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lFIxG xcIEc7CjxVA2Y2ka0xkIwI1lc7I2V7IY0VAS07AlzVAYIcxG8wCF04k20xvY0x0EwIxGrw CFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE 14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2 IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxK x2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267 AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUbXdbUUUUUU== X-CM-SenderInfo: 51xn3trlr6x35dzhxuhorxvhhfrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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-kernel@vger.kernel.org Hi, Christoph 在 2022/10/21 11:15, Yu Kuai 写道: > Hi, > > 在 2022/10/21 0:47, Christoph Hellwig 写道: >> As mentioned before I don't think we should make this even more >> crufty in the block layer.  See the series I just sent to move it int >> dm. > > It seems we had some misunderstanding, the problem I tried to fix here > should not just related to dm, but all the caller of > bd_link_disk_holder(). Any suggestions about how to fix this problem? Thanks, Kuai > > Thanks, > Kuai >> >> . >> > > . >