Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp722982ybb; Wed, 1 Apr 2020 08:28:45 -0700 (PDT) X-Google-Smtp-Source: APiQypKC9hAJHVErwsShAgmrDaCS3glyKcbyzOPaFJFKGkYVnGHuQ4Z5dWofeWX8j45qs9XpTnHG X-Received: by 2002:aca:cd58:: with SMTP id d85mr3235864oig.173.1585754925554; Wed, 01 Apr 2020 08:28:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1585754925; cv=pass; d=google.com; s=arc-20160816; b=uxCCu/E+0jXt9KIc0wYW+YjFmjQkc24/D46wQpUBNLT9NzFA/scj7qZeI3gC9486uy 54iXORvNStCoRYrVmWRQPVFBSbB0DQNAOKI9Yk5Zr/IDzsZF0qtutJO0d+qYgmAQFJLd qCRn4vRcqHdSDKjB9z7X0ZuhT7BzD7nJgk0BRN5d5rshupdGiBLYNSB1d9g1p3ShO7XA tw59xOxh9FYadF/q+vGu3St1vUiZFMQrjV+z/+lIa+c99qhTdiosben0TH5pZ/kvAuv8 gCqUwvZo3a36zZcTfXW9B0BCCIdb5pyBq2pYU7Lj6I9QHcedRH+zuVdUBFfWksx179lc TcGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:ironport-sdr:ironport-sdr; bh=IcIp8NfzUqQwQstMN8VUsoFjNXv86XItLayCJ6ZiML4=; b=iT2we34uWbk2ty+LgZiT5srU0EIOv232z8nsceeKPIXbpbGluTMvj+mAERaNOXVOiO 6hV3CrrCYPkGQdmM0NHf7dVhAI0/ad9F8IM3oANP0vBC93q8+SXlHuNzSJTZKzpc6AOz GL9oNOCQ4e1CcSbqGr2gdWfSVydUNTznoubUFlfkXq89DBUjE5qpxQoFZOaOO/J1iQ0o /vcB7/0zcVQ2+v6CjkEK2GU7hfO5RfyBjkPXhqSBdPaFE5+mcbNZIinBdWQX0Wnv7zue yKlXXG2mzEo9leJdB5vYNsr7gKrpD0h/hxiT2Q47CSprtS5vLF9RaVRNq2H53jwL16ER Q25w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b="ji/cClug"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5si1031941oiy.150.2020.04.01.08.28.09; Wed, 01 Apr 2020 08:28:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b="ji/cClug"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732698AbgDAP1q (ORCPT + 99 others); Wed, 1 Apr 2020 11:27:46 -0400 Received: from mga11.intel.com ([192.55.52.93]:53662 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732442AbgDAP1q (ORCPT ); Wed, 1 Apr 2020 11:27:46 -0400 IronPort-SDR: qQIxKxwZt21YNPQ1mQGU6FxEAqGljUmbESq9pTtZi4DONptfefld4Vue8xAwglTRxgHI9GmgUo Z6LeDHIvT9fg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2020 08:27:45 -0700 IronPort-SDR: bzoe7Q9xT6v3hkK346hNdy6eijV7utNLbOif+fGq8gZc6SgXVbnk+kxFLysIKZXbcKgztDGOQC XuTe9RPsMTtw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,332,1580803200"; d="scan'208";a="359893332" Received: from orsmsx102.amr.corp.intel.com ([10.22.225.129]) by fmsmga001.fm.intel.com with ESMTP; 01 Apr 2020 08:27:45 -0700 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by ORSMSX102.amr.corp.intel.com (10.22.225.129) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 1 Apr 2020 08:27:44 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.103) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 1 Apr 2020 08:27:44 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hYyBdZWQK74LItuV74ATSuGn5oE6pzW4Yb4EuIZFZbO5PHhcZ9u7yDMeBMbjhzHWUZmvB23r2ETIiP6odXrGTFyWYSquoOu9ezmM6b3XprClzrvrc/ymaMmDasuyD1HiJresMJb9CXdnC+jdSAJ1Tnk0AJsnRKYIE6kpE0ka1o2DPK3+OSW5aVZV20wXF8nABlzH3GqPkSJ+RqwsHbOtJGRoh6hbXOtxIcaQY7W9t9DCOgoOTl0JaIm/siGCphXyImkbXd1HZiGnoqpIhwTTQC80mQfvAVP+0vojoN8WfxOlw+5zF3t34POXStkryyGnCBNEUANR1ju9Vtf8VxvcGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IcIp8NfzUqQwQstMN8VUsoFjNXv86XItLayCJ6ZiML4=; b=dx+JydiSTCO4ByCZKgeeoUS3DzBwUKQsbsGMcg1sbU7DZSLi790ICNsyISD95O8nqQspAdc3XWgRg4ZDHA7cjh6F71swsmblruoUMQXENDMiy+Z4SUApowGSHamhFL9COxSdanh5usg7T5E1p83ACpjaslAKyx/9fR6JgPrN/b2CSmR+5wNp6rzP4RQOooOOlTCDA6qaC2U0TRPHQA1aItpbpED8fO8xBN/q01YTQ0dG33zAISs6phhO5ywS/EzDUK5QsctRmiF1BBYbvfdtRzpD+KpF/rZTnt0ERkpoV57KiqJraQAkjsWl/x6i8kDqh/Ru99o7CtBIDmL8436z3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IcIp8NfzUqQwQstMN8VUsoFjNXv86XItLayCJ6ZiML4=; b=ji/cClugiYV3SDXYA/2Ltxt640CEJCqLsWX+UETUf0lf8caHW4cyWr8ze086jC1Isdz6rruukt+V7vqzAQE0emPJQQcc0inFdCG71bczJ3+ZFzR9i/h+StWpsXkzWCqESFHxaXx2LDC4We6AOp+A6ijv4p8x75x8fXPAVocnUsA= Received: from MW3PR11MB4539.namprd11.prod.outlook.com (2603:10b6:303:2f::13) by MW3PR11MB4700.namprd11.prod.outlook.com (2603:10b6:303:2d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.19; Wed, 1 Apr 2020 15:27:43 +0000 Received: from MW3PR11MB4539.namprd11.prod.outlook.com ([fe80::39a4:4e3:2bb2:dd3a]) by MW3PR11MB4539.namprd11.prod.outlook.com ([fe80::39a4:4e3:2bb2:dd3a%3]) with mapi id 15.20.2856.019; Wed, 1 Apr 2020 15:27:43 +0000 From: "Gix, Brian" To: "anupam.r@samsung.com" , "linux-bluetooth@vger.kernel.org" CC: "semun.lee@samsung.com" , "dh79.pyun@samsung.com" , "nitin.j@samsung.com" , "amit.jaiswal@samsung.com" Subject: Re: [PATCH BlueZ] mesh: Add check for valid netkey index Thread-Topic: [PATCH BlueZ] mesh: Add check for valid netkey index Thread-Index: AQHWCBzUCLdKS+ksE06MAFe9MVMWf6hkY/EA Date: Wed, 1 Apr 2020 15:27:43 +0000 Message-ID: <82b707704e1863c43748adce03057d2252fea59a.camel@intel.com> References: <1585740006-9569-1-git-send-email-anupam.r@samsung.com> In-Reply-To: <1585740006-9569-1-git-send-email-anupam.r@samsung.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=brian.gix@intel.com; x-originating-ip: [134.134.139.72] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 08646e9b-ef04-468d-c815-08d7d6513909 x-ms-traffictypediagnostic: MW3PR11MB4700: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 03607C04F0 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW3PR11MB4539.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(10019020)(346002)(39860400002)(376002)(366004)(396003)(136003)(2616005)(66476007)(478600001)(6512007)(81166006)(316002)(64756008)(71200400001)(81156014)(8936002)(86362001)(66946007)(66556008)(66446008)(36756003)(6486002)(5660300002)(2906002)(8676002)(6506007)(76116006)(186003)(110136005)(4326008)(54906003)(26005);DIR:OUT;SFP:1102; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: u86Vy2bhEKfrGP5wCojSYBFtwjyWOgTl5xEnpQTXYn95rNvEQH3Ql9HNIPINtTg2WlEkhcDx2GX5DgKpySk8LPTKJdXwr5mW5JOdpFquhbt/1AKI3uKohUrAbgX39XAk/Lk45LWNcJPQKTPXuBvpNXp9ebQQQW9EcgbgUXpxJMQdXn4Cgf3He+tQnlf2utYPfVgoeb9YgS2Mo/q4dOnKom0yZPcO+2aBdhtte/TuNcIQtfjKGi3gyPjw3cDl7XD6j/lQg5XGzKnIUj5vtYClbIYM9AXBHQ6zuSoJqBwa1chOXpYprxwBkoFKqKsQfuXGOqzfAcOIlIALwfbCvSdwyqu9CIRwwpYB4M36wfvRCbqszsAaZI5H9lKe4cMxXKKdKgM26XQseMLjbkwbuwksbTzCogHz/n/382IsSXaU927sd5fpWseNwu4Cgfk1lJDu x-ms-exchange-antispam-messagedata: oDvIxUsH28Wg6OHfozr+GotLxfl3fOP+cXmvaZJ0+7t3qSt0BlMpuonjKFjNU8rHpj4VSpZ0pp+DLhsS2tZtHDUkdUKKsYWNKo7nzh3nZi8puZNJWLAQ23SG/HAjAdq+9BI6Ize1Mnus39dgzeJ4QA== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <689F495065AAD34AAADD7B001029FC0C@namprd11.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 08646e9b-ef04-468d-c815-08d7d6513909 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Apr 2020 15:27:43.3005 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Oq9Lx2uY9XdP0lJRn1s+l32T+Mqlw06uZaJQ8WEE0DkCbU4Tb7Pnfpcd1TPjKx1mtjBNtcUAp4QSWRoFT1dI3g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4700 X-OriginatorOrg: intel.com Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org SGkgQW51cGFtLA0KT24gV2VkLCAyMDIwLTA0LTAxIGF0IDE2OjUwICswNTMwLCBBbnVwYW0gUm95 IHdyb3RlOg0KPiBUaGlzIHBhdGNoIGFkZHMgdmFsaWRhdGlvbiBvZiBuZXQga2V5IGluZGV4LCB3 aGljaCB3aWxsIGJlDQo+IHVzZWQgdG8gc2VuZCBtZXNzYWdlIHRvIG5vZGVzLiBSZXR1cm4gZXJy b3IgaW4gY2FzZSBuZXQga2V5IGluZGV4DQo+IGlzIG5vdCB2YWxpZC4gVGhpcyBhdm9pZHMgbWVz c2FnZSBlbmNyeXB0aW9uIHVzaW5nIGRldmljZSBrZXkNCj4gYW5kIGZ1cnRoZXIgcHJvY2Vzc2lu ZyBvZiB0aGUgbWVzc2FnZS4NCj4gLS0tDQo+ICBtZXNoL21vZGVsLmMgfCA5ICsrKysrKysrKw0K PiAgMSBmaWxlIGNoYW5nZWQsIDkgaW5zZXJ0aW9ucygrKQ0KPiANCj4gZGlmZiAtLWdpdCBhL21l c2gvbW9kZWwuYyBiL21lc2gvbW9kZWwuYw0KPiBpbmRleCA5NDU1ODMzLi42Y2MxZGM1IDEwMDY0 NA0KPiAtLS0gYS9tZXNoL21vZGVsLmMNCj4gKysrIGIvbWVzaC9tb2RlbC5jDQo+IEBAIC01NDYs NiArNTQ2LDcgQEAgc3RhdGljIGJvb2wgbXNnX3NlbmQoc3RydWN0IG1lc2hfbm9kZSAqbm9kZSwg Ym9vbCBjcmVkZW50aWFsLCB1aW50MTZfdCBzcmMsDQo+ICAJdWludDhfdCBkZXZfa2V5WzE2XTsN Cj4gIAl1aW50MzJfdCBpdl9pbmRleCwgc2VxX251bT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