From: Yong Zhang <yong.zhang0@gmail.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Clemens Ladisch <clemens@ladisch.de>,
linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Thomas Gleixner <tglx@linutronix.de>,
Andrew Morton <akpm@linux-foundation.org>,
Jesse Barnes <jbarnes@virtuousgeek.org>,
Denys Vlasenko <vda.linux@googlemail.com>,
Jason Wessel <jason.wessel@windriver.com>
Subject: Re: (WARNING) possible deadlock in del_timer_sync, called from fbcon_del_cursor_timer
Date: Thu, 03 Mar 2011 09:12:12 +0000 [thread overview]
Message-ID: <AANLkTi=q72vKVi0frZefzBAS2_CfHKqOtTadWvyhGwcE@mail.gmail.com> (raw)
In-Reply-To: <20110302181223.GD9288@home.goodmis.org>
On Thu, Mar 3, 2011 at 2:12 AM, Steven Rostedt <rostedt@goodmis.org> wrote:
> On Mon, Feb 28, 2011 at 03:41:07PM +0100, Clemens Ladisch wrote:
>> While using the FB console, I tried to change the console log level
>> with SysRq, and got this warning that del_timer_sync() is used in
>> an interrupt handler:
>
> Ug, del_timer_sync() can be called from interrupt context:
>
> printk -> vt_console_print -> hide_cursor -> fbcon_cursor
> -> fbcon_del_cursor_time -> del_timer_sync()
>
> printk is allowed to be called from interrupt context. This is indeed a
> true bug.
Yeah.
And more explanation for that WARN_ON() :)
run_timer_softirq(SOFTIRQ context)
cursor_timer_handler()
Interrupt comes in(IRQ context)
...
del_timer_sync()
deadlock
So fbcon guys:
Could above situation happen?
Cc'ing people from:
./scripts/get_maintainer.pl -f drivers/video/console/fbcon.c
Thanks,
Yong
--
Only stand for myself
prev parent reply other threads:[~2011-03-03 9:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-28 14:41 (WARNING) possible deadlock in del_timer_sync, called from fbcon_del_cursor_timer Clemens Ladisch
2011-03-02 18:12 ` (WARNING) possible deadlock in del_timer_sync, called from Steven Rostedt
2011-03-03 9:12 ` Yong Zhang [this message]
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='AANLkTi=q72vKVi0frZefzBAS2_CfHKqOtTadWvyhGwcE@mail.gmail.com' \
--to=yong.zhang0@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=clemens@ladisch.de \
--cc=jason.wessel@windriver.com \
--cc=jbarnes@virtuousgeek.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
--cc=vda.linux@googlemail.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;
as well as URLs for NNTP newsgroup(s).