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 6FA7FA04E0 for ; Wed, 27 Nov 2019 15:47:55 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2A7BC2B8E; Wed, 27 Nov 2019 15:47:55 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 304712B8E for ; Wed, 27 Nov 2019 15:47:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574866073; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=++E7Fp8aIQwnO2hNHuguu9l1MxJJEWcR3zhoSbqX0Qk=; b=Qul/1/aeOYIlJEXpXN6e8YBbQ8E50QJqWp5xKSXb5DgyW8YBfcKMR8tJXi88gwasOpe8vQ wRW1I20FztHyqQQzV2rPCdv2I0vECUCowG0YLBa5CfiGRqFgdMwuyACDH6oeBvbUBPZHVS wbugiBJiQJtsK1XaoPFZzB3N6nY9ZLk= Received: from mail-ua1-f70.google.com (mail-ua1-f70.google.com [209.85.222.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-135-zEjnxuIaN8eKpi2d7oydLQ-1; Wed, 27 Nov 2019 09:47:51 -0500 Received: by mail-ua1-f70.google.com with SMTP id 108so688319uad.11 for ; Wed, 27 Nov 2019 06:47:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IJ9mZK4ZpaSaqVwFN6JUPf1XkB5VP6xBCqiAok72aTg=; b=Z8lomBBgKaqzYgRBvsKx9CXO301o1Z4cF0DzeeSpBCk794IL3CQu+9WxXa0m4XIDji 2djrdWa9y4h9+jwbcvN3g1I/7HSFafxLeftPYGZ7TrtsnuHTprzAdihUynhqWlxmIzQA gKavbXc6SUqoahmg5CCVfkdGFlcSfWokCx1tGJJzKU3zW9SalbNqaEh9zLOUwYeuP30b wL7jw1yIadQz8+W6dBliRHZ0VrgU8kx/GqbYhzBbNSyNl5HyTvu1AupeFLV8uoajuVAo QFC/B9S5xQvgG03P3mY0EnYPbwouZYn4PehCh/Fiihp270yvoSXUU7HTyzQ7tHGcvpA+ aDvg== X-Gm-Message-State: APjAAAV5lYm0sR3ta6LVW6pdIqZ2LdR7es5ihU5tv60VUcbljrGbTNLB EulDGMu8hsRe4RpAaPtjat9x38Rz1T1LTLsh9upf01BCy7Yp4P6tsqpHO+rDNhi3FBNS1Y+n3ta krwm0jI7fv0pJJPbaKml6pM8= X-Received: by 2002:a1f:cf43:: with SMTP id f64mr3115312vkg.18.1574866070610; Wed, 27 Nov 2019 06:47:50 -0800 (PST) X-Google-Smtp-Source: APXvYqzC8Y2EZ9JSY7nfQUvU75T/F8LIMgEu07vflhwKXYe21sy8G1750oOUHofQ5LJegz6Hm1IfihgupKnnQ8MkB1A= X-Received: by 2002:a1f:cf43:: with SMTP id f64mr3115294vkg.18.1574866070270; Wed, 27 Nov 2019 06:47:50 -0800 (PST) MIME-Version: 1.0 References: <20191127134213.9003-1-thomas@monjalon.net> <20191127143121.10590-1-thomas@monjalon.net> In-Reply-To: <20191127143121.10590-1-thomas@monjalon.net> From: David Marchand Date: Wed, 27 Nov 2019 15:47:38 +0100 Message-ID: To: Thomas Monjalon Cc: Ferruh Yigit , Andrew Rybchenko , dev , dpdk stable , Raslan Darawsheh X-MC-Unique: zEjnxuIaN8eKpi2d7oydLQ-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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" 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 --=20 David Marchand