Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp834039lqb; Fri, 24 May 2024 15:17:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWZI8xi5DHLnB3OOne6QmqStKYy5WpljdSgkq/rxvGd9q54Q8WyuszX1Db88yja5bULcJ/SbNV+jc21t+HC/Gqi9jlNJYoj2RXCUA8UWA== X-Google-Smtp-Source: AGHT+IG9rfk/j8jo3V0Gw2jgaSScJ3e32x5MMJLyj1QtsgrfH6fNE0wJtUxB5HoUzDuLDISMrtoo X-Received: by 2002:a17:903:1c4:b0:1f3:7a3:8fc9 with SMTP id d9443c01a7336-1f4486c56f1mr44744805ad.3.1716589066719; Fri, 24 May 2024 15:17:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716589066; cv=pass; d=google.com; s=arc-20160816; b=Izbp2SH6Qb5k4zc9wxn3n7smNSwrR1BN/dZvH7oV7yy/OCCGxgDw2ArVXBWtY/5Jkm 0sDdr95FAYBExiA4ZwBpX+IaiINsgJbPrv4XhcKtG8VsSE0gOj40uWCw0RQv5k6tmJFn BaK6zLv/FDLCAb1vKQeYUSoLQqDei8npSV06YFO0+evi6GEVVInhIq/bnvpW6cpZA2Qn bsRiGnaJ7vq/2yc7x7FFW+oU1nKRm4zNOO4pmxZgN8W0iEDF4Umsh60J2NG9aoamvibZ RsPYmkiErp0pEKLTuCEgKm3X5Kbr4xpMC7pi1DLN12TbeJwSnwjfUWXRR6q/Fa5Q+X+r 6KyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wa5uvbum8ec3t/vEwgjJGeF84XdAMm3PGMPjp7dcDeE=; fh=LmEKsz0AVq8ugSHG+ztk3f2fnFsJGmxZAVqatp6bStw=; b=EWP6TLBtzzI9+ILz72xVAU9iH7lMoABr8Qp/PHkxLEbHjDpcnjAIp9qXedDYMlR7Ct fu8GOsw15ttkgutVIB0fbQ6eP8v/Y2GKRSSTR7gdGW+ifVIg8CAF80VqT0ua9zTFweTu 51g8Rwscy5jFznO+zATw4l28aNuaRHDGLEWNbI74OG/8MWUcRFHOLb6oAdHTbcus0EDO VnEbRH44wKHI43ie0wq3MimpLWUVkX9iShduh/xj3wOOS3l9To2w2JylJ/bA/0SO1fqV 9yLJUX2Ajm05dwiH40HFp00zgdWJAIsQULhAEk6ap9UZyBFV4cfLs6iBWGrci0kCoywt SiYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=egPoI8j6; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-8051-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c971ac6si19754315ad.281.2024.05.24.15.17.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 15:17:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8051-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=egPoI8j6; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-8051-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2A072B217F5 for ; Fri, 24 May 2024 22:17:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82B511DFFC; Fri, 24 May 2024 22:17:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="egPoI8j6" X-Original-To: linux-wireless@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 CECDF2C6BD; Fri, 24 May 2024 22:17:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716589059; cv=none; b=HLTHkJDZ+BB1YSMqd3W6z0lktMzmFGCwxGxMFG15gAQvF1NgqfCMvATeI8vbn81GvkyK9wdNmZj0cnFtLo3kcyeyoJT0f+vjkcQsk8ds2ddiKoCAMEVyvrhkz3j/Oa93jwMIvLf/TEc2D9z9+hekYegdLJN7PGmppZV/58xLYCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716589059; c=relaxed/simple; bh=M9EArhODLrmkGtQBy/pHxWq4JteMIdZO33MT7+dNYYo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DxbST1fZxYRuEwPbH5bdUno7l8+NQ+XMP4tOWy2py+7bvR2aRRHbyZMFFfUnKisMa21SwCHF53LnHAkkp0IlrZQm5Z5S/CM16oIl0ZZB8GsQFSpF44+/pJh/iu4xDiEv7B+pDJH0V676A/9uIN2AAwlGyaSsyJqhMaF6xng6GJk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=egPoI8j6; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716589057; x=1748125057; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=M9EArhODLrmkGtQBy/pHxWq4JteMIdZO33MT7+dNYYo=; b=egPoI8j68C92kvra9TjaZV3uHvk/vTJwDiSqK3zSuF5YkZrjNdSGpv/C rJlXcsrsW3ddfNUEasNT2bgMbiso4lEEp7yyGqG5/ZeYuV4c176kDJkJc Q4zBVekzBm3BaSjXiWNZkq6DmBrbSVQk8VYESaZgTZHV+thTcOj44+juw oZkUA/2VNJtHidCt/fOaJVrNg8zrYv3ZEslycFetOftDALekiqx4fA0RR UsZ+/e31QFrIvY8G2Q6Uz5bBE2XkyKGP1EaCsC8kJtn74zkEYskvQEA9G 4AAwcn6E+pIee7V6wE9v4Vs13dXh0Tyk+OYbvXKes2U9taIIq8A4nelqo A==; X-CSE-ConnectionGUID: QUlIYGOKQBujuR8bejOYwg== X-CSE-MsgGUID: a8Nn2sdrTfO93/htkXStqA== X-IronPort-AV: E=McAfee;i="6600,9927,11082"; a="13209453" X-IronPort-AV: E=Sophos;i="6.08,186,1712646000"; d="scan'208";a="13209453" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2024 15:17:36 -0700 X-CSE-ConnectionGUID: 5lZWG2J3QcmScsKt8SZI3w== X-CSE-MsgGUID: MDqR4ITkTKSYoJ8aWSNLAw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,186,1712646000"; d="scan'208";a="34254867" Received: from unknown (HELO 0610945e7d16) ([10.239.97.151]) by fmviesa010.fm.intel.com with ESMTP; 24 May 2024 15:17:34 -0700 Received: from kbuild by 0610945e7d16 with local (Exim 4.96) (envelope-from ) id 1sAdE9-0005xi-0K; Fri, 24 May 2024 22:17:30 +0000 Date: Sat, 25 May 2024 06:17:20 +0800 From: kernel test robot To: Sascha Hauer , linux-wireless@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Brian Norris , Francesco Dolcini , Kalle Valo , David Lin , Sascha Hauer Subject: Re: [PATCH] wifi: mwifiex: fix parsing of more than two AKM suites Message-ID: <202405250631.g417GL0g-lkp@intel.com> References: <20240523081428.2852276-1-s.hauer@pengutronix.de> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240523081428.2852276-1-s.hauer@pengutronix.de> Hi Sascha, kernel test robot noticed the following build warnings: [auto build test WARNING on wireless-next/main] [also build test WARNING on wireless/main linus/master v6.9 next-20240523] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Sascha-Hauer/wifi-mwifiex-fix-parsing-of-more-than-two-AKM-suites/20240523-161947 base: https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main patch link: https://lore.kernel.org/r/20240523081428.2852276-1-s.hauer%40pengutronix.de patch subject: [PATCH] wifi: mwifiex: fix parsing of more than two AKM suites config: x86_64-randconfig-122-20240525 (https://download.01.org/0day-ci/archive/20240525/202405250631.g417GL0g-lkp@intel.com/config) compiler: gcc-11 (Ubuntu 11.4.0-4ubuntu1) 11.4.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240525/202405250631.g417GL0g-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202405250631.g417GL0g-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/net/wireless/marvell/mwifiex/uap_cmd.c:54:17: sparse: sparse: cast to restricted __le16 drivers/net/wireless/marvell/mwifiex/uap_cmd.c:72:17: sparse: sparse: cast to restricted __le16 vim +54 drivers/net/wireless/marvell/mwifiex/uap_cmd.c 27 28 static void woal_check_rsn_ie(const struct IEEEtypes_Rsn_t *rsn_ie, int len, 29 struct mwifiex_uap_bss_param *bss_config, u8 *pairwise_cipher) 30 { 31 int left, count, i; 32 struct wpa_suite_ucast *key_mgmt; 33 34 left = len; 35 if (left < (int)sizeof(struct IEEEtypes_Rsn_t)) 36 return; 37 38 bss_config->wpa_cfg.group_cipher = 0; 39 *pairwise_cipher = 0; 40 bss_config->key_mgmt = 0; 41 42 /* check the group cipher */ 43 switch (be32_to_cpu(rsn_ie->group_cipher)) { 44 case WLAN_CIPHER_SUITE_TKIP: 45 bss_config->wpa_cfg.group_cipher = CIPHER_TKIP; 46 break; 47 case WLAN_CIPHER_SUITE_CCMP: 48 bss_config->wpa_cfg.group_cipher = CIPHER_AES_CCMP; 49 break; 50 default: 51 break; 52 } 53 > 54 count = le16_to_cpu(rsn_ie->pairwise_cipher.count); 55 for (i = 0; i < count; i++) { 56 switch (be32_to_cpu(rsn_ie->pairwise_cipher.suite[i])) { 57 case WLAN_CIPHER_SUITE_TKIP: 58 *pairwise_cipher |= CIPHER_TKIP; 59 break; 60 case WLAN_CIPHER_SUITE_CCMP: 61 *pairwise_cipher |= CIPHER_AES_CCMP; 62 break; 63 default: 64 break; 65 } 66 } 67 left -= sizeof(struct IEEEtypes_Rsn_t) + (count - 1) * sizeof(__be32); 68 if (left < (int)sizeof(struct wpa_suite_ucast)) 69 return; 70 71 key_mgmt = ((void *)rsn_ie + sizeof(struct IEEEtypes_Rsn_t) + (count - 1) * sizeof(__be32)); 72 count = le16_to_cpu(key_mgmt->count); 73 if (left < (int)(sizeof(struct wpa_suite_ucast) + 74 (count - 1) * sizeof(__be32))) 75 return; 76 77 for (i = 0; i < count; i++) { 78 switch (be32_to_cpu(key_mgmt->suite[i])) { 79 case WLAN_AKM_SUITE_8021X: 80 bss_config->key_mgmt |= KEY_MGMT_EAP; 81 break; 82 case WLAN_AKM_SUITE_PSK: 83 bss_config->key_mgmt |= KEY_MGMT_PSK; 84 break; 85 case WLAN_AKM_SUITE_PSK_SHA256: 86 bss_config->key_mgmt |= KEY_MGMT_PSK_SHA256; 87 break; 88 case WLAN_AKM_SUITE_SAE: 89 bss_config->key_mgmt |= KEY_MGMT_SAE; 90 break; 91 case WLAN_AKM_SUITE_OWE: 92 bss_config->key_mgmt |= KEY_MGMT_OWE; 93 break; 94 } 95 } 96 } 97 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki