esp-idf/components/esp_timer/src
Jens Gutermuth 07d1e19107
improve thread safety in esp_timer
Inadequate locking in the esp_timer component allowed corruption
of the s_timers linked list:

1. timer_armed(timer) returns false
2. another task arms the timer and adds it to s_timers
3. the list is locked
4. the timer is inserted into s_timers again

The last step results in a loop in the s_timers list, which causes
an infinite loop when iterated. This change always locks the
list before checking if the timer is already armed avoiding
the data race.
2023-05-02 20:22:24 +02:00
..
esp_timer_etm.c systimer: assign counter and alarm in esp_hw_support 2023-01-10 17:05:49 +08:00
esp_timer_impl_lac.c esp_timer: Adds AFFINITY options for task and ISR 2023-03-02 20:08:02 +08:00
esp_timer_impl_systimer.c esp_timer: Adds AFFINITY options for task and ISR 2023-03-02 20:08:02 +08:00
esp_timer.c improve thread safety in esp_timer 2023-05-02 20:22:24 +02:00
ets_timer_legacy.c esp32h4: removed esp32h4 related codes 2023-04-26 18:53:12 +08:00
system_time.c esp32h4: removed esp32h4 related codes 2023-04-26 18:53:12 +08:00