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: <202309120432.dJjt8xMp-lkp@intel.com>
Date:   Tue, 12 Sep 2023 04:09:33 +0800
From:   kernel test robot <lkp@...el.com>
To:     Bjorn Helgaas <helgaas@...nel.org>
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
        Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
Subject: drivers/pci/pci.c:4195 pci_pio_to_address() warn: unsigned 'pio' is
 never less than zero.

Hi Bjorn,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   0bb80ecc33a8fb5a682236443c1e740d5c917d1d
commit: 3b59ca944687b8651849f51b15c23e3fdbf07394 PCI: Simplify pci_pio_to_address()
date:   2 weeks ago
config: openrisc-randconfig-r071-20230906 (https://download.01.org/0day-ci/archive/20230912/202309120432.dJjt8xMp-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230912/202309120432.dJjt8xMp-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/202309120432.dJjt8xMp-lkp@intel.com/

smatch warnings:
drivers/pci/pci.c:4195 pci_pio_to_address() warn: unsigned 'pio' is never less than zero.

vim +/pio +4195 drivers/pci/pci.c

  4191	
  4192	phys_addr_t pci_pio_to_address(unsigned long pio)
  4193	{
  4194	#ifdef PCI_IOBASE
> 4195		if (pio < MMIO_UPPER_LIMIT)
  4196			return logic_pio_to_hwaddr(pio);
  4197	#endif
  4198	
  4199		return (phys_addr_t) OF_BAD_ADDR;
  4200	}
  4201	EXPORT_SYMBOL_GPL(pci_pio_to_address);
  4202	

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