Skip to contentSkip to conversation

mac80211_hwsim: close the race between running and enqueuing hrtimer

PATCH Thomas Gleixner 1 participant 1 message Sep 29, 2020 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Thomas Gleixner

author Reviewed-by
#1 lore raw
Quoted 5 lines · Hillf Danton

So the timer was armed at some point and then the expiry which does the forward races with the ioctl which starts the timer. Lack of serialization or such ...
===

Quoted 8 lines

To close the race, replace hrtimer_is_queued() with hrtimer_active() on enqueuing timer, because it also covers the case of a running timer in addition to the queued one.