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: <202204080633.IYOBYNFm-lkp@intel.com>
Date:   Fri, 8 Apr 2022 06:38:14 +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/wip.freezer 1/5]
 include/linux/sched/signal.h:452:9: sparse: sparse: dereference of noderef
 expression

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/wip.freezer
head:   ed5b8f90d21512ee2392f35dbb0ab867c66d243d
commit: 422f0905663b42f6f9ad8a7ec6c5962c7c6ff9f3 [1/5] sched,signal,ptrace: Rework TASK_TRACED, TASK_STOPPED
config: sparc64-randconfig-s031-20220406 (https://download.01.org/0day-ci/archive/20220408/202204080633.IYOBYNFm-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 11.2.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-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=422f0905663b42f6f9ad8a7ec6c5962c7c6ff9f3
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/wip.freezer
        git checkout 422f0905663b42f6f9ad8a7ec6c5962c7c6ff9f3
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash

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


sparse warnings: (new ones prefixed by >>)
   kernel/ptrace.c:54:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/ptrace.c:54:22: sparse:    struct task_struct *
   kernel/ptrace.c:54:22: sparse:    struct task_struct [noderef] __rcu *
   kernel/ptrace.c:73:23: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct task_struct [noderef] __rcu *parent @@     got struct task_struct *new_parent @@
   kernel/ptrace.c:73:23: sparse:     expected struct task_struct [noderef] __rcu *parent
   kernel/ptrace.c:73:23: sparse:     got struct task_struct *new_parent
   kernel/ptrace.c:74:29: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct cred const [noderef] __rcu *ptracer_cred @@     got struct cred const * @@
   kernel/ptrace.c:74:29: sparse:     expected struct cred const [noderef] __rcu *ptracer_cred
   kernel/ptrace.c:74:29: sparse:     got struct cred const *
   kernel/ptrace.c:128:18: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct cred const *old_cred @@     got struct cred const [noderef] __rcu *ptracer_cred @@
   kernel/ptrace.c:128:18: sparse:     expected struct cred const *old_cred
   kernel/ptrace.c:128:18: sparse:     got struct cred const [noderef] __rcu *ptracer_cred
   kernel/ptrace.c:132:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:132:25: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:132:25: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:170:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:170:27: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:170:27: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:202:28: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:202:28: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:202:28: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:209:30: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:209:30: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:209:30: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:219:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/ptrace.c:219:9: sparse:    struct task_struct [noderef] __rcu *
   kernel/ptrace.c:219:9: sparse:    struct task_struct *
   kernel/ptrace.c:266:44: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/ptrace.c:266:44: sparse:    struct task_struct [noderef] __rcu *
   kernel/ptrace.c:266:44: sparse:    struct task_struct *
   kernel/ptrace.c:466:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:466:24: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:466:24: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:491:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:491:26: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:491:26: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:527:54: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *parent @@     got struct task_struct [noderef] __rcu *parent @@
   kernel/ptrace.c:527:54: sparse:     expected struct task_struct *parent
   kernel/ptrace.c:527:54: sparse:     got struct task_struct [noderef] __rcu *parent
   kernel/ptrace.c:535:53: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected struct task_struct *new_parent @@     got struct task_struct [noderef] __rcu *real_parent @@
   kernel/ptrace.c:535:53: sparse:     expected struct task_struct *new_parent
   kernel/ptrace.c:535:53: sparse:     got struct task_struct [noderef] __rcu *real_parent
   kernel/ptrace.c:583:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *p1 @@     got struct task_struct [noderef] __rcu *real_parent @@
   kernel/ptrace.c:583:41: sparse:     expected struct task_struct *p1
   kernel/ptrace.c:583:41: sparse:     got struct task_struct [noderef] __rcu *real_parent
   kernel/ptrace.c:585:50: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct sighand_struct *sigh @@     got struct sighand_struct [noderef] __rcu *sighand @@
   kernel/ptrace.c:585:50: sparse:     expected struct sighand_struct *sigh
   kernel/ptrace.c:585:50: sparse:     got struct sighand_struct [noderef] __rcu *sighand
   kernel/ptrace.c:776:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:776:37: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:776:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:784:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:784:39: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:784:39: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:907:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:907:37: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:907:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:911:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:911:39: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:911:39: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:1141:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:1141:37: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:1141:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:1143:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/ptrace.c:1143:39: sparse:     expected struct spinlock [usertype] *lock
   kernel/ptrace.c:1143:39: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c: note: in included file (through include/linux/rcuwait.h, include/linux/percpu-rwsem.h, include/linux/fs.h, ...):
>> include/linux/sched/signal.h:452:9: sparse: sparse: dereference of noderef expression
   kernel/ptrace.c:533:38: sparse: sparse: dereference of noderef expression
   include/linux/sched/signal.h:744:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   include/linux/sched/signal.h:744:37: sparse:     expected struct spinlock [usertype] *lock
   include/linux/sched/signal.h:744:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:723:9: sparse: sparse: context imbalance in 'ptrace_getsiginfo' - different lock contexts for basic block
   include/linux/sched/signal.h:744:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   include/linux/sched/signal.h:744:37: sparse:     expected struct spinlock [usertype] *lock
   include/linux/sched/signal.h:744:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:739:9: sparse: sparse: context imbalance in 'ptrace_setsiginfo' - different lock contexts for basic block
   kernel/ptrace.c:913:9: sparse: sparse: context imbalance in 'ptrace_resume' - different lock contexts for basic block
>> include/linux/sched/signal.h:452:9: sparse: sparse: dereference of noderef expression
   include/linux/sched/signal.h:744:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   include/linux/sched/signal.h:744:37: sparse:     expected struct spinlock [usertype] *lock
   include/linux/sched/signal.h:744:37: sparse:     got struct spinlock [noderef] __rcu *
>> include/linux/sched/signal.h:452:9: sparse: sparse: dereference of noderef expression
   include/linux/sched/signal.h:744:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   include/linux/sched/signal.h:744:37: sparse:     expected struct spinlock [usertype] *lock
   include/linux/sched/signal.h:744:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/ptrace.c:1295:9: sparse: sparse: context imbalance in 'ptrace_request' - different lock contexts for basic block
--
   kernel/signal.c:2107:46: sparse:     got struct task_struct [noderef] __rcu *parent
   kernel/signal.c:2108:34: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected struct task_struct *parent @@     got struct task_struct [noderef] __rcu *parent @@
   kernel/signal.c:2108:34: sparse:     expected struct task_struct *parent
   kernel/signal.c:2108:34: sparse:     got struct task_struct [noderef] __rcu *parent
   kernel/signal.c:2137:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct task_struct *parent @@     got struct task_struct [noderef] __rcu *parent @@
   kernel/signal.c:2137:24: sparse:     expected struct task_struct *parent
   kernel/signal.c:2137:24: sparse:     got struct task_struct [noderef] __rcu *parent
   kernel/signal.c:2140:24: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct task_struct *parent @@     got struct task_struct [noderef] __rcu *real_parent @@
   kernel/signal.c:2140:24: sparse:     expected struct task_struct *parent
   kernel/signal.c:2140:24: sparse:     got struct task_struct [noderef] __rcu *real_parent
   kernel/signal.c:2173:17: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct sighand_struct *sighand @@     got struct sighand_struct [noderef] __rcu *sighand @@
   kernel/signal.c:2173:17: sparse:     expected struct sighand_struct *sighand
   kernel/signal.c:2173:17: sparse:     got struct sighand_struct [noderef] __rcu *sighand
   kernel/signal.c:2214:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:2214:41: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:2214:41: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:2216:39: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:2216:39: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:2216:39: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:2268:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:2268:33: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:2268:33: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:2324:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:2324:31: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:2324:31: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:2365:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:2365:31: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:2365:31: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:2367:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:2367:33: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:2367:33: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:2467:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:2467:41: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:2467:41: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:2551:41: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:2551:41: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:2551:41: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:2563:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:2563:33: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:2563:33: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:2598:52: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *tsk @@     got struct task_struct [noderef] __rcu *parent @@
   kernel/signal.c:2598:52: sparse:     expected struct task_struct *tsk
   kernel/signal.c:2598:52: sparse:     got struct task_struct [noderef] __rcu *parent
   kernel/signal.c:2600:49: sparse: sparse: cast removes address space '__rcu' of expression
   kernel/signal.c:2638:49: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected struct sighand_struct *sighand @@     got struct sighand_struct [noderef] __rcu *sighand @@
   kernel/signal.c:2638:49: sparse:     expected struct sighand_struct *sighand
   kernel/signal.c:2638:49: sparse:     got struct sighand_struct [noderef] __rcu *sighand
   kernel/signal.c:2967:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:2967:27: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:2967:27: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:2987:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:2987:29: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:2987:29: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:3054:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:3054:27: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:3054:27: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:3056:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:3056:29: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:3056:29: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:3207:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:3207:31: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:3207:31: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:3210:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:3210:33: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:3210:33: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:3597:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:3597:27: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:3597:27: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:3609:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:3609:37: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:3609:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:3614:35: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:3614:35: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:3614:35: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:3619:29: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:3619:29: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:3619:29: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:4073:31: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:4073:31: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:4073:31: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:4085:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:4085:33: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:4085:33: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:4103:11: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct k_sigaction *k @@     got struct k_sigaction [noderef] __rcu * @@
   kernel/signal.c:4103:11: sparse:     expected struct k_sigaction *k
   kernel/signal.c:4103:11: sparse:     got struct k_sigaction [noderef] __rcu *
   kernel/signal.c:4105:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:4105:25: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:4105:25: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:4107:35: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:4107:35: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:4107:35: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:4155:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   kernel/signal.c:4155:27: sparse:     expected struct spinlock [usertype] *lock
   kernel/signal.c:4155:27: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:69:34: sparse: sparse: dereference of noderef expression
   kernel/signal.c: note: in included file (through include/linux/sched/cputime.h):
   include/linux/sched/signal.h:442:9: sparse: sparse: dereference of noderef expression
   kernel/signal.c:529:35: sparse: sparse: dereference of noderef expression
   kernel/signal.c:557:52: sparse: sparse: dereference of noderef expression
>> include/linux/sched/signal.h:452:9: sparse: sparse: dereference of noderef expression
   kernel/signal.c:1035:13: sparse: sparse: dereference of noderef expression
   include/linux/sched/signal.h:442:9: sparse: sparse: dereference of noderef expression
   include/linux/sched/signal.h:442:9: sparse: sparse: dereference of noderef expression
   kernel/signal.c: note: in included file:
   include/linux/signalfd.h:21:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct wait_queue_head *wq_head @@     got struct wait_queue_head [noderef] __rcu * @@
   include/linux/signalfd.h:21:13: sparse:     expected struct wait_queue_head *wq_head
   include/linux/signalfd.h:21:13: sparse:     got struct wait_queue_head [noderef] __rcu *
   include/linux/signalfd.h:22:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct wait_queue_head *wq_head @@     got struct wait_queue_head [noderef] __rcu * @@
   include/linux/signalfd.h:22:17: sparse:     expected struct wait_queue_head *wq_head
   include/linux/signalfd.h:22:17: sparse:     got struct wait_queue_head [noderef] __rcu *
   kernel/signal.c: note: in included file (through include/linux/sched/cputime.h):
   include/linux/sched/signal.h:744:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   include/linux/sched/signal.h:744:37: sparse:     expected struct spinlock [usertype] *lock
   include/linux/sched/signal.h:744:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c:1302:9: sparse: sparse: context imbalance in 'do_send_sig_info' - different lock contexts for basic block
   include/linux/sched/signal.h:442:9: sparse: sparse: dereference of noderef expression
   kernel/signal.c: note: in included file (through include/linux/rbtree.h, include/linux/mm_types.h, include/linux/mmzone.h, ...):
   include/linux/rcupdate.h:725:9: sparse: sparse: context imbalance in '__lock_task_sighand' - different lock contexts for basic block
   kernel/signal.c: note: in included file (through include/linux/sched/cputime.h):
   include/linux/sched/signal.h:744:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   include/linux/sched/signal.h:744:37: sparse:     expected struct spinlock [usertype] *lock
   include/linux/sched/signal.h:744:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c: note: in included file:
   include/linux/signalfd.h:21:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct wait_queue_head *wq_head @@     got struct wait_queue_head [noderef] __rcu * @@
   include/linux/signalfd.h:21:13: sparse:     expected struct wait_queue_head *wq_head
   include/linux/signalfd.h:21:13: sparse:     got struct wait_queue_head [noderef] __rcu *
   include/linux/signalfd.h:22:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct wait_queue_head *wq_head @@     got struct wait_queue_head [noderef] __rcu * @@
   include/linux/signalfd.h:22:17: sparse:     expected struct wait_queue_head *wq_head
   include/linux/signalfd.h:22:17: sparse:     got struct wait_queue_head [noderef] __rcu *
   kernel/signal.c: note: in included file (through include/linux/sched/cputime.h):
   include/linux/sched/signal.h:744:37: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct spinlock [usertype] *lock @@     got struct spinlock [noderef] __rcu * @@
   include/linux/sched/signal.h:744:37: sparse:     expected struct spinlock [usertype] *lock
   include/linux/sched/signal.h:744:37: sparse:     got struct spinlock [noderef] __rcu *
   kernel/signal.c: note: in included file (through include/linux/rbtree.h, include/linux/mm_types.h, include/linux/mmzone.h, ...):
   include/linux/rcupdate.h:725:9: sparse: sparse: context imbalance in 'send_sigqueue' - wrong count at exit
   kernel/signal.c:2060:40: sparse: sparse: dereference of noderef expression
   kernel/signal.c:2060:40: sparse: sparse: dereference of noderef expression
   kernel/signal.c:2060:40: sparse: sparse: dereference of noderef expression
   kernel/signal.c:2060:40: sparse: sparse: dereference of noderef expression
   kernel/signal.c: note: in included file (through include/uapi/asm-generic/bpf_perf_event.h, arch/sparc/include/generated/uapi/asm/bpf_perf_event.h, ...):
   include/linux/ptrace.h:99:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *p1 @@     got struct task_struct [noderef] __rcu *real_parent @@
   include/linux/ptrace.h:99:40: sparse:     expected struct task_struct *p1
   include/linux/ptrace.h:99:40: sparse:     got struct task_struct [noderef] __rcu *real_parent
   include/linux/ptrace.h:99:60: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected struct task_struct *p2 @@     got struct task_struct [noderef] __rcu *parent @@
   include/linux/ptrace.h:99:60: sparse:     expected struct task_struct *p2
   include/linux/ptrace.h:99:60: sparse:     got struct task_struct [noderef] __rcu *parent
   kernel/signal.c: note: in included file (through include/linux/sched/cputime.h):
   include/linux/sched/signal.h:442:9: sparse: sparse: dereference of noderef expression
   kernel/signal.c:2393:13: sparse: sparse: context imbalance in 'do_signal_stop' - different lock contexts for basic block
   kernel/signal.c:2600:49: sparse: sparse: dereference of noderef expression
   kernel/signal.c:2600:49: sparse: sparse: dereference of noderef expression
   kernel/signal.c:2600:49: sparse: sparse: dereference of noderef expression
   kernel/signal.c:2600:49: sparse: sparse: dereference of noderef expression
   kernel/signal.c: note: in included file (through include/uapi/asm-generic/bpf_perf_event.h, arch/sparc/include/generated/uapi/asm/bpf_perf_event.h, ...):
   include/linux/ptrace.h:99:40: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct task_struct *p1 @@     got struct task_struct [noderef] __rcu *real_parent @@
   include/linux/ptrace.h:99:40: sparse:     expected struct task_struct *p1
   include/linux/ptrace.h:99:40: sparse:     got struct task_struct [noderef] __rcu *real_parent
   include/linux/ptrace.h:99:60: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected struct task_struct *p2 @@     got struct task_struct [noderef] __rcu *parent @@
   include/linux/ptrace.h:99:60: sparse:     expected struct task_struct *p2
   include/linux/ptrace.h:99:60: sparse:     got struct task_struct [noderef] __rcu *parent
   kernel/signal.c:2720:33: sparse: sparse: context imbalance in 'get_signal' - unexpected unlock
   kernel/signal.c: note: in included file (through include/linux/sched/cputime.h):
   include/linux/sched/signal.h:442:9: sparse: sparse: dereference of noderef expression
   kernel/signal.c:4074:33: sparse: sparse: dereference of noderef expression

vim +452 include/linux/sched/signal.h

   449	
   450	static inline void ptrace_signal_wake_up(struct task_struct *t, bool resume)
   451	{
 > 452		lockdep_assert_held(t->sighand->siglock);
   453	
   454		if (resume)
   455			t->jobctl &= ~JOBCTL_TRACED;
   456	
   457		signal_wake_up_state(t, resume ? __TASK_TRACED : 0);
   458	}
   459	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ