lkml.org 
[lkml]   [2005]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RT] Race condition on bug output.

* Steven Rostedt <rostedt@goodmis.org> wrote:

> Hi Ingo,
>
> I found a race condition in my kernel which can also be found in
> yours. When I trigger the printk in check_periodic_interval,
> interrupts are turned on in release_console_sem. Unfortunately, this
> can have an interrupt go off there (since they are turned back on
> there) and the write_lock system_time_lock will be taken again, thus
> producing a deadlock.
>
> I'm not sure if this is the best solution, but this was the easiest.
>
> Maybe the CONFIG_PARANOID_GENERIC_TIME should be added in the warnings
> in init/main.c too?
>
> Since interrupts are kept off in the ktimer (hrtimer, whatever) in
> printk, this does not affect those patches. This is a PREEMPT_RT only
> problem.

thanks, applied.

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-12-07 09:36    [W:0.044 / U:0.588 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site