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 2A99AA0C4E; Fri, 15 Oct 2021 15:02:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DBC13411CB; Fri, 15 Oct 2021 15:02:44 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id ADA62410F1; Fri, 15 Oct 2021 15:02:42 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10137"; a="251354528" X-IronPort-AV: E=Sophos;i="5.85,375,1624345200"; d="scan'208";a="251354528" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Oct 2021 06:02:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,375,1624345200"; d="scan'208";a="492551816" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by orsmga008.jf.intel.com with ESMTP; 15 Oct 2021 06:02:41 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 15 Oct 2021 06:02:40 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Fri, 15 Oct 2021 06:02:40 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Fri, 15 Oct 2021 06:02:40 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Fri, 15 Oct 2021 06:02:40 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EEUqr/lEbCR1ZPu0NRpRFv8gOxG+EgLQWpU4l59VfWKNk7Vto4Aj/DusBWpiba9J26AuBPZKbimbm2sh1G0vaIHuCWNXYuplFhg5sc5P5yNT0bgl/5zCuHIIYq8TAJG0v/qRVRX6k0JAgmnzvzS0zxDKjukAvWA0QcBGxx4q1YKwad4p9YhVJRPUpwMxSlcq/WhA/WyY/OJxkGwAdpenrpU3gpjZ5E17z/FZvQJUCV4LW6a5vXUmKOaQAhFkSMDkJHpceUJDWHdknbMD1RwLzY8/Eb/61syRxzGB1xw8xwz9hsPdiqXawTQ5qV7IOWA1hAxI7ODONC5IVDymjGdljQ== 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=YVOZavb6z8cCNe7KWYd0xAVPo6cN/X9xCR4Njnk34t4=; b=MDQOKrOUYPZuq/nOCeiYLa0jPOsXQFum/jEsOocWnAIB67+vKFYBGcCW56RwttlKXgrp2bXbkqS9/3I+Lt4Okf45V7wc77pXdhslQfIfc91niL6oaiIZchWnlJZIz/B9S6SMV28uufq/u8edcI9BXVVbp0WHS5N9Nj11a6A2SKPbfC+KndGXEFxK7mPLkOHXBq4D1/dx1jSC1Xkkp7RdHJq5g6Q/Y1PJ17KGo4LLWzZUDyVHtm34Cn1bM7QfxGMHcHFAnE/2xmbTxfYBfn7ZE89VEZZpqSQU8QuyNmXrNY8UsJ3D3uqFqaABDYpIaMikBnBsyMmUZ5YwxwjcLOV+BA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YVOZavb6z8cCNe7KWYd0xAVPo6cN/X9xCR4Njnk34t4=; b=RXp8aZG1YNpOOmwWp7C/9qgoK31kjL7nf8cK4HswQiPRPc7/Ls8t0Q8K+kG4mQZdF+zGyHQmhsTXm2iXEjhk6JZnvakdk/x99VcpbErghVvJYnTRMKschZv/lbfXzP2XE/hFB70LMePYF7LJsgKc+Gw4GMiydJ9k38HvxPVAFic= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5013.namprd11.prod.outlook.com (2603:10b6:510:30::21) by PH0PR11MB4936.namprd11.prod.outlook.com (2603:10b6:510:42::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Fri, 15 Oct 2021 13:02:38 +0000 Received: from PH0PR11MB5013.namprd11.prod.outlook.com ([fe80::4c6a:b2b:c561:4c85]) by PH0PR11MB5013.namprd11.prod.outlook.com ([fe80::4c6a:b2b:c561:4c85%8]) with mapi id 15.20.4587.026; Fri, 15 Oct 2021 13:02:37 +0000 To: David Marchand CC: dev , "Wang, Yipeng1" , "Gobriel, Sameh" , Bruce Richardson , dpdk stable References: <1634153265-193315-1-git-send-email-vladimir.medvedkin@intel.com> <1634233699-197151-1-git-send-email-vladimir.medvedkin@intel.com> From: "Medvedkin, Vladimir" Message-ID: <543fb591-d38a-5573-1bbc-db6a0c624893@intel.com> Date: Fri, 15 Oct 2021 15:02:31 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.14.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB3PR06CA0029.eurprd06.prod.outlook.com (2603:10a6:8:1::42) To PH0PR11MB5013.namprd11.prod.outlook.com (2603:10b6:510:30::21) MIME-Version: 1.0 Received: from [192.198.151.51] (192.198.151.51) by DB3PR06CA0029.eurprd06.prod.outlook.com (2603:10a6:8:1::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16 via Frontend Transport; Fri, 15 Oct 2021 13:02:36 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4b689784-01e3-470a-1143-08d98fdc102d X-MS-TrafficTypeDiagnostic: PH0PR11MB4936: X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +Ph1skmeSBnENuESRD8wAuH6NykB13qSPjUomjMoDSKQFz3EUOQPXG8A0LDhXxWU/T4l/6gRFECY4d1nDdA3yDXC7oc3MbvxAkrDJKI+Yj087yAtrNxwyN8/a2wAhAyRjG/G50tmoxLepTh8/UY1EvCcd5SKJYQ9WQD5PGa8MRM+JyiyDW0GtQj3Udxg03DoCTwzr6G103bHc8Qly+mdny1xwj+nhJoV3AmaQLQIbVPgqJSkdPs7BrjJ1mKrAOpbfLIc+Vq2972db/syuVUHYL5g0SdwdbYItovoeG97025XNuTN81SW1ZQdz55975wuDFq5gDo5xgCEUqUTGAv0OufFO7aYMQIz9QnY3nCDv5oMWGmL/O1XKu71BNvtUKeq2KfO3PsL/NjgOG8kQQSkgcb6tAdpTTaqs/WVAS4C0PovSF1X0ZtHj0esBKVuFT5YYx8xnSfLx9gD6AuEzmIeUX4aRc07Ox6zXjFTBjHicNzI3LGb30jMkszXUFGbQD6C5J9QYStAZwIdHaj9IBo+R6mjm9JPONe2/LOV5xFpj9MriO/XbjHhFvkbPuqFH3I4LqPPtoZndufyIJPO9gBSvCljtoPij4ufeuZ/zbY06Ng3+tX/9Dm1/ho8vOEdhcRfM2zer2FPxr8VQi2MB/lHTmRz54D6E+VGENwJawIyLh/winYqcQggB3Yu6kpPEnqP9/WqOMUieUsaLUmolNFhwzU1akM/2nlH4257arhwxhgyoAFl4rp7npFpU1/tmXBmFsrVAvcKyhXGkCnTQ+Kucw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5013.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(4326008)(6916009)(316002)(4744005)(53546011)(38100700002)(31686004)(6706004)(6666004)(82960400001)(508600001)(16576012)(54906003)(36756003)(26005)(186003)(2616005)(66476007)(31696002)(66946007)(66556008)(2906002)(5660300002)(8936002)(8676002)(956004)(86362001)(6486002)(3940600001)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?U0dmeDNUNGp5cStzbVpPakkzOUlWamNYZXYvMXlxVjhEeFZDbXdMNGhqQjN4?= =?utf-8?B?MVF5VU04OU9vTDVhOTJ6NGI2OEE3ekVhRHhiVi9VRXo4SjJxVjJBOE8wRStT?= =?utf-8?B?WDBNdXM2SkJnMG5TemRPYmdvbDNrWEluMkF0L3JEbm04TW4rVGdDM3VNREZy?= =?utf-8?B?ekkxUn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RW52RE9B?= =?utf-8?B?eVljd2lNdFFCdVYwTktYUnhmSkpkczNZU2taQXdhcXZhNmZuRndsMFExSk1k?= =?utf-8?B?RDNqTS9PcXl6dHc0WXVUTlR6ZmFnUk55NXVCUE45NWhsTHYwWU4rVHA3YUZG?= =?utf-8?B?eHMwck9UR2E1dEFHUHlwb2MxbThWcVF4V0QxdlNtSDh6QnNTZE9BUDd2Q0Qv?= =?utf-8?B?K3FMSldMb0ZKNkw3akdVZ1hRSDlhQVBnODkwellmc3l4QUF6N2J0UVI2SDdI?= =?utf-8?B?NktVL2k5alZoY0NzVUZnKzAzTmNTVERxY3ltVWF5aEtuc2dsaXV5aXIvMFR3?= =?utf-8?B?NStqKzdJVjM5eC8rb2c4bDNSRi9FUHI4bCtFYnpMcFNoeDZWR3UrNXZST2VO?= =?utf-8?B?citmK0VBUkwvUXUveE14MWd1K2d0QVRoeXhGTXRDbTJLSDlya2YxYndDZm1B?= =?utf-8?B?NUxadGIwUnE4M2RtblVKYjBtT0Nhd0wrTlBnbkpoVGYwMjhseEFDengvM3cz?= =?utf-8?B?UGZBMjRydTRldzRlVUpadmNrNnRXVjFMbHdxejdQNUgwVmV5dWtobmNMVnN1?= =?utf-8?B?dkRieFZ4SDhlZXE0OTdGVXFTYmVZSVRaeTVuR0F3OUhlUEN1V1hLdVYyUEtr?= =?utf-8?B?TUVNdmUrN3VrYnZJM1BTTG9wVzFOTW9xKzFqY212b1pROG5MNU9jd2pJWVE5?= =?utf-8?Q?BfLVIXERxTcAQziGEsuP17a6JL5IlOzWWGsvbeg?= X-MS-Exchange-CrossTenant-Network-Message-Id: 4b689784-01e3-470a-1143-08d98fdc102d X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5013.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2021 13:02:37.8294 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: StC19IGs7crsufu/kiL/wJ1UVfm/6s5hm/X2giAjiIdFqJ96ipuDuS2gs8NvTv7hT3ZD7f7JEy05cftXER5CDMJG1YWli0eshfvxRVnpYFw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4936 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3] test/hash: fix buffer 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 David, On 15/10/2021 11:33, David Marchand wrote: > On Thu, Oct 14, 2021 at 7:55 PM Vladimir Medvedkin > wrote: >> @@ -1607,6 +1611,17 @@ static struct rte_hash_parameters hash_params_ex = { >> }; >> >> /* >> + * Wrapper function around rte_jhash_32b. >> + * It is required because rte_jhash_32b() accepts the length >> + * as size of 4-byte units. >> + */ >> +static inline uint32_t >> +test_jhash_32b(const void *k, uint32_t length, uint32_t initval) >> +{ >> + return rte_jhash_32b(k, length >> 2, initval); >> +} > > I am confused. > Does it mean that rte_jhash_32b is not compliant with rte_hash_create API? > I think so too, because despite the fact that the ABI is the same, the API remains different with respect to the length argument. > -- Regards, Vladimir