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 8CE24A0548; Thu, 1 Apr 2021 17:15:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7EC971411B2; Thu, 1 Apr 2021 17:15:51 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 27C8F1410B1 for ; Thu, 1 Apr 2021 17:15:49 +0200 (CEST) IronPort-SDR: mlEMiC32pg5zfAAaBIz5e8HQbTDrv7KCLmEoZA98IL4HBDYNPHzmscSw7Cgjjm/7DMyctFNYAV +rC81cFT7+5g== X-IronPort-AV: E=McAfee;i="6000,8403,9941"; a="191744459" X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="191744459" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2021 08:15:46 -0700 IronPort-SDR: jLIWysJRaIfrwiXPsoH+/JIGLIBxq0XY4zP/RrISg2N8LxVaJTlkNYbeaJn6AyT8d3EViQrUch Ygiqj3uWeSmw== X-IronPort-AV: E=Sophos;i="5.81,296,1610438400"; d="scan'208";a="456025770" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.201.245]) ([10.213.201.245]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2021 08:15:45 -0700 To: "Min Hu (Connor)" , dev@dpdk.org Cc: thomas@monjalon.net, andrew.rybchenko@oktetlabs.ru References: <1616830688-65506-1-git-send-email-humin29@huawei.com> <1616830688-65506-3-git-send-email-humin29@huawei.com> From: Ferruh Yigit X-User: ferruhy Message-ID: Date: Thu, 1 Apr 2021 16:15:43 +0100 MIME-Version: 1.0 In-Reply-To: <1616830688-65506-3-git-send-email-humin29@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 2/3] ethdev: fix miss input validation when access reg info 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" On 3/27/2021 7:38 AM, Min Hu (Connor) wrote: > From: Chengchang Tang > > This patch adds validity check of input pointer in regs dump API. > > Fixes: 7a3f27cbf59b ("ethdev: add access to specific device info") > Fixes: 936eda25e8da ("net/hns3: support dump register") > Cc: stable@dpdk.org > > Signed-off-by: Chengchang Tang > Signed-off-by: Min Hu (Connor) Reviewed-by: Ferruh Yigit