[lkml]   [2003]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: PATCH: Race in 2.6.0-test2 timer code

On Wed, 30 Jul 2003, Andrea Arcangeli wrote:

> cpu0 cpu1
> ------------ --------------------
> do_setitimer
> it_real_fn
> del_timer_sync add_timer -> crash

would you mind to elaborate the precise race? I cannot see how the above
sequence could crash on current 2.6:

del_timer_sync() takes the base pointer in timer->base and locks it, then
checks whether the timer has this base or not and repeats the sequence if
not. add_timer() locks the current CPU's base, then installs the timer and
sets timer->base. Where's the race?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:47    [W:0.116 / U:10.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site