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 DCAFFA034F; Mon, 7 Jun 2021 09:28:32 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5CEB440147; Mon, 7 Jun 2021 09:28:32 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2053.outbound.protection.outlook.com [40.107.94.53]) by mails.dpdk.org (Postfix) with ESMTP id A71BB40041; Mon, 7 Jun 2021 09:28:30 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IPVNXFIUXbjtPUHn2OiyxkgYc+UC39YPpaOuKHdZ5WWvXgrkulu6mmnUt+WUpYplNDN1EVRc9xLzUeYJHHikaHGIPXfbdH7atvUtEDwbzOM4EEbA1cZlgt47AYW7eaV3HWHoy9bmTeOImxbCofV7w218DqXLJOpQDx96iGvoSbO1K1zeSPl+c+4gMPFaPCa+YiMFbRNYANfMQwfTBpJHEJFXZcnLwuitVZ9Zp3YS4ejN+hma4LLHCcjJymxiNGO5394Eam0C5CPp2nVOJr6Wq+WNBFvh9BnK/lWt6IuOJZ/TP8j07uymX7ExKeAVHHOT+92PhdEdqaxJaFoBSyzX1A== 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=VfrbxKiLU5GceZ2ayraXWHTPJAsnJNw1A1Vhb5Bj8AA=; b=Mw+pgMB6mUflgcWHFIU9c3OzpsDBRoorppzOaVNiUPuGDPHofwCN71LbiUMyVqcUXwjZtKZTq9rLmOeH8KpYaxczRTfDMZXB+15NJIXT+vmkcNJD5D7DpBQS4xiPt0iJYux5uo3dJqPJRp1hUv9dXmcw/6cXf7p5h9MpqL35p56+xPXNkxlSX0yhjqspcqictPscaiDskXkWhKS6l4MfqoPGVcxM17my9YAIYIo0ekYWkcMGWAYjOQI7EgHMm+5Jo1SukIX3AQQ96cfkMuKMPn3rY+7HxTidrmxOMif6YfgAKesAyTF0CZ8VGUzaTnLv8/2vZw4zPpJGMii7Qj7KkQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VfrbxKiLU5GceZ2ayraXWHTPJAsnJNw1A1Vhb5Bj8AA=; b=a8KIHvoKzl7Gz3YqDIx6kj9H7n/c0UeWquwH2YZHaCoIzjiYC41Aa8UbQTKqkxG8DsyWykC+wiwlvBCppHiTYoEEYuZlW1l6M1exD9/3MVdEGB+FnbAYtJ+JEimI4PWfsXIDba3fKvK6Ws/3VbtBfvlz2RmXCDhLwmoYl9wCxF7qg4UYxGqdpFqL9t8NqFxqsFq87hoVkIApLVvmM328IL0x+lohHm/LJmJBaBrzKHBzGLhbf4A/8cMBUVKxQsXvBH6P+YycQBlJq48Gxga/fwdNR/SK+64aWC1+KKNr9PjNfxWWnVOHWjBrco2bdtTTVJ5YoysGmhWBUSxGJ4KSWQ== Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39a::7) by DM8PR12MB5432.namprd12.prod.outlook.com (2603:10b6:8:32::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4195.20; Mon, 7 Jun 2021 07:28:29 +0000 Received: from DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::70df:ef1e:d98c:ce4]) by DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::70df:ef1e:d98c:ce4%6]) with mapi id 15.20.4195.029; Mon, 7 Jun 2021 07:28:29 +0000 From: Matan Azrad To: Michael Baum , "dev@dpdk.org" CC: Raslan Darawsheh , Slava Ovsiienko , "stable@dpdk.org" Thread-Topic: [PATCH 1/4] regex/mlx5: fix size of setup constants Thread-Index: AQHXVrVnLclyZ3YOCE+cvYhb/igCaqsIL+zw Date: Mon, 7 Jun 2021 07:28:29 +0000 Message-ID: References: <20210601071122.1612432-1-michaelba@nvidia.com> In-Reply-To: <20210601071122.1612432-1-michaelba@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 13c87d83-e2b0-4ed7-f3f9-08d92985d8bf x-ms-traffictypediagnostic: DM8PR12MB5432: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2150; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9iSZretMYLTwuOEfMdG90ffeQlUXP7TUTTR9j7amWKe9Wn807EMO9sPxgbjuFm4CMpIe+X/NTLVI7SLjWyleFF0NmJaKJNUY8qapCgIb/yEqiPV7oURc14Cl5qTglsowTo52d8O5fhomiy7UZEUnLkyEwBgNC/0I62vVADDGePFylhq2vF5Syt/Y2KlSVlF/wszi8L8lro2ZS/5ToPXDs3HNf9RIR9/Sog2PdK97KH0SuP6aD2ONVTe1A6nRvEmHIEOFjW53oN2qfxs1Qhy1ZpAhaapkaAQUIJ0yz7xJVWVVp+04NsN7sxBdFEqvZ6RgBZr2bJLLkdCmtYLyLg0v8nA5KJh+0+fhIRfAmfx418JwQJpYyVYyBnDm7f8j6Qwt3hQKrQnQ37hw3TlIXMPQmSgTIdS5v3KphuxcUr5vZmZSU7SPeosBMhhnfiJj1v8vpuExtE/ocSlTYC53txJp2sYxSTPd4aYzVBVHO7KOQLtoMlRS6Lf007K66qGakVmnFaQ5AWeMZiSAFqHUMzUYPBeJO+bBf+nYJAXAjqNgiP15b1wTe4IHnNjjQ4Rf6dNhZFEKQ3CzuGZLK5pit7sR87FK9VtVHDlEnKbIT2eaRBQ= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5389.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(39860400002)(376002)(396003)(136003)(366004)(55016002)(66946007)(64756008)(66446008)(71200400001)(66476007)(66556008)(5660300002)(8676002)(7696005)(38100700002)(52536014)(122000001)(54906003)(8936002)(6506007)(86362001)(9686003)(76116006)(26005)(186003)(33656002)(450100002)(4326008)(2906002)(478600001)(53546011)(316002)(110136005)(4744005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?JwOmVppqAS6ChhykPNKPxDUDKZkST38cMSR9FeAbf6EcaaBIqpSD5OQyEzdf?= =?us-ascii?Q?Uk6JPK3RvYq1ilSrnx1YmYJD//OR1jM4sQC55mfyb9F4trsWi9ubSqxnNTEi?= =?us-ascii?Q?rkUR2/C6a+ar8Tbc3ZuHmoqkEV7dMQrGDaaxyDGevT8S9TVa7HnleKwAvDht?= =?us-ascii?Q?lSCatQ7ZTvLu/mG35Ceurh0KupWvpnrlj4Ws1ng3c+elHobn/bDu6K1ooPJF?= =?us-ascii?Q?VckA1HI+vrom9UPO3EPb7rvr0Onabso5LeqKDC2kBtpm5yFRj4KMIAhqnyhC?= =?us-ascii?Q?mLUBdhwkFddwV2+BOVsN0meD3RAZzUfRl8ATyRKhOsGF5Ig6hR4EzVWs+0F9?= =?us-ascii?Q?muK40pr95SjCFLc0FAOZKrxs17Vdl0l2mThDjVOCN6MljoLgl84NhqJd8KU2?= =?us-ascii?Q?CLk0gKIBBsuTBkSiGNeOnTskmEHVcm00Ag3m1iX88553l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vdrMSD45wSUj?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5389.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 13c87d83-e2b0-4ed7-f3f9-08d92985d8bf X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jun 2021 07:28:29.1900 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: IPVhv45RiE3GZ+Ik2zn5G8lIG6/A9J5g02nBg2I99Px1XohoUCH1QAIrlyKbZ1bw7DmAGfNrlHyo7ePXHWwTpg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5432 Subject: Re: [dpdk-dev] [PATCH 1/4] regex/mlx5: fix size of setup constants 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" From: Michael Baum > Sent: Tuesday, June 1, 2021 10:11 AM > To: dev@dpdk.org > Cc: Matan Azrad ; Raslan Darawsheh > ; Slava Ovsiienko ; > stable@dpdk.org > Subject: [PATCH 1/4] regex/mlx5: fix size of setup constants >=20 > The constant representing the size of the metadata is defined as a unsign= ed > int variable with 32-bit. > Similarly the constant representing the maximal output is also defined as= a > unsigned int variable with 32-bit. >=20 > There is potentially overflowing expression when those constants are > evaluated using 32-bit arithmetic, and then used in a context that expect= s an > expression of type size_t (64 bits, unsigned). >=20 > Change the size of the above constants to 64-bit. >=20 > Fixes: 30d604bb1504 ("regex/mlx5: fix type of setup constants") > Cc: stable@dpdk.org >=20 > Signed-off-by: Michael Baum Acked-by: Matan Azrad