All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [djwong-xfs:fuse-iomap-cache 43/45] fs/fuse/file_iomap.c:1997 fuse_iomap_upsert_validate_dev() error: uninitialized symbol 'map_end'.
Date: Sun, 15 Jun 2025 07:39:01 +0800	[thread overview]
Message-ID: <202506150737.o7ZdCn6W-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: "Darrick J. Wong" <darrick.wong@oracle.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git fuse-iomap-cache
head:   62857bad704590b8ed2cc579b4a859b953b93d5f
commit: 7954c15726a337e560ff0506896f2095e111cec9 [43/45] fuse: enable iomap cache management
:::::: branch date: 30 hours ago
:::::: commit date: 30 hours ago
config: x86_64-randconfig-161-20250615 (https://download.01.org/0day-ci/archive/20250615/202506150737.o7ZdCn6W-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)

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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202506150737.o7ZdCn6W-lkp@intel.com/

smatch warnings:
fs/fuse/file_iomap.c:1997 fuse_iomap_upsert_validate_dev() error: uninitialized symbol 'map_end'.

vim +/map_end +1997 fs/fuse/file_iomap.c

7954c15726a337 Darrick J. Wong 2025-05-30  1978  
7954c15726a337 Darrick J. Wong 2025-05-30  1979  static inline int
7954c15726a337 Darrick J. Wong 2025-05-30  1980  fuse_iomap_upsert_validate_dev(
7954c15726a337 Darrick J. Wong 2025-05-30  1981  	const struct fuse_iomap_dev	*fb,
7954c15726a337 Darrick J. Wong 2025-05-30  1982  	uint16_t			map_type,
7954c15726a337 Darrick J. Wong 2025-05-30  1983  	uint64_t			map_addr,
7954c15726a337 Darrick J. Wong 2025-05-30  1984  	uint64_t			map_length)
7954c15726a337 Darrick J. Wong 2025-05-30  1985  {
7954c15726a337 Darrick J. Wong 2025-05-30  1986  	uint64_t			map_end;
7954c15726a337 Darrick J. Wong 2025-05-30  1987  	sector_t			device_bytes;
7954c15726a337 Darrick J. Wong 2025-05-30  1988  
7954c15726a337 Darrick J. Wong 2025-05-30  1989  	if (!fb)
7954c15726a337 Darrick J. Wong 2025-05-30  1990  		return 0;
7954c15726a337 Darrick J. Wong 2025-05-30  1991  
7954c15726a337 Darrick J. Wong 2025-05-30  1992  	if (map_addr != FUSE_IOMAP_NULL_ADDR &&
7954c15726a337 Darrick J. Wong 2025-05-30  1993  	    BAD_DATA(check_add_overflow(map_addr, map_length, &map_end)))
7954c15726a337 Darrick J. Wong 2025-05-30  1994  		return -EIO;
7954c15726a337 Darrick J. Wong 2025-05-30  1995  
7954c15726a337 Darrick J. Wong 2025-05-30  1996  	device_bytes = bdev_nr_sectors(fb->bdev) << SECTOR_SHIFT;
7954c15726a337 Darrick J. Wong 2025-05-30 @1997  	if (BAD_DATA(map_end > device_bytes))
7954c15726a337 Darrick J. Wong 2025-05-30  1998  		return -EIO;
7954c15726a337 Darrick J. Wong 2025-05-30  1999  
7954c15726a337 Darrick J. Wong 2025-05-30  2000  	return 0;
7954c15726a337 Darrick J. Wong 2025-05-30  2001  }
7954c15726a337 Darrick J. Wong 2025-05-30  2002  

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

                 reply	other threads:[~2025-06-14 23:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202506150737.o7ZdCn6W-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.