tree:
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable.git
linux-4.19.y
head: 4efb07eff34dc1494ad32a21fd61f0cd9febc3ff
commit: 43d52193668b60acf22aae4029cc385096ad8e3c [284/663] fscrypt: move v1 policy key
setup to keysetup_v1.c
config: x86_64-randconfig-s022-20200823 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-191-g10164920-dirty
git checkout 43d52193668b60acf22aae4029cc385096ad8e3c
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
fs/crypto/keysetup_v1.c: note: in included file (through
arch/x86/include/asm/qspinlock.h, arch/x86/include/asm/spinlock.h,
include/linux/spinlock.h, ...):
> include/asm-generic/qspinlock.h:101:9: sparse: sparse: context
imbalance in 'fscrypt_put_direct_key' - unexpected unlock
#
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable.git/c...
git remote add f2fs-stable
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable.git
git fetch --no-tags f2fs-stable linux-4.19.y
git checkout 43d52193668b60acf22aae4029cc385096ad8e3c
vim +/fscrypt_put_direct_key +101 include/asm-generic/qspinlock.h
a33fda35e3a765 Waiman Long 2015-04-24 90
a33fda35e3a765 Waiman Long 2015-04-24 91 #ifndef queued_spin_unlock
a33fda35e3a765 Waiman Long 2015-04-24 92 /**
a33fda35e3a765 Waiman Long 2015-04-24 93 * queued_spin_unlock - release a queued
spinlock
a33fda35e3a765 Waiman Long 2015-04-24 94 * @lock : Pointer to queued spinlock
structure
a33fda35e3a765 Waiman Long 2015-04-24 95 */
a33fda35e3a765 Waiman Long 2015-04-24 96 static __always_inline void
queued_spin_unlock(struct qspinlock *lock)
a33fda35e3a765 Waiman Long 2015-04-24 97 {
a33fda35e3a765 Waiman Long 2015-04-24 98 /*
ca50e426f96c90 Pan Xinhui 2016-06-03 99 * unlock() needs release semantics:
a33fda35e3a765 Waiman Long 2015-04-24 100 */
626e5fbc143589 Will Deacon 2018-04-26 @101 smp_store_release(&lock->locked, 0);
a33fda35e3a765 Waiman Long 2015-04-24 102 }
a33fda35e3a765 Waiman Long 2015-04-24 103 #endif
a33fda35e3a765 Waiman Long 2015-04-24 104
:::::: The code at line 101 was first introduced by commit
:::::: 626e5fbc14358901ddaa90ce510e0fbeab310432 locking/qspinlock: Use smp_store_release()
in queued_spin_unlock()
:::::: TO: Will Deacon <will.deacon(a)arm.com>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org