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>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202510160112.aE3SoRiU-lkp@intel.com>
Date: Thu, 16 Oct 2025 01:41:36 +0800
From: kernel test robot <lkp@...el.com>
To: Raju Rangoju <Raju.Rangoju@....com>, netdev@...r.kernel.org
Cc: oe-kbuild-all@...ts.linux.dev, pabeni@...hat.com, kuba@...nel.org,
	edumazet@...gle.com, davem@...emloft.net, andrew+netdev@...n.ch,
	Shyam-sundar.S-k@....com, Raju Rangoju <Raju.Rangoju@....com>
Subject: Re: [PATCH net-next 1/4] amd-xgbe: introduce support ethtool selftest

Hi Raju,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Raju-Rangoju/amd-xgbe-introduce-support-ethtool-selftest/20251015-021414
base:   net-next/main
patch link:    https://lore.kernel.org/r/20251014181040.2551144-2-Raju.Rangoju%40amd.com
patch subject: [PATCH net-next 1/4] amd-xgbe: introduce support ethtool selftest
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20251016/202510160112.aE3SoRiU-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251016/202510160112.aE3SoRiU-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 <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202510160112.aE3SoRiU-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/amd/xgbe/xgbe-selftest.c: In function 'xgbe_selftest_get_strings':
>> drivers/net/ethernet/amd/xgbe/xgbe-selftest.c:387:52: warning: '%.27s' directive output may be truncated writing up to 27 bytes into a region of size between 19 and 28 [-Wformat-truncation=]
     387 |                 snprintf(p, ETH_GSTRING_LEN, "%2d. %.27s", i + 1,
         |                                                    ^~~~~
   drivers/net/ethernet/amd/xgbe/xgbe-selftest.c:387:17: note: 'snprintf' output between 5 and 41 bytes into a destination of size 32
     387 |                 snprintf(p, ETH_GSTRING_LEN, "%2d. %.27s", i + 1,
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     388 |                          xgbe_selftests[i].name);
         |                          ~~~~~~~~~~~~~~~~~~~~~~~


vim +387 drivers/net/ethernet/amd/xgbe/xgbe-selftest.c

   380	
   381	void xgbe_selftest_get_strings(struct xgbe_prv_data *pdata, u8 *data)
   382	{
   383		u8 *p = data;
   384		int i;
   385	
   386		for (i = 0; i < xgbe_selftest_get_count(pdata); i++) {
 > 387			snprintf(p, ETH_GSTRING_LEN, "%2d. %.27s", i + 1,
   388				 xgbe_selftests[i].name);
   389			p += ETH_GSTRING_LEN;
   390		}
   391	}
   392	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ