All of lore.kernel.org
 help / color / mirror / Atom feed
* include/linux/spinlock_api_smp.h:119:31: sparse: sparse: context imbalance in 'lock_page_lruvec_irqsave' - wrong count at exit
@ 2021-04-25  2:32 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-04-25  2:32 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 5773 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Alex Shi <alex.shi@linux.alibaba.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   2a1d7946fa53cea2083e5981ff55a8176ab2be6b
commit: 6168d0da2b479ce25a4647de194045de1bdd1f1d mm/lru: replace pgdat lru_lock with lruvec lock
date:   4 months ago
:::::: branch date: 10 hours ago
:::::: commit date: 4 months ago
config: arm64-randconfig-s032-20210425 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.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.3-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6168d0da2b479ce25a4647de194045de1bdd1f1d
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 6168d0da2b479ce25a4647de194045de1bdd1f1d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=arm64 

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


sparse warnings: (new ones prefixed by >>)
   mm/memcontrol.c:4234:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
   mm/memcontrol.c:4234:21: sparse:    struct mem_cgroup_threshold_ary [noderef] __rcu *
   mm/memcontrol.c:4234:21: sparse:    struct mem_cgroup_threshold_ary *
   mm/memcontrol.c:4236:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
   mm/memcontrol.c:4236:21: sparse:    struct mem_cgroup_threshold_ary [noderef] __rcu *
   mm/memcontrol.c:4236:21: sparse:    struct mem_cgroup_threshold_ary *
   mm/memcontrol.c:4392:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
   mm/memcontrol.c:4392:9: sparse:    struct mem_cgroup_threshold_ary [noderef] __rcu *
   mm/memcontrol.c:4392:9: sparse:    struct mem_cgroup_threshold_ary *
   mm/memcontrol.c:4486:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
   mm/memcontrol.c:4486:9: sparse:    struct mem_cgroup_threshold_ary [noderef] __rcu *
   mm/memcontrol.c:4486:9: sparse:    struct mem_cgroup_threshold_ary *
   mm/memcontrol.c:6043:23: sparse: sparse: incompatible types in comparison expression (different address spaces):
   mm/memcontrol.c:6043:23: sparse:    struct task_struct [noderef] __rcu *
   mm/memcontrol.c:6043:23: sparse:    struct task_struct *
   mm/memcontrol.c: note: in included file (through include/linux/rculist.h, include/linux/pid.h, include/linux/sched.h, ...):
   include/linux/rcupdate.h:694:9: sparse: sparse: context imbalance in 'lock_page_lruvec' - wrong count at exit
   include/linux/rcupdate.h:694:9: sparse: sparse: context imbalance in 'lock_page_lruvec_irq' - wrong count at exit
   mm/memcontrol.c: note: in included file (through include/linux/spinlock.h, include/linux/wait.h, include/linux/pid.h, ...):
>> include/linux/spinlock_api_smp.h:119:31: sparse: sparse: context imbalance in 'lock_page_lruvec_irqsave' - wrong count at exit
   mm/memcontrol.c:2201:19: sparse: sparse: context imbalance in 'lock_page_memcg' - wrong count at exit
   mm/memcontrol.c:2263:17: sparse: sparse: context imbalance in '__unlock_page_memcg' - unexpected unlock

vim +/lock_page_lruvec_irqsave +119 include/linux/spinlock_api_smp.h

69d0ee7377eef8 Heiko Carstens  2009-08-31  103  
9c1721aa4994f6 Thomas Gleixner 2009-12-03  104  static inline unsigned long __raw_spin_lock_irqsave(raw_spinlock_t *lock)
69d0ee7377eef8 Heiko Carstens  2009-08-31  105  {
69d0ee7377eef8 Heiko Carstens  2009-08-31  106  	unsigned long flags;
69d0ee7377eef8 Heiko Carstens  2009-08-31  107  
69d0ee7377eef8 Heiko Carstens  2009-08-31  108  	local_irq_save(flags);
69d0ee7377eef8 Heiko Carstens  2009-08-31  109  	preempt_disable();
69d0ee7377eef8 Heiko Carstens  2009-08-31  110  	spin_acquire(&lock->dep_map, 0, 0, _RET_IP_);
69d0ee7377eef8 Heiko Carstens  2009-08-31  111  	/*
69d0ee7377eef8 Heiko Carstens  2009-08-31  112  	 * On lockdep we dont want the hand-coded irq-enable of
9828ea9d75c38f Thomas Gleixner 2009-12-03  113  	 * do_raw_spin_lock_flags() code, because lockdep assumes
69d0ee7377eef8 Heiko Carstens  2009-08-31  114  	 * that interrupts are not re-enabled during lock-acquire:
69d0ee7377eef8 Heiko Carstens  2009-08-31  115  	 */
69d0ee7377eef8 Heiko Carstens  2009-08-31  116  #ifdef CONFIG_LOCKDEP
9828ea9d75c38f Thomas Gleixner 2009-12-03  117  	LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock);
69d0ee7377eef8 Heiko Carstens  2009-08-31  118  #else
9828ea9d75c38f Thomas Gleixner 2009-12-03 @119  	do_raw_spin_lock_flags(lock, &flags);
69d0ee7377eef8 Heiko Carstens  2009-08-31  120  #endif
69d0ee7377eef8 Heiko Carstens  2009-08-31  121  	return flags;
69d0ee7377eef8 Heiko Carstens  2009-08-31  122  }
69d0ee7377eef8 Heiko Carstens  2009-08-31  123  

:::::: The code at line 119 was first introduced by commit
:::::: 9828ea9d75c38fe3dce05d00566eed61c85732e6 locking: Further name space cleanups

:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31105 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* include/linux/spinlock_api_smp.h:119:31: sparse: sparse: context imbalance in 'lock_page_lruvec_irqsave' - wrong count at exit
@ 2021-08-11 13:36 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-08-11 13:36 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 5793 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Alex Shi <alex.shi@linux.alibaba.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   761c6d7ec820f123b931e7b8ef7ec7c8564e450f
commit: 6168d0da2b479ce25a4647de194045de1bdd1f1d mm/lru: replace pgdat lru_lock with lruvec lock
date:   8 months ago
:::::: branch date: 11 hours ago
:::::: commit date: 8 months ago
config: s390-randconfig-s032-20210811 (attached as .config)
compiler: s390-linux-gcc (GCC) 10.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.3-348-gf0e6938b-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6168d0da2b479ce25a4647de194045de1bdd1f1d
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 6168d0da2b479ce25a4647de194045de1bdd1f1d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=s390 SHELL=/bin/bash

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


sparse warnings: (new ones prefixed by >>)
   mm/memcontrol.c:4234:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
   mm/memcontrol.c:4234:21: sparse:    struct mem_cgroup_threshold_ary [noderef] __rcu *
   mm/memcontrol.c:4234:21: sparse:    struct mem_cgroup_threshold_ary *
   mm/memcontrol.c:4236:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
   mm/memcontrol.c:4236:21: sparse:    struct mem_cgroup_threshold_ary [noderef] __rcu *
   mm/memcontrol.c:4236:21: sparse:    struct mem_cgroup_threshold_ary *
   mm/memcontrol.c:4392:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
   mm/memcontrol.c:4392:9: sparse:    struct mem_cgroup_threshold_ary [noderef] __rcu *
   mm/memcontrol.c:4392:9: sparse:    struct mem_cgroup_threshold_ary *
   mm/memcontrol.c:4486:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
   mm/memcontrol.c:4486:9: sparse:    struct mem_cgroup_threshold_ary [noderef] __rcu *
   mm/memcontrol.c:4486:9: sparse:    struct mem_cgroup_threshold_ary *
   mm/memcontrol.c:6043:23: sparse: sparse: incompatible types in comparison expression (different address spaces):
   mm/memcontrol.c:6043:23: sparse:    struct task_struct [noderef] __rcu *
   mm/memcontrol.c:6043:23: sparse:    struct task_struct *
   mm/memcontrol.c: note: in included file (through include/linux/rculist.h, include/linux/pid.h, include/linux/sched.h, ...):
   include/linux/rcupdate.h:694:9: sparse: sparse: context imbalance in 'lock_page_lruvec' - wrong count at exit
   include/linux/rcupdate.h:694:9: sparse: sparse: context imbalance in 'lock_page_lruvec_irq' - wrong count at exit
   mm/memcontrol.c: note: in included file (through include/linux/spinlock.h, include/linux/wait.h, include/linux/pid.h, ...):
>> include/linux/spinlock_api_smp.h:119:31: sparse: sparse: context imbalance in 'lock_page_lruvec_irqsave' - wrong count at exit
   mm/memcontrol.c:2201:19: sparse: sparse: context imbalance in 'lock_page_memcg' - wrong count at exit
   mm/memcontrol.c:2263:17: sparse: sparse: context imbalance in '__unlock_page_memcg' - unexpected unlock

vim +/lock_page_lruvec_irqsave +119 include/linux/spinlock_api_smp.h

69d0ee7377eef8 Heiko Carstens  2009-08-31  103  
9c1721aa4994f6 Thomas Gleixner 2009-12-03  104  static inline unsigned long __raw_spin_lock_irqsave(raw_spinlock_t *lock)
69d0ee7377eef8 Heiko Carstens  2009-08-31  105  {
69d0ee7377eef8 Heiko Carstens  2009-08-31  106  	unsigned long flags;
69d0ee7377eef8 Heiko Carstens  2009-08-31  107  
69d0ee7377eef8 Heiko Carstens  2009-08-31  108  	local_irq_save(flags);
69d0ee7377eef8 Heiko Carstens  2009-08-31  109  	preempt_disable();
69d0ee7377eef8 Heiko Carstens  2009-08-31  110  	spin_acquire(&lock->dep_map, 0, 0, _RET_IP_);
69d0ee7377eef8 Heiko Carstens  2009-08-31  111  	/*
69d0ee7377eef8 Heiko Carstens  2009-08-31  112  	 * On lockdep we dont want the hand-coded irq-enable of
9828ea9d75c38f Thomas Gleixner 2009-12-03  113  	 * do_raw_spin_lock_flags() code, because lockdep assumes
69d0ee7377eef8 Heiko Carstens  2009-08-31  114  	 * that interrupts are not re-enabled during lock-acquire:
69d0ee7377eef8 Heiko Carstens  2009-08-31  115  	 */
69d0ee7377eef8 Heiko Carstens  2009-08-31  116  #ifdef CONFIG_LOCKDEP
9828ea9d75c38f Thomas Gleixner 2009-12-03  117  	LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock);
69d0ee7377eef8 Heiko Carstens  2009-08-31  118  #else
9828ea9d75c38f Thomas Gleixner 2009-12-03 @119  	do_raw_spin_lock_flags(lock, &flags);
69d0ee7377eef8 Heiko Carstens  2009-08-31  120  #endif
69d0ee7377eef8 Heiko Carstens  2009-08-31  121  	return flags;
69d0ee7377eef8 Heiko Carstens  2009-08-31  122  }
69d0ee7377eef8 Heiko Carstens  2009-08-31  123  

:::::: The code at line 119 was first introduced by commit
:::::: 9828ea9d75c38fe3dce05d00566eed61c85732e6 locking: Further name space cleanups

:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 39568 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* include/linux/spinlock_api_smp.h:119:31: sparse: sparse: context imbalance in 'lock_page_lruvec_irqsave' - wrong count at exit
@ 2021-04-24 21:05 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-04-24 21:05 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 5767 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Alex Shi <alex.shi@linux.alibaba.com>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   2a1d7946fa53cea2083e5981ff55a8176ab2be6b
commit: 6168d0da2b479ce25a4647de194045de1bdd1f1d mm/lru: replace pgdat lru_lock with lruvec lock
date:   4 months ago
:::::: branch date: 4 hours ago
:::::: commit date: 4 months ago
config: s390-randconfig-s032-20210425 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.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.3-341-g8af24329-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6168d0da2b479ce25a4647de194045de1bdd1f1d
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 6168d0da2b479ce25a4647de194045de1bdd1f1d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=s390 

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


sparse warnings: (new ones prefixed by >>)
   mm/memcontrol.c:4234:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
   mm/memcontrol.c:4234:21: sparse:    struct mem_cgroup_threshold_ary [noderef] __rcu *
   mm/memcontrol.c:4234:21: sparse:    struct mem_cgroup_threshold_ary *
   mm/memcontrol.c:4236:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
   mm/memcontrol.c:4236:21: sparse:    struct mem_cgroup_threshold_ary [noderef] __rcu *
   mm/memcontrol.c:4236:21: sparse:    struct mem_cgroup_threshold_ary *
   mm/memcontrol.c:4392:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
   mm/memcontrol.c:4392:9: sparse:    struct mem_cgroup_threshold_ary [noderef] __rcu *
   mm/memcontrol.c:4392:9: sparse:    struct mem_cgroup_threshold_ary *
   mm/memcontrol.c:4486:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
   mm/memcontrol.c:4486:9: sparse:    struct mem_cgroup_threshold_ary [noderef] __rcu *
   mm/memcontrol.c:4486:9: sparse:    struct mem_cgroup_threshold_ary *
   mm/memcontrol.c:6043:23: sparse: sparse: incompatible types in comparison expression (different address spaces):
   mm/memcontrol.c:6043:23: sparse:    struct task_struct [noderef] __rcu *
   mm/memcontrol.c:6043:23: sparse:    struct task_struct *
   mm/memcontrol.c: note: in included file (through include/linux/rculist.h, include/linux/pid.h, include/linux/sched.h, ...):
   include/linux/rcupdate.h:694:9: sparse: sparse: context imbalance in 'lock_page_lruvec' - wrong count at exit
   include/linux/rcupdate.h:694:9: sparse: sparse: context imbalance in 'lock_page_lruvec_irq' - wrong count at exit
   mm/memcontrol.c: note: in included file (through include/linux/spinlock.h, include/linux/wait.h, include/linux/pid.h, ...):
>> include/linux/spinlock_api_smp.h:119:31: sparse: sparse: context imbalance in 'lock_page_lruvec_irqsave' - wrong count at exit
   mm/memcontrol.c:2201:19: sparse: sparse: context imbalance in 'lock_page_memcg' - wrong count at exit
   mm/memcontrol.c:2263:17: sparse: sparse: context imbalance in '__unlock_page_memcg' - unexpected unlock

vim +/lock_page_lruvec_irqsave +119 include/linux/spinlock_api_smp.h

69d0ee7377eef8 Heiko Carstens  2009-08-31  103  
9c1721aa4994f6 Thomas Gleixner 2009-12-03  104  static inline unsigned long __raw_spin_lock_irqsave(raw_spinlock_t *lock)
69d0ee7377eef8 Heiko Carstens  2009-08-31  105  {
69d0ee7377eef8 Heiko Carstens  2009-08-31  106  	unsigned long flags;
69d0ee7377eef8 Heiko Carstens  2009-08-31  107  
69d0ee7377eef8 Heiko Carstens  2009-08-31  108  	local_irq_save(flags);
69d0ee7377eef8 Heiko Carstens  2009-08-31  109  	preempt_disable();
69d0ee7377eef8 Heiko Carstens  2009-08-31  110  	spin_acquire(&lock->dep_map, 0, 0, _RET_IP_);
69d0ee7377eef8 Heiko Carstens  2009-08-31  111  	/*
69d0ee7377eef8 Heiko Carstens  2009-08-31  112  	 * On lockdep we dont want the hand-coded irq-enable of
9828ea9d75c38f Thomas Gleixner 2009-12-03  113  	 * do_raw_spin_lock_flags() code, because lockdep assumes
69d0ee7377eef8 Heiko Carstens  2009-08-31  114  	 * that interrupts are not re-enabled during lock-acquire:
69d0ee7377eef8 Heiko Carstens  2009-08-31  115  	 */
69d0ee7377eef8 Heiko Carstens  2009-08-31  116  #ifdef CONFIG_LOCKDEP
9828ea9d75c38f Thomas Gleixner 2009-12-03  117  	LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock);
69d0ee7377eef8 Heiko Carstens  2009-08-31  118  #else
9828ea9d75c38f Thomas Gleixner 2009-12-03 @119  	do_raw_spin_lock_flags(lock, &flags);
69d0ee7377eef8 Heiko Carstens  2009-08-31  120  #endif
69d0ee7377eef8 Heiko Carstens  2009-08-31  121  	return flags;
69d0ee7377eef8 Heiko Carstens  2009-08-31  122  }
69d0ee7377eef8 Heiko Carstens  2009-08-31  123  

:::::: The code at line 119 was first introduced by commit
:::::: 9828ea9d75c38fe3dce05d00566eed61c85732e6 locking: Further name space cleanups

:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 16492 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-11 13:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-25  2:32 include/linux/spinlock_api_smp.h:119:31: sparse: sparse: context imbalance in 'lock_page_lruvec_irqsave' - wrong count at exit kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-08-11 13:36 kernel test robot
2021-04-24 21:05 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.