Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp165202ybx; Wed, 6 Nov 2019 15:01:17 -0800 (PST) X-Google-Smtp-Source: APXvYqxT2DUU/5A7g2YKIWTxe5KtxBW8loNuA6EopkQaH5FBNaWZdX7OjvXbLw0rV/ee24rvOBLV X-Received: by 2002:a17:906:ce2f:: with SMTP id sd15mr113107ejb.270.1573081276936; Wed, 06 Nov 2019 15:01:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573081276; cv=none; d=google.com; s=arc-20160816; b=aji3Pxck5CWSkS+2mVdm6L51M96MA4FzzgY5JXaIgIh+AjPkdMpT98s0GQVsQHHLpI UoM20oldAAamr41Gzvs6sbkBDUSgsMbTmSzY+Ww898RdRbCkjVnkUjFnKz8W1X8kTZWJ q4F1agJp8AQUZ0gPS5w1D+4YIIJvWH+1bmeTiDx17OGQEZjSDF60CxrKikchqLOPIh2r WfbjGq8E6N/NCwIgZmGipIpgSGmBpL4TwbwYE0GCA+Kf4f3Pqgft+6qKGRlM7e83FygS TQ24ON8EUgVffacHmQy6Q9LmwWJD961dcbagCIGLHWIXp2LU82rSm22b9ngNRkyzz7Qw nW9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=nHPMaxlZf+iGhM1WM76319OcCFkWQEtpxYutU0G9cJw=; b=cV2W/6H4kv6k8a6o63tl5TuvwPlHEjeNzhw6Jd05nc6RDnqivXxupA1am4LLR6DZVU jTfcP8vNfBEWyV+Nbr6VCq4faJ4MCmTRz5//ZydMjeyqu5WDFAiIvF9nF+tNDDy0DE35 mIoBiPhSblt7fFu0ptznXFA065eXxCBvnJ0XpygJkkBN2KH6JDRVvsSOflphiWfzg1fd W8kxhHf84InV4kYIzIInqo8vvQ8a2NRenMuGIcsqJC7ROjFblxSqC2FnHfPeOBW2utwS 4zc61J+ohSjCmPNFU9K1CsrriLB+uqS7e+t5jOrVFgwi5v9J38u7bx1p1fmYOmyo6T6N /aqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=iEu6GhMW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b22si208786ejv.159.2019.11.06.15.00.53; Wed, 06 Nov 2019 15:01:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=iEu6GhMW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727792AbfKFW7t (ORCPT + 99 others); Wed, 6 Nov 2019 17:59:49 -0500 Received: from mail-il1-f194.google.com ([209.85.166.194]:46600 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727177AbfKFW7t (ORCPT ); Wed, 6 Nov 2019 17:59:49 -0500 Received: by mail-il1-f194.google.com with SMTP id m16so23235713iln.13 for ; Wed, 06 Nov 2019 14:59:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nHPMaxlZf+iGhM1WM76319OcCFkWQEtpxYutU0G9cJw=; b=iEu6GhMWKGPqDdROZouQTym9Q9mYeBlBHPK+wMf5Jjgyv8+GM3AcDGzbrL384Bdlj0 42T8rNPK9zoNw8E1ls5Xp+9k2TClXGVOjNIm5NKUAPb+Qr172nOOfK2nE2Qn4kVqQ+cQ tTuJJP0khcgz4UIaZoYhgubAp2yRU+79WvUPTtKKIWe5TLE+t3aEGLnulUnR3soGkBzj huWb6mpQvbQK+Ax3gR3ThIR4y+tDj3u9RvYCPNO9cVM+YNlNgf1YcBlRIc3exBuIuG6A 0ovL27GT7hJ0xPeEgwkgPva+XONkIK7uzqwCRPHMoNayG12B8zH3TnKF+5uHNEhfSIZT 7vSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nHPMaxlZf+iGhM1WM76319OcCFkWQEtpxYutU0G9cJw=; b=d6GHWW8QgrQ7Ubh9jy0pHv1NxEzOZgsSQeVl1DVqzQqZEVzGophfypWQ7eN1mknLMI GhHvzGFNmNQNhCt7LF/aTlxCwD9RmHePBb8IHkO7MswMXmbzuH3BawWx48ocz1oijDoK Lu3yEZNfvUn+t3ONORWde/EVd8vH09Y3ZzRGzT6VDpIi+M/lfPM/x/dew/aTxe+r1Lyv rLtdLGNOtl76iZHuaAVjqa/IBfSGXtEIaRAt1hwAuySmcRvBtVz5S02mzxYdpKu5zz31 TBijQAC0gw90psiOtJmDa5xwnsG08jUTWNf+7PD2j/6vn9+yUejJvB3dw/1b93p6vVS/ Uctw== X-Gm-Message-State: APjAAAVPrwo6qkDrYC+1Oum9z1E+8agA/qxVdwwTFhLzJUST9FWyDt35 6bHdgTik7ZFRujs0m6OolpbeIveMN+eYd5Ab0FgzNjKo+dw= X-Received: by 2002:a92:7e0d:: with SMTP id z13mr353370ilc.168.1573081187621; Wed, 06 Nov 2019 14:59:47 -0800 (PST) MIME-Version: 1.0 References: <20191106174804.74723-1-edumazet@google.com> <157307905904.29376.8711513726869840596.tip-bot2@tip-bot2> In-Reply-To: From: Eric Dumazet Date: Wed, 6 Nov 2019 14:59:36 -0800 Message-ID: Subject: Re: [tip: timers/core] hrtimer: Annotate lockless access to timer->state To: LKML , "Paul E. McKenney" Cc: linux-tip-commits@vger.kernel.org, syzbot , Thomas Gleixner , Ingo Molnar , Borislav Petkov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 6, 2019 at 2:53 PM Eric Dumazet wrote: > > On Wed, Nov 6, 2019 at 2:24 PM tip-bot2 for Eric Dumazet > 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 > > AuthorDate: Wed, 06 Nov 2019 09:48:04 -08:00 > > Committer: Thomas Gleixner > > 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. > It is interesting seeing hlist_add_head() has a WRITE_ONCE(h->first, n);, but no WRITE_ONCE() for the pprev change. The WRITE_ONCE() was added in commit 1c97be677f72b3c338312aecd36d8fff20322f32 ("list: Use WRITE_ONCE() when adding to lists and hlists")