public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [brauner-vfs:vfs.misc 9/10] fs/romfs/storage.c:243:22: error: use of undeclared identifier 'buflen'
@ 2024-01-20  4:52 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-20  4:52 UTC (permalink / raw)
  To: Fullway Wang; +Cc: llvm, oe-kbuild-all, Christian Brauner, Christian Brauner

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs.misc
head:   31081ab305a184c2685e701ee1a8ca33b76bf7eb
commit: 530041d36e377a71958148b25b98ac217ff50419 [9/10] fs: romfs: Fix potential uninitialized memory leak
config: i386-buildonly-randconfig-003-20240120 (https://download.01.org/0day-ci/archive/20240120/202401201224.8iFVwFru-lkp@intel.com/config)
compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240120/202401201224.8iFVwFru-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/202401201224.8iFVwFru-lkp@intel.com/

All errors (new ones prefixed by >>):

>> fs/romfs/storage.c:243:22: error: use of undeclared identifier 'buflen'
     243 |         if (pos >= limit || buflen > limit - pos)
         |                             ^
   1 error generated.


vim +/buflen +243 fs/romfs/storage.c

   233	
   234	/*
   235	 * determine the length of a string in romfs
   236	 */
   237	ssize_t romfs_dev_strnlen(struct super_block *sb,
   238				  unsigned long pos, size_t maxlen)
   239	{
   240		size_t limit;
   241	
   242		limit = romfs_maxsize(sb);
 > 243		if (pos >= limit || buflen > limit - pos)
   244			return -EIO;
   245	

-- 
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:[~2024-01-20  4:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-20  4:52 [brauner-vfs:vfs.misc 9/10] fs/romfs/storage.c:243:22: error: use of undeclared identifier 'buflen' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox