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 7CC7DA0A0E; Tue, 11 May 2021 15:40:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3895640140; Tue, 11 May 2021 15:40:18 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 27FDD4003E for ; Tue, 11 May 2021 15:40:16 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 14BDeG5F022941; Tue, 11 May 2021 06:40:16 -0700 Received: from nam02-cy1-obe.outbound.protection.outlook.com (mail-cys01nam02lp2054.outbound.protection.outlook.com [104.47.37.54]) by mx0a-0016f401.pphosted.com with ESMTP id 38f7ue3y5c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 May 2021 06:40:15 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EOxvVvTeeY6O8S0K9KgpQP1b0e/4gsD2QAZaVe4SIFx0SsS1HJLmIsFZgwhbtd1jwOUQNiwnd4dzv+6M2YBbliARyLafaNw9991iBBXDJ+Jqbb3Hm3C2GayZrTR0qgAjXyHsRFqOD8ZqoSvKL1u9wm81+2J836G0Rsln0UAmU+H63jLYDypB7r2OAP09aEWyUCHkbuE4XLs1aomL/qjdL0vMGL0+hxe92gpD8MfOdq/v3O9Gh7+zfJtfz+Y4fJyeVgcRyA4CV8mV07iYyodypIzDjosdsvEmPdUEGr3O74G4EyM0LroxfeEnMoCZQ6HJsBsiWoC3StSa9DYf2wqBsg== 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=dmA2eTLrJ4QhOvQVbv3u8OECctLpxakgfYG3M8VcgBU=; b=W1iAfHiVLreXCXmAvzJ6laqFYwTjxHSG+79aqMnogBACx9QA+ukCIpC23rgRPekG68VGxib9UJquvGhO2OkSOXfhAuZfvHgwjxGNCcSKZok9US/wEdhLfU5EpmptLuo8qWV/rIVFkJuk/RwRqNapThDlx0DOgcIoQIfnOWaFZNv6poO8V/3jZH+4euLV4uRwOfnNajHATONqEIcUpBmeMufjXNTm0UJsKr7w3KJE2sAga7k1LnwmC7NbR9BBHRNwUu21r4VNplSibV2OjXlltB2tZhZDgbokPlUvz5sfPQaz/2fyGiZLflF5oPuWCtG2GJPShtI09dO+r7PrBBbpAw== 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=dmA2eTLrJ4QhOvQVbv3u8OECctLpxakgfYG3M8VcgBU=; b=di06ZsI4g6M9E5x7Jgv4fGElTfQTE3OACqBks+0dBkxVHStrF9CjO5vyx0DwKON9K6q7SaElogl8c57Avrazyq3aM9b1tC+xwaiaf6qGsd3fUhJ1UaJLe2A/g7JMl+IIk3aVTXyUPGdoursrInBbaJaIT07dmGjxa5g3cmzMq48= Received: from PH0PR18MB4672.namprd18.prod.outlook.com (2603:10b6:510:c9::16) by PH0PR18MB4720.namprd18.prod.outlook.com (2603:10b6:510:ce::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Tue, 11 May 2021 13:39:51 +0000 Received: from PH0PR18MB4672.namprd18.prod.outlook.com ([fe80::2c51:a56a:32a4:d6c4]) by PH0PR18MB4672.namprd18.prod.outlook.com ([fe80::2c51:a56a:32a4:d6c4%3]) with mapi id 15.20.4108.031; Tue, 11 May 2021 13:39:51 +0000 From: Anoob Joseph To: Thomas Monjalon CC: Akhil Goyal , "dev@dpdk.org" , Ankur Dwivedi , Tejasree Kondoj , "dev@dpdk.org" , Jerin Jacob Kollanukkaran Thread-Topic: [EXT] Re: [dpdk-dev] [PATCH] common/cpt: add checks for offset overflow Thread-Index: AQHXRYEKQaNlgIzdhkiPWImhwQ9HBKreSE2AgAABOBA= Date: Tue, 11 May 2021 13:39:51 +0000 Message-ID: References: <1620639840-89-1-git-send-email-anoobj@marvell.com> <9006395.vvp0iXuPjc@thomas> In-Reply-To: <9006395.vvp0iXuPjc@thomas> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=marvell.com; x-originating-ip: [137.97.69.60] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d0e070f0-9381-46aa-8831-08d9148240e4 x-ms-traffictypediagnostic: PH0PR18MB4720: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Ec1DjbMePBp8lL0OwtZfela2YPcX11kkg2ECaymMBazyIqeT4NYdMVq4ipsKFe6a0DIC2u+UtFT+afEVAllADvkUmLR4hIaZtROr8fv8SyYH3GP2+LdfmR49zx46p6AQJmg8sgje8IqSuXEgeHw1QNQkEZ1IaeTOWrQcoUQs/xliecnZerXHAsM4Lx21Uu4VgEp9F06l++4VBz9Fwsy6duxvFImybVJzz5etGaSHt11QaPDPK7eoH2rQ4nhK6XLbP+HdvpKaPPWdDZgZ1iho9IY7qRwnkipbcfAo8dePOLSPs49YYSiam92BxUQWwUUCoQE5iFvlphTSgIx601Wt+g3e5M/z6ZSoTKjHhrBLnKlgUf6qeyaE3nDJvxj6Ukz8VzGlv68zY/5ghtc8FyEaN9WMZ9YzydZHUL4grLARa6xorfrLV6oGRhCjsWH3MoqvK5z2ikyZ8OmhO63Rd9XDXq9bH5B4ME+QEXf9fx6zI7PWf0oInbXQ9g3J/DnPYb6Ig0oHWNBpNQorti8H9GYWUGxXYt4wEzhKBoWSDbMVr0CeAHqWvNREjtISHnV9MtnhM+6KCwG6Ybs6V5ema78bXhmYlxyKKoXNpfreunoTHPU= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4672.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(136003)(376002)(39850400004)(396003)(366004)(55016002)(64756008)(66556008)(66476007)(66446008)(86362001)(4326008)(8676002)(26005)(107886003)(66946007)(54906003)(52536014)(6916009)(71200400001)(478600001)(9686003)(316002)(5660300002)(76116006)(2906002)(33656002)(4744005)(83380400001)(186003)(8936002)(7696005)(6506007)(122000001)(38100700002)(53546011); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?lOEebuBl5VRxuM/dVAEzES22Lhbp7eaMIvep1JcGuRBae4rSsIwsuDSThbIC?= =?us-ascii?Q?zVgja4WAsKgJrNXVvV99oiXBlLZraid+H1omyfxcRtWuzAF47zdxQSe8Ej9s?= =?us-ascii?Q?o1pZxDKLn3P5gybp6L8bfR6lpeTxme+RktlFCqMZCGzbA+gHgwcLe/45sE/B?= =?us-ascii?Q?pr0XTYFR6K4Jh349B6TYJ4mCrFGKp81e9NPGUfJ31uBS5seHozkIB7mNen+b?= =?us-ascii?Q?DfokuYF8MS/ctz0Wn18jw/iQoMPntC9j3JC+4yGnevnt+/394XBEs3Jwf3cv?= =?us-ascii?Q?xeV6yiaiJBJp9IrWr2R5TuV1i4UJr90G8Tnlpwu4eFTTZl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QA88UmMSB3OPCOcbQXt0EsBZrnDGugRPMAxyOvX+FH?= =?us-ascii?Q?s7FjtbQAowMEjbLF1Wmx2Jh9b3pFazmWLEdLItD/8tL+t1IDzkBIBtuoBx0a?= =?us-ascii?Q?/vE=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: PH0PR18MB4672.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0e070f0-9381-46aa-8831-08d9148240e4 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 May 2021 13:39:51.4348 (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: /RqzYue3wy9ghXYOKvQKRkoQ90TRSBc2OpjrVQvE0NB0+6zvWjcL82z4qc8YT11hkiQAuoEWNfeKEoka8WLgXA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR18MB4720 X-Proofpoint-GUID: -Sw0ES5TiHuVpHUKhhLhPg-85qS12ncs X-Proofpoint-ORIG-GUID: -Sw0ES5TiHuVpHUKhhLhPg-85qS12ncs X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-05-11_02:2021-05-11, 2021-05-11 signatures=0 Subject: Re: [dpdk-dev] [EXT] Re: [PATCH] common/cpt: add checks for offset overflow 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" Hi Thomas, > Should it be merged in DPDK 21.05-rc3, or wait for 21.08? Either is fine. This patch is just adding some extra parameter checks. Thanks, Anoob > -----Original Message----- > From: Thomas Monjalon > Sent: Tuesday, May 11, 2021 6:59 PM > To: Jerin Jacob Kollanukkaran ; Anoob Joseph > > Cc: Akhil Goyal ; dev@dpdk.org; Ankur Dwivedi > ; Tejasree Kondoj ; > dev@dpdk.org > Subject: [EXT] Re: [dpdk-dev] [PATCH] common/cpt: add checks for offset > overflow >=20 > External Email >=20 > ---------------------------------------------------------------------- > 10/05/2021 11:44, Anoob Joseph: > > Add checks to catch overflow of any offsets. Offset control word > > specifies, > > > > 1. 16 bits encryption offset > > 2. 8 bits IV offset > > 3. 8 bits auth offset > > > > Signed-off-by: Anoob Joseph >=20 > Should it be merged in DPDK 21.05-rc3, or wait for 21.08? >=20 >=20