All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 6021/13159] arch/x86/include/asm/preempt.h:79:9: sparse: sparse: context imbalance in 'sock_map_seq_start' - wrong count at exit
@ 2020-10-02 17:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-02 17:07 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
TO: Lorenz Bauer <lmb@cloudflare.com>
CC: Alexei Starovoitov <ast@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   2172e358cd1713c5b7c31361ac465edfe55e455c
commit: 0365351524d7560d8ed7a42801a15252c6c56f41 [6021/13159] net: Allow iterating sockmap and sockhash
:::::: branch date: 7 hours ago
:::::: commit date: 3 weeks ago
config: x86_64-randconfig-s031-20201002 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-201-g24bdaac6-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=0365351524d7560d8ed7a42801a15252c6c56f41
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 0365351524d7560d8ed7a42801a15252c6c56f41
        # 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@intel.com>

	echo
	echo "sparse warnings: (new ones prefixed by >>)"
	echo
   net/core/sock_map.c: note: in included file (through include/linux/preempt.h, include/linux/spinlock.h, include/linux/debugobjects.h, ...):
>> arch/x86/include/asm/preempt.h:79:9: sparse: sparse: context imbalance in 'sock_map_seq_start' - wrong count at exit
   net/core/sock_map.c: note: in included file (through include/linux/workqueue.h, include/linux/bpf.h):
   include/linux/rcupdate.h:684:9: sparse: sparse: context imbalance in 'sock_map_seq_stop' - unexpected unlock
   net/core/sock_map.c: note: in included file (through include/linux/preempt.h, include/linux/spinlock.h, include/linux/debugobjects.h, ...):
>> arch/x86/include/asm/preempt.h:79:9: sparse: sparse: context imbalance in 'sock_hash_seq_start' - wrong count at exit
   net/core/sock_map.c: note: in included file (through include/linux/workqueue.h, include/linux/bpf.h):
   include/linux/rcupdate.h:684:9: sparse: sparse: context imbalance in 'sock_hash_seq_stop' - unexpected unlock

vim +/sock_map_seq_start +79 arch/x86/include/asm/preempt.h

c2daa3bed53a811 Peter Zijlstra    2013-08-14  72  
c2daa3bed53a811 Peter Zijlstra    2013-08-14  73  /*
c2daa3bed53a811 Peter Zijlstra    2013-08-14  74   * The various preempt_count add/sub methods
c2daa3bed53a811 Peter Zijlstra    2013-08-14  75   */
c2daa3bed53a811 Peter Zijlstra    2013-08-14  76  
c2daa3bed53a811 Peter Zijlstra    2013-08-14  77  static __always_inline void __preempt_count_add(int val)
c2daa3bed53a811 Peter Zijlstra    2013-08-14  78  {
b3ca1c10d7b32fd Christoph Lameter 2014-04-07 @79  	raw_cpu_add_4(__preempt_count, val);
c2daa3bed53a811 Peter Zijlstra    2013-08-14  80  }
c2daa3bed53a811 Peter Zijlstra    2013-08-14  81  

:::::: The code at line 79 was first introduced by commit
:::::: b3ca1c10d7b32fdfdfaf5484eda486323f52d9be percpu: add raw_cpu_ops

:::::: TO: Christoph Lameter <cl@linux.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-02 17:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-02 17:07 [linux-next:master 6021/13159] arch/x86/include/asm/preempt.h:79:9: sparse: sparse: context imbalance in 'sock_map_seq_start' - wrong count at exit 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.