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 36A35A034F; Sat, 16 Oct 2021 15:44:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B5C0B41152; Sat, 16 Oct 2021 15:44:24 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 0CF77410DC for ; Sat, 16 Oct 2021 15:44:22 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19GCMTfE001453; Sat, 16 Oct 2021 06:44:22 -0700 Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2106.outbound.protection.outlook.com [104.47.70.106]) by mx0b-0016f401.pphosted.com with ESMTP id 3bqx8q06x8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 16 Oct 2021 06:44:22 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KD3EPUJMAfmoLT+6GW3fBylko3m9fs9P+1w5XKTx28wVIGp4//BcrZQUvaJ4P36Dli1V02FD6fA4DLamAOmVzenpfx37WSFlgVrrF2DprfMsYuSCb/0daPFAIyxNF4a2at+apreq5PaVDFjDvP0wCWm4YnfNF9brWod8mTwsiB8CjOlx9p467NOWjK8C+SZNEaedxRohiMTVPh8mndj+PdPrCKJSTsq+fBPVR2s6pAZQ94Z95oZPzpWfRqBbcY4iGQDCchE3o27UmovqjztdP1WN+i9ugKhgxgwanGeG5Vpqgf3ShbG5Iw45fHLzWxWlXC+czk5xHN4+IZIeL6XrZQ== 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=Z6dcNruFwbEvVozFKFohj3bWTgkxYvR04so1tsuNFr4=; b=cHwOu5uthI1p9VyyrQpOzrYJEQv408gNENcYMIyHypgNFMOKEs1Sm5mUssL8kBl1J2krVOiSQ59+qHS/f2W8VwKa+Dw4WwQml8vrFl3tgvKVookE6z+UGVuNFZ4KbF5CairCflYHBQVCvOBXGPcJxxOdkuV1aIiePibn6Y5d0yyNb/jlCX5bWbV6Awg4Bd2BXyV3PWQbHoGHzikOf+zNl1NcQEZXzvAmhlELlPfich7f3NwHXJYzu8Ld6wlVTo7FtqrKzxRJ/1BVT/G44WDe2UKcQAf2Q1tU7Ak+e2jbkozxn/EGkMxju+0elZTRNp2dT7sM2aC5krvYDHqvyWFjwg== 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=Z6dcNruFwbEvVozFKFohj3bWTgkxYvR04so1tsuNFr4=; b=uxaVo3L0vVaCnP7kWrq9vpYBG729hFXV/HJH1CCjOi15y4ez4JZoQbXpC/b4Ti8WZ5Gd7s78NHa4kd4VSjOWL4RjIaWCfJwuN05R9gOXCUHaK9Y5YTs0sNC7Dbf+zE9KvvaPzf6dZdMEgp7++m5s+Mq/nJ9u9MZ01E5HWgqCAbE= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO6PR18MB4436.namprd18.prod.outlook.com (2603:10b6:303:138::16) 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:44:19 +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:44:19 +0000 From: Akhil Goyal To: Przemyslaw Zegan , "dev@dpdk.org" CC: "roy.fan.zhang@intel.com" , "pablo.de.lara.guarch@intel.com" Thread-Topic: [EXT] [dpdk-dev v4] app: fix buffer overrun Thread-Index: AQHXv2jeW6PXwll9PkS2WtovsOPAMqvVqO/A Date: Sat, 16 Oct 2021 13:44:19 +0000 Message-ID: References: <20211011080452.2710095-1-przemyslawx.zegan@intel.com> <20211012125611.2774670-1-przemyslawx.zegan@intel.com> In-Reply-To: <20211012125611.2774670-1-przemyslawx.zegan@intel.com> 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: d8812974-cd12-49cf-ee42-08d990ab0dd5 x-ms-traffictypediagnostic: CO6PR18MB4436: 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: m2BQfhORQP8PWdRfYCOPQRYnTZ1bz5doSxnF9ikVnD+IBWsnie6F92orp5zJ7f/4aDd+9U0iNb03iRVTpDY3DgLRey1oZcLmlH6SNPZkczfEY/+KnnfDaYk6E8X3Vd+7G908LAU9gh8eziSHUnSUxgUUZN69QQ1MJRlffGNxB/Vnzw4Mpaxi4MeNmDrYUbP48bq7mlEkJeuvFokSZ3ZBlgixSPmdDZQ6NWpRVv18IwtUDwTLMtNV6EYqUHqrOZn6RWqLAO1mEos+nGwlcYpxLhi39HNa7yI2MrndO088hWxf0Ly/itLk1nq7yyAQE+wtCPQggVOUgr2uWPIp2pp/i4HUvBnwrrGCWpwtvC8xwVVJYYp0imt5TwiKkO8l7ZVBN6GlVMz+OaIw2S4dkGbKjyA+lHRirVGJT4gTWuhqd0srrNn+7Wh9ePHLFMv9a3OrBkDwtqTyRP9WgEkbsWFXULHmhE0fI9sVhHDiKDaJTl65xB+pld/taDkXnkWBiaD8blQu0Gfav/IbEBKkIo6xh5sEt/jdRpbnkr8TXbKfeCvKYtAnHiUTYneGq1f6mVgzUz/4SHrL9zRhVaMwd8lXA/CAX+In6Xe74orjFwlaV1sDPtMzP8UCOaoDqB/7pnJZXh5rzxuAS6q9ckFhzbvYEeCorG5hRNKY8RvUMX8pz35vNqBf/aBSoxq0uvTwjkrAkpG4S3r/utD1sfeCnkXPFA== 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)(7696005)(55236004)(122000001)(54906003)(5660300002)(52536014)(6506007)(76116006)(33656002)(38100700002)(508600001)(71200400001)(38070700005)(86362001)(4326008)(9686003)(55016002)(110136005)(4744005)(64756008)(66556008)(2906002)(186003)(66446008)(26005)(66476007)(66946007)(8676002)(8936002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?9t9yDwMh3Lw2GVtQDuB0l6d9uILCccTCoSNFN1hCymmNJvU0Y/18hv4XU4KZ?= =?us-ascii?Q?Grzn3j5EKhIXQH/38w50qtKtz/ChHZpyuBKcchtQJhQ0VTh6fJHJtpgljQ5i?= =?us-ascii?Q?nV9o85//d4l02IMNt8jBXMH2DK9UsQ4zxyFcsuwFpZyNkay4J6fYmQfwjeYa?= =?us-ascii?Q?9lc1uuBc4hjanMn05YJBeF4BJCXlH+8Syrdk/hcRHtwHBj5ucO+zT0ooef1K?= =?us-ascii?Q?zf89GTRjQBzt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aMkG5IL?= =?us-ascii?Q?gwevdHtJ+VR66+4pFzdhoSD6TOxQN1yiPINK4MteZvOo+0ScXkaK3XkisYEO?= =?us-ascii?Q?icUiXoewU/mOZxLE2aVj+x4JS5blnUMvoKBMcwPcmMmXsE6THzGu+ajbfYdp?= =?us-ascii?Q?rSCBFM5cYE1HRoHm7y7I1NJ44Fv/PX+nZOCua8tU2/yjLMCGJ/Rs3Lotxt7k?= =?us-ascii?Q?GeGCHO/nPfcv2ci5LpiR0Otf?= 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: d8812974-cd12-49cf-ee42-08d990ab0dd5 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Oct 2021 13:44:19.4043 (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: lp1Hix3yvVqpicS/USDAVVhL6Pe+JWGRzj7n+I8Q2okExhuRxjTPor5lY4mAUyNYhZqALhPIpGmUJiKISrulTQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR18MB4436 X-Proofpoint-ORIG-GUID: zjXkok3-28X29Ubf6JO_ZlmDqttq4FUG X-Proofpoint-GUID: zjXkok3-28X29Ubf6JO_ZlmDqttq4FUG 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. >=20 > Fixes: 8a5b494a7f99 ("app/test-crypto-perf: add AEAD parameters") > Cc: pablo.de.lara.guarch@intel.com >=20 > Signed-off-by: Przemyslaw Zegan > Acked-by: Fan Zhang Applied to dpdk-next-crypto