From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EB825A0577; Sun, 5 Apr 2020 18:55:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C68421BF0B; Sun, 5 Apr 2020 18:55:04 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2075.outbound.protection.outlook.com [40.107.22.75]) by dpdk.org (Postfix) with ESMTP id BA29D1BEDD; Sun, 5 Apr 2020 18:55:02 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iRx+lf4q3ZWU6w1J25/2MWJl9S5T4vtUMupO8EIdG+8KT40yl1CX2p1JQmhztAF3VKw9n6B/aNy5/3gDq/XwOIzSp8PH5r//VmjGryQMMpRB3t+xtaF0qSIAUz5Uc9UTH/wBwmk1hvuGJLOgLyRDk9THsKwMSZuQTMPt9lq73EWzPfbWBsbw8wvuJnvanJ2dyP+F4EUhRn8hoLw725gCion/+BL4jUxispuNv0SAkMorvl+uIeULDBis0e03GsyNKwsscz9F+rTipjKgvkSwfFIXlm8zztS0ryaMBzOMdLqCwU+zEuu6b5l8G9009yb6WLVyLfDFZ6s0r/pOOT1ASA== 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=Ma0DkyaUTOsJMIKu9+M/R0IbJrhcNarjY1rDV+FHTXk=; b=YKeK2qnKKgQ0zopnUlEuga0oBbipwFF1r67jM54C72v5+f1AzehT13KzQUfzOMjntIG5qBPFcPNTMsjW5/4/ZDr/UXec9fzacDlDsOHrrd/vYN9wZm8d/WFLCpMWJwBmiZHFQwJJuhHj0i7tQx+BgzMUdRUuJ1KYA+lPo0revvtE5nFzN35AkqjJbxZwBGoH7JmoJ4/cK9AAk/xPWOhcj98pOLLsG2nTe9zASLwwA7uDkBIrrKuNkB/wlch2wpbmVdiK8CEa8PAGW6WCFUlMSSZVk7s2gFeFWGjfDwnI+uNzEPdANHJNCqw9Rj6R3/zte80/dRLIDktupnweBJ4Taw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ma0DkyaUTOsJMIKu9+M/R0IbJrhcNarjY1rDV+FHTXk=; b=e2MuTttXfW2Utl0h5sWYzlglqnTCqW/5rXfYAAJRZWFtieNi0QndWBE2VanM0lDzG+viwaGQG6bmpx49V5Cp+QXd+hzEySG42bevSQGuRmFuQEDuJn0RtdqQdCBdDAWDBg3n5SD1N3/wpJmsNRAsvTrIdqfOcD+uR1SIkC4sTwY= Received: from VE1PR04MB6639.eurprd04.prod.outlook.com (2603:10a6:803:129::11) by VE1PR04MB6544.eurprd04.prod.outlook.com (2603:10a6:803:124::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.15; Sun, 5 Apr 2020 16:55:01 +0000 Received: from VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::8060:a35c:4858:c490]) by VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::8060:a35c:4858:c490%7]) with mapi id 15.20.2878.018; Sun, 5 Apr 2020 16:55:01 +0000 From: Akhil Goyal To: Nagadheeraj Rottela CC: "dev@dpdk.org" , "thomas@monjalon.net" , "jsrikanth@marvell.com" , "stable@dpdk.org" Thread-Topic: [PATCH v3 2/2] crypto/nitrox: fix array out of bounds access Thread-Index: AQHWBD2e5RNXh/T1IUGvLqSHXo5wiahqzVdg Date: Sun, 5 Apr 2020 16:55:01 +0000 Message-ID: References: <20200327134239.23358-1-rnagadheeraj@marvell.com> <20200327134239.23358-2-rnagadheeraj@marvell.com> In-Reply-To: <20200327134239.23358-2-rnagadheeraj@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; x-originating-ip: [45.118.166.70] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 149d2129-ce2f-4470-fda9-08d7d98214cf x-ms-traffictypediagnostic: VE1PR04MB6544: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4125; x-forefront-prvs: 03648EFF89 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6639.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(366004)(136003)(376002)(396003)(39860400002)(346002)(7696005)(6506007)(53546011)(186003)(33656002)(54906003)(2906002)(52536014)(478600001)(26005)(71200400001)(316002)(4326008)(81156014)(81166006)(8936002)(66446008)(9686003)(64756008)(66946007)(76116006)(5660300002)(44832011)(66556008)(4744005)(6916009)(86362001)(8676002)(55016002)(66476007); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qgljW2pZensUvlSDnNF7WUGg7uymQLSQ8LWocOELLOFRJUgrXah79bOJVMkI2OyZQi7I1brUzKJ4OarvHU73qJ9afG7+Jz4PVRJ6jSdZkqCfElufV0/Lb3bSlnmy9/3dxRK0Q+2UfApTbnaLqOkuCultdwJ3bfyIt8vl/sAqHOufsJiiJ4+/d/Nudmwqg2KYAo9jNintgKt4wqxIPPCc58HHyv1K71hNh2zb8W4hXBGOBJupCsy6MAgYHS/Y38snXKeu7xljUH01j7xQsvtDKlzwuqROxhIRT6ngC4XIcxbgVeo1Nvcs/YGg06w1FBEw0pZayBGHgoh95GRhP+xNOtnnUM4OUOCVAcZpuWImiNDNByArN6I05EdwA+joZMaPLzd1S0ivyqwxze3gevDwo4of+pjPiRiKQR2PnRYYi8I7cN6M20HTP4igWNwaG2A3 x-ms-exchange-antispam-messagedata: uoh9lglNaZDca1UrGXfze84SZpHZVpb8BFGlxhbZy04Bn2bgcYw15ZzV7fp0qzmWDKP+Lt9P1sBZSlv3k1q254xMdF4AXPDmZAgLqTt07eSH8ftMGoN2mM1YL33R6wTgCzNBxN52rIVglBCc+0hpQw== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 149d2129-ce2f-4470-fda9-08d7d98214cf X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Apr 2020 16:55:01.2696 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: x2iZh6Rco+TbE/fAKZO7NoKmKNUnEf+zP+maZag7ZrEh78C7AzFYVfHpGCh/kmPSLAZYPIY3DBSCX9Gf+QgLIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6544 Subject: Re: [dpdk-dev] [PATCH v3 2/2] crypto/nitrox: fix array out of bounds access X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Nagadheeraj Rottela > Sent: Friday, March 27, 2020 7:13 PM > To: Akhil Goyal > Cc: dev@dpdk.org; thomas@monjalon.net; jsrikanth@marvell.com; > Nagadheeraj Rottela > Subject: [PATCH v3 2/2] crypto/nitrox: fix array out of bounds access >=20 > In nitrox_sym_pmd_create() the name array will overflow if the pci > device name is greater than 57 bytes. To fix this issue subtract pci > device name length from array length while appending substring to the > name. >=20 > Coverity issue: 349926 >=20 > Fixes: 9fdef0cc2385 ("crypto/nitrox: create symmetric cryptodev") >=20 > Signed-off-by: Nagadheeraj Rottela > --- Cc:stable@dpdk.org Applied to dpdk-next-crypto Thanks.