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: <202209252200.8OGQtx5f-lkp@intel.com>
Date:   Sun, 25 Sep 2022 23:06:49 +0800
From:   kernel test robot <lkp@...el.com>
To:     Peter Zijlstra <peterz@...radead.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [peterz-queue:sched/idle 13/50] include/linux/cpuidle.h:121:9:
 sparse: sparse: incorrect type in argument 1 (different address spaces)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/idle
head:   45fdf10e04e33c8068012ef8a6e2139c1418cac8
commit: bf4d08c02c1e886f0061064e2eea35f2c8e03a42 [13/50] cpuidle: Fix ct_idle_*() usage
config: loongarch-randconfig-s031-20220925
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://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=bf4d08c02c1e886f0061064e2eea35f2c8e03a42
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/idle
        git checkout bf4d08c02c1e886f0061064e2eea35f2c8e03a42
        # 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

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/sched/build_policy.c: note: in included file:
   kernel/sched/rt.c:961:70: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/rt.c:961:70: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/rt.c:961:70: sparse:    struct task_struct *
   kernel/sched/rt.c:2415:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/rt.c:2415:25: sparse:    struct task_struct *
   kernel/sched/rt.c:2415:25: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/rt.c:1047:38: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected struct task_struct *curr @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/rt.c:1047:38: sparse:     expected struct task_struct *curr
   kernel/sched/rt.c:1047:38: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/rt.c:1596:31: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected struct task_struct *p @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/rt.c:1596:31: sparse:     expected struct task_struct *p
   kernel/sched/rt.c:1596:31: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/rt.c:1933:9: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct sched_domain *[assigned] sd @@     got struct sched_domain [noderef] __rcu *parent @@
   kernel/sched/rt.c:1933:9: sparse:     expected struct sched_domain *[assigned] sd
   kernel/sched/rt.c:1933:9: sparse:     got struct sched_domain [noderef] __rcu *parent
   kernel/sched/rt.c:1616:14: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct task_struct *curr @@     got struct task_struct [noderef] __rcu * @@
   kernel/sched/rt.c:1616:14: sparse:     expected struct task_struct *curr
   kernel/sched/rt.c:1616:14: sparse:     got struct task_struct [noderef] __rcu *
   kernel/sched/rt.c:1681:45: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected struct task_struct *p @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/rt.c:1681:45: sparse:     expected struct task_struct *p
   kernel/sched/rt.c:1681:45: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/rt.c:1742:67: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *tsk @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/rt.c:1742:67: sparse:     expected struct task_struct *tsk
   kernel/sched/rt.c:1742:67: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/rt.c:2097:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *task @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/rt.c:2097:40: sparse:     expected struct task_struct *task
   kernel/sched/rt.c:2097:40: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/rt.c:2118:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/rt.c:2118:13: sparse:    struct task_struct *
   kernel/sched/rt.c:2118:13: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/rt.c:2466:54: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *tsk @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/rt.c:2466:54: sparse:     expected struct task_struct *tsk
   kernel/sched/rt.c:2466:54: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/rt.c:2468:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *p @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/rt.c:2468:40: sparse:     expected struct task_struct *p
   kernel/sched/rt.c:2468:40: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/rt.c:2468:61: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *p @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/rt.c:2468:61: sparse:     expected struct task_struct *p
   kernel/sched/rt.c:2468:61: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/build_policy.c: note: in included file:
   kernel/sched/deadline.c:2314:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *p @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/deadline.c:2314:23: sparse:     expected struct task_struct *p
   kernel/sched/deadline.c:2314:23: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/deadline.c:2324:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/deadline.c:2324:13: sparse:    struct task_struct *
   kernel/sched/deadline.c:2324:13: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/deadline.c:2434:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/deadline.c:2434:25: sparse:    struct task_struct *
   kernel/sched/deadline.c:2434:25: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/deadline.c:1949:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected struct sched_dl_entity *b @@     got struct sched_dl_entity [noderef] __rcu * @@
   kernel/sched/deadline.c:1949:42: sparse:     expected struct sched_dl_entity *b
   kernel/sched/deadline.c:1949:42: sparse:     got struct sched_dl_entity [noderef] __rcu *
   kernel/sched/deadline.c:1960:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *tsk @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/deadline.c:1960:38: sparse:     expected struct task_struct *tsk
   kernel/sched/deadline.c:1960:38: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/deadline.c:1179:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *p @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/deadline.c:1179:23: sparse:     expected struct task_struct *p
   kernel/sched/deadline.c:1179:23: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/deadline.c:1306:38: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected struct task_struct *curr @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/deadline.c:1306:38: sparse:     expected struct task_struct *curr
   kernel/sched/deadline.c:1306:38: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/deadline.c:2169:9: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct sched_domain *[assigned] sd @@     got struct sched_domain [noderef] __rcu *parent @@
   kernel/sched/deadline.c:2169:9: sparse:     expected struct sched_domain *[assigned] sd
   kernel/sched/deadline.c:2169:9: sparse:     got struct sched_domain [noderef] __rcu *parent
   kernel/sched/deadline.c:1832:14: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct task_struct *curr @@     got struct task_struct [noderef] __rcu * @@
   kernel/sched/deadline.c:1832:14: sparse:     expected struct task_struct *curr
   kernel/sched/deadline.c:1832:14: sparse:     got struct task_struct [noderef] __rcu *
   kernel/sched/deadline.c:1910:43: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected struct task_struct *p @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/deadline.c:1910:43: sparse:     expected struct task_struct *p
   kernel/sched/deadline.c:1910:43: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/deadline.c:2479:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *tsk @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/deadline.c:2479:38: sparse:     expected struct task_struct *tsk
   kernel/sched/deadline.c:2479:38: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/deadline.c:2481:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *p @@     got struct task_struct [noderef] __rcu *curr @@
   kernel/sched/deadline.c:2481:23: sparse:     expected struct task_struct *p
   kernel/sched/deadline.c:2481:23: sparse:     got struct task_struct [noderef] __rcu *curr
   kernel/sched/deadline.c:2483:44: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected struct sched_dl_entity *b @@     got struct sched_dl_entity [noderef] __rcu * @@
   kernel/sched/deadline.c:2483:44: sparse:     expected struct sched_dl_entity *b
   kernel/sched/deadline.c:2483:44: sparse:     got struct sched_dl_entity [noderef] __rcu *
   kernel/sched/deadline.c:2647:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/deadline.c:2647:22: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/deadline.c:2647:22: sparse:    struct task_struct *
   kernel/sched/build_policy.c: note: in included file:
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got int [noderef] __percpu * @@
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got int [noderef] __percpu * @@
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got int [noderef] __percpu * @@
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got int [noderef] __percpu * @@
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got unsigned int [noderef] __percpu * @@
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got int [noderef] __percpu * @@
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got int [noderef] __percpu * @@
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got int [noderef] __percpu * @@
>> include/linux/cpuidle.h:121:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *ptr @@     got int [noderef] __percpu * @@
   kernel/sched/build_policy.c: note: in included file:
   kernel/sched/sched.h:2060:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/sched.h:2060:25: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/sched.h:2060:25: sparse:    struct task_struct *
   kernel/sched/sched.h:2060:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/sched.h:2060:25: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/sched.h:2060:25: sparse:    struct task_struct *
   kernel/sched/sched.h:2060:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/sched.h:2060:25: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/sched.h:2060:25: sparse:    struct task_struct *
   kernel/sched/sched.h:2060:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/sched.h:2060:25: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/sched.h:2060:25: sparse:    struct task_struct *
   kernel/sched/sched.h:2060:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/sched.h:2060:25: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/sched.h:2060:25: sparse:    struct task_struct *
   kernel/sched/sched.h:2060:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/sched.h:2060:25: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/sched.h:2060:25: sparse:    struct task_struct *
   kernel/sched/sched.h:2060:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/sched.h:2060:25: sparse:    struct task_struct [noderef] __rcu *
   kernel/sched/sched.h:2060:25: sparse:    struct task_struct *

vim +121 include/linux/cpuidle.h

   118	
   119	static __always_inline void ct_cpuidle_enter(void)
   120	{
 > 121		lockdep_assert_irqs_disabled();
   122		/*
   123		 * Idle is allowed to (temporary) enable IRQs. It
   124		 * will return with IRQs disabled.
   125		 *
   126		 * Trace IRQs enable here, then switch off RCU, and have
   127		 * arch_cpu_idle() use raw_local_irq_enable(). Note that
   128		 * ct_idle_enter() relies on lockdep IRQ state, so switch that
   129		 * last -- this is very similar to the entry code.
   130		 */
   131		trace_hardirqs_on_prepare();
   132		lockdep_hardirqs_on_prepare();
   133		instrumentation_end();
   134		ct_idle_enter();
   135		lockdep_hardirqs_on(_THIS_IP_);
   136	}
   137	

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

View attachment "config" of type "text/plain" (142657 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ