All of lore.kernel.org
 help / color / mirror / Atom feed
* [zen-kernel-zen-kernel:5.9/zen-sauce 24/24] drivers/staging/wlan-ng/cfg80211.c:538:1: warning: the frame size of 2712 bytes is larger than 2048 bytes
@ 2020-10-13  0:03 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-13  0:03 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 10390 bytes --]

Hi Sultan,

First bad commit (maybe != root cause):

tree:   https://github.com/zen-kernel/zen-kernel 5.9/zen-sauce
head:   a49dc684580cbc31949bfc4220f8ed5346382c49
commit: a49dc684580cbc31949bfc4220f8ed5346382c49 [24/24] kbuild: Disable stack conservation for GCC
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/zen-kernel/zen-kernel/commit/a49dc684580cbc31949bfc4220f8ed5346382c49
        git remote add zen-kernel-zen-kernel https://github.com/zen-kernel/zen-kernel
        git fetch --no-tags zen-kernel-zen-kernel 5.9/zen-sauce
        git checkout a49dc684580cbc31949bfc4220f8ed5346382c49
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/staging/wlan-ng/p80211netdev.c:92:
   drivers/staging/wlan-ng/cfg80211.c: In function 'prism2_connect':
>> drivers/staging/wlan-ng/cfg80211.c:538:1: warning: the frame size of 2712 bytes is larger than 2048 bytes [-Wframe-larger-than=]
     538 | }
         | ^

vim +538 drivers/staging/wlan-ng/cfg80211.c

cb3126e60ffc1b Karl Relton       2010-06-03  431  
55da06eba89dc0 Teodora Baluta    2013-10-08  432  static int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  433  			  struct cfg80211_connect_params *sme)
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  434  {
c9573a8d1963ba sayli karnik      2016-09-18  435  	struct wlandevice *wlandev = dev->ml_priv;
cb3126e60ffc1b Karl Relton       2010-06-03  436  	struct ieee80211_channel *channel = sme->channel;
b6bb56e6aa2808 Edgardo Hames     2010-08-02  437  	struct p80211msg_lnxreq_autojoin msg_join;
cb3126e60ffc1b Karl Relton       2010-06-03  438  	u32 did;
cb3126e60ffc1b Karl Relton       2010-06-03  439  	int length = sme->ssid_len;
cb3126e60ffc1b Karl Relton       2010-06-03  440  	int chan = -1;
cb3126e60ffc1b Karl Relton       2010-06-03  441  	int is_wep = (sme->crypto.cipher_group == WLAN_CIPHER_SUITE_WEP40) ||
cb3126e60ffc1b Karl Relton       2010-06-03  442  	    (sme->crypto.cipher_group == WLAN_CIPHER_SUITE_WEP104);
cb3126e60ffc1b Karl Relton       2010-06-03  443  	int result;
cb3126e60ffc1b Karl Relton       2010-06-03  444  	int err = 0;
cb3126e60ffc1b Karl Relton       2010-06-03  445  
cb3126e60ffc1b Karl Relton       2010-06-03  446  	/* Set the channel */
cb3126e60ffc1b Karl Relton       2010-06-03  447  	if (channel) {
cb3126e60ffc1b Karl Relton       2010-06-03  448  		chan = ieee80211_frequency_to_channel(channel->center_freq);
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  449  		result = prism2_domibset_uint32(wlandev,
93d5a1dce98c03 Tim Collier       2018-09-26  450  						DIDMIB_DOT11PHY_DSSSTABLE_CURRENTCHANNEL,
cb3126e60ffc1b Karl Relton       2010-06-03  451  						chan);
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  452  		if (result)
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  453  			goto exit;
cb3126e60ffc1b Karl Relton       2010-06-03  454  	}
cb3126e60ffc1b Karl Relton       2010-06-03  455  
d34602de3ba29b Justin P. Mattock 2012-09-24  456  	/* Set the authorization */
cb3126e60ffc1b Karl Relton       2010-06-03  457  	if ((sme->auth_type == NL80211_AUTHTYPE_OPEN_SYSTEM) ||
cb3126e60ffc1b Karl Relton       2010-06-03  458  	    ((sme->auth_type == NL80211_AUTHTYPE_AUTOMATIC) && !is_wep))
cb3126e60ffc1b Karl Relton       2010-06-03  459  		msg_join.authtype.data = P80211ENUM_authalg_opensystem;
cb3126e60ffc1b Karl Relton       2010-06-03  460  	else if ((sme->auth_type == NL80211_AUTHTYPE_SHARED_KEY) ||
cb3126e60ffc1b Karl Relton       2010-06-03  461  		 ((sme->auth_type == NL80211_AUTHTYPE_AUTOMATIC) && is_wep))
cb3126e60ffc1b Karl Relton       2010-06-03  462  		msg_join.authtype.data = P80211ENUM_authalg_sharedkey;
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  463  	else
eed88971337309 Avinash Kumar     2013-09-06  464  		netdev_warn(dev,
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  465  			    "Unhandled authorisation type for connect (%d)\n",
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  466  			    sme->auth_type);
cb3126e60ffc1b Karl Relton       2010-06-03  467  
cb3126e60ffc1b Karl Relton       2010-06-03  468  	/* Set the encryption - we only support wep */
cb3126e60ffc1b Karl Relton       2010-06-03  469  	if (is_wep) {
cb3126e60ffc1b Karl Relton       2010-06-03  470  		if (sme->key) {
153c5d8191c261 Colin Ian King    2019-10-14  471  			if (sme->key_idx >= NUM_WEPKEYS)
153c5d8191c261 Colin Ian King    2019-10-14  472  				return -EINVAL;
0ca6d8e74489b0 Claudiu Beznea    2016-08-26  473  
cb3126e60ffc1b Karl Relton       2010-06-03  474  			result = prism2_domibset_uint32(wlandev,
eeeeacd83720c1 Tim Collier       2018-09-26  475  				DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID,
cb3126e60ffc1b Karl Relton       2010-06-03  476  				sme->key_idx);
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  477  			if (result)
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  478  				goto exit;
cb3126e60ffc1b Karl Relton       2010-06-03  479  
cb3126e60ffc1b Karl Relton       2010-06-03  480  			/* send key to driver */
ce0f34e4af71d7 Tim Collier       2018-09-26  481  			did = didmib_dot11smt_wepdefaultkeystable_key(
0ca6d8e74489b0 Claudiu Beznea    2016-08-26  482  					sme->key_idx + 1);
8aac4d443980a4 Devendra Naga     2012-06-06  483  			result = prism2_domibset_pstr32(wlandev,
8aac4d443980a4 Devendra Naga     2012-06-06  484  							did, sme->key_len,
8aac4d443980a4 Devendra Naga     2012-06-06  485  							(u8 *)sme->key);
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  486  			if (result)
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  487  				goto exit;
cb3126e60ffc1b Karl Relton       2010-06-03  488  		}
cb3126e60ffc1b Karl Relton       2010-06-03  489  
cb3126e60ffc1b Karl Relton       2010-06-03  490  		/* Assume we should set privacy invoked and exclude unencrypted
35028fe1a60465 Gavin O'Leary     2015-11-23  491  		 * We could possible use sme->privacy here, but the assumption
35028fe1a60465 Gavin O'Leary     2015-11-23  492  		 * seems reasonable anyways
35028fe1a60465 Gavin O'Leary     2015-11-23  493  		 */
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  494  		result = prism2_domibset_uint32(wlandev,
184fcaa1935ee2 Tim Collier       2018-09-26  495  						DIDMIB_DOT11SMT_PRIVACYTABLE_PRIVACYINVOKED,
cb3126e60ffc1b Karl Relton       2010-06-03  496  						P80211ENUM_truth_true);
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  497  		if (result)
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  498  			goto exit;
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  499  
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  500  		result = prism2_domibset_uint32(wlandev,
2ddc995d05eb59 Tim Collier       2018-09-26  501  						DIDMIB_DOT11SMT_PRIVACYTABLE_EXCLUDEUNENCRYPTED,
cb3126e60ffc1b Karl Relton       2010-06-03  502  						P80211ENUM_truth_true);
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  503  		if (result)
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  504  			goto exit;
cb3126e60ffc1b Karl Relton       2010-06-03  505  
cb3126e60ffc1b Karl Relton       2010-06-03  506  	} else {
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  507  		/* Assume we should unset privacy invoked
35028fe1a60465 Gavin O'Leary     2015-11-23  508  		 * and exclude unencrypted
35028fe1a60465 Gavin O'Leary     2015-11-23  509  		 */
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  510  		result = prism2_domibset_uint32(wlandev,
184fcaa1935ee2 Tim Collier       2018-09-26  511  						DIDMIB_DOT11SMT_PRIVACYTABLE_PRIVACYINVOKED,
cb3126e60ffc1b Karl Relton       2010-06-03  512  						P80211ENUM_truth_false);
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  513  		if (result)
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  514  			goto exit;
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  515  
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  516  		result = prism2_domibset_uint32(wlandev,
2ddc995d05eb59 Tim Collier       2018-09-26  517  						DIDMIB_DOT11SMT_PRIVACYTABLE_EXCLUDEUNENCRYPTED,
cb3126e60ffc1b Karl Relton       2010-06-03  518  						P80211ENUM_truth_false);
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  519  		if (result)
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  520  			goto exit;
cb3126e60ffc1b Karl Relton       2010-06-03  521  	}
cb3126e60ffc1b Karl Relton       2010-06-03  522  
cb3126e60ffc1b Karl Relton       2010-06-03  523  	/* Now do the actual join. Note there is no way that I can
4f9de774a6fea8 Gavin O'Leary     2015-11-23  524  	 * see to request a specific bssid
4f9de774a6fea8 Gavin O'Leary     2015-11-23  525  	 */
b1f1118bfcbc55 Tim Collier       2018-09-26  526  	msg_join.msgcode = DIDMSG_LNXREQ_AUTOJOIN;
cb3126e60ffc1b Karl Relton       2010-06-03  527  
cb3126e60ffc1b Karl Relton       2010-06-03  528  	memcpy(msg_join.ssid.data.data, sme->ssid, length);
cb3126e60ffc1b Karl Relton       2010-06-03  529  	msg_join.ssid.data.len = length;
cb3126e60ffc1b Karl Relton       2010-06-03  530  
cb3126e60ffc1b Karl Relton       2010-06-03  531  	result = p80211req_dorequest(wlandev, (u8 *)&msg_join);
cb3126e60ffc1b Karl Relton       2010-06-03  532  
cb3126e60ffc1b Karl Relton       2010-06-03  533  exit:
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  534  	if (result)
8dd82ebe7d8e68 Edgardo Hames     2010-07-24  535  		err = -EFAULT;
cb3126e60ffc1b Karl Relton       2010-06-03  536  
cb3126e60ffc1b Karl Relton       2010-06-03  537  	return err;
cb3126e60ffc1b Karl Relton       2010-06-03 @538  }
cb3126e60ffc1b Karl Relton       2010-06-03  539  

:::::: The code at line 538 was first introduced by commit
:::::: cb3126e60ffc1b7658a6ff4f6874585098bf9887 Staging: wlan-ng: Switch from wext to cfg80211

:::::: TO: Karl Relton <karllinuxtest.relton@ntlworld.com>
:::::: CC: Greg Kroah-Hartman <gregkh@suse.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 67664 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-13  0:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-13  0:03 [zen-kernel-zen-kernel:5.9/zen-sauce 24/24] drivers/staging/wlan-ng/cfg80211.c:538:1: warning: the frame size of 2712 bytes is larger than 2048 bytes kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.