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: <201705090913.4fhIfaLj%fengguang.wu@intel.com>
Date:   Tue, 9 May 2017 09:21:22 +0800
From:   kbuild test robot <fengguang.wu@...el.com>
To:     Anton Blanchard <anton@...ba.org>
Cc:     kbuild-all@...org, linux-kernel@...r.kernel.org,
        Ingo Molnar <mingo@...nel.org>
Subject: include/linux/spinlock_api_smp.h:151:27: sparse: context imbalance
 in '__replace_page' - unexpected unlock

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   2d3e4866dea96b0506395b47bfefb234f2088dac
commit: 6b0b7551428e4caae1e2c023a529465a9a9ae2d4 perf/core: Rename CONFIG_[UK]PROBE_EVENT to CONFIG_[UK]PROBE_EVENTS
date:   10 weeks ago
reproduce:
        # apt-get install sparse
        git checkout 6b0b7551428e4caae1e2c023a529465a9a9ae2d4
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> include/linux/spinlock_api_smp.h:151:27: sparse: context imbalance in '__replace_page' - unexpected unlock

vim +/__replace_page +151 include/linux/spinlock_api_smp.h

69d0ee73 Heiko Carstens  2009-08-31  135  	spin_acquire(&lock->dep_map, 0, 0, _RET_IP_);
9828ea9d Thomas Gleixner 2009-12-03  136  	LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock);
69d0ee73 Heiko Carstens  2009-08-31  137  }
69d0ee73 Heiko Carstens  2009-08-31  138  
9c1721aa Thomas Gleixner 2009-12-03  139  static inline void __raw_spin_lock(raw_spinlock_t *lock)
69d0ee73 Heiko Carstens  2009-08-31  140  {
69d0ee73 Heiko Carstens  2009-08-31  141  	preempt_disable();
69d0ee73 Heiko Carstens  2009-08-31  142  	spin_acquire(&lock->dep_map, 0, 0, _RET_IP_);
9828ea9d Thomas Gleixner 2009-12-03  143  	LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock);
69d0ee73 Heiko Carstens  2009-08-31  144  }
69d0ee73 Heiko Carstens  2009-08-31  145  
ae58403f Chen Gang       2013-06-19  146  #endif /* !CONFIG_GENERIC_LOCKBREAK || CONFIG_DEBUG_LOCK_ALLOC */
69d0ee73 Heiko Carstens  2009-08-31  147  
9c1721aa Thomas Gleixner 2009-12-03  148  static inline void __raw_spin_unlock(raw_spinlock_t *lock)
69d0ee73 Heiko Carstens  2009-08-31  149  {
69d0ee73 Heiko Carstens  2009-08-31  150  	spin_release(&lock->dep_map, 1, _RET_IP_);
9828ea9d Thomas Gleixner 2009-12-03 @151  	do_raw_spin_unlock(lock);
69d0ee73 Heiko Carstens  2009-08-31  152  	preempt_enable();
69d0ee73 Heiko Carstens  2009-08-31  153  }
69d0ee73 Heiko Carstens  2009-08-31  154  
9c1721aa Thomas Gleixner 2009-12-03  155  static inline void __raw_spin_unlock_irqrestore(raw_spinlock_t *lock,
69d0ee73 Heiko Carstens  2009-08-31  156  					    unsigned long flags)
69d0ee73 Heiko Carstens  2009-08-31  157  {
69d0ee73 Heiko Carstens  2009-08-31  158  	spin_release(&lock->dep_map, 1, _RET_IP_);
9828ea9d Thomas Gleixner 2009-12-03  159  	do_raw_spin_unlock(lock);

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

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

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ