From: Michal Kubiak <michal.kubiak@intel.com>
To: Ding Hui <dinghui@sangfor.com.cn>
Cc: <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>,
<pabeni@redhat.com>, <intel-wired-lan@lists.osuosl.org>,
<jesse.brandeburg@intel.com>, <anthony.l.nguyen@intel.com>,
<keescook@chromium.org>, <grzegorzx.szczurek@intel.com>,
<mateusz.palczewski@intel.com>, <mitch.a.williams@intel.com>,
<gregory.v.rose@intel.com>, <jeffrey.t.kirsher@intel.com>,
<simon.horman@corigine.com>, <netdev@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <linux-hardening@vger.kernel.org>,
<pengdonglin@sangfor.com.cn>, <huangcun@sangfor.com.cn>
Subject: Re: [PATCH net v2 0/2] iavf: Fix issues when setting channels concurrency with removing
Date: Thu, 20 Apr 2023 17:56:22 +0200 [thread overview]
Message-ID: <ZEFgplaRuxaBRxlB@localhost.localdomain> (raw)
In-Reply-To: <20230419150709.24810-1-dinghui@sangfor.com.cn>
On Wed, Apr 19, 2023 at 11:07:07PM +0800, Ding Hui wrote:
> The patchset fix two issues which can be reproduced by the following script:
>
> [root@host ~]# cat repro.sh
> #!/bin/bash
>
> pf_dbsf="0000:41:00.0"
> vf0_dbsf="0000:41:02.0"
> g_pids=()
>
> function do_set_numvf()
> {
> echo 2 >/sys/bus/pci/devices/${pf_dbsf}/sriov_numvfs
> sleep $((RANDOM%3+1))
> echo 0 >/sys/bus/pci/devices/${pf_dbsf}/sriov_numvfs
> sleep $((RANDOM%3+1))
> }
>
> function do_set_channel()
> {
> local nic=$(ls -1 --indicator-style=none /sys/bus/pci/devices/${vf0_dbsf}/net/)
> [ -z "$nic" ] && { sleep $((RANDOM%3)) ; return 1; }
> ifconfig $nic 192.168.18.5 netmask 255.255.255.0
> ifconfig $nic up
> ethtool -L $nic combined 1
> ethtool -L $nic combined 4
> sleep $((RANDOM%3))
> }
>
> function on_exit()
> {
> local pid
> for pid in "${g_pids[@]}"; do
> kill -0 "$pid" &>/dev/null && kill "$pid" &>/dev/null
> done
> g_pids=()
> }
>
> trap "on_exit; exit" EXIT
>
> while :; do do_set_numvf ; done &
> g_pids+=($!)
> while :; do do_set_channel ; done &
> g_pids+=($!)
>
> wait
>
>
> Ding Hui (2):
> iavf: Fix use-after-free in free_netdev
> iavf: Fix out-of-bounds when setting channels on remove
>
> drivers/net/ethernet/intel/iavf/iavf_ethtool.c | 4 +++-
> drivers/net/ethernet/intel/iavf/iavf_main.c | 6 +-----
> 2 files changed, 4 insertions(+), 6 deletions(-)
For the series:
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
>
> --
> 2.17.1
>
prev parent reply other threads:[~2023-04-20 15:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-19 15:07 [PATCH net v2 0/2] iavf: Fix issues when setting channels concurrency with removing Ding Hui
2023-04-19 15:07 ` [PATCH net v2 1/2] iavf: Fix use-after-free in free_netdev Ding Hui
2023-04-21 17:58 ` [Intel-wired-lan] " Chittim, Madhu
2023-04-26 15:35 ` Michal Kubiak
2023-04-27 1:14 ` Ding Hui
2023-04-28 16:41 ` Tony Nguyen
2023-04-19 15:07 ` [PATCH net v2 2/2] iavf: Fix out-of-bounds when setting channels on remove Ding Hui
2023-04-19 17:03 ` Simon Horman
2023-04-20 15:56 ` Michal Kubiak [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZEFgplaRuxaBRxlB@localhost.localdomain \
--to=michal.kubiak@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=dinghui@sangfor.com.cn \
--cc=edumazet@google.com \
--cc=gregory.v.rose@intel.com \
--cc=grzegorzx.szczurek@intel.com \
--cc=huangcun@sangfor.com.cn \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jeffrey.t.kirsher@intel.com \
--cc=jesse.brandeburg@intel.com \
--cc=keescook@chromium.org \
--cc=kuba@kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mateusz.palczewski@intel.com \
--cc=mitch.a.williams@intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pengdonglin@sangfor.com.cn \
--cc=simon.horman@corigine.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).