The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: kernel test robot <rong.a.chen@intel.com>
To: Frederic Weisbecker <frederic@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	"Paul E. McKenney" <paulmck@kernel.org>
Subject: [rcu:dev.2020.12.15a 117/132] kernel/rcu/tree_plugin.h:2240:9: sparse: sparse: context imbalance in '__rcu_nocb_rdp_deoffload' - wrong count at exit
Date: Thu, 17 Dec 2020 09:40:06 +0800	[thread overview]
Message-ID: <20201217014005.GR67148@shao2-debian> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2020.12.15a
head:   22a5aeecf105617107dc7f8ee4f6cb1231630a15
commit: d9087ff33fe5e724396f7d93e0b4d089dce95601 [117/132] rcu/nocb: De-offloading CB kthread
:::::: branch date: 3 hours ago
:::::: commit date: 4 hours ago
config: i386-randconfig-s032-20201215 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-184-g1b896707-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/commit/?id=d9087ff33fe5e724396f7d93e0b4d089dce95601
        git remote add rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
        git fetch --no-tags rcu dev.2020.12.15a
        git checkout d9087ff33fe5e724396f7d93e0b4d089dce95601
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <rong.a.chen@intel.com>


"sparse warnings: (new ones prefixed by >>)"
   kernel/rcu/tree.c: note: in included file:
   kernel/rcu/tree_plugin.h:1492:5: sparse: sparse: symbol 'nocb_nobypass_lim_per_jiffy' was not declared. Should it be static?
   kernel/rcu/tree.c:1434:9: sparse: sparse: context imbalance in 'rcu_start_this_gp' - different lock contexts for basic block
   kernel/rcu/tree.c:1846:9: sparse: sparse: context imbalance in 'rcu_gp_init' - different lock contexts for basic block
   kernel/rcu/tree.c:2626:9: sparse: sparse: context imbalance in 'force_qs_rnp' - different lock contexts for basic block
   kernel/rcu/tree.c:2679:25: sparse: sparse: context imbalance in 'rcu_force_quiescent_state' - unexpected unlock
   kernel/rcu/tree.c: note: in included file:
   kernel/rcu/tree_stall.h:319:9: sparse: sparse: context imbalance in 'rcu_print_task_stall' - unexpected unlock
   kernel/rcu/tree_stall.h:545:9: sparse: sparse: context imbalance in 'print_other_cpu_stall' - different lock contexts for basic block
   kernel/rcu/tree_stall.h:826:17: sparse: sparse: context imbalance in 'rcu_check_gp_start_stall' - different lock contexts for basic block
   kernel/rcu/tree.c: note: in included file:
   kernel/rcu/tree_exp.h:189:9: sparse: sparse: context imbalance in '__rcu_report_exp_rnp' - different lock contexts for basic block
   kernel/rcu/tree.c: note: in included file:
   kernel/rcu/tree_plugin.h:1538:16: sparse: sparse: context imbalance in 'rcu_nocb_bypass_trylock' - wrong count at exit
   kernel/rcu/tree_plugin.h:1555:13: sparse: sparse: context imbalance in 'rcu_nocb_lock' - wrong count at exit
   kernel/rcu/tree_plugin.h:1570:17: sparse: sparse: context imbalance in 'rcu_nocb_unlock' - unexpected unlock
   kernel/rcu/tree_plugin.h:1583:17: sparse: sparse: context imbalance in 'rcu_nocb_unlock_irqrestore' - unexpected unlock
   kernel/rcu/tree_plugin.h:1630:13: sparse: sparse: context imbalance in 'wake_nocb_gp' - wrong count at exit
   kernel/rcu/tree_plugin.h:1694:9: sparse: sparse: context imbalance in 'rcu_nocb_do_flush_bypass' - unexpected unlock
   kernel/rcu/tree_plugin.h:1709:13: sparse: sparse: context imbalance in 'rcu_nocb_flush_bypass' - wrong count at exit
   kernel/rcu/tree_plugin.h:1860:13: sparse: sparse: context imbalance in '__call_rcu_nocb_wake' - wrong count at exit
   kernel/rcu/tree_plugin.h:1924:9: sparse: sparse: context imbalance in 'do_nocb_bypass_wakeup_timer' - different lock contexts for basic block
   kernel/rcu/tree_plugin.h:1954:9: sparse: sparse: context imbalance in 'nocb_gp_wait' - different lock contexts for basic block
   kernel/rcu/tree_plugin.h:2146:9: sparse: sparse: context imbalance in 'nocb_cb_wait' - wrong count at exit
   kernel/rcu/tree_plugin.h:2182:13: sparse: sparse: context imbalance in 'do_nocb_deferred_wakeup_common' - different lock contexts for basic block
>> kernel/rcu/tree_plugin.h:2240:9: sparse: sparse: context imbalance in '__rcu_nocb_rdp_deoffload' - wrong count at exit

vim +/__rcu_nocb_rdp_deoffload +2240 kernel/rcu/tree_plugin.h

8be6e1b15c54402 Paul E. McKenney    2017-04-29  2216  
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2217  static int __rcu_nocb_rdp_deoffload(struct rcu_data *rdp)
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2218  {
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2219  	struct rcu_segcblist *cblist = &rdp->cblist;
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2220  	bool wake_cb = false;
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2221  	unsigned long flags;
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2222  
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2223  	printk("De-offloading %d\n", rdp->cpu);
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2224  
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2225  	rcu_nocb_lock_irqsave(rdp, flags);
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2226  	rcu_segcblist_offload(cblist, false);
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2227  
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2228  	if (rdp->nocb_cb_sleep) {
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2229  		rdp->nocb_cb_sleep = false;
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2230  		wake_cb = true;
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2231  	}
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2232  	rcu_nocb_unlock_irqrestore(rdp, flags);
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2233  
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2234  	if (wake_cb)
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2235  		swake_up_one(&rdp->nocb_cb_wq);
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2236  
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2237  	swait_event_exclusive(rdp->nocb_state_wq,
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2238  			      !rcu_segcblist_test_flags(cblist, SEGCBLIST_KTHREAD_CB));
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2239  
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13 @2240  	return 0;
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2241  }
d9087ff33fe5e72 Frederic Weisbecker 2020-11-13  2242  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34601 bytes --]

[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-leave@lists.01.org

                 reply	other threads:[~2020-12-17  1:42 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=20201217014005.GR67148@shao2-debian \
    --to=rong.a.chen@intel.com \
    --cc=frederic@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulmck@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox