From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E8C4245010; Tue, 30 Sep 2025 15:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759245928; cv=none; b=a/LPO5Vo8qRgTl/RJttaNYXfjqo449m9rKQDLSqZK38GSK1vkSMdlX4YgMnBLiAnq3ZdvElOPOeyzCsDfeLQjDzg8uvIPJuj7/b6qxnEnb6TfKr4ViAiXMr/PBrxajAsSwkp/0BtZbMKVS92R1xjXm88Nof2Wfsz3mMXIlPxepw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759245928; c=relaxed/simple; bh=Sfw1NUfVZigEUPzuvE7gHQslySEkHR56IBCRm7DGRgw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sEfYmURrAmpZ4YrgjswNdT+Br7lrb6SokRCRVcjIk1mbJ3bo/wmo1M+k2ZKuv2+7BEZIx9h86SAR2GeprWFw1MdfEm2RLoRDTP1peFrD1nki/wznV8OEpwXqI0wk9FZSXixarvdG6jPaP6vGB4AxXaBHk4yuWoH+nUKvB0W98Oo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=w9Fg/sbh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="w9Fg/sbh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1183DC4CEF0; Tue, 30 Sep 2025 15:25:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759245928; bh=Sfw1NUfVZigEUPzuvE7gHQslySEkHR56IBCRm7DGRgw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w9Fg/sbhWbDvR8keJ7E9Gt/RZVnANFQDC1gc70BLkKD5o0eAnOve539d+MS67aRY3 CGHff4FXSozfE7QEAf8BFPkGA0uRjVVW2hQyxzxwMVIT0uZILxRUjhBnLH/B9NCJJi Fp5y/GV3MkXr5kbRIhwl1OOVwlL7Py/ZhzpGzu14= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Lukasz Czapnik , Aleksandr Loktionov , Przemek Kitszel , Simon Horman , Rafal Romanowski , Tony Nguyen Subject: [PATCH 6.6 61/91] i40e: add mask to apply valid bits for itr_idx Date: Tue, 30 Sep 2025 16:48:00 +0200 Message-ID: <20250930143823.725023665@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250930143821.118938523@linuxfoundation.org> References: <20250930143821.118938523@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Lukasz Czapnik commit eac04428abe9f9cb203ffae4600791ea1d24eb18 upstream. The ITR index (itr_idx) is only 2 bits wide. When constructing the register value for QINT_RQCTL, all fields are ORed together. Without masking, higher bits from itr_idx may overwrite adjacent fields in the register. Apply I40E_QINT_RQCTL_ITR_INDX_MASK to ensure only the intended bits are set. Fixes: 5c3c48ac6bf5 ("i40e: implement virtual device interface") Cc: stable@vger.kernel.org Signed-off-by: Lukasz Czapnik Reviewed-by: Aleksandr Loktionov Signed-off-by: Przemek Kitszel Reviewed-by: Simon Horman Tested-by: Rafal Romanowski Signed-off-by: Tony Nguyen Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c @@ -448,7 +448,7 @@ static void i40e_config_irq_link_list(st (qtype << I40E_QINT_RQCTL_NEXTQ_TYPE_SHIFT) | (pf_queue_id << I40E_QINT_RQCTL_NEXTQ_INDX_SHIFT) | BIT(I40E_QINT_RQCTL_CAUSE_ENA_SHIFT) | - (itr_idx << I40E_QINT_RQCTL_ITR_INDX_SHIFT); + FIELD_PREP(I40E_QINT_RQCTL_ITR_INDX_MASK, itr_idx); wr32(hw, reg_idx, reg); }