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 B3DA145AF4 for ; Wed, 9 Oct 2024 16:56:09 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AF531427E3; Wed, 9 Oct 2024 16:56:09 +0200 (CEST) Received: from mx0a-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 66E604066D; Wed, 9 Oct 2024 16:56:07 +0200 (CEST) Received: from pps.filterd (m0431384.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 499ERJMB018368; Wed, 9 Oct 2024 07:56:06 -0700 Received: from nam02-bn1-obe.outbound.protection.outlook.com (mail-bn1nam02lp2048.outbound.protection.outlook.com [104.47.51.48]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 425ukng23x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Oct 2024 07:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dSo40SlevnZw7XMU6QN2UDYRmWA96DIccP7LYNvmHjy8Z+kh4RT49Dzcjqxu/xXAnDX6svl2ztGT/BF2NaqxTz9OrRfnWhDqCI4GJbNgUnzWYi3SW8CTiie03UlowXJzzHK8ZmMEBdiLW5EySKoAbUfUvjDraOTmlDyMiYaR2AAM1bDbf7+WdsnaxCGJfpLu6s8saiRJnKLu3SLXMSlYD42mqm6/8ADOj4hb0Z94uJGV1QhkEWJcMcnKyarfBwVKau9F1QqEqVxL+vsumn7c0Pkoy+k/r8ZHAhq4dw2Q6ePXPWKnlP5Th/62yt950NnX3ybu0pxnz/t52fJnxmff2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=ScjMK8OdM+l0vCYXdkmS0riOt3lKzGo0OoI1Xezsivo=; b=k9j30ocQUUqefKFDFBXcsLRikctyVA6yuDqpUerTIoyKCRGd8YYmicL6zQLI7aQrH+Ebwsl8XbpuJaHaXlTyG7wojZYv4htkK6K5Z4cZxrOCNEnw7sausSnn1h1fKCop5G7987PWFQdcb2FV8FAOwxxh7bLfFaqwgLR2SECEG5HKDE17QOKgCmje09fhkp7O4T4Vvba6Sxylyp7ewYdjnzddlQqpStnBppGXqQLNMc4IaWHiS746vJtfJG3SCmH8jmnfL+1K65y+YIBh4MOZcf7mKasBFYEvZO1Da72SJAVThMKDsYwKm7y0ReeuQYfidmlpGCZQgcb3Xey/ki3qcw== 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.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ScjMK8OdM+l0vCYXdkmS0riOt3lKzGo0OoI1Xezsivo=; b=EbquTGtrxDlaKzMSPfhTqRI2M9I0Xp7KJYtmRzv4BCTw3r2MzLd+9w7JWBqIQR49KWbnpZPUkYN1lIEULt/3q5xOoyJsiYvmd+ZFl98FlC82eFcS2lhKNQq5TOV3O7n628J4Fe+MxZUhiXw5DVn20XLP7iOczy2AXmIWEku/ynw= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by MN2PR18MB3592.namprd18.prod.outlook.com (2603:10b6:208:26c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.16; Wed, 9 Oct 2024 14:55:54 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::3c98:dd36:4897:a51d]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::3c98:dd36:4897:a51d%5]) with mapi id 15.20.8048.013; Wed, 9 Oct 2024 14:55:54 +0000 From: Akhil Goyal To: Akhil Goyal , Tejasree Kondoj , Radu Nicolau CC: Anoob Joseph , Nithin Kumar Dabilpuram , Jerin Jacob , "dev@dpdk.org" , "stable@dpdk.org" Subject: RE: [PATCH v2] examples/ipsec-secgw: fix dequeue count from cryptodev Thread-Topic: [PATCH v2] examples/ipsec-secgw: fix dequeue count from cryptodev Thread-Index: AQHbBaucBYfeN0ZGO0GtzCyvPx/un7JdEEvAgCGa9XA= Date: Wed, 9 Oct 2024 14:55:53 +0000 Message-ID: References: <20240913065800.1620605-1-ktejasree@marvell.com> <20240913070726.1620828-1-ktejasree@marvell.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-traffictypediagnostic: CO6PR18MB4484:EE_|MN2PR18MB3592:EE_ x-ms-office365-filtering-correlation-id: 96c00706-e6e1-4d0f-94eb-08dce8727963 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: =?us-ascii?Q?KrSqJTxzMvL9dBMqsOJQd3TOzvzkhwzUfEovFarHSa3gou+erBge85D5upQ9?= =?us-ascii?Q?NIjy7cRojfZCiLVG7EXEumDoQTZmm2qy699MNWSho/JcOxotszhC2XH5UCrW?= =?us-ascii?Q?HgzWDQzd+Jnmmi63347i+n0/4ztw4gBtPZMWSo0PElN8sG8U3IYj+g2YXvDm?= =?us-ascii?Q?ntGTUqQsPXue9p8y2irv5hcQpVy7PbKErQMOTujiF+upvigjsCElsLcoeTVv?= =?us-ascii?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KkhN07iu?= =?us-ascii?Q?HsTGhAJ5P1c2tio54M9Rxm8G8iD+ZNuHrktOf7zSO0GHhW6T73hd76suQJnk?= =?us-ascii?Q?MwDcyKGToIHGx+VqSLcFJZ0goFzbn1f8IWgnwJFS/ACyCE84ufnGwxzKUYGZ?= =?us-ascii?Q?EN15fDUqGLPFAnQfA/1npwThENr6Y6A+8eRySpHN13Yrw6ZLj1bFxcIym+f4?= =?us-ascii?Q?OFFivtB3fH/nUjCmKZglbV29wGfua6hNhHms5GGvbpnovA=3D=3D?= 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:(13230040)(376014)(1800799024)(366016)(38070700018); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?6xLsVOWL19+aUypnU9HdIqFUdJsnsnSGhbRcCDiX/1u/Lq0rpjcU6gWevCmT?= =?us-ascii?Q?xBtUzAQjdQ2HTGmoKvu6bnTsl39nc5cWi2Adqz5xGUSLxyxnmm5KuUFyA0Mx?= =?us-ascii?Q?WfDCczCusPi1APTWMZqe54+xwqyNejadd7crM9vrI199UWA3sAX7npQStB9R?= =?us-ascii?Q?jLisAspF9CL28gLHo0NjsN4jriScjjAj+cqKTFRRrQ6kKO8S+8yCxQILkOXT?= =?us-ascii?Q?6DIci/qaPYk2BjyNdXZ/O9clYKm10JIR56vBg1VR/srPbwy1lMHEkV9XaTm8?= =?us-ascii?Q?/giMKozCuMSxlkp8repUttuitC/8a0GM5CRq6NwSsvOiKSok8qQOb15HyU75?= =?us-ascii?Q?rgcRojbhjOM7EJOuT7R6i8cKZTxsGPzIngVXzoomyQ2Ic54uo9qTu19P7xe5?= =?us-ascii?Q?HpsBxKInibqtUw/HJw2tIUXxA7r3UreLBTzeD6cNHPLfTjqzfYfTv82oCRxC?= =?us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rfUoHbqaBBlFVmdqi5mIBvs7u38q0vLy8dcs7hPSc?= =?us-ascii?Q?BEMFAgkjtQQ3BKOPmXMKz0BkHX18Ndiq/H39CtbJIJrP1kBhBpI3Qa+DaehW?= =?us-ascii?Q?/nMUTbprXDsLwJoT1EUkBKswX3z3k+CNadMj02Mos1h9vtJMqm3FjgV2rZEb?= =?us-ascii?Q?NBVo1z3txtgTA4ATi8hDF/unpnbIBDXlZ/YpmjiBC2Vv+Thx2me2yv8/VOVO?= =?us-ascii?Q?An/iZXASTkh+H/XNxgQ=3D?= 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: 96c00706-e6e1-4d0f-94eb-08dce8727963 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Oct 2024 14:55:54.0154 (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: aUCvSuzDCJmy6ojqufIA9O6eccmrohdsTvvIpxG7cHQJ9TSh0MqwhPOo7YW+z1dUf5DuT/Bi4c/wKklOHhImpw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB3592 X-Proofpoint-ORIG-GUID: pZSTnSUSR5bx7heKsIxKK4bvCIZ0qR8B X-Proofpoint-GUID: pZSTnSUSR5bx7heKsIxKK4bvCIZ0qR8B X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.687,Hydra:6.0.235,FMLib:17.0.607.475 definitions=2020-10-13_15,2020-10-13_02,2020-04-07_01 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org > > Subject: [PATCH v2] examples/ipsec-secgw: fix dequeue count from crypto= dev > > > > Setting dequeue packet count to max of MAX_PKT_BURST > > size instead of MAX_PKTS. > > > > Dequeue from cryptodev is called with MAX_PKTS but > > routing functions allocate hop/dst_ip arrays of > > size MAX_PKT_BURST. This can corrupt stack causing > > stack smashing error when more than MAX_PKT_BURST > > packets are returned from cryptodev. > > > > Fixes: a2b445b810ac ("examples/ipsec-secgw: allow larger burst size for > > vectors") > > Cc: stable@dpdk.org > > > > Signed-off-by: Tejasree Kondoj > Acked-by: Akhil Goyal Applied to dpdk-next-crypto Thanks.