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: <202506201006.eQ2P1PuC-lkp@intel.com>
Date: Fri, 20 Jun 2025 11:00:18 +0800
From: kernel test robot <lkp@...el.com>
To: Ovidiu Panait <ovidiu.panait.oss@...il.com>, clabbe.montjoie@...il.com,
	herbert@...dor.apana.org.au, davem@...emloft.net,
	linux-crypto@...r.kernel.org
Cc: oe-kbuild-all@...ts.linux.dev, wens@...e.org, jernej.skrabec@...il.com,
	samuel@...lland.org, linux-arm-kernel@...ts.infradead.org,
	linux-sunxi@...ts.linux.dev, linux-kernel@...r.kernel.org,
	Ovidiu Panait <ovidiu.panait.oss@...il.com>
Subject: Re: [PATCH 10/10] crypto: sun8i-ce - implement request batching

Hi Ovidiu,

kernel test robot noticed the following build warnings:

[auto build test WARNING on herbert-cryptodev-2.6/master]
[also build test WARNING on next-20250619]
[cannot apply to sunxi/sunxi/for-next herbert-crypto-2.6/master linus/master v6.16-rc2]
[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/Ovidiu-Panait/crypto-sun8i-ce-remove-channel-timeout-field/20250619-202957
base:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
patch link:    https://lore.kernel.org/r/20250619122316.2587236-11-ovidiu.panait.oss%40gmail.com
patch subject: [PATCH 10/10] crypto: sun8i-ce - implement request batching
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20250620/202506201006.eQ2P1PuC-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250620/202506201006.eQ2P1PuC-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/202506201006.eQ2P1PuC-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c: In function 'sun8i_ce_dump_task_descriptors':
>> drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c:178:52: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 7 [-Wformat-truncation=]
     178 |                 snprintf(task, sizeof(task), "TASK %d:", i);
         |                                                    ^~
   drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c:178:46: note: directive argument in the range [-2147483641, 2147483646]
     178 |                 snprintf(task, sizeof(task), "TASK %d:", i);
         |                                              ^~~~~~~~~~
   drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c:178:17: note: 'snprintf' output between 8 and 18 bytes into a destination of size 12
     178 |                 snprintf(task, sizeof(task), "TASK %d:", i);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +178 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c

   171	
   172	static void sun8i_ce_dump_task_descriptors(struct sun8i_ce_flow *chan)
   173	{
   174		for (int i = 0; i < chan->reqs_no; ++i) {
   175			struct ce_task *cet = &chan->tl[i];
   176			char task[CE_MAX_TASK_DESCR_DUMP_MSG_SIZE];
   177	
 > 178			snprintf(task, sizeof(task), "TASK %d:", i);
   179			print_hex_dump(KERN_INFO, task, DUMP_PREFIX_NONE, 16, 4,
   180				       cet, sizeof(struct ce_task), false);
   181		}
   182	}
   183	

-- 
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