Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp111878pxv; Wed, 14 Jul 2021 20:15:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDJK2a7bkWP+ynsBtIG2BpySe2sJgogqCPIYMIH9cwiHE3EYKbYyej6msj2N6QYzHZwtRp X-Received: by 2002:a17:906:6d0e:: with SMTP id m14mr2211831ejr.551.1626318922850; Wed, 14 Jul 2021 20:15:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626318922; cv=none; d=google.com; s=arc-20160816; b=M86CE8x9ZwBmgK0GqmIGYNRUswj0w+CZrKhvlPR3dXHzIEg4cpzOeh8gt1jx0FmQIj USMFiPBxcN+WB0rjo+IicqelGfe2dSFigryk6skIPAYlM14roICvX8dCzLtAC7ZBMRk6 aD9Jv1ggtrFfNjuWlJvxFtFtGJJLx2GTAgpaW40EYSd3LZ8KcJnUuVfvGziUr9eJJcU1 /nWCw0dj90be11db8Eb5KHIb6m2c2nRxZRotXUlAbMfQdLp+NnTNsv/bNwlRVhb84OVB v+UV9FWWsU8d0c8UZjos2QNOaRbcBKDQVZHpU4m7U9fwybOV0Q6X0NBWduag8jrguJgP uQDQ== 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=MNbd2v27Nxd31vLRltbbAsVPVKtC/QjWkvmEuilJD00=; b=yLV3aUCb6plNB9miQW1S1T4m7H4IXdwME5rczo8ZTDi1yql1EndrXBvvIolXshZFd4 6Mcgl1o2GH/3KJAbng22zKOdMWWgHGZVjAuRrK3fjVqBptGle0UvHBVvNEFJ+fv7/5Uj PgNBmNDtObKwc7f/RaEFPfi2szITVzinGcMAWO0WzkJ9N9B3ilO5VgCY9IiPQiL6Ssq1 CHVXhTMgEeYyH3xvvLZsPXAfOC24aODMzzpx14b7hS1KActXBPF0hLL0JTJBH7W7/X5l Yj9PnV4m/dp9HE803UCI+k90CIy+c7pwbjw2J7WIk+nDGvP16CiPzKfbOZcd8TyZObq4 KlYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 n2si3428454ejc.52.2021.07.14.20.14.21; Wed, 14 Jul 2021 20:15:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231196AbhGODG4 (ORCPT + 99 others); Wed, 14 Jul 2021 23:06:56 -0400 Received: from spam.zju.edu.cn ([61.164.42.155]:45160 "EHLO zju.edu.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230433AbhGODGz (ORCPT ); Wed, 14 Jul 2021 23:06:55 -0400 Received: by ajax-webmail-mail-app4 (Coremail) ; Thu, 15 Jul 2021 11:03:53 +0800 (GMT+08:00) X-Originating-IP: [10.162.82.120] Date: Thu, 15 Jul 2021 11:03:53 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: LinMa To: "Luiz Augusto von Dentz" Cc: "Tetsuo Handa" , "Marcel Holtmann" , "Johan Hedberg" , "linux-bluetooth@vger.kernel.org" , "David S. Miller" , "Jakub Kicinski" , "open list:NETWORKING [GENERAL]" Subject: Re: Re: [PATCH v3] Bluetooth: call lock_sock() outside of spinlock section 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: References: <20210627131134.5434-1-penguin-kernel@I-love.SAKURA.ne.jp> <9deece33-5d7f-9dcb-9aaa-94c60d28fc9a@i-love.sakura.ne.jp> <48d66166-4d39-4fe2-3392-7e0c84b9bdb3@i-love.sakura.ne.jp> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <674e6b1c.4780d.17aa81ee04c.Coremail.linma@zju.edu.cn> X-Coremail-Locale: en_US X-CM-TRANSID: cS_KCgAXSXSZpe9gkNjsAA--.32411W X-CM-SenderInfo: qtrwiiyqvtljo62m3hxhgxhubq/1tbiAwUHElNG3DfRWwABsm X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org SGkgdGhlcmUsCgpJJ20ganVzdCBleGhpbGFyYXRlZCB0byBzZWUgdGhlcmUgaGF2ZSBiZWVuIHNv bWUgbmV3IGlkZWFzIHRvIGZpeCB0aGlzLgoKPiAKPiBIb3cgYWJvdXQgd2UgcmV2ZXJ0IGJhY2sg dG8gdXNlIGJoX2xvY2tfc29ja19uZXN0ZWQgYnV0IHVzZQo+IGxvY2FsX2JoX2Rpc2FibGUgbGlr ZSB0aGUgZm9sbG93aW5nIHBhdGNoOgo+IAo+IGh0dHBzOi8vcGF0Y2h3b3JrLmtlcm5lbC5vcmcv cHJvamVjdC9ibHVldG9vdGgvcGF0Y2gvMjAyMTA3MTMxNjI4MzguNjkzMjY2LTEtZGVzbW9uZGNo ZW9uZ3p4QGdtYWlsLmNvbS8KPiAKCkkgaGF2ZSBjaGVja2VkIHRoYXQgcGF0Y2ggYW5kIGxlYXJu IGFib3V0IHNvbWUgYGxvY2FsX2JoX2Rpc2FibGUvZW5hYmxlYCB1c2FnZS4KVG8gdG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DYgKzc2Miw3IEBAIHZvaWQgaGNpX3NvY2tfZGV2X2V2ZW50KHN0 cnVjdCBoY2lfZGV2ICpoZGV2LCBpbnQgZXZlbnQpCiAgICAgICAgICAgICAgICAvKiBEZXRhY2gg c29ja2V0cyBmcm9tIGRldmljZSAqLwogICAgICAgICAgICAgICAgcmVhZF9sb2NrKCZoY2lfc2tf bGlzdC5sb2NrKTsKICAgICAgICAgICAgICAgIHNrX2Zvcl9lYWNoKHNrLCAmaGNpX3NrX2xpc3Qu aGVhZCkgeworICAgICAgICAgICAgICAgICAgICAgICBsb2NhbF9iaF9kaXNhYmxlKCk7CiAgICAg ICAgICAgICAgICAgICAgICAgIGJoX2xvY2tfc29ja19uZXN0ZWQoc2spOwogICAgICAgICAgICAg ICAgICAgICAgICBpZiAoaGNpX3BpKHNrKS0+aGRldiA9PSBoZGV2KSB7CiAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgaGNpX3BpKHNrKS0+aGRldiA9IE5VTEw7CkBAIC03NzIsNiArNzcz LDcgQEAgdm9pZCBoY2lfc29ja19kZXZfZXZlbnQoc3RydWN0IGhjaV9kZXYgKmhkZXYsIGludCBl dmVudCkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBoY2lfZGV2X3B1dChoZGV2KTsK ICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgICAgICBiaF91bmxv Y2tfc29jayhzayk7CisgICAgICAgICAgICAgICAgICAgICAgIGxvY2FsX2JoX2VuYWJsZSgpOwog ICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgcmVhZF91bmxvY2soJmhjaV9za19saXN0 LmxvY2spOwogICAgICAgIH0KCkJ1dCB0aGlzIGlzIG5vdCB1c2VmdWwsIHRoZSBVQUYgc3RpbGwg b2NjdXJzCgpbICAgMTMuODYyMTE3XSA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KWyAgI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