Loading
wifi: virt_wifi: don't use strlen() in const context
stable inclusion from stable-v5.10.224 commit be53b70fc08198fa090a4d26e8a7c7c641de8aea category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAKQ2K CVE: CVE-2024-43841 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=be53b70fc08198fa090a4d26e8a7c7c641de8aea -------------------------------- [ Upstream commit 6e909f489191b365364e9d636dec33b5dfd4e5eb ] Looks like not all compilers allow strlen(constant) as a constant, so don't do that. Instead, revert back to defining the length as the first submission had it. Fixes: b5d14b0c6716 ("wifi: virt_wifi: avoid reporting connection success with wrong SSID") Reported-by:kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202407090934.NnR1TUbW-lkp@intel.com/ Closes: https://lore.kernel.org/oe-kbuild-all/202407090944.mpwLHGt9-lkp@intel.com/ Signed-off-by:
Johannes Berg <johannes.berg@intel.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
dinglongwei <dinglongwei1@huawei.com>