From: Eric Dumazet <eric.dumazet@gmail.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
Thomas Gleixner <tglx@linutronix.de>,
Mike Galbraith <umgwanakikbuti@gmail.com>
Subject: Re: [PATCH] sched/numa: Fix use of spin_{un}lock_irq() when interrupts are disabled
Date: Tue, 27 May 2014 13:20:25 -0700 [thread overview]
Message-ID: <1401222025.5367.262.camel@edumazet-glaptop2.roam.corp.google.com> (raw)
In-Reply-To: <20140527155251.5dc77977@gandalf.local.home>
On Tue, 2014-05-27 at 15:52 -0400, Steven Rostedt wrote:
> As Peter Zijlstra told me, we have the following path:
>
> do_exit()
> exit_itimers()
> itimer_delete()
> spin_lock_irqsave(&timer->it_lock, &flags);
> timer_delete_hook(timer);
> kc->timer_del(timer) := posix_cpu_timer_del()
> put_task_struct()
> __put_task_struct()
> task_numa_free()
> spin_lock(&grp->lock);
>
>
> Which means that task_numa_free() can be called with interrupts
> disabled, which means that we should not be using spin_lock_irq() but
> spin_lock_irqsave() instead. Otherwise we are enabling interrupts while
> holding an interrupt unsafe lock!
>
> Link: http://lkml.kernel.org/r/20140527182541.GH11096@twins.programming.kicks-ass.net
>
> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
> ---
Your patch was mangled it seems...
Fixes: 60e69eed85bb ("sched/numa: Fix task_numa_free() lockdep splat")
next prev parent reply other threads:[~2014-05-27 20:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-27 19:52 Steven Rostedt
2014-05-27 20:20 ` Eric Dumazet [this message]
2014-05-27 21:03 ` Steven Rostedt
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=1401222025.5367.262.camel@edumazet-glaptop2.roam.corp.google.com \
--to=eric.dumazet@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
--cc=umgwanakikbuti@gmail.com \
/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
all inboxes | Powered by JetHome®