From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] net: hns3: Fix for out-of-bounds access when setting pfc back pressure Date: Sat, 03 Nov 2018 15:42:27 -0700 (PDT) Message-ID: <20181103.154227.2202855234462473260.davem@davemloft.net> References: <1541074363-98630-1-git-send-email-linyunsheng@huawei.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: huangdaode@hisilicon.com, xuwei5@hisilicon.com, liguozhu@hisilicon.com, Yisen.Zhuang@huawei.com, john.garry@huawei.com, linuxarm@huawei.com, salil.mehta@huawei.com, lipeng321@huawei.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: linyunsheng@huawei.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:57920 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726727AbeKDHzI (ORCPT ); Sun, 4 Nov 2018 02:55:08 -0500 In-Reply-To: <1541074363-98630-1-git-send-email-linyunsheng@huawei.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Yunsheng Lin Date: Thu, 1 Nov 2018 20:12:43 +0800 > The vport should be initialized to hdev->vport for each bp group, > otherwise it will cause out-of-bounds access and bp setting not > correct problem. ... > Fixes: 67bf2541f4b9 ("net: hns3: Fixes the back pressure setting when sriov is enabled") > Signed-off-by: Yunsheng Lin Applied, thanks.