public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] mac80211_hwsim: close the race between running and enqueuing hrtimer
       [not found] <20200929085749.12396-1-hdanton@sina.com>
@ 2020-09-29 19:28 ` Thomas Gleixner
  0 siblings, 0 replies; only message in thread
From: Thomas Gleixner @ 2020-09-29 19:28 UTC (permalink / raw)
  To: Hillf Danton, Johannes Berg
  Cc: syzbot, davem, hchunhui, ja, jmorris, kuznet, linux-kernel,
	netdev, syzkaller-bugs, yoshfuji, Hillf Danton

On Tue, Sep 29 2020 at 16:57, Hillf Danton wrote:
> 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 ...
> ===
>
> 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.
>
> Link: https://lore.kernel.org/lkml/87pn65khft.fsf@nanos.tec.linutronix.de/
> Reported-by: syzbot+ca740b95a16399ceb9a5@syzkaller.appspotmail.com
> Decoded-by: Thomas Gleixner <tglx@linutronix.de>
> Signed-off-by: Hillf Danton <hdanton@sina.com>

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-29 19:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20200929085749.12396-1-hdanton@sina.com>
2020-09-29 19:28 ` [PATCH] mac80211_hwsim: close the race between running and enqueuing hrtimer Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox