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 7EAFCA0C4B for ; Fri, 15 Oct 2021 11:33:46 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 747C640692; Fri, 15 Oct 2021 11:33:46 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id EEAE540692 for ; Fri, 15 Oct 2021 11:33:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634290424; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jWvfZKG2VjLKP+NY+dPVOMbVm1x1Ii/dSCzDjaISzMA=; b=CdGIgzB0htCC1obcgfeEhbHSNvd1an4OWkfBGNP/rlmKkC5Ii+y97bbmYIn3UCvv4vAY8X DYgD+N5UpiHSACGl36CtjJDCGMpLhMS5cZ4DDzZvdeh76h9XKQt7Or3l5gQ2LN7c3BLx6p uZ1LFONin30o0sPsvGzJ9xea4kTKIu8= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-425-1LGRqBN9P86bzwhoaGT4pg-1; Fri, 15 Oct 2021 05:33:43 -0400 X-MC-Unique: 1LGRqBN9P86bzwhoaGT4pg-1 Received: by mail-lf1-f69.google.com with SMTP id k18-20020a05651210d200b003fd86616d39so1395518lfg.2 for ; Fri, 15 Oct 2021 02:33:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jWvfZKG2VjLKP+NY+dPVOMbVm1x1Ii/dSCzDjaISzMA=; b=GzEukKDcvnmDhhi+C1WiAwzZKt1VC/8K2vsFoRS6+CPJ9xVPjFPDV+KxOJx6BYjohX U+X6BcGrDUnakvNjTyvX9Lf4B8v5D05H076SuPasqk00WzzT8pnz1Zvwz0ucYzXbbEMZ 7FItSTghAbZcSQLiX2PFp03DL9I4GYoWG50sorAZJt59GE10A9+vqLVsKPZNaYv28lM6 RUiV1SgoGpqgpLUIJZDK4axpMZRlmohcsqmg2QsNo0UedIfS+fD1q54pIU7Frtgrrh76 0+Fy29vKu8bH7v0GKDPmKLahs6dtjT0abK8IxggEh12hOPxYT2TKPtQ4DaefFzmP2Og7 P0+A== X-Gm-Message-State: AOAM531emPjCp1UmCFZurqyt0UeVFAgDdDbJA+CPzPPgZuMLp3xgkoSX HxEiK4eW2IPEUd/2ZtHBgRRIPmIJW/Vm/ZhVRcf1qQdEwBjTmoZDoePttJn9xooCLCVINisKUzM hhwrygr9zDDhIUNDcioe/KI8= X-Received: by 2002:a2e:b6cc:: with SMTP id m12mr11111030ljo.297.1634290421800; Fri, 15 Oct 2021 02:33:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwggzPUXaQRnFM+S/0uZv3xQAlgDu+sxhwU9RJ2sMW1US1HYojZdJvvBddR1FJkdvUnY2vQk9XD/gqiT8hhbyg= X-Received: by 2002:a2e:b6cc:: with SMTP id m12mr11111006ljo.297.1634290421546; Fri, 15 Oct 2021 02:33:41 -0700 (PDT) MIME-Version: 1.0 References: <1634153265-193315-1-git-send-email-vladimir.medvedkin@intel.com> <1634233699-197151-1-git-send-email-vladimir.medvedkin@intel.com> In-Reply-To: <1634233699-197151-1-git-send-email-vladimir.medvedkin@intel.com> From: David Marchand Date: Fri, 15 Oct 2021 11:33:30 +0200 Message-ID: To: Vladimir Medvedkin Cc: dev , "Wang, Yipeng1" , "Gobriel, Sameh" , Bruce Richardson , dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-stable] [PATCH v3] test/hash: fix buffer overflow 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 Sender: "stable" 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? -- David Marchand