From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F8BEC432C0 for ; Wed, 27 Nov 2019 15:09:18 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 2B22720674 for ; Wed, 27 Nov 2019 15:09:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=monjalon.net header.i=@monjalon.net header.b="NgyaOoTm"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="TPIRXO2E" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2B22720674 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=monjalon.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E002F2B96; Wed, 27 Nov 2019 16:09:16 +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-dev] [dpdk-stable] [PATCH v2] ethdev: limit maximum number of queues X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" 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