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: <202502141023.Rdalsdag-lkp@intel.com>
Date: Fri, 14 Feb 2025 10:44:11 +0800
From: kernel test robot <lkp@...el.com>
To: Dave Chinner <dchinner@...hat.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
	Chandan Babu R <chandanbabu@...nel.org>,
	"Darrick J. Wong" <djwong@...nel.org>
Subject: fs/xfs/xfs_linux.h:280 kmem_to_page() warn: unsigned '_x' is never
 less than zero.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   68763b29e0a6441f57f9ee652bbf8e7bc59183e5
commit: afdc115559c57a48ad697219cec1d16962ad9e30 xfs: move kmem_to_page()
date:   1 year ago
config: riscv-randconfig-r073-20250213 (https://download.01.org/0day-ci/archive/20250214/202502141023.Rdalsdag-lkp@intel.com/config)
compiler: riscv32-linux-gcc (GCC) 14.2.0

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/202502141023.Rdalsdag-lkp@intel.com/

New smatch warnings:
fs/xfs/xfs_linux.h:280 kmem_to_page() warn: unsigned '_x' is never less than zero.
fs/xfs/xfs_linux.h:280 kmem_to_page() warn: unsigned '_x' is never less than zero.
fs/xfs/xfs_linux.h:280 kmem_to_page() warn: unsigned '_x' is never less than zero.

Old smatch warnings:
fs/xfs/xfs_buf.c:724 xfs_buf_get_map() error: we previously assumed 'bp' could be null (see line 707)
arch/riscv/include/asm/atomic.h:204 arch_atomic_fetch_add_unless() warn: inconsistent indenting
arch/riscv/include/asm/atomic.h:204 arch_atomic_fetch_add_unless() warn: inconsistent indenting

vim +/_x +280 fs/xfs/xfs_linux.h

   271	
   272	/*
   273	 * Helper for IO routines to grab backing pages from allocated kernel memory.
   274	 */
   275	static inline struct page *
   276	kmem_to_page(void *addr)
   277	{
   278		if (is_vmalloc_addr(addr))
   279			return vmalloc_to_page(addr);
 > 280		return virt_to_page(addr);
   281	}
   282	

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