All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 13578/15025] drivers/scsi/bfa/bfa_fcs.c:826:4: warning: '%s' directive output may be truncated writing up to 63 bytes into a region of size between 44 and 122
@ 2026-10-07 18:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-07 18:51 UTC (permalink / raw)
  To: Bill Wendling
  Cc: oe-kbuild-all, Martin K. Petersen (Oracle), Mariia Nikitash,
	Bart Van Assche

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   b018686719706a781c45a874ed51374a2dc4b767
commit: 0a5b53c1e7276ffacf5153d06d442c4d7ab0c41d [13578/15025] scsi: bfa: Use snprintf() in bfa_fcs_fabric_nsymb_init()
config: s390-randconfig-2001-20261006 (https://download.01.org/0day-ci/archive/20261007/202610072037.kjdagNH7-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261007/202610072037.kjdagNH7-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610072037.kjdagNH7-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/scsi/bfa/bfa_fcs.c: In function 'bfa_fcs_fabric_nsymb_init':
>> drivers/scsi/bfa/bfa_fcs.c:826:4: warning: '%s' directive output may be truncated writing up to 63 bytes into a region of size between 44 and 122 [-Wformat-truncation=]
       "%s" BFA_FCS_PORT_SYMBNAME_SEPARATOR
       ^~~~
   drivers/scsi/bfa/bfa_fcs.c:828:5: note: format string is defined here
       "%s" BFA_FCS_PORT_SYMBNAME_SEPARATOR,
        ^~
   drivers/scsi/bfa/bfa_fcs.c:825:2: note: 'snprintf' output between 10 and 151 bytes into a destination of size 128
     snprintf(port_cfg->node_sym_name.symname, BFA_SYMNAME_MAXLEN,
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "%s" BFA_FCS_PORT_SYMBNAME_SEPARATOR
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "%s" BFA_FCS_PORT_SYMBNAME_SEPARATOR
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       "%s" BFA_FCS_PORT_SYMBNAME_SEPARATOR,
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       model, (char *)driver_info->version,
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       driver_info->host_machine_name);
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +826 drivers/scsi/bfa/bfa_fcs.c

   811	
   812	/*
   813	 * Node Symbolic Name Creation for base port and all vports
   814	 */
   815	void
   816	bfa_fcs_fabric_nsymb_init(struct bfa_fcs_fabric_s *fabric)
   817	{
   818		struct bfa_lport_cfg_s *port_cfg = &fabric->bport.port_cfg;
   819		char model[BFA_ADAPTER_MODEL_NAME_LEN] = {0};
   820		struct bfa_fcs_driver_info_s *driver_info = &fabric->fcs->driver_info;
   821	
   822		bfa_ioc_get_adapter_model(&fabric->fcs->bfa->ioc, model);
   823	
   824		/* Model name/number, Driver Version, Host machine name */
   825		snprintf(port_cfg->node_sym_name.symname, BFA_SYMNAME_MAXLEN,
 > 826			 "%s" BFA_FCS_PORT_SYMBNAME_SEPARATOR
   827			 "%s" BFA_FCS_PORT_SYMBNAME_SEPARATOR
   828			 "%s" BFA_FCS_PORT_SYMBNAME_SEPARATOR,
   829			 model, (char *)driver_info->version,
   830			 driver_info->host_machine_name);
   831	}
   832	

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

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

only message in thread, other threads:[~2026-10-07 18:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-07 18:51 [linux-next:master 13578/15025] drivers/scsi/bfa/bfa_fcs.c:826:4: warning: '%s' directive output may be truncated writing up to 63 bytes into a region of size between 44 and 122 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.