From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 34663A034F; Sat, 16 Oct 2021 15:46:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BFEED410DC; Sat, 16 Oct 2021 15:46:50 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 011204067C; Sat, 16 Oct 2021 15:46:49 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19GCkEel031590; Sat, 16 Oct 2021 06:46:49 -0700 Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam07lp2048.outbound.protection.outlook.com [104.47.51.48]) by mx0a-0016f401.pphosted.com with ESMTP id 3bqv3qggfp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 16 Oct 2021 06:46:48 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WtdE9x0/YXZbZ2Z3jOJsWu2aIXI1+TT8MSiJU7fNk4Qi+QeNUi7lv7VM/3ZA2PLwu42PzsdstTholO9lUu8iW0KNyGE+3fXNM2O3X2/ywfWPjuoUKvSlQtJIZHRbeuDbZZ0wLzT8tmhcoa5m/44Hvfng5ZT4C8CagEAdvnCYhyogya6I0TRZoFbcyPej0s0CnjoyLElvI+wXxSMrUkG+3mD/kiMPuRPaysbzMwRi87j8QaoirDx5uLbmRe6nZzHWArGsQRawZmZZbcieH/gneY2rBcrDKVjYVBeXJ6dUu4vSbsjUpo8nlVjltRXGBNNPceXnvBkJTXQCSuctL0n96A== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KNhCwDpS7Psb67MxGgOeT+gBPrLQbcPlWVltCT/4Zf0=; b=UX7wpTLksCH4DwQI4cI0HtocR+N3rpKf/dwkAYDyCEkka9gG4C2hdieAYZmLYjk6TQxqn0I0deFymz0Tlab7N/ozrrMclZdz1x9F8Tg3PgJhUh/PEZeXjgXvo0jznnKxw77/U5egs0q+DWtiCVYqGLjlHbuBP2NXUuB2+eowjgmhpSBVCqHTln+EqqS53Ri3Yp1ZEsU+3s//f+IF+VKTTl7CHvyv7fqiAL3uiR5uE8PdEfD+vRt7at1tTyEnJhX8h9Ac/05uPBvxkBaKemZcB0ph4jHFEqCMdSjfScvv1rBDS5RlMX0HaOjDSz1pQxJLlTRCduXXoeGhBr1undOEcw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KNhCwDpS7Psb67MxGgOeT+gBPrLQbcPlWVltCT/4Zf0=; b=PsPDn0o+3BojI6gN1Tfavet8SKURGH7jhZTzgRj52AtodcrfU3I30666nTZdlcLEdYteV1RgCnyCXhefagIj00XdXKJOjH4mJpiOa8Uv1AQ4h/0J31G8g/5ZEH3/ostMF1DU1mjorGuZT91Lpwo5nYMcZ3LYBndNdqIEqc6iOHI= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO1PR18MB4732.namprd18.prod.outlook.com (2603:10b6:303:eb::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Sat, 16 Oct 2021 13:46:47 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::c41e:707:3f91:71b8]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::c41e:707:3f91:71b8%8]) with mapi id 15.20.4608.018; Sat, 16 Oct 2021 13:46:47 +0000 From: Akhil Goyal To: Przemyslaw Zegan , "dev@dpdk.org" CC: "roy.fan.zhang@intel.com" , "pablo.de.lara.guarch@intel.com" , "stable@dpdk.org" Thread-Topic: [EXT] [dpdk-dev v4] app: fix buffer overrun Thread-Index: AQHXv2jeW6PXwll9PkS2WtovsOPAMqvVqO/AgAAArcA= Date: Sat, 16 Oct 2021 13:46:47 +0000 Message-ID: References: <20211011080452.2710095-1-przemyslawx.zegan@intel.com> <20211012125611.2774670-1-przemyslawx.zegan@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a4d99c5e-4709-4110-b7f3-08d990ab65db x-ms-traffictypediagnostic: CO1PR18MB4732: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: k5EMXx9cRTFf8SkDW77IvpxqfdpUiDhNFTgt4A1CwbPg+J1/34D3MM/m9EwlBnS/b0OpmwmZiNgutPyx3n4aWh7aBbSospUy3eRkRqlLeDaTW/UrcoShJxwbSbdF92+ZKYbVv3FUXghQ5ipxdKwmfAR5lTbfnJYu/KDgzANf/8uEq3NPkVgOr+3uyk9I+nMmVptJFXVFI6Ml2HwSSUsPmcLQxxiTDfxNzQdsPqim+nonnIM3x/tBdW19C62CoivUZnRaxbe7RpnLwkLUSOxvJHD/wPXJ35blGBfvuievBVV3bbfela8MvZVSVxoUWpO087NVpPkSvI4lgGuj6XerQUoDJhzo6x/6qdLYE4k5TI4/2iiRl0zSlp4itnPnHyGG2TtqCo7bcaYn5YEern6hYQPmGK8+TL9NgaQWkJXvQ0lYPUmbUht87AhcktphrAxTaz/JJ7IZ/TrTSUnzCJTfxGYfZfQh+cTxVJ7WiDI2QfW3RIWk0Q8Db/TVLdyexPOroTmdxK0EyBaHMKvRf9fGH79urWl7rdq78XOGFao3X7nb/MB/vkG0BHfu9r+S3T07N5H+PKCQ4uGUpaQ0BH53wn1mUMJkaP3ybTj4dvVrB/eSIPmRdW/vaS920InOssie0SVSHCay3eCZgjHY+SLSQwQfSeV4l/67xC/JeTfEiM0q945ePRW5f0zU4mS7nyPxywA/LtVD4gjTWl5MVNs2Tg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(4744005)(86362001)(54906003)(2940100002)(33656002)(8676002)(110136005)(4326008)(66476007)(6506007)(66556008)(76116006)(64756008)(66446008)(66946007)(55236004)(186003)(8936002)(55016002)(5660300002)(9686003)(52536014)(508600001)(316002)(38070700005)(71200400001)(26005)(7696005)(38100700002)(122000001)(2906002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?yavfnhws1HcE04uWVT7eeFCjS5Zew7jG7s5b7JreuoH11rIIbu3Ba7ve2V3S?= =?us-ascii?Q?qwaeqoghe0IRUwzGEa+kwM+svK13EnnoYb/7gQu+DkGqB6ACGBhgEBDNqrUq?= =?us-ascii?Q?JzcF9umLrhn8COd25dJYgUZaPZAtnR/r2NrnFsDlj4bTRRoSoPaOWyrjWTu8?= =?us-ascii?Q?JuI9A/LnmzOaGOE2Hp/77iSw1K7HqVOL/KE/iCALI1l5o8twCTwVfd82k1Jo?= =?us-ascii?Q?4CjITku3tzYuv9zocHT/GyuFqd9qQTFJ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?vAZyDRBA7SPdq9WRAVSQ3182i0fj0ZmnDFekVt94jPxZo0w4z2aOE6SWv1+6?= =?us-ascii?Q?KyTL/ZtxXeVhXbz235JC8loOgCeS07TjOVCETbguSfZoPSBp+eZUwsP8l8xz?= =?us-ascii?Q?WW1OqbRjSpcZB/wvuzhf4XsvbX0q8bClVuYgWZvZx8BcncxHQ0ixFql+7Xi6?= =?us-ascii?Q?D/pkkgGg64VD0Hog1o2jQSKB?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4d99c5e-4709-4110-b7f3-08d990ab65db X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Oct 2021 13:46:47.0987 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: mSfd4y0YzOTOyF05OQVN2zEolD6ZeTp5eTDcB94sCEvcWB8LmfKAMU9l18sAOn1uOLRy76GykZ1cca2bFmkTEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR18MB4732 X-Proofpoint-ORIG-GUID: mpTSyztV7ynMzehf6YKEsydVIgusFMbu X-Proofpoint-GUID: mpTSyztV7ynMzehf6YKEsydVIgusFMbu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-16_04,2021-10-14_02,2020-04-07_01 Subject: Re: [dpdk-dev] [EXT] [dpdk-dev v4] app: fix buffer overrun X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" > > This patch fixes a possible buffer overrun problem in crypto perf test. > > Previously when user configured aad size is over 12 bytes the copy of > > template aad will cause a buffer overrun. > > The problem is fixed by only copy up to 12 bytes of aad template. > > > > Fixes: 8a5b494a7f99 ("app/test-crypto-perf: add AEAD parameters") > > Cc: pablo.de.lara.guarch@intel.com > > > > Signed-off-by: Przemyslaw Zegan > > Acked-by: Fan Zhang > Applied to dpdk-next-crypto Cc: stable@dpdk.org