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: <202006111232.Lp2mbCwi%lkp@intel.com>
Date:   Thu, 11 Jun 2020 12:20:39 +0800
From:   kernel test robot <lkp@...el.com>
To:     Josh Don <joshdon@...gle.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Peter Zijlstra <peterz@...radead.org>,
        Phil Auld <pauld@...hat.com>
Subject: include/asm-generic/qspinlock.h:94:9: sparse: sparse: context
 imbalance in 'do_sched_cfs_period_timer' - unexpected unlock

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b29482fde649c72441d5478a4ea2c52c56d97a5e
commit: ab93a4bc955b3980c699430bc0b633f0d8b607be sched/fair: Remove distribute_running from CFS bandwidth
date:   6 weeks ago
config: arm64-randconfig-s032-20200611 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-250-g42323db3-dirty
        git checkout ab93a4bc955b3980c699430bc0b633f0d8b607be
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=arm64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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/sched/fair.c:882:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected struct sched_entity *se @@     got struct sched_entity [noderef] <asn:4> * @@
   kernel/sched/fair.c:882:34: sparse:     expected struct sched_entity *se
   kernel/sched/fair.c:882:34: sparse:     got struct sched_entity [noderef] <asn:4> *
   kernel/sched/fair.c:4851:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/fair.c:4851:22: sparse:    struct task_struct [noderef] <asn:4> *
   kernel/sched/fair.c:4851:22: sparse:    struct task_struct *
   kernel/sched/fair.c:6533:20: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct sched_domain *[assigned] sd @@     got struct sched_domain [noderef] <asn:4> *parent @@
   kernel/sched/fair.c:6533:20: sparse:     expected struct sched_domain *[assigned] sd
   kernel/sched/fair.c:6533:20: sparse:     got struct sched_domain [noderef] <asn:4> *parent
   kernel/sched/fair.c:6652:9: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct sched_domain *[assigned] tmp @@     got struct sched_domain [noderef] <asn:4> *parent @@
   kernel/sched/fair.c:6652:9: sparse:     expected struct sched_domain *[assigned] tmp
   kernel/sched/fair.c:6652:9: sparse:     got struct sched_domain [noderef] <asn:4> *parent
   kernel/sched/fair.c:6854:38: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected struct task_struct *curr @@     got struct task_struct [noderef] <asn:4> *curr @@
   kernel/sched/fair.c:6854:38: sparse:     expected struct task_struct *curr
   kernel/sched/fair.c:6854:38: sparse:     got struct task_struct [noderef] <asn:4> *curr
   kernel/sched/fair.c:7105:38: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected struct task_struct *curr @@     got struct task_struct [noderef] <asn:4> *curr @@
   kernel/sched/fair.c:7105:38: sparse:     expected struct task_struct *curr
   kernel/sched/fair.c:7105:38: sparse:     got struct task_struct [noderef] <asn:4> *curr
   kernel/sched/fair.c:8063:40: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected struct sched_domain *child @@     got struct sched_domain [noderef] <asn:4> *child @@
   kernel/sched/fair.c:8063:40: sparse:     expected struct sched_domain *child
   kernel/sched/fair.c:8063:40: sparse:     got struct sched_domain [noderef] <asn:4> *child
   kernel/sched/fair.c:8556:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/fair.c:8556:22: sparse:    struct task_struct [noderef] <asn:4> *
   kernel/sched/fair.c:8556:22: sparse:    struct task_struct *
   kernel/sched/fair.c:9800:9: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct sched_domain *[assigned] sd @@     got struct sched_domain [noderef] <asn:4> *parent @@
   kernel/sched/fair.c:9800:9: sparse:     expected struct sched_domain *[assigned] sd
   kernel/sched/fair.c:9800:9: sparse:     got struct sched_domain [noderef] <asn:4> *parent
   kernel/sched/fair.c:9460:44: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected struct sched_domain *sd_parent @@     got struct sched_domain [noderef] <asn:4> *parent @@
   kernel/sched/fair.c:9460:44: sparse:     expected struct sched_domain *sd_parent
   kernel/sched/fair.c:9460:44: sparse:     got struct sched_domain [noderef] <asn:4> *parent
   kernel/sched/fair.c:9879:9: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct sched_domain *[assigned] sd @@     got struct sched_domain [noderef] <asn:4> *parent @@
   kernel/sched/fair.c:9879:9: sparse:     expected struct sched_domain *[assigned] sd
   kernel/sched/fair.c:9879:9: sparse:     got struct sched_domain [noderef] <asn:4> *parent
   kernel/sched/fair.c:10479:9: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct sched_domain *[assigned] sd @@     got struct sched_domain [noderef] <asn:4> *parent @@
   kernel/sched/fair.c:10479:9: sparse:     expected struct sched_domain *[assigned] sd
   kernel/sched/fair.c:10479:9: sparse:     got struct sched_domain [noderef] <asn:4> *parent
   kernel/sched/fair.c:10683:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/fair.c:10683:22: sparse:    struct task_struct [noderef] <asn:4> *
   kernel/sched/fair.c:10683:22: sparse:    struct task_struct *
   kernel/sched/fair.c:10816:30: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/fair.c:10816:30: sparse:    struct task_struct [noderef] <asn:4> *
   kernel/sched/fair.c:10816:30: sparse:    struct task_struct *
>> include/asm-generic/qspinlock.h:94:9: sparse: sparse: context imbalance in 'do_sched_cfs_period_timer' - unexpected unlock
   kernel/sched/fair.c:5908:28: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct sched_domain *sd @@     got struct sched_domain [noderef] <asn:4> *child @@
   kernel/sched/fair.c:5908:28: sparse:     expected struct sched_domain *sd
   kernel/sched/fair.c:5908:28: sparse:     got struct sched_domain [noderef] <asn:4> *child
   kernel/sched/fair.c:5914:28: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct sched_domain *sd @@     got struct sched_domain [noderef] <asn:4> *child @@
   kernel/sched/fair.c:5914:28: sparse:     expected struct sched_domain *sd
   kernel/sched/fair.c:5914:28: sparse:     got struct sched_domain [noderef] <asn:4> *child
   kernel/sched/fair.c:5921:28: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct sched_domain *sd @@     got struct sched_domain [noderef] <asn:4> *child @@
   kernel/sched/fair.c:5921:28: sparse:     expected struct sched_domain *sd
   kernel/sched/fair.c:5921:28: sparse:     got struct sched_domain [noderef] <asn:4> *child
   kernel/sched/fair.c:5929:17: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct sched_domain *[assigned] tmp @@     got struct sched_domain [noderef] <asn:4> *parent @@
   kernel/sched/fair.c:5929:17: sparse:     expected struct sched_domain *[assigned] tmp
   kernel/sched/fair.c:5929:17: sparse:     got struct sched_domain [noderef] <asn:4> *parent
   kernel/sched/sched.h:1808:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
   kernel/sched/sched.h:1808:9: sparse:    struct task_struct [noderef] <asn:4> *
   kernel/sched/sched.h:1808:9: sparse:    struct task_struct *

vim +/do_sched_cfs_period_timer +94 include/asm-generic/qspinlock.h

a33fda35e3a765 Waiman Long 2015-04-24  83  
a33fda35e3a765 Waiman Long 2015-04-24  84  #ifndef queued_spin_unlock
a33fda35e3a765 Waiman Long 2015-04-24  85  /**
a33fda35e3a765 Waiman Long 2015-04-24  86   * queued_spin_unlock - release a queued spinlock
a33fda35e3a765 Waiman Long 2015-04-24  87   * @lock : Pointer to queued spinlock structure
a33fda35e3a765 Waiman Long 2015-04-24  88   */
a33fda35e3a765 Waiman Long 2015-04-24  89  static __always_inline void queued_spin_unlock(struct qspinlock *lock)
a33fda35e3a765 Waiman Long 2015-04-24  90  {
a33fda35e3a765 Waiman Long 2015-04-24  91  	/*
ca50e426f96c90 Pan Xinhui  2016-06-03  92  	 * unlock() needs release semantics:
a33fda35e3a765 Waiman Long 2015-04-24  93  	 */
626e5fbc143589 Will Deacon 2018-04-26 @94  	smp_store_release(&lock->locked, 0);
a33fda35e3a765 Waiman Long 2015-04-24  95  }
a33fda35e3a765 Waiman Long 2015-04-24  96  #endif
a33fda35e3a765 Waiman Long 2015-04-24  97  

:::::: The code at line 94 was first introduced by commit
:::::: 626e5fbc14358901ddaa90ce510e0fbeab310432 locking/qspinlock: Use smp_store_release() in queued_spin_unlock()

:::::: TO: Will Deacon <will.deacon@....com>
:::::: CC: Ingo Molnar <mingo@...nel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (28502 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ