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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202208030339.bOMzIpUt-lkp@intel.com>
Date:   Wed, 3 Aug 2022 03:18:54 +0800
From:   kernel test robot <lkp@...el.com>
To:     Qing Zhang <zhangqing@...ngson.cn>,
        Huacai Chen <chenhuacai@...nel.org>,
        WANG Xuerui <kernel@...0n.name>
Cc:     kbuild-all@...ts.01.org, loongarch@...ts.linux.dev,
        linux-kernel@...r.kernel.org,
        Jiaxun Yang <jiaxun.yang@...goat.com>, hejinyang@...ngson.cn
Subject: Re: [PATCH 3/3] LoongArch: Add stacktrace support

Hi Qing,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.19 next-20220728]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Qing-Zhang/LoongArch-Add-guess-unwinder-support/20220728-220739
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 6e7765cb477a9753670d4351d14de93f1e9dbbd4
config: loongarch-randconfig-s043-20220801 (https://download.01.org/0day-ci/archive/20220803/202208030339.bOMzIpUt-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.1.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-39-gce1a6720-dirty
        # https://github.com/intel-lab-lkp/linux/commit/32ef6acf6f5ecfadda21be77cbebb07b1c69e56a
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Qing-Zhang/LoongArch-Add-guess-unwinder-support/20220728-220739
        git checkout 32ef6acf6f5ecfadda21be77cbebb07b1c69e56a
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=loongarch SHELL=/bin/bash kernel/locking/

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 >>)
   kernel/locking/lockdep.c:110:1: sparse: sparse: symbol '__pcpu_scope_lockdep_recursion' was not declared. Should it be static?
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *
>> kernel/locking/lockdep.c:118:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
   kernel/locking/lockdep.c:118:13: sparse:     expected void *ptr
   kernel/locking/lockdep.c:118:13: sparse:     got unsigned int [noderef] __percpu *

vim +118 kernel/locking/lockdep.c

4d004099a668c4 Peter Zijlstra 2020-10-02  112  
0afda3a888dccf Peter Zijlstra 2021-01-06  113  static __always_inline bool lockdep_enabled(void)
4d004099a668c4 Peter Zijlstra 2020-10-02  114  {
4d004099a668c4 Peter Zijlstra 2020-10-02  115  	if (!debug_locks)
4d004099a668c4 Peter Zijlstra 2020-10-02  116  		return false;
4d004099a668c4 Peter Zijlstra 2020-10-02  117  
d48e3850030623 Peter Zijlstra 2020-10-26 @118  	if (this_cpu_read(lockdep_recursion))
4d004099a668c4 Peter Zijlstra 2020-10-02  119  		return false;
4d004099a668c4 Peter Zijlstra 2020-10-02  120  
4d004099a668c4 Peter Zijlstra 2020-10-02  121  	if (current->lockdep_recursion)
4d004099a668c4 Peter Zijlstra 2020-10-02  122  		return false;
4d004099a668c4 Peter Zijlstra 2020-10-02  123  
4d004099a668c4 Peter Zijlstra 2020-10-02  124  	return true;
4d004099a668c4 Peter Zijlstra 2020-10-02  125  }
4d004099a668c4 Peter Zijlstra 2020-10-02  126  

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ