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: <202602100310.nOvzaILF-lkp@intel.com>
Date: Tue, 10 Feb 2026 03:12:52 +0800
From: kernel test robot <lkp@...el.com>
To: Arkadiusz Kubalewski <arkadiusz.kubalewski@...el.com>
Cc: oe-kbuild-all@...ts.linux.dev, netdev@...r.kernel.org,
 Paolo Abeni <pabeni@...hat.com>,
 Aleksandr Loktionov <aleksandr.loktionov@...el.com>,
 Ivan Vecera <ivecera@...hat.com>,
 Grzegorz Nitka <grzegorz.nitka@...el.com>
Subject: [net-next:main 19/22]
 drivers/net/ethernet/intel/ice/ice_dpll.c:3539:45: warning: '%u' directive
 output may be truncated writing between 1 and 8 bytes into a region of size 4

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git main
head:   57be33f85e369ce9f69f61eaa34734e0d3bd47a7
commit: ad1df4f2d591e167bc64b8a7ce6328a2735e3d58 [19/22] ice: dpll: Support E825-C SyncE and dynamic pin discovery
config: microblaze-randconfig-r062-20260209 (https://download.01.org/0day-ci/archive/20260210/202602100310.nOvzaILF-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260210/202602100310.nOvzaILF-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/202602100310.nOvzaILF-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/net/ethernet/intel/ice/ice_dpll.c: In function 'ice_dpll_init':
>> drivers/net/ethernet/intel/ice/ice_dpll.c:3539:45: warning: '%u' directive output may be truncated writing between 1 and 8 bytes into a region of size 4 [-Wformat-truncation=]
      snprintf(pin_name, sizeof(pin_name), "rclk%u", i);
                                                ^~
   drivers/net/ethernet/intel/ice/ice_dpll.c:3539:40: note: directive argument in the range [0, 38347923]
      snprintf(pin_name, sizeof(pin_name), "rclk%u", i);
                                           ^~~~~~~~
   drivers/net/ethernet/intel/ice/ice_dpll.c:3539:3: note: 'snprintf' output between 6 and 13 bytes into a destination of size 8
      snprintf(pin_name, sizeof(pin_name), "rclk%u", i);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +3539 drivers/net/ethernet/intel/ice/ice_dpll.c

  3509	
  3510	/**
  3511	 * ice_dpll_init_fwnode_pins - initialize pins from device tree
  3512	 * @pf: board private structure
  3513	 * @pins: pointer to pins array
  3514	 * @start_idx: starting index for pins
  3515	 * @count: number of pins to initialize
  3516	 *
  3517	 * Initialize input pins for E825 RCLK support. The parent pins (rclk0, rclk1)
  3518	 * are expected to be defined by the system firmware (ACPI). This function
  3519	 * allocates them in the dpll subsystem and stores their indices for later
  3520	 * registration with the rclk pin.
  3521	 *
  3522	 * Return:
  3523	 * * 0 - success
  3524	 * * negative - initialization failure reason
  3525	 */
  3526	static int
  3527	ice_dpll_init_fwnode_pins(struct ice_pf *pf, struct ice_dpll_pin *pins,
  3528				  int start_idx)
  3529	{
  3530		char pin_name[8];
  3531		int i, ret;
  3532	
  3533		pf->dplls.wq = create_singlethread_workqueue("ice_dpll_wq");
  3534		if (!pf->dplls.wq)
  3535			return -ENOMEM;
  3536	
  3537		for (i = 0; i < pf->dplls.rclk.num_parents; i++) {
  3538			pins[start_idx + i].pf = pf;
> 3539			snprintf(pin_name, sizeof(pin_name), "rclk%u", i);
  3540			ret = ice_dpll_init_fwnode_pin(&pins[start_idx + i], pin_name);
  3541			if (ret)
  3542				goto error;
  3543		}
  3544	
  3545		return 0;
  3546	error:
  3547		while (i--)
  3548			ice_dpll_deinit_fwnode_pin(&pins[start_idx + i]);
  3549	
  3550		destroy_workqueue(pf->dplls.wq);
  3551	
  3552		return ret;
  3553	}
  3554	

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