Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3446969ybl; Sun, 15 Dec 2019 10:00:39 -0800 (PST) X-Google-Smtp-Source: APXvYqyiDIgtCFVe0oGMOSjV7C5D3BOgpbuDFIQsZRjrZbxeaWVGNRjpBtOmGaefmwuZr3CAsYeV X-Received: by 2002:a05:6830:22e3:: with SMTP id t3mr26114953otc.193.1576432838924; Sun, 15 Dec 2019 10:00:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1576432838; cv=pass; d=google.com; s=arc-20160816; b=JaDfSvFnjKiug11+2C3sUcLSuZx87ww2sOJtsr0G1clYURCWn3aKNsYk4hhG8anDKJ 6J/YVX6RQ1tZ/11e/3jrh6+XeS22QZmTedgBASllMB6DCnNpsCuifUnRANZNAIw3hA7T sR9HipjQpLnf2a/aZ1CbHnDptl1l8lb+nBD+gnG2QIJUu824BVgW5gUWsiesyb26eBZX Wi6n+/9DjjZAIVIEnek8baajd3PvGd/fLEALQm6LFTGk7MhpK7Kj4iHnni7H1jGJkLUt ks6aJy6xayep3BgwF3mdueKR+7UnVZMIFj0WubtaKVHk9JI6Lbvnn7CFxJY0kUhVoi1c KiOw== 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; bh=FlTukfOYvH4NmM6JIPq37HaNu479B3JtI2CXJtjFWMA=; b=Xuw2iVNuvZi1aF5hhT0hX/vIkLy/PXMghLTNPuStl+yTTNzyymr+StnHAipqEqPjve OcslN131hXV2R8DcQohJNG1+tquURzJI+l516qGlLGaVpSq3WUbnl/VWYJkQ6shjGmO2 2Tg8hdOcXWh1ghoqkcKpoWvb541PDzUWipKMktPI3sle4CaAYBz9Ssct1Swim/M/9mRs bFKYw1qoJgocdOWj+/RAaHfg4KTypZ1tKuChyObUqKpyzUUy8E1ZjWT9e9n3sIZ5uF3I pmFUYf7qd3fr6JTvts1XoGyiIVArGhlch9sPxsxrpyGEbLCiVCWSiv/hWwEtMTFt2X1H A71w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=Bi92mr4+; 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 v1si9037967otq.141.2019.12.15.10.00.27; Sun, 15 Dec 2019 10:00:38 -0800 (PST) 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=Bi92mr4+; 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 S1726528AbfLOR7L (ORCPT + 99 others); Sun, 15 Dec 2019 12:59:11 -0500 Received: from mga01.intel.com ([192.55.52.88]:32012 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726299AbfLOR7K (ORCPT ); Sun, 15 Dec 2019 12:59:10 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Dec 2019 09:59:10 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,318,1571727600"; d="scan'208";a="211855570" Received: from orsmsx104.amr.corp.intel.com ([10.22.225.131]) by fmsmga007.fm.intel.com with ESMTP; 15 Dec 2019 09:59:10 -0800 Received: from orsmsx112.amr.corp.intel.com (10.22.240.13) by ORSMSX104.amr.corp.intel.com (10.22.225.131) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 15 Dec 2019 09:59:09 -0800 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by ORSMSX112.amr.corp.intel.com (10.22.240.13) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 15 Dec 2019 09:59:08 -0800 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.47) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 15 Dec 2019 09:59:08 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TtqBWNU8zPrmK430e3GvGwVuKErPGsf7wkDfviKy/UU9L7yHFv0YLm8lv67Fbb0mkpqXO/pYo8i9X1b7cVs3jxS3TJQBMbVzM0HP190TZq/yeR1JnODFq4Kras4wGUU0jqRwsrH5xGfZ8jLyG8Ufm7S11x4INEzJYNKFVcR5zVqoJtg1YjFrg8c0pfI/5QnXhzebV3CJHOXyAExn3/nPOLqwYL6rowvT3ACYo/Rz/EoCUSjFsEqt5hy4fWpAofNZTuk+I3eHhhsuAwrtc0/2H/A+TeTHBAwKe9Jzfhs/VkzNpXOplkaeHiReKYoEsPaQQXhyCe51Nysp5virr2fodg== 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=FlTukfOYvH4NmM6JIPq37HaNu479B3JtI2CXJtjFWMA=; b=nMo1qBFlRCyXMhuGDNi1YJH4v8bhwvOgtv/eE9NToystgSVATcnhSoQQJZrNMlbZNe4IDUE+6Qr/hnlvn4imjy3iqDAir3MxIKNgpOMfdyNBA2YQj2Um1+AJX+lP9ZzPllr9A+XWEfK0zJgc/GAroU2TD7AoZ68IdleHzaDhkgGjTw592U1rrCwQ4qtdH9FIY34yHyjKOo/Et8i6pJpfNmjWZOc0Q/1fLejIUAmHS7A1nhPQvPCl2nBHZ+hzLl3zhAZI8rbvzsL9M1/X1/MtjwVAjfWucgkJYIEwtB9aebXPyRyxMLBzJuRXSkWORyu5rBz8gnrusdVQlMNltN+Pqw== 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=FlTukfOYvH4NmM6JIPq37HaNu479B3JtI2CXJtjFWMA=; b=Bi92mr4+CyFYz+kXGGw1yhZlucu6m9Rp83GXCxjI5GK7ilaSxDQZ7j0rA1JxVOOYUwv8h2Gu9tucn1+8mzeJdk9qlKbRckGY9CYcByXZRQcRD9T/1cjoc8YpJb6VWbUFJf7sPPGyPcxO0ypuLyGtT3rGNK0P+rlAdQ6qQadxuhY= Received: from CY4PR11MB1269.namprd11.prod.outlook.com (10.173.16.11) by CY4PR11MB1702.namprd11.prod.outlook.com (10.173.16.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.19; Sun, 15 Dec 2019 17:59:07 +0000 Received: from CY4PR11MB1269.namprd11.prod.outlook.com ([fe80::a12f:7254:eec:b905]) by CY4PR11MB1269.namprd11.prod.outlook.com ([fe80::a12f:7254:eec:b905%3]) with mapi id 15.20.2516.021; Sun, 15 Dec 2019 17:59:07 +0000 From: "Gix, Brian" To: "linux-bluetooth@vger.kernel.org" , "Stotland, Inga" CC: "michal.lowas-rzechonek@silvair.com" Subject: Re: [PATCH BlueZ] mesh: Add more checks for element properties Thread-Topic: [PATCH BlueZ] mesh: Add more checks for element properties Thread-Index: AQHVsHrSv+6/l8/qIUaOFCJDEF7ns6e7gbiA Date: Sun, 15 Dec 2019 17:59:06 +0000 Message-ID: <20e70c9600dc11c2bfd34034f4e22fdaf100335e.camel@intel.com> References: <20191211232847.31501-1-inga.stotland@intel.com> In-Reply-To: <20191211232847.31501-1-inga.stotland@intel.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: [192.55.54.42] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9674ff0d-24bb-4bd4-b09a-08d781887afa x-ms-traffictypediagnostic: CY4PR11MB1702: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 02524402D6 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(136003)(366004)(39860400002)(396003)(376002)(346002)(199004)(189003)(76116006)(66946007)(110136005)(316002)(2906002)(36756003)(71200400001)(66556008)(66476007)(64756008)(66446008)(6486002)(5660300002)(8676002)(4326008)(91956017)(478600001)(6506007)(86362001)(186003)(81156014)(81166006)(4001150100001)(8936002)(26005)(2616005)(6636002)(6512007);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR11MB1702;H:CY4PR11MB1269.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ufRTJsgm3RGs0TSt3KtQlDYR/A2oqIQtAgcLFKGCQw6QmM9ryw4Kd5iMFIeYTlxVzta2Vh4FiIOaZbsIKjy0zyytt107TvNBeWooGfpQMRkADpE6IjbYYotj70CSF98OuoHtqkcXSG+e0CrZL6x1TFNLCbsR5f4zhOvoOiyOOOP1+43uqr3f1VU1XcKjXKBm0+Sk1FSZTZJQFI2MbwCMwopRmcd2O5neqBJM069+baiBFl0AP66TovZ0TdQAq2S2NYYLvWZsNhrD00fl29K94jdWttxeLtHZJdNQhdRnvrXdP92eVW6ixpMZXBuxsp33sBb1Q8As/BGrWz3W+4kXv5mU43gb+uKwfdLItZSNemF/w/aYGs+NGP/cW21La+DlRSiMMyU+2iaGVzwtcTZfEft3qnG2iuTNHiSvpMJKSAKEPo3hP5Ry7fuVO9uIE+hS Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 9674ff0d-24bb-4bd4-b09a-08d781887afa X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Dec 2019 17:59:06.9242 (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: HXTPVuEWfhdY/6U3B6UZCiipTfVII2V5DJWHq2IzFdrAJThLXyaqSZNEH3wMaEQ5gQV3yaWNZ0PLCmyaBShZ4A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB1702 X-OriginatorOrg: intel.com Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org QXBwbGllZA0KDQpPbiBXZWQsIDIwMTktMTItMTEgYXQgMTU6MjggLTA4MDAsIEluZ2EgU3RvdGxh bmQgd3JvdGU6DQo+IFRoaXMgYWRkcyBjb25zaXN0ZW5jeSBjaGVja3MgZm9yIG1hbmRhdG9yeSBw cm9wZXJ0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