Files
linux/kernel
Dmitry Vyukov 3ed769bdb2 timers: Fix data race in timer_stats_account_timer()
timer_stats_account_timer() reads timer->start_site, then checks it
for NULL and then re-reads it again, while
timer_stats_timer_clear_start_info() can concurrently reset
timer->start_site to NULL. This should not lead to crashes, but can
double number of entries in timer stats as start_site is used during
comparison, the doubled entries will have unuseful NULL start_site.

Read timer->start_site only once in timer_stats_account_timer().

The data race was found with KernelThreadSanitizer (KTSAN).

Signed-off-by: Dmitry Vyukov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
2015-09-22 15:43:18 +02:00
..
2015-06-30 19:44:57 -07:00
2015-04-11 22:27:55 -04:00
…
…
…
…
…
2015-04-12 21:03:31 +02:00
2015-08-07 13:59:49 +02:00
…
2015-07-20 21:43:54 +02:00
2015-08-03 11:34:16 +02:00
…
2015-08-27 19:40:58 -04:00
…
…
…
…
…
…
…
…
…
…