From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AF1C3A04E1 for ; Wed, 27 Nov 2019 16:09:18 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 89B551B943; Wed, 27 Nov 2019 16:09:18 +0100 (CET) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 3F6712B8E; Wed, 27 Nov 2019 16:09:15 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 88AF3227AD; Wed, 27 Nov 2019 10:09:14 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 27 Nov 2019 10:09:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=+mxQ8GL4lgkRDXtPXmfJkF/21SwSx7L4/shM+yOtKDs=; b=NgyaOoTm6AZ6 APFWw0EL2BszZwiHpOb/SxAlR4ZMk3oNvv5OWWpSBCyXGcA2cUnXvhAp+4nLt8Ki HDlfmaCZ+ad7wiz+ZWvJCrOpT31Zlos207ObyB5y0bWAYrTiZd5Hq3+yUFZEzWAz yBuY7RdyBcOK20aTlryZ8RNlt843xjY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=+mxQ8GL4lgkRDXtPXmfJkF/21SwSx7L4/shM+yOtK Ds=; b=TPIRXO2EPnmQs5dALj79ET/mBVmK6PczPbJ/wZEeABtk7tPdGP9SxRSXK 787ID6pljE/NouwF2ZMa5k1jIy4jaVC0RgpyTKQIYp574EJZ6U9uXZ8AK3e6WBvY LNi44m7CrkUzkgjCsqHK6JyKDA9BePGgc/mVNOiZPeFHXeVl8TgRiAq6C5exPamV hCznzw2IM/cP3o5h64NGFotb+cgq9MWb/C9tF2lMZ6nBHVp5ixRFPmmhnB+XobMJ yoz+dEPQlUVPnjeAC8Aemn4e9MYWrPsn9mY3l5kGhJ3bbqEuYTswzVlfITn0LoYz RbINKJDMYUeWH4OjLAZpLKa/zXW7Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeihedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeejjedrudefgedrvddtfedrudekgeenucfrrghrrghmpehmrghilhhfrhhomhepthhh ohhmrghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id ED6EF80060; Wed, 27 Nov 2019 10:09:11 -0500 (EST) From: Thomas Monjalon To: dev Cc: stable@dpdk.org, David Marchand , Ferruh Yigit , Andrew Rybchenko , Raslan Darawsheh Date: Wed, 27 Nov 2019 16:09:10 +0100 Message-ID: <112491316.Y5uoue1LgI@xps> In-Reply-To: References: <20191127134213.9003-1-thomas@monjalon.net> <20191127143121.10590-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-stable] [PATCH v2] ethdev: limit maximum number of queues X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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" 27/11/2019 15:47, David Marchand: > On Wed, Nov 27, 2019 at 3:31 PM Thomas Monjalon wrote: > > > > A buffer overflow happens in testpmd with some drivers > > since the queue arrays are limited to RTE_MAX_QUEUES_PER_PORT. > > > > The advertised capabilities of mlx4, mlx5 and softnic > > for the number of queues were the maximum number: UINT16_MAX. > > They must be limited by the configured RTE_MAX_QUEUES_PER_PORT > > that applications expect to be respected. > > > > The limitation is applied at ethdev level (function rte_eth_dev_info_get), > > in order to force the configured limit for all drivers. > > > > Fixes: 14b53e27b30e ("ethdev: fix crash with multiprocess") > > Cc: stable@dpdk.org > > > > Reported-by: Raslan Darawsheh > > Signed-off-by: Thomas Monjalon > > Reviewed-by: Ferruh Yigit > > Reviewed-by: David Marchand Applied