Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1077260pxx; Tue, 27 Oct 2020 07:46:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybSK1ms1dKaHKs+7EKgbnXXsBe1AuJY/JVF+VavTqQd6nTIbjltAEJxoQnGm3CaIFweBsa X-Received: by 2002:a5d:4a06:: with SMTP id m6mr3211250wrq.209.1603809981741; Tue, 27 Oct 2020 07:46:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1603809981; cv=pass; d=google.com; s=arc-20160816; b=cCDhp55CS4xWTQxnr3yD5UN7qk39CtAsOCSVS7Ho0Tuct+NM0/CaIVU2xEcIXuseXo IqRMfaK7rAGLcUYirnOmDoSHgajoZOmoN6W2Pg1LAC7DEM03742QAKtnMDz9UwphQKom 2/4xWakSw3pQKZWYhFtBt6mMnSPno7vGzdiw4I2iWd3WeA3dkb8Dir4ogMJYu6fHQyH1 yqrShN+FAni+46NQVU+QHf0uWDWUORSqYkwmfMHcWLDYHV0t/pQbt6hpvCqli6IC6jik ErLieSlniUTdSnwDcYkdwlvpXElmYBxwIX3cpgE1r4BhbnKOV/FWp9zx66w/muV+efVW wctg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=bSZ8H1iDpRpMWSfYWDTWlorfglxYhyHxJ7eOyk58GFw=; b=i2hTFT5tsMTN15dEa1Im3Ip+e/Mn1XRkzGr2/YimS51SFfHll0B/WegTrmryP+2yJT ITzNWy2wvH702ANJ0dxBTQ2cm1ROQ8xJLyZ4kmBMLMThKku4Mqf02x21sDSILiZNt7KR XD156QwZHCSIInPY26KE7uHwVy29fg2bI+53iK3IQrkD8SXs8N7lsOYUstrhXEL2ofn5 SZsw6igW6mNbRMKuzLRKchgFVC3EiJ0YIjLzrK7RKbhMGg5yse+S2d2BnDXRdL/CnAfM 9MLishC79jv8sXdfCbGEeo3ldTDsHvjgZvGRpXUPW2FbqpJPsbJh4eYF59EpME0CxxHG WbNQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=p2ZFspBx; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bd5si1015621edb.451.2020.10.27.07.45.59; Tue, 27 Oct 2020 07:46:21 -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; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=p2ZFspBx; arc=pass (i=1 spf=pass spfdomain=xilinx.com dkim=pass dkdomain=xilinx.com dmarc=pass fromdomain=xilinx.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751288AbgJ0MX3 (ORCPT + 99 others); Tue, 27 Oct 2020 08:23:29 -0400 Received: from mail-mw2nam12on2061.outbound.protection.outlook.com ([40.107.244.61]:60416 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751284AbgJ0MX2 (ORCPT ); Tue, 27 Oct 2020 08:23:28 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EzVJ9oMrURQsJzA3WDSKYYz783MyD2P4McccGPkeFRQ55QZcAjFdJng8DERnOZJJrQsY1AgEOTrN75b7W6W0tVMDcLms67sKK3WCMLaBBxKiVJo1fO4dZFm6+cUQvwiKQIdQmSHVpSQMBfeemmEPMQRMCLuFnmkJ6+w77bfbR6Tn2tsuH5bdTRHCYV8jbCcbzH009g9Wuq1Y76pavElgSktATUWyBBBC44z9uIJgBldYs1E+wUQS2d23JzjlKUCI6wxJD/aD9dtJf40ge7kQSf9lCyp8CKNg5Xyu3jVY9kYokqlf2iH3B8+5r0n1ViEOs4aYptZisPC2C9UgvgpZuQ== 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=bSZ8H1iDpRpMWSfYWDTWlorfglxYhyHxJ7eOyk58GFw=; b=XMpcezivuX0L51NJxyeWSa+dTSP5jPMvSSEWkaZuyZrYrCUNjS2dCzFFz9XdLRB1HlumqWTADB+JRKuQsMtt5pc/i3gI7aPzDLt7ySGKDiuLaZXes5lctPiYD81zGNfmTp9qeGx/L6xidMEhtkH9q5tAtS7Qty3iCNo1Muhw4IPKsTNi1qpWO16NuHzn/7cZJ52lsl1jAcTc1gkNIx/ZCcQoy/biKtglAvRaw2hDVtic6VmmbVglHZiPUXpvoCF74bod5RurPU68P2DUO1BOAs25Ekf4Ko0p05NjMpAyhokXd7kiFGnghmeLDHjXmqfYFBmXNY0OCQWq7ew06uzC3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=xilinx.com; dmarc=pass action=none header.from=xilinx.com; dkim=pass header.d=xilinx.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bSZ8H1iDpRpMWSfYWDTWlorfglxYhyHxJ7eOyk58GFw=; b=p2ZFspBxj33s5BBDxEUT0DU5va+VJqS72B0lEoTuG2G5czicBXAQYdDOesr0OJYzpwgALXRyjtM4GEjugsHGVPk9KP65c1OlCAynYypA7a6Skatl6UFKPZ1L3kpnt3uOv0CQeFo4W35lKMwjLnXsWB2NqiivDG1haP+VPV5iU0w= Received: from BYAPR02MB3941.namprd02.prod.outlook.com (2603:10b6:a02:f8::18) by BYAPR02MB4184.namprd02.prod.outlook.com (2603:10b6:a02:ff::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.21; Tue, 27 Oct 2020 12:23:24 +0000 Received: from BYAPR02MB3941.namprd02.prod.outlook.com ([fe80::f923:e06c:f837:bd7e]) by BYAPR02MB3941.namprd02.prod.outlook.com ([fe80::f923:e06c:f837:bd7e%5]) with mapi id 15.20.3499.018; Tue, 27 Oct 2020 12:23:24 +0000 From: Rajan Vaja To: Michal Simek , Arnd Bergmann , Michal Simek CC: Arnd Bergmann , Greg Kroah-Hartman , Tejas Patel , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , git Subject: RE: [PATCH] firmware: xilinx: fix out-of-bounds access Thread-Topic: [PATCH] firmware: xilinx: fix out-of-bounds access Thread-Index: AQHWq7BcZtWlKQFhOUiN9ze4b/47+6mrNpSAgAApuaA= Date: Tue, 27 Oct 2020 12:23:24 +0000 Message-ID: References: <20201026155449.3703142-1-arnd@kernel.org> <459e03f1-2a9e-5bc4-4bf6-9a0ddf5c4a70@xilinx.com> In-Reply-To: <459e03f1-2a9e-5bc4-4bf6-9a0ddf5c4a70@xilinx.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-TNEF-Correlator: authentication-results: xilinx.com; dkim=none (message not signed) header.d=none;xilinx.com; dmarc=none action=none header.from=xilinx.com; x-originating-ip: [149.199.62.133] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 590f6e92-98fe-46ec-8dd6-08d87a7319f0 x-ms-traffictypediagnostic: BYAPR02MB4184: x-ld-processed: 657af505-d5df-48d0-8300-c31994686c5c,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wgn6gpe+9BZCRjw+lMZxeCC48I0b+vmmLHLyn/XSMtYwHbzcm/dyMU52YbD8jJK/rlIPcDIrKv07Fc4ZJW9CZIVHfJ2+WB0a+NPNSStxT/2wIknl0xafuwaWMwn5W1Fnew1McVUSmDadoR0Uh+JHiIhGyJs2608XqS6exIrwss2jeDnqpu2dHrhEpy3fW8CpISc/aKb1KKikCAH9S9JHFokxWtC3KBSVFMMOasjg7yE7iqaM4UGFUOWfDdY0ATkIVz3TAgrN5348wo+6yELJlL41lULPrCdyvntns/95UFgZ13N/IoDv6UBTIRUfHnrYrlT6HHOBU0XDaKKFv6K0bA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR02MB3941.namprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(396003)(366004)(136003)(39860400002)(376002)(6506007)(54906003)(86362001)(53546011)(76116006)(71200400001)(52536014)(4326008)(8676002)(9686003)(26005)(7696005)(5660300002)(8936002)(6636002)(2906002)(107886003)(478600001)(110136005)(33656002)(66446008)(83380400001)(316002)(66476007)(186003)(55016002)(66556008)(64756008)(66946007);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: COUbmHpg/sIWzyzsXVPuAlQgCEpwO/CrlSjBXsu1IX8CLDpPB/UuHtcJnaMzLfnRsiYpQ5iagdJluNYnzMnlakEZGyKUCkNWI1wutc0zhBnJeZOrZNs0/8PBQ2V1+z4ydrCmXVpoqEpSq386LuPS3Vjbqc/XmksJfBVKspOCc9kKIqXuwACrZiiERIZcNCZdz6USZlbKGsdcKTH1XAWOzItk1zyGxIossR5mEaFzA44WZa1dG3K7ADzju/llzBt8hoWQC+JZsAZ/LW/ro9Rs3EWZDhpij0pdaTU3YmvoNYdQ84pAQ9kjLZGNvKu2Q/jr6pmXoWatDC1UnOYuqIXFBqI37xycJ5JlJPDKO037uUqOPKqbiZaQUO9Y59ycdxmmuNNb0L0a1pFblJdi4TT/oD3DDEedwOvfvi2/E1LVKAELldHs4txmZgn4exX5TrxwjviQRWCN7HUmi8TuefJEKErRjIIzSvpAlg95gOxCWojB4+6fWgEs9uLog94egfwumfjdiAC3KdgtGY/Os5c8gYzKkB0Qg1YYVIiUdfdijapyUIgntotKAOt4ac9jaHrXrtOvuo44RAwr6lIjsuuZ02eJgCGHjXVuqv4c/tTIK/GngWBblorHQzhOcl0VRDRcAKcMxImdHNZZQaxsLuYQ0Q== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR02MB3941.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 590f6e92-98fe-46ec-8dd6-08d87a7319f0 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2020 12:23:24.6529 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 1ipQLjCuoJXgzRCtUP3FguGXV8l8JTECu2YCzowznDvDMTb3Qw5iX5g+rBNHEEzYqX23/YTTEq9TBavs2+SYSA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB4184 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgTWljaGFsLA0KDQo+IC0tLS0tT3JpZ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