Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp867183ybh; Wed, 22 Jul 2020 15:41:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz12tP9qrJHbbxRd3Cq3FUUnHlGONdPwWaH4zBfBw0xJ7eMWg4FQuu8b7aWROcKYzCJgw6Q X-Received: by 2002:a17:906:284e:: with SMTP id s14mr1698387ejc.498.1595457692438; Wed, 22 Jul 2020 15:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595457692; cv=none; d=google.com; s=arc-20160816; b=ReOoFTQiqX2XiZBUVvLTFGTTx5g5lt65GYt6VEXMIOV9VI51C9IQOiRdR9uJGjNher Y53wWTe13quL4LakOS573BsLQ/m31wjpJwESSHxl/kTyvKGk5dx0Axp44MxM8mh1IQss InN9OGCu4w0xGpm8GfjhMW021VtZOBaj88LSNaW23r/BCW5XHacc0fQedwIyMErNyhNw fZj3/ypM19Y7y98REpCqistBPElsHNT2HnK7oaQSj4mUKpTwJxKEXijqXAJLmmtzDNPh yRR1awGyzVkU7PZbtpSZEsCGQrocs989uE5QFm70Y1vKgN0LtYCm0Dmhxqo7axTSHDWo 9lJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-version:dlp-reaction:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=DgGNYuRAg9bK8Vhy0OE4uQhjRnq4J3YtfGMFM9bIrV4=; b=xfrO2RFPKdOoIYFHAeQWvx4MwxPi8pTwm8W+N1wzLblrN6A0FZW1T3uoxJ5+99laDf pO/TOfLValG9Goeiz1sl/TkTSEs23kEmHpRhyLvenM/UsY1zVx8cal+8UTC8Kq6932dL gJGd5CUoKd+AGvXn7jA9BYH90KwFqEdWb+fBWxx7/7hw0J0b7Q+gn5rUu2gi7Z74nDQd wDMEjuH0l67rvBObV40GypVi+dDqT2Y5wNR1TMpYIsI3wY4+/Bmx6H8K555CvIAUfBg0 LYZrG1F6ET2GzXRLyDlcEBl6snNO/8vxImddG+FF1HHh/9u258e8BpoT8HGa/nmbJAp4 m6Ig== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t22si770945edr.571.2020.07.22.15.41.09; Wed, 22 Jul 2020 15:41:32 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732755AbgGVWkK (ORCPT + 99 others); Wed, 22 Jul 2020 18:40:10 -0400 Received: from mga17.intel.com ([192.55.52.151]:6667 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726841AbgGVWkJ (ORCPT ); Wed, 22 Jul 2020 18:40:09 -0400 IronPort-SDR: zzPEE8sM5bIWwcq/IpHOL1JpgfrOfQmsUukG0oaewqxJGC/pjCgztcWVuZcDsH5gHYiP6juIW0 7IAU4eCj0dmg== X-IronPort-AV: E=McAfee;i="6000,8403,9690"; a="130507861" X-IronPort-AV: E=Sophos;i="5.75,383,1589266800"; d="scan'208";a="130507861" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2020 15:40:08 -0700 IronPort-SDR: +ln7UjrmUKdtuFRJC/pq0DsbH8SdOOHBbsVqQlRd/UdpQgpIWFSKF6BXWfihPRduUiW2aG4TEL JzZAoV68vbaQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,383,1589266800"; d="scan'208";a="284375256" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 22 Jul 2020 15:40:08 -0700 Received: from lcsmsx603.ger.corp.intel.com (10.109.210.12) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 22 Jul 2020 15:40:07 -0700 Received: from hasmsx602.ger.corp.intel.com (10.184.107.142) by LCSMSX603.ger.corp.intel.com (10.109.210.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 23 Jul 2020 01:40:05 +0300 Received: from hasmsx602.ger.corp.intel.com ([10.184.107.142]) by HASMSX602.ger.corp.intel.com ([10.184.107.142]) with mapi id 15.01.1713.004; Thu, 23 Jul 2020 01:40:05 +0300 From: "Winkler, Tomas" To: "Gustavo A. R. Silva" , "Gustavo A. R. Silva" , Arnd Bergmann , Greg Kroah-Hartman CC: "linux-kernel@vger.kernel.org" , Kees Cook Subject: RE: [PATCH v2] mei: Avoid the use of one-element arrays Thread-Topic: [PATCH v2] mei: Avoid the use of one-element arrays Thread-Index: AQHWWidOxN4pAYMiq02OyqLfgDEhOKkTxNMAgAA6qQD//9a8AIAAX8xA Date: Wed, 22 Jul 2020 22:40:05 +0000 Message-ID: <071940a8c76c4652b4fd58195719c471@intel.com> References: <20200714214516.GA1040@embeddedor> <5198b29f-2e62-4910-4a4d-52c7991915c5@embeddedor.com> <3cac21c8798b48bdb412a5504126489f@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 x-originating-ip: [10.184.70.1] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiANCj4gSGkgVG9tYXMsDQo+IA0KPiBQbGVhc2UsIHNlZSBteSBjb21tZW50cyBiZWxvdy4uLg0K PiANCj4gT24gNy8yMi8yMCAxNDowNCwgV2lua2xlciwgVG9tYXMgd3JvdGU6DQo+ID4NCj4gPj4N Cj4gPj4gSGkgYWxsLA0KPiA+Pg0KPiA+PiBGcmllbmRseSBwaW5nOiB3aG8gY2FuIHRha2UgdGhp cz8gOikNCj4gPj4NCj4gPj4gVGhhbmtzDQo+ID4+IC0tDQo+ID4+IEd1c3Rhdm8NCj4gPj4NCj4g Pj4gT24gNy8xNC8yMCAxNjo0NSwgR3VzdGF2byBBLiBSLiBTaWx2YSB3cm90ZToNCj4gPj4+IE9u ZS1lbGVtZW50IGFycmF5cyBhcmUgYmVpbmcgZGVwcmVjYXRlZFsxXS4gUmVwbGFjZSB0aGUgb25l LWVsZW1lbnQNCj4gPj4+IGFycmF5cyB3aXRoIGEgc2ltcGxlIHZhbHVlIHR5cGUgdTggcmVzZXJ2 ZWQsIG9uY2UgdGhpcyBpcyBqdXN0IGENCj4gPj4+IHBsYWNlaG9sZGVyIGZvciBhbGlnbm1lbnQu DQo+ID4+Pg0KPiA+Pj4gQWxzbywgd2hpbGUgdGhlcmUsIHVzZSB0aGUgcHJlZmVycmVkIGZvcm0g Zm9yIHBhc3NpbmcgYSBzaXplIG9mIGEgc3RydWN0Lg0KPiA+Pj4gVGhlIGFsdGVybmF0aXZlIGZv cm0gd2hlcmUgc3RydWN0IG5hbWUgaXMgc3BlbGxlZCBvdXQgaHVydHMNCj4gPj4+IHJlYWRhYmls aXR5IGFuZCBpbnRyb2R1Y2VzIGFuIG9wcG9ydHVua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