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: <202206161946.96McdGxQ-lkp@intel.com>
Date:   Thu, 16 Jun 2022 19:10:51 +0800
From:   kernel test robot <lkp@...el.com>
To:     Anup Patel <apatel@...tanamicro.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [avpatel:riscv_kvm_aia_v1 7/29] arch/riscv/kernel/smp.c:166:50:
 sparse: sparse: incorrect type in argument 4 (different address spaces)

tree:   https://github.com/avpatel/linux.git riscv_kvm_aia_v1
head:   00790a8b765d864a8a1d0be2f7985954cb719031
commit: 018fd952c6dfbad5bd2abd914c5b955a0bffb3b9 [7/29] RISC-V: Treat IPIs as normal Linux IRQs
config: riscv-randconfig-s032-20220616 (https://download.01.org/0day-ci/archive/20220616/202206161946.96McdGxQ-lkp@intel.com/config)
compiler: riscv32-linux-gcc (GCC) 11.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-30-g92122700-dirty
        # https://github.com/avpatel/linux/commit/018fd952c6dfbad5bd2abd914c5b955a0bffb3b9
        git remote add avpatel https://github.com/avpatel/linux.git
        git fetch --no-tags avpatel riscv_kvm_aia_v1
        git checkout 018fd952c6dfbad5bd2abd914c5b955a0bffb3b9
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/kernel/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>


sparse warnings: (new ones prefixed by >>)
>> arch/riscv/kernel/smp.c:166:50: sparse: sparse: incorrect type in argument 4 (different address spaces) @@     expected void [noderef] __percpu *percpu_dev_id @@     got int * @@
   arch/riscv/kernel/smp.c:166:50: sparse:     expected void [noderef] __percpu *percpu_dev_id
   arch/riscv/kernel/smp.c:166:50: sparse:     got int *

vim +166 arch/riscv/kernel/smp.c

   151	
   152	void riscv_ipi_set_virq_range(int virq, int nr)
   153	{
   154		int i, err;
   155	
   156		if (WARN_ON(ipi_virq_base))
   157			return;
   158	
   159		WARN_ON(nr < IPI_MAX);
   160		nr_ipi = min(nr, IPI_MAX);
   161		ipi_virq_base = virq;
   162	
   163		/* Request IPIs */
   164		for (i = 0; i < nr_ipi; i++) {
   165			err = request_percpu_irq(ipi_virq_base + i, handle_IPI,
 > 166						 "IPI", &ipi_virq_base);
   167			WARN_ON(err);
   168	
   169			ipi_desc[i] = irq_to_desc(ipi_virq_base + i);
   170			irq_set_status_flags(ipi_virq_base + i, IRQ_HIDDEN);
   171		}
   172	
   173		/* Enabled IPIs for boot CPU immediately */
   174		riscv_ipi_enable();
   175	}
   176	EXPORT_SYMBOL_GPL(riscv_ipi_set_virq_range);
   177	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ