All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [kvm:queue 127/152] arch/x86/kvm/x86.c:2760:13: sparse: sparse: context imbalance in 'kvm_start_pvclock_update' - wrong count at exit
Date: Thu, 12 Aug 2021 04:29:29 +0800	[thread overview]
Message-ID: <202108120416.df6SFZXO-lkp@intel.com> (raw)

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

CC: kbuild-all(a)lists.01.org
CC: kvm(a)vger.kernel.org
CC: Robert Hu <robert.hu@intel.com>
CC: Farrah Chen <farrah.chen@intel.com>
CC: Danmei Wei <danmei.wei@intel.com>
TO: Paolo Bonzini <pbonzini@redhat.com>

tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   a3e0b8bd99ab098514bde2434301fa6fde040da2
commit: 0ae283075bf669c2086ef92c0dc6ad8458bc5f13 [127/152] kvm: x86: abstract locking around pvclock_update_vm_gtod_copy
:::::: branch date: 9 hours ago
:::::: commit date: 10 hours ago
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-348-gf0e6938b-dirty
        # https://git.kernel.org/pub/scm/virt/kvm/kvm.git/commit/?id=0ae283075bf669c2086ef92c0dc6ad8458bc5f13
        git remote add kvm https://git.kernel.org/pub/scm/virt/kvm/kvm.git
        git fetch --no-tags kvm queue
        git checkout 0ae283075bf669c2086ef92c0dc6ad8458bc5f13
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kvm/

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 >>)
   arch/x86/kvm/x86.c:227:47: sparse: sparse: array of flexible structures
   arch/x86/kvm/x86.c:253:49: sparse: sparse: array of flexible structures
   arch/x86/kvm/x86.c: note: in included file:
   include/linux/kvm_host.h:1445:54: sparse: sparse: array of flexible structures
   include/linux/kvm_host.h:1447:56: sparse: sparse: array of flexible structures
>> arch/x86/kvm/x86.c:2760:13: sparse: sparse: context imbalance in 'kvm_start_pvclock_update' - wrong count at exit
   arch/x86/kvm/x86.c:2769:13: sparse: sparse: context imbalance in 'kvm_end_pvclock_update' - unexpected unlock
   arch/x86/kvm/x86.c: note: in included file (through include/linux/notifier.h, arch/x86/include/asm/uprobes.h, include/linux/uprobes.h, ...):
   include/linux/srcu.h:188:9: sparse: sparse: context imbalance in 'vcpu_enter_guest' - unexpected unlock

vim +/kvm_start_pvclock_update +2760 arch/x86/kvm/x86.c

d828199e844477 Marcelo Tosatti 2012-11-27  2759  
0ae283075bf669 Paolo Bonzini   2021-04-08 @2760  static void kvm_start_pvclock_update(struct kvm *kvm)
2860c4b1678646 Paolo Bonzini   2016-01-07  2761  {
0ae283075bf669 Paolo Bonzini   2021-04-08  2762  	struct kvm_arch *ka = &kvm->arch;
2860c4b1678646 Paolo Bonzini   2016-01-07  2763  	kvm_make_all_cpus_request(kvm, KVM_REQ_MCLOCK_INPROGRESS);
0ae283075bf669 Paolo Bonzini   2021-04-08  2764  
0ae283075bf669 Paolo Bonzini   2021-04-08  2765  	/* no guest entries from this point */
0ae283075bf669 Paolo Bonzini   2021-04-08  2766  	spin_lock_irq(&ka->pvclock_gtod_sync_lock);
2860c4b1678646 Paolo Bonzini   2016-01-07  2767  }
2860c4b1678646 Paolo Bonzini   2016-01-07  2768  

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

                 reply	other threads:[~2021-08-11 20:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202108120416.df6SFZXO-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.