Re: kernel timer races

From: Andrew Morton (
Date: Sat May 27 2000 - 03:42:56 EST

Andrey Savochkin wrote:
> But in del_timer() we may assume that the structure is valid during the whole
> call. I suspect that in your timer-race-6 code we may just go to the
> beginning of del_timer function after spinning on "*vtl == timer" and drop
> all the added_timer stuff.

Yes! Much better.

And check that timer->running is either 0 or 1. If it's not then
complain. This will detect use of overwritten or kfree'ed storage
(courtesy of slab poisoning).

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

This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:17 EST