From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 2C34433F8A4; Sat, 30 May 2026 16:28:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780158515; cv=none; b=k2iUct9kDwhRTsxFxQyPoIAnXzDFzJZ+ZGiR9ll1caNaRdx0BeeRyKqxEakOJrPHRIsOSWTfXHSmFVdR7xP6H/PikEL04lcxzjbT/XNZnYF5ka1zfjEZTdzRJpecexaRq+LtT3nFfnzg2w/+SoIjTGEk1tEzRbVu+F905NTYjzM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780158515; c=relaxed/simple; bh=SDm8x/xvQ/2gbJJSv7rrg4iED6ZK5NELaG5o90LnNfA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CjEIfYqt5KgA7FXgiT23duHTEYhteH8uoGk1Xx2Nu6CWBgeLRMTECt+vsrbqjEdCiM/nnB7Wps7yei8RGdLtpbKo5mUswaCb/A0pDWqN2dwJhxu6cPWuCERpf1TuQEg1MZRICfZ+MTqt0TmdJRT2eLuz5L1gyVw/CIZaVcrsCfc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZKwF1Lvp; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ZKwF1Lvp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87C621F00893; Sat, 30 May 2026 16:28:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780158514; bh=rdonv+Rj8BGqg3BYepgdiBTSsNUDzFiuC1LwZrUtk6A=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ZKwF1Lvp2ZLc+jGU+ujwBDyXMWLmNZMWyEFOwpOwTrWvQ+bK121JbTzOHpTC8JyyN JjxrOZmWBYgJ38ke32ynuFMDGe5Mg7yYcb9lTGsAyGx6KN6CsgzXW1bRoXZq1RDW8O Qc/5uMNXol3fH4BhLxpHOvW3+1RX+n1JZZLWhJ3E= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, stable , Dan Carpenter , Lin YuChen Subject: [PATCH 6.1 059/969] staging: rtl8723bs: initialize le_tmp64 in rtw_BIP_verify() Date: Sat, 30 May 2026 17:53:03 +0200 Message-ID: <20260530160302.017089167@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260530160300.485627683@linuxfoundation.org> References: <20260530160300.485627683@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.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Lin YuChen commit 8c964b82a4e97ec7f25e17b803ee196009b38a57 upstream. Initialize le_tmp64 to zero in rtw_BIP_verify() to prevent using uninitialized data. Smatch warns that only 6 bytes are copied to this 8-byte (u64) variable, leaving the last two bytes uninitialized: drivers/staging/rtl8723bs/core/rtw_security.c:1308 rtw_BIP_verify() warn: not copying enough bytes for '&le_tmp64' (8 vs 6 bytes) Initializing the variable at the start of the function fixes this warning and ensures predictable behavior. Fixes: 554c0a3abf21 ("staging: Add rtl8723bs sdio wifi driver") Cc: stable Reported-by: Dan Carpenter Closes: https://lore.kernel.org/linux-staging/abvwIQh0CHTp4wNJ@stanley.mountain/ Signed-off-by: Lin YuChen Reviewed-by: Dan Carpenter Link: https://patch.msgid.link/20260320172502.167332-1-starpt.official@gmail.com Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8723bs/core/rtw_security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/staging/rtl8723bs/core/rtw_security.c +++ b/drivers/staging/rtl8723bs/core/rtw_security.c @@ -1364,7 +1364,7 @@ u32 rtw_BIP_verify(struct adapter *padap u8 mic[16]; struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; __le16 le_tmp; - __le64 le_tmp64; + __le64 le_tmp64 = 0; ori_len = pattrib->pkt_len-WLAN_HDR_A3_LEN+BIP_AAD_SIZE; BIP_AAD = rtw_zmalloc(ori_len);