All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* include/linux/spinlock_api_smp.h:161:9: sparse: sparse: context imbalance in 'destroy_id_handler_unlock' - wrong count at exit
@ 2020-12-30  1:39 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-12-30  1:39 UTC (permalink / raw
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Jason Gunthorpe <jgg@nvidia.com>
CC: Leon Romanovsky <leonro@mellanox.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   139711f033f636cc78b6aaf7363252241b9698ef
commit: f6a9d47ae6854980fc4b1676f1fe9f9fa45ea4e2 RDMA/cma: Execute rdma_cm destruction from a handler properly
date:   5 months ago
:::::: branch date: 2 hours ago
:::::: commit date: 5 months ago
config: s390-randconfig-s031-20201230 (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-184-g1b896707-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f6a9d47ae6854980fc4b1676f1fe9f9fa45ea4e2
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout f6a9d47ae6854980fc4b1676f1fe9f9fa45ea4e2
        # 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=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 >>)"
   drivers/infiniband/core/cma.c: note: in included file (through include/linux/spinlock.h, include/linux/swait.h, include/linux/completion.h):
>> include/linux/spinlock_api_smp.h:161:9: sparse: sparse: context imbalance in 'destroy_id_handler_unlock' - wrong count at exit
   drivers/infiniband/core/cma.c:1876:6: sparse: sparse: context imbalance in 'rdma_destroy_id' - unexpected unlock
   drivers/infiniband/core/cma.c:2016:17: sparse: sparse: context imbalance in 'cma_ib_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:2207:17: sparse: sparse: context imbalance in 'cma_ib_req_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:2331:17: sparse: sparse: context imbalance in 'cma_iw_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:2379:17: sparse: sparse: context imbalance in 'iw_conn_req_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:2647:17: sparse: sparse: context imbalance in 'cma_work_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:2670:17: sparse: sparse: context imbalance in 'cma_ndev_work_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:3154:17: sparse: sparse: context imbalance in 'addr_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:3808:17: sparse: sparse: context imbalance in 'cma_sidr_rep_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:4339:17: sparse: sparse: context imbalance in 'cma_ib_mc_handler' - unexpected unlock

vim +/destroy_id_handler_unlock +161 include/linux/spinlock_api_smp.h

69d0ee7377eef80 Heiko Carstens  2009-08-31  154  
9c1721aa4994f66 Thomas Gleixner 2009-12-03  155  static inline void __raw_spin_unlock_irqrestore(raw_spinlock_t *lock,
69d0ee7377eef80 Heiko Carstens  2009-08-31  156  					    unsigned long flags)
69d0ee7377eef80 Heiko Carstens  2009-08-31  157  {
5facae4f3549b5c Qian Cai        2019-09-19  158  	spin_release(&lock->dep_map, _RET_IP_);
9828ea9d75c38fe Thomas Gleixner 2009-12-03  159  	do_raw_spin_unlock(lock);
69d0ee7377eef80 Heiko Carstens  2009-08-31  160  	local_irq_restore(flags);
69d0ee7377eef80 Heiko Carstens  2009-08-31 @161  	preempt_enable();
69d0ee7377eef80 Heiko Carstens  2009-08-31  162  }
69d0ee7377eef80 Heiko Carstens  2009-08-31  163  

:::::: The code at line 161 was first introduced by commit
:::::: 69d0ee7377eef808e34ba5542b554ec97244b871 locking: Move spinlock function bodies to header file

:::::: TO: Heiko Carstens <heiko.carstens@de.ibm.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>

---
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: 24421 bytes --]

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

* include/linux/spinlock_api_smp.h:161:9: sparse: sparse: context imbalance in 'destroy_id_handler_unlock' - wrong count at exit
@ 2021-06-18 14:25 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-06-18 14:25 UTC (permalink / raw
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Jason Gunthorpe <jgg@nvidia.com>
CC: Leon Romanovsky <leonro@mellanox.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fd0aa1a4567d0f09e1bfe367a950b004f99ac290
commit: f6a9d47ae6854980fc4b1676f1fe9f9fa45ea4e2 RDMA/cma: Execute rdma_cm destruction from a handler properly
date:   11 months ago
:::::: branch date: 18 hours ago
:::::: commit date: 11 months ago
config: arm64-randconfig-s031-20210618 (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=f6a9d47ae6854980fc4b1676f1fe9f9fa45ea4e2
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout f6a9d47ae6854980fc4b1676f1fe9f9fa45ea4e2
        # 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 >>)
   drivers/infiniband/core/cma.c: note: in included file (through include/linux/spinlock.h, include/linux/swait.h, include/linux/completion.h):
>> include/linux/spinlock_api_smp.h:161:9: sparse: sparse: context imbalance in 'destroy_id_handler_unlock' - wrong count at exit
   drivers/infiniband/core/cma.c:1876:6: sparse: sparse: context imbalance in 'rdma_destroy_id' - unexpected unlock
   drivers/infiniband/core/cma.c:2016:17: sparse: sparse: context imbalance in 'cma_ib_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:2207:17: sparse: sparse: context imbalance in 'cma_ib_req_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:2331:17: sparse: sparse: context imbalance in 'cma_iw_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:2379:17: sparse: sparse: context imbalance in 'iw_conn_req_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:2647:17: sparse: sparse: context imbalance in 'cma_work_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:2670:17: sparse: sparse: context imbalance in 'cma_ndev_work_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:3154:17: sparse: sparse: context imbalance in 'addr_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:3808:17: sparse: sparse: context imbalance in 'cma_sidr_rep_handler' - unexpected unlock
   drivers/infiniband/core/cma.c:4339:17: sparse: sparse: context imbalance in 'cma_ib_mc_handler' - unexpected unlock

vim +/destroy_id_handler_unlock +161 include/linux/spinlock_api_smp.h

69d0ee7377eef8 Heiko Carstens  2009-08-31  154  
9c1721aa4994f6 Thomas Gleixner 2009-12-03  155  static inline void __raw_spin_unlock_irqrestore(raw_spinlock_t *lock,
69d0ee7377eef8 Heiko Carstens  2009-08-31  156  					    unsigned long flags)
69d0ee7377eef8 Heiko Carstens  2009-08-31  157  {
5facae4f3549b5 Qian Cai        2019-09-19  158  	spin_release(&lock->dep_map, _RET_IP_);
9828ea9d75c38f Thomas Gleixner 2009-12-03  159  	do_raw_spin_unlock(lock);
69d0ee7377eef8 Heiko Carstens  2009-08-31  160  	local_irq_restore(flags);
69d0ee7377eef8 Heiko Carstens  2009-08-31 @161  	preempt_enable();
69d0ee7377eef8 Heiko Carstens  2009-08-31  162  }
69d0ee7377eef8 Heiko Carstens  2009-08-31  163  

:::::: The code at line 161 was first introduced by commit
:::::: 69d0ee7377eef808e34ba5542b554ec97244b871 locking: Move spinlock function bodies to header file

:::::: TO: Heiko Carstens <heiko.carstens@de.ibm.com>
:::::: CC: Ingo Molnar <mingo@elte.hu>

---
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: 38328 bytes --]

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

end of thread, other threads:[~2021-06-18 14:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-18 14:25 include/linux/spinlock_api_smp.h:161:9: sparse: sparse: context imbalance in 'destroy_id_handler_unlock' - wrong count at exit kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-12-30  1:39 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.