mac80211_hwsim: close the race between running and enqueuing hrtimer
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Thomas Gleixner
Reviewed-byQuoted 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()withhrtimer_active()on enqueuing timer, because it also covers the case of a running timer in addition to the queued one.Reported-by [email protected]Decoded-by Thomas Gleixner <[email protected]>Signed-off-by Hillf Danton <[email protected]>
Reviewed-by Thomas Gleixner <[email protected]>