From: Peter Zijlstra <peterz@infradead.org>
To: Mike Galbraith <efault@gmx.de>
Cc: Matt Fleming <matt@codeblueprint.co.uk>,
Ingo Molnar <mingo@kernel.org>,
linux-kernel@vger.kernel.org, Michal Hocko <mhocko@suse.com>
Subject: Re: cpu stopper threads and load balancing leads to deadlock
Date: Thu, 3 May 2018 14:28:08 +0200 [thread overview]
Message-ID: <20180503122808.GZ12217@hirez.programming.kicks-ass.net> (raw)
In-Reply-To: <1525349542.9956.2.camel@gmx.de>
On Thu, May 03, 2018 at 02:12:22PM +0200, Mike Galbraith wrote:
> [ 124.216939] =============================
> [ 124.216939] WARNING: suspicious RCU usage
> [ 124.216941] 4.17.0.g66d489e-tip-default #82 Tainted: G E
> [ 124.216941] -----------------------------
> [ 124.216943] kernel/sched/core.c:1614 suspicious rcu_dereference_check() usage!
> [ 124.216944]
> other info that might help us debug this:
>
> [ 124.216945]
> RCU used illegally from offline CPU!
> rcu_scheduler_active = 2, debug_locks = 0
> [ 124.216946] 4 locks held by swapper/2/0:
> [ 124.216947] #0: 000000001f9fa447 (stop_cpus_mutex){+.+.}, at: stop_machine_from_inactive_cpu+0x86/0x130
> [ 124.216953] #1: 000000004cb07b3b (&stopper->lock){..-.}, at: cpu_stop_queue_work+0x2d/0x80
> [ 124.216958] #2: 00000000d3a46b90 (&p->pi_lock){-.-.}, at: try_to_wake_up+0x2d/0x5f0
> [ 124.216964] #3: 00000000f360767b (rcu_read_lock){....}, at: rcu_read_lock+0x0/0x80
> [ 124.216969]
> stack backtrace:
> [ 124.216971] CPU: 2 PID: 0 Comm: swapper/2 Kdump: loaded Tainted: G E 4.17.0.g66d489e-tip-default #82
> [ 124.216972] Hardware name: MEDION MS-7848/MS-7848, BIOS M7848W08.20C 09/23/2013
> [ 124.216973] Call Trace:
> [ 124.216977] dump_stack+0x78/0xb3
> [ 124.216979] ttwu_stat+0x121/0x130
> [ 124.216983] try_to_wake_up+0x2c2/0x5f0
> [ 124.216988] ? cpu_stop_park+0x30/0x30
> [ 124.216990] cpu_stop_queue_work+0x7c/0x80
> [ 124.216993] queue_stop_cpus_work+0x61/0xb0
> [ 124.216997] stop_machine_from_inactive_cpu+0xd3/0x130
> [ 124.216999] ? mtrr_restore+0x80/0x80
> [ 124.217005] mtrr_ap_init+0x62/0x70
> [ 124.217008] identify_secondary_cpu+0x18/0x80
> [ 124.217011] smp_store_cpu_info+0x44/0x50
> [ 124.217014] start_secondary+0x9a/0x1e0
> [ 124.217017] secondary_startup_64+0xa5/0xb0
Hurm.. I don't see how this is 'new'. We moved the wakeup out from under
stopper lock, but that should not affect the RCU state.
The warning is of course valid, stop_machine_from_inactive_cpu()
explicitly run on an 'offline' CPU. The patch didn't change this.
next prev parent reply other threads:[~2018-05-03 12:28 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-17 14:21 Matt Fleming
2018-04-18 5:47 ` Mike Galbraith
2018-04-19 5:38 ` Mike Galbraith
2018-04-20 9:50 ` Peter Zijlstra
2018-04-24 13:33 ` Matt Fleming
2018-05-03 12:12 ` Mike Galbraith
2018-05-03 12:28 ` Peter Zijlstra [this message]
2018-05-03 12:40 ` Mike Galbraith
2018-05-03 12:49 ` Peter Zijlstra
2018-05-03 13:32 ` Mike Galbraith
2018-05-03 13:56 ` Peter Zijlstra
2018-05-03 14:16 ` Mike Galbraith
2018-05-03 14:44 ` Peter Zijlstra
2018-05-03 16:12 ` Paul E. McKenney
2018-05-03 16:45 ` Peter Zijlstra
2018-05-03 17:18 ` Paul E. McKenney
2018-05-03 17:54 ` Peter Zijlstra
2018-05-03 18:24 ` Paul E. McKenney
2018-05-04 3:38 ` Mike Galbraith
2018-05-15 4:30 ` Mike Galbraith
2018-05-17 14:03 ` Paul E. McKenney
2018-05-17 14:10 ` Mike Galbraith
2018-05-17 14:23 ` Peter Zijlstra
2018-05-17 14:56 ` Paul E. McKenney
2018-05-22 17:05 ` Paul E. McKenney
2018-05-03 14:39 ` Paul E. McKenney
2018-05-03 14:52 ` Peter Zijlstra
2018-05-03 9:24 ` [tip:sched/urgent] stop_machine, sched: Fix migrate_swap() vs. active_balance() deadlock tip-bot for Peter Zijlstra
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=20180503122808.GZ12217@hirez.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=efault@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=matt@codeblueprint.co.uk \
--cc=mhocko@suse.com \
--cc=mingo@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
Powered by JetHome