linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [mmotm:master 106/260] include/linux/spinlock.h:378:9: sparse: sparse: context imbalance in 'dump_tasks' - unexpected unlock
@ 2020-08-11  9:48 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-08-11  9:48 UTC (permalink / raw)
  To: Tetsuo Handa
  Cc: kbuild-all, Johannes Weiner, Andrew Morton, Linux Memory Management List

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

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   89331b857195aa00660fb19f1383924e95f7709e
commit: 57cfa5e82e8d30fd8532f606df1d77c1408cf97d [106/260] mm, oom: avoid printk() iteration under RCU
config: mips-randconfig-s032-20200811 (attached as .config)
compiler: mips64-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.2-168-g9554805c-dirty
        git checkout 57cfa5e82e8d30fd8532f606df1d77c1408cf97d
        # 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__' ARCH=mips 

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/oom_kill.c: note: in included file (through include/linux/rculist.h, include/linux/sched/signal.h, include/linux/oom.h):
   include/linux/rcupdate.h:642:9: sparse: sparse: context imbalance in 'find_lock_task_mm' - wrong count at exit
   mm/oom_kill.c: note: in included file:
   include/linux/sched/mm.h:166:37: sparse: sparse: dereference of noderef expression
   mm/oom_kill.c: note: in included file (through include/linux/wait.h, include/linux/pid.h, include/linux/sched.h, ...):
   include/linux/spinlock.h:378:9: sparse: sparse: context imbalance in 'oom_badness' - unexpected unlock
>> include/linux/spinlock.h:378:9: sparse: sparse: context imbalance in 'dump_tasks' - unexpected unlock
   mm/oom_kill.c: note: in included file (through include/linux/rculist.h, include/linux/sched/signal.h, include/linux/oom.h):
   include/linux/rcupdate.h:644:9: sparse: sparse: context imbalance in '__oom_kill_process' - unexpected unlock

vim +/dump_tasks +378 include/linux/spinlock.h

c2f21ce2e31286 Thomas Gleixner 2009-12-02  375  
3490565b633c70 Denys Vlasenko  2015-07-13  376  static __always_inline void spin_unlock(spinlock_t *lock)
c2f21ce2e31286 Thomas Gleixner 2009-12-02  377  {
c2f21ce2e31286 Thomas Gleixner 2009-12-02 @378  	raw_spin_unlock(&lock->rlock);
c2f21ce2e31286 Thomas Gleixner 2009-12-02  379  }
c2f21ce2e31286 Thomas Gleixner 2009-12-02  380  

:::::: The code at line 378 was first introduced by commit
:::::: c2f21ce2e31286a0a32f8da0a7856e9ca1122ef3 locking: Implement new raw_spinlock

:::::: 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@lists.01.org

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

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

* [mmotm:master 106/260] include/linux/spinlock.h:378:9: sparse: sparse: context imbalance in 'dump_tasks' - unexpected unlock
@ 2020-06-28  4:09 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-06-28  4:09 UTC (permalink / raw)
  To: Tetsuo Handa
  Cc: kbuild-all, Johannes Weiner, Andrew Morton, Linux Memory Management List

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

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   89331b857195aa00660fb19f1383924e95f7709e
commit: 57cfa5e82e8d30fd8532f606df1d77c1408cf97d [106/260] mm, oom: avoid printk() iteration under RCU
config: arm-randconfig-s031-20200628 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-dirty
        git checkout 57cfa5e82e8d30fd8532f606df1d77c1408cf97d
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=arm CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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 >>)

   include/linux/rcupdate.h:642:9: sparse: sparse: context imbalance in 'find_lock_task_mm' - wrong count at exit
   include/linux/sched/mm.h:166:37: sparse: sparse: dereference of noderef expression
   include/linux/spinlock.h:378:9: sparse: sparse: context imbalance in 'oom_badness' - unexpected unlock
>> include/linux/spinlock.h:378:9: sparse: sparse: context imbalance in 'dump_tasks' - unexpected unlock
   include/linux/rcupdate.h:644:9: sparse: sparse: context imbalance in '__oom_kill_process' - unexpected unlock

vim +/dump_tasks +378 include/linux/spinlock.h

c2f21ce2e31286 Thomas Gleixner 2009-12-02  375  
3490565b633c70 Denys Vlasenko  2015-07-13  376  static __always_inline void spin_unlock(spinlock_t *lock)
c2f21ce2e31286 Thomas Gleixner 2009-12-02  377  {
c2f21ce2e31286 Thomas Gleixner 2009-12-02 @378  	raw_spin_unlock(&lock->rlock);
c2f21ce2e31286 Thomas Gleixner 2009-12-02  379  }
c2f21ce2e31286 Thomas Gleixner 2009-12-02  380  

:::::: The code at line 378 was first introduced by commit
:::::: c2f21ce2e31286a0a32f8da0a7856e9ca1122ef3 locking: Implement new raw_spinlock

:::::: 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@lists.01.org

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

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

* [mmotm:master 106/260] include/linux/spinlock.h:378:9: sparse: sparse: context imbalance in 'dump_tasks' - unexpected unlock
@ 2020-06-14 14:47 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-06-14 14:47 UTC (permalink / raw)
  To: Tetsuo Handa
  Cc: kbuild-all, Johannes Weiner, Andrew Morton, Linux Memory Management List

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

tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   89331b857195aa00660fb19f1383924e95f7709e
commit: 57cfa5e82e8d30fd8532f606df1d77c1408cf97d [106/260] mm, oom: avoid printk() iteration under RCU
config: x86_64-randconfig-s021-20200614 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-250-g42323db3-dirty
        git checkout 57cfa5e82e8d30fd8532f606df1d77c1408cf97d
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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 >>)

   include/linux/rcupdate.h:642:9: sparse: sparse: context imbalance in 'find_lock_task_mm' - wrong count at exit
   include/linux/sched/mm.h:166:37: sparse: sparse: dereference of noderef expression
   include/linux/spinlock.h:378:9: sparse: sparse: context imbalance in 'oom_badness' - unexpected unlock
>> include/linux/spinlock.h:378:9: sparse: sparse: context imbalance in 'dump_tasks' - unexpected unlock
   include/linux/rcupdate.h:644:9: sparse: sparse: context imbalance in '__oom_kill_process' - unexpected unlock

vim +/dump_tasks +378 include/linux/spinlock.h

c2f21ce2e31286 Thomas Gleixner 2009-12-02  375  
3490565b633c70 Denys Vlasenko  2015-07-13  376  static __always_inline void spin_unlock(spinlock_t *lock)
c2f21ce2e31286 Thomas Gleixner 2009-12-02  377  {
c2f21ce2e31286 Thomas Gleixner 2009-12-02 @378  	raw_spin_unlock(&lock->rlock);
c2f21ce2e31286 Thomas Gleixner 2009-12-02  379  }
c2f21ce2e31286 Thomas Gleixner 2009-12-02  380  

:::::: The code at line 378 was first introduced by commit
:::::: c2f21ce2e31286a0a32f8da0a7856e9ca1122ef3 locking: Implement new raw_spinlock

:::::: 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@lists.01.org

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

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

end of thread, other threads:[~2020-08-11  9:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11  9:48 [mmotm:master 106/260] include/linux/spinlock.h:378:9: sparse: sparse: context imbalance in 'dump_tasks' - unexpected unlock kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-06-28  4:09 kernel test robot
2020-06-14 14:47 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).