Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp482977pxj; Thu, 17 Jun 2021 07:12:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8rYz1jszFUm8511CFZw+KJ443YfCN/57r0MA12t+sLu1Xu/lN84IzSo1qSNsDwCYc8K9T X-Received: by 2002:aa7:cfd4:: with SMTP id r20mr6760161edy.237.1623939172378; Thu, 17 Jun 2021 07:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623939172; cv=none; d=google.com; s=arc-20160816; b=yRrR1TXEJ2HW7ZjcCPbHIL6JcnIuGwYMxeMajArZ6/B8DOVJM5iTPel7e2LZ40E6pt stcpw9rJqKw4PRoHljONFlhNE4hVW3h7FzQU9pUDtzSz+twDXCzV1+1KXnDeM044uT+D N/7M0T3vS1/DSnAjxb+Q2EeY9rpxHb62kIDjseoaoEuXlDcnQxe2OvdycBKxHCURsEz5 NsGjpKtsvt2S4bj/F/wgnsxmCgf8a/6SUfWBshjH3U159we2TvN8VaEkXKApgn6qqrhZ cHss32+QiWJp3uypDwG8IAJh0hlnVcvOBOS8D5ZfDXhQ0Z+2KSPsvWsN+Zk0SfHmSuMD RVjQ== 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=Gb3EgGyzTRTMpxnMHRwM273HjHP1poo6nzx0NS5YSs8=; b=u1h/LeaV1WZIMIafhvIE3k08wXXH64lJSdBThJCFC5GfZdParIpvnQUUfJdgE2CG5s Jo9Zh8ea5Xjns5qR5s8XaGINZnecSExxE0BidO/+O7DOFXiQ3VRbyuND7ARBwfSQuuoc 4+5MO7eVseE1T3d84tNQdPCbMK/lTXeGqQkDGs6q1Ze42zM9A7OKCGrPoxNd1ZwIZHAC VbWPAcB6pmyAbzIiFC3EnjoM13vEs9jig4vK7jUH6XVAW+6apWGh7W+wp/4MKLE7O4Fc 6sdhqAMxxcEfSFBFVLF52xa6+56bu7/qV1B5NaeJp4y1dWJLMIiYzdjfW2jIGfJjjkTH 5HUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga21si5599377ejb.24.2021.06.17.07.12.27; Thu, 17 Jun 2021 07:12:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231478AbhFQNNa (ORCPT + 99 others); Thu, 17 Jun 2021 09:13:30 -0400 Received: from spam.zju.edu.cn ([61.164.42.155]:51592 "EHLO zju.edu.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232050AbhFQNNa (ORCPT ); Thu, 17 Jun 2021 09:13:30 -0400 Received: by ajax-webmail-mail-app2 (Coremail) ; Thu, 17 Jun 2021 21:11:16 +0800 (GMT+08:00) X-Originating-IP: [10.214.160.123] Date: Thu, 17 Jun 2021 21:11:16 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: LinMa To: "Greg Kroah-Hartman" , eric.dumazet@gmail.com, marcel@holtmann.org Cc: linux-kernel , stable Subject: Re ...: [PATCH 5.4 39/78] Bluetooth: use correct lock to prevent UAF of hdev object X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.13 build 20210104(ab8c30b6) Copyright (c) 2002-2021 www.mailtech.cn zju.edu.cn In-Reply-To: <70042d9f.111abd.17a19f94b84.Coremail.linma@zju.edu.cn> References: <70042d9f.111abd.17a19f94b84.Coremail.linma@zju.edu.cn> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <3a861419.11a1ce.17a1a18e470.Coremail.linma@zju.edu.cn> X-Coremail-Locale: en_US X-CM-TRANSID: by_KCgC3gGT0SctgdQtSAA--.13017W X-CM-SenderInfo: qtrwiiyqvtljo62m3hxhgxhubq/1tbiAwITElNG3CvZBwAAs8 X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CgoKQnkgY2hlY2tpbmcgdGhlIHNvdXJjZSBjb2RlLCBJIGZvdW5kIHRoYXQgdGhlcmUgYXJlIGZv bGxvd2luZyBwb3NpdGlvbnMgdGhhdCB3aWxsIGFjY2VzcyB0aGUgaGNpX3NrX2xpc3QubG9jawoK MS4gdm9pZCBoY2lfc2VuZF90b19zb2NrKHN0cnVjdCBoY2lfZGV2ICpoZGV2LCBzdHJ1Y3Qgc2tf YnVmZiAqc2tiKQoyLiB2b2lkIGhjaV9zZW5kX3RvX2NoYW5uZWwodW5zaWduZWQgc2hvcnQgY2hh bm5lbCwgc3RydWN0IHNrX2J1ZmYgKnNrYiwKCQkJIGludCBmbGFnLCBzdHJ1Y3Qgc29jayAqc2tp cF9zaykKMy4gdm9pZCBoY2lfc2VuZF9tb25pdG9yX2N0cmxfZXZlbnQoc3RydWN0IGhjaV9kZXYg KmhkZXYsIHUxNiBldmVudCwKCQkJCSB2b2lkICpkYXRhLCB1MTYgZGF0YV9sZW4sIGt0aW1lX3Qg dHN0YW1wLAoJCQkJIGludCBmbGFnLCBzdHJ1Y3Qgc29jayAqc2tpcF9zaykKNC4gc3RhdGljIHZv aWQgc2VuZF9tb25pdG9yX2NvbnRyb2xfcmVwbGF5KH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