Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2821675rwi; Tue, 1 Nov 2022 12:11:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5JfYQnmPyX8vvxx4PIDIpqkAtSrDBKDbMJs5gkJkfMHyaFPwCwbZnrzrOcQbS2Biyjvg00 X-Received: by 2002:a17:90b:3013:b0:213:ab5f:d388 with SMTP id hg19-20020a17090b301300b00213ab5fd388mr19867846pjb.66.1667329883140; Tue, 01 Nov 2022 12:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667329883; cv=none; d=google.com; s=arc-20160816; b=AtGJYyxz1FQRinBXU1aZMuJE4n3Ff7qlTeB2otBo558ySUPxzDWwXnRyBZazeDHB7H kSHO1uZH5ZYbtIGAImt/Vw5qZYXF9MByXnYRAMbK4YBNBk65N2om9NXgbPIstMjloCtF UjeMlNDblEmeIKW6oWc2Rn+F8CgKi1vfLJpdbZJKV4i76DEdIj+rHtrM2Dr6/dteCv2Y yLaj+GLN1RJQ9ZrI6dTlQffpnYjgr+4i4nyRCnXhzEX/sMVV9jL0xyTlBxfKnXMnuQgs ESalE4wxxdJGFn4nlDq+EoiniqTYE7cb2stgDrLhk+j8LEM/IpYGFmj1ToJ6Ymb9bLSz /sAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:organization:references:in-reply-to:date :to:from:subject:message-id:dkim-signature; bh=/gk2sWeDQMK4W9YVdWnML0zdSPXGtDisRe0BqJhg7HE=; b=HXCE55nM5WwZG3nggxfgTevdQV2id9bktjG5WD85GljO+yq61iqwUpRM/HVoazkF/0 NRs5FXmy118n1wTyjVL5K8lyDoXNKksxClvMFm6P3jCeCDuKd8lmuwgkPLuBXf4GT0CS QeVloWbAicv3A0+eVz40bEv+lchV4vTxM/VXIoKqvu0NMcBVhta+rduJnM9Q/NLEobzv bltlZScC1bVoiXYqAV7ljx90S+vU2ZBmpGz+M+mh3/9HRcSG3eXh6jqyPEHy0QWIjYLy OH2AOB/gLHcjfhmZUq4GIs4urVlKcY+V6U3UCVD4yVHm01SiKlMI1HhMRDKWqEPXUyfJ LbfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FMnjj9eZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c15-20020a634e0f000000b00439ae523fd2si13780800pgb.289.2022.11.01.12.11.03; Tue, 01 Nov 2022 12:11:23 -0700 (PDT) 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; dkim=pass header.i=@intel.com header.s=Intel header.b=FMnjj9eZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229516AbiKAS5N (ORCPT + 99 others); Tue, 1 Nov 2022 14:57:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229511AbiKAS5L (ORCPT ); Tue, 1 Nov 2022 14:57:11 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 648EF1C405 for ; Tue, 1 Nov 2022 11:57:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667329031; x=1698865031; h=message-id:subject:from:to:date:in-reply-to:references: content-transfer-encoding:mime-version; bh=/gk2sWeDQMK4W9YVdWnML0zdSPXGtDisRe0BqJhg7HE=; b=FMnjj9eZWicuCKD0HgGVKNNt8SsgLb1BQ+G5+oogd/cKOMZtPxEWbUcH NA6xKBOu9D6l7+dEyxri511qvNZv5/JhiWdLBdOqf/gerwhkT083VlLjt 93eBQG3E6GAJCZZZp/3xmN2pC7doHNZ8gZ0RCcXj6JyyUYFdDQ4jGHNTA tXf4h/fLR71pTdU6Q1hB6Se8hlEuoEdbLtVDFrS6ssikwEWmTtYcrTF+F k3BCwihlOerkRJDFZAsMijjos+okNIlIcH5Uu1os8tAa0Y7Lptqz9o56Y ZmfzYqBp2P9OLBcwhFNlNNQJlDfYxoh2x1rrRpzjiT0iqYJtcrfx3izel g==; X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="309214859" X-IronPort-AV: E=Sophos;i="5.95,231,1661842800"; d="scan'208";a="309214859" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2022 11:57:11 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10518"; a="636499146" X-IronPort-AV: E=Sophos;i="5.95,231,1661842800"; d="scan'208";a="636499146" Received: from han1-mobl4.jf.intel.com (HELO [10.24.8.139]) ([10.24.8.139]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2022 11:57:11 -0700 Message-ID: <012893abec97796db9f187a9d5c42477b5ebc54a.camel@linux.intel.com> Subject: Re: [PATCH 1/2] Bluetooth: L2CAP: Fix accepting connection request for invalid SPSM From: Tedd Ho-Jeong An To: Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org Date: Tue, 01 Nov 2022 11:57:06 -0700 In-Reply-To: <20221031231033.2718204-1-luiz.dentz@gmail.com> References: <20221031231033.2718204-1-luiz.dentz@gmail.com> Organization: Intel Corporation Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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-bluetooth@vger.kernel.org SGkgTHVpeiwKCk9uIE1vbiwgMjAyMi0xMC0zMSBhdCAxNjoxMCAtMDcwMCwgTHVpeiBBdWd1c3Rv IHZvbiBEZW50eiB3cm90ZToKPiBGcm9tOiBMdWl6IEF1Z3VzdG8gdm9uIERlbnR6IDxsdWl6LnZv bi5kZW50ekBpbnRlbC5jb20+Cj4gCj4gVGhlIEJsdWV0b290aCBzcGVjIHN0YXRlcyB0aGF0IHRo ZSB2YWxpZCByYW5nZSBmb3IgU1BTTSBpcyBmcm9tCj4gMHgwMDAxLTB4MDBmZiBzbyBpdCBpcyBp bnZhbGlkIHRvIGFjY2VwdCB2YWx1ZXMgb3V0c2lkZSBvZiB0aGlzIHJhbmdlOgo+IAo+IMKgIEJM VUVUT09USCBDT1JFIFNQRUNJRklDQVRJT04gVmVyc2lvbiA1LjMgfCBWb2wgMywgUGFydCBBCj4g wqAgcGFnZSAxMDU5Ogo+IMKgIFRhYmxlIDQuMTU6IEwyQ0FQX0xFX0NSRURJVF9CQVNFRF9DT05O RUNUSU9OX1JFUSBTUFNNIHJhbmdlcwo+IAo+IENWRTogQ1ZFLTIwMjItNDI4OTYKPiBDQzogc3Rh YmxlQHZnZXIua2VybmVsLm9yZwo+IFJlcG9ydGVkLWJ5OiBUYW3DoXMgS29jemthIDxwb3ByZGlA Z29vZ2x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