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: <202510221515.tlpfL3lX-lkp@intel.com>
Date: Wed, 22 Oct 2025 15:41:29 +0800
From: kernel test robot <lkp@...el.com>
To: Biancaa Ramesh <biancaa2210329@....edu.in>,
	linux-kernel@...r.kernel.org
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	Biancaa Ramesh <biancaa2210329@....edu.in>
Subject: Re: [PATCH] Kconfig:Uses glibc so strscpy has to be manually- added

Hi Biancaa,

kernel test robot noticed the following build errors:

[auto build test ERROR on linus/master]
[also build test ERROR on v6.18-rc2 next-20251022]
[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/Biancaa-Ramesh/Kconfig-Uses-glibc-so-strscpy-has-to-be-manually-added/20251022-011608
base:   linus/master
patch link:    https://lore.kernel.org/r/20251021171446.46942-1-biancaa2210329%40ssn.edu.in
patch subject: [PATCH] Kconfig:Uses glibc so strscpy has to be manually- added
config: x86_64-randconfig-002-20251022 (attached as .config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251022/202510221515.tlpfL3lX-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/202510221515.tlpfL3lX-lkp@intel.com/

All errors (new ones prefixed by >>):

>> scripts/kconfig/confdata.c:157:2: error: call to undeclared function 'strscpy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     157 |         strscpy(depfile_path + depfile_prefix_len, name);
         |         ^
>> scripts/kconfig/util.c:70:2: error: call to undeclared function 'strscpy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      70 |         strscpy(gs.s, "\0");
         |         ^
   scripts/kconfig/symbol.c1 error generated.
   :812:2: error: call to undeclared function 'strscpy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     812 |         strscpy(val, newval);
         |         ^
   make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/util.o] Error 1 shuffle=3058352405
   1 error generated.
   make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/confdata.o] Error 1 shuffle=3058352405
   1 error generated.
   make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/symbol.o] Error 1 shuffle=3058352405
   make[3]: Target 'oldconfig' not remade because of errors.
   make[2]: *** [Makefile:742: oldconfig] Error 2 shuffle=3058352405
   make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=3058352405
   make[1]: Target 'oldconfig' not remade because of errors.
   make: *** [Makefile:248: __sub-make] Error 2 shuffle=3058352405
   make: Target 'oldconfig' not remade because of errors.
--
>> scripts/kconfig/symbol.c:812:2: error: call to undeclared function 'strscpy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     812 |         strscpy(val, newval);
         |         ^
>> scripts/kconfig/confdata.c:157:2: error: call to undeclared function 'strscpy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     157 |         strscpy(depfile_path + depfile_prefix_len, name);
         |         ^
>> scripts/kconfig/util.c:70:2: error: call to undeclared function 'strscpy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      70 |         strscpy(gs.s, "\0");
         |         ^
   1 error generated.
   1 error generated.
   make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/confdata.o] Error 1 shuffle=3058352405
   make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/util.o] Error 1 shuffle=3058352405
   1 error generated.
   make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/symbol.o] Error 1 shuffle=3058352405
   make[3]: Target 'olddefconfig' not remade because of errors.
   make[2]: *** [Makefile:742: olddefconfig] Error 2 shuffle=3058352405
   make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=3058352405
   make[1]: Target 'olddefconfig' not remade because of errors.
   make: *** [Makefile:248: __sub-make] Error 2 shuffle=3058352405
   make: Target 'olddefconfig' not remade because of errors.


vim +/strscpy +157 scripts/kconfig/confdata.c

   147	
   148	/* touch depfile for symbol 'name' */
   149	static int conf_touch_dep(const char *name)
   150	{
   151		int fd;
   152	
   153		/* check overflow: prefix + name + '\0' must fit in buffer. */
   154		if (depfile_prefix_len + strlen(name) + 1 > sizeof(depfile_path))
   155			return -1;
   156	
 > 157		strscpy(depfile_path + depfile_prefix_len, name);
   158	
   159		fd = open(depfile_path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
   160		if (fd == -1)
   161			return -1;
   162		close(fd);
   163	
   164		return 0;
   165	}
   166	

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