Re: [tip: timers/core] hrtimer: Annotate lockless access to timer->state

From: Eric Dumazet
Date: Wed Nov 06 2019 - 17:53:58 EST


On Wed, Nov 6, 2019 at 2:24 PM tip-bot2 for Eric Dumazet
<tip-bot2@xxxxxxxxxxxxx> wrote:
>
> The following commit has been merged into the timers/core branch of tip:
>
> Commit-ID: 56144737e67329c9aaed15f942d46a6302e2e3d8
> Gitweb: https://git.kernel.org/tip/56144737e67329c9aaed15f942d46a6302e2e3d8
> Author: Eric Dumazet <edumazet@xxxxxxxxxx>
> AuthorDate: Wed, 06 Nov 2019 09:48:04 -08:00
> Committer: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> CommitterDate: Wed, 06 Nov 2019 23:18:31 +01:00
>
> hrtimer: Annotate lockless access to timer->state
>

I guess we also need to fix timer_pending(), since timer->entry.pprev
could change while we read it.

I will try to find a KCSAN report showing the issue.

Thanks !