lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201602201526.5M97etNy%fengguang.wu@intel.com>
Date:	Sat, 20 Feb 2016 15:52:30 +0800
From:	kbuild test robot <fengguang.wu@...el.com>
To:	Steve Wise <swise@...ngridcomputing.com>
Cc:	kbuild-all@...org, netdev@...r.kernel.org
Subject: [net:master 66/72] drivers/net/ethernet/chelsio/cxgb3/t3_hw.c:700:1:
 warning: 'vpdstrtou16.constprop' uses dynamic stack allocation

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git master
head:   d07c0278da1f4cfc91c3d46d0d07a0d13a949892
commit: 1003e19c466dc37812b5f88b2d5308ee63bb3fa0 [66/72] cxgb3: fix up vpd strings for kstrto*()
config: s390-allmodconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 1003e19c466dc37812b5f88b2d5308ee63bb3fa0
        # save the attached .config to linux build tree
        make.cross ARCH=s390 

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/chelsio/cxgb3/t3_hw.c: In function 'vpdstrtou16.constprop':
>> drivers/net/ethernet/chelsio/cxgb3/t3_hw.c:700:1: warning: 'vpdstrtou16.constprop' uses dynamic stack allocation
    }
    ^
   drivers/net/ethernet/chelsio/cxgb3/t3_hw.c: In function 'vpdstrtouint.constprop':
>> drivers/net/ethernet/chelsio/cxgb3/t3_hw.c:691:1: warning: 'vpdstrtouint.constprop' uses dynamic stack allocation
    }
    ^

vim +700 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c

   685	{
   686		char tok[len + 1];
   687	
   688		memcpy(tok, s, len);
   689		tok[len] = 0;
   690		return kstrtouint(strim(tok), base, val);
 > 691	}
   692	
   693	static int vpdstrtou16(char *s, int len, unsigned int base, u16 *val)
   694	{
   695		char tok[len + 1];
   696	
   697		memcpy(tok, s, len);
   698		tok[len] = 0;
   699		return kstrtou16(strim(tok), base, val);
 > 700	}
   701	
   702	/**
   703	 *	get_vpd_params - read VPD parameters from VPD EEPROM

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/octet-stream" (39928 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ