FAILED: patch "[PATCH] i40e: fix idx validation in config queues msg" failed to apply to 6.1-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 6.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y
git checkout FETCH_HEAD
git cherry-pick -x f1ad24c5abe1eaef69158bac1405a74b3c365115
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2025092935-lethargy-falcon-de3b@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From f1ad24c5abe1eaef69158bac1405a74b3c365115 Mon Sep 17 00:00:00 2001
From: Lukasz Czapnik <[email protected]>
Date: Wed, 13 Aug 2025 12:45:13 +0200
Subject: [PATCH] i40e: fix idx validation in config queues msg
Ensure idx is within range of active/initialized TCs when iterating over vf->ch[idx] in i40e_vc_config_queues_msg().
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +2 -2
@@ -2395,7 +2395,7 @@ static int i40e_vc_config_queues_msg(struct i40e_vf *vf, u8 *msg) }if (vf->adq_enabled) { -if (idx >=ARRAY_SIZE (vf->ch)) { +if (idx >= vf->num_tc) { aq_ret = -ENODEV ; goto error_param; }
@@ -2416,7 +2416,7 @@ static int i40e_vc_config_queues_msg(struct i40e_vf *vf, u8 *msg)* to its appropriate VSIs based on TC mapping */ if (vf->adq_enabled) { -if (idx >=ARRAY_SIZE (vf->ch)) { +if (idx >= vf->num_tc) { aq_ret = -ENODEV ; goto error_param; }
Sasha Levin
maintainerPATCH 1/1 i40e: fix idx validation in config queues msg
From: Lukasz Czapnik <[email protected]>
[ Upstream commit f1ad24c5abe1eaef69158bac1405a74b3c365115 ]
Ensure idx is within range of active/initialized TCs when iterating over vf->ch[idx] in i40e_vc_config_queues_msg().
--- drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +2 -2
@@ -2386,7 +2386,7 @@ static int i40e_vc_config_queues_msg(struct i40e_vf *vf, u8 *msg) }if (vf->adq_enabled) { -if (idx >=ARRAY_SIZE (vf->ch)) { +if (idx >= vf->num_tc) { aq_ret =I40E_ERR_NO_AVAILABLE_VSI ; goto error_param; }
@@ -2407,7 +2407,7 @@ static int i40e_vc_config_queues_msg(struct i40e_vf *vf, u8 *msg)* to its appropriate VSIs based on TC mapping */ if (vf->adq_enabled) { -if (idx >=ARRAY_SIZE (vf->ch)) { +if (idx >= vf->num_tc) { aq_ret =I40E_ERR_NO_AVAILABLE_VSI ; goto error_param; }
Signature · 1 line
2.51.0