CC: [email protected]
CC: [email protected]
TO: Jason Gunthorpe <[email protected]>
CC: Leon Romanovsky <[email protected]>

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 <[email protected]>


"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 <[email protected]>
:::::: CC: Ingo Molnar <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to