Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp743776pxb; Wed, 16 Feb 2022 03:32:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwx7IWwWvaDJ8ctghJCWdcWzAp3FZMXal11g5bDyqalKRcAKLgh75Y03r04m8gdjuFtZPGk X-Received: by 2002:a05:6402:b62:b0:3e2:a75f:b949 with SMTP id cb2-20020a0564020b6200b003e2a75fb949mr2489947edb.62.1645011147135; Wed, 16 Feb 2022 03:32:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645011147; cv=none; d=google.com; s=arc-20160816; b=to+U9cnIB888EKuUOYMVdsrXlBydnbpCN9VLRxjRc1rX+xRnAnNn+3n8zNIPs+ySzc Rqn0/hWqj4WxdpnEMyAci/Jm39jXjhU5+vArJQz077EBQuJ+eCNZKtf+AXZrGh11/vmL Sk24YWtW0uqy6ZPId6g6SI0kcevC40erTBznOiYsuW06KtBCUzaTCTpuOGBmifvTDNK9 yu5j1cKSXilbZSt6JkuaeFaFBsjHL3RNuvZ3Ta2vTVWYyZ/oDWNhguNxEhqMEi9ZjbfV ej3KzVfbT4gdj7KgdVhenbnC041I6ovrVGckXOYbPZNga7Wyd6BPzrFUnLJjfHfSuTJb hocw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:references:in-reply-to:subject:cc:to:from :date; bh=4RCh+mTQfXoy8BppGnxGHf1HpsnG2K99Lfl1IOLIST0=; b=jXI+OgSIi5UZtAuqO7rKVsV2c/4+UONg9Wrb7Ifvmp4ih9fs0poCgZqJZwT4PysulY Q/HzS3JRVDl4/GJyS6xHRPGNphF/vQe1dgQmMZaN8a0IUU+evSXRjNNomQrI3AOl6EgM 3aqqof18ujetYA5pso8XzDcp1Qnf8NOCwd2GU6MJPXdZQx6lZkep8CXjogNH0uOyoMG6 3GcJwaHvZs8HS3zhFb74laEQuOfGNK76Nvaf3/E7Rdj9wiGx6j1RWHtMr92O3Bhz6Dps pN+sKMrGGCLkQTd6FJHaBbad1RX109STBHmyfDBpN+LgEZi3wVUZL6m2fDuU+na3YLRY DwGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-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 w20si22014490eje.418.2022.02.16.03.31.48; Wed, 16 Feb 2022 03:32:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-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-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229904AbiBPKoa (ORCPT + 99 others); Wed, 16 Feb 2022 05:44:30 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbiBPKoa (ORCPT ); Wed, 16 Feb 2022 05:44:30 -0500 Received: from zju.edu.cn (mail.zju.edu.cn [61.164.42.155]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 755191A839 for ; Wed, 16 Feb 2022 02:44:16 -0800 (PST) Received: by ajax-webmail-mail-app2 (Coremail) ; Wed, 16 Feb 2022 18:44:11 +0800 (GMT+08:00) X-Originating-IP: [222.205.6.121] Date: Wed, 16 Feb 2022 18:44:11 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "Lin Ma" To: "Marcel Holtmann" Cc: "Johan Hedberg" , "Luiz Augusto von Dentz" , "David S. Miller" , linux-bluetooth@vger.kernel.org Subject: Re: Re: [PATCH v1] Bluetooth: fix data races in smp_unregister(), smp_del_chan() X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.13 build 20210104(ab8c30b6) Copyright (c) 2002-2022 www.mailtech.cn zju.edu.cn In-Reply-To: <7C579AAE-EB97-4C87-9E5E-C39ACF6FF37B@holtmann.org> References: <20220216043714.22011-1-linma@zju.edu.cn> <7C579AAE-EB97-4C87-9E5E-C39ACF6FF37B@holtmann.org> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <4a17d618.afef3.17f0221ea50.Coremail.linma@zju.edu.cn> X-Coremail-Locale: en_US X-CM-TRANSID: by_KCgAnL8N81Qxica7tAQ--.18479W X-CM-SenderInfo: qtrwiiyqvtljo62m3hxhgxhubq/1tbiAwQTElNG3FSmxgA1sO X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,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-bluetooth@vger.kernel.org SGkgTWFyY2VsLAoKVGhhbmtzIGZvciB0aGUgdGltZWx5IHJlcGx5LgoKUmVnYXJkcwoKTGluCgoK PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2VzLS0tLS0KPiBGcm9tOiAiTWFyY2VsIEhvbHRtYW5uIiA8 bWFyY2VsQGhvbHRtYW5uLm9yZz4KPiBTZW50IFRpbWU6IDIwMjItMDItMTYgMTg6MjM6NTIgKFdl ZG5lc2RheSkKPiBUbzogIkxpbiBNYSIgPGxpbm1hQHpqdS5lZHUuY24+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