Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp626965ybf; Fri, 28 Feb 2020 04:44:36 -0800 (PST) X-Google-Smtp-Source: APXvYqz50roEzQoKVASrZfbpUyKQgZM0PpeeBaVSjTOjnR6jP7kWJI6vWzA0GE4gxy7E8Ff8/X8B X-Received: by 2002:a9d:7a81:: with SMTP id l1mr3089903otn.26.1582893876215; Fri, 28 Feb 2020 04:44:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582893876; cv=none; d=google.com; s=arc-20160816; b=v7dwVVmpI/be+cslC6NVPeKr/cXg+6YhqbEezyYlRKF3lxhhwONjgRVn8iy4N5MGmS M5iyro3JSvGGH74qmq934EgI0gVJSGYKdb/BDto21Nsf1/tmtB9pTnnyt4fXvZVPGgKB +Ws4Pka/BqNs2H0YexpMpGdBhcTUV92LfxVDrrAWx0Xb/MUwdtEf1GZbvk/vw5cGb0UC XB+/lcpLqhQznXhquF1gadbTyE9mR9asB+q1QRBynaQnnElqWkvzfDOlXjCxYR4SJ55K IGj1GgLzgec8l2PkQTQXTBz7iSHQeAVZrYTxwymw4J+ar6jL+HY5jzIAX90vSCj9nfNj 55xw== 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=zfQoq+1M8fvl87X+Ubkvp6zzrnswmjJsf0b9A+26ex8=; b=QMX9ccttt9iX3U9t/FBGLCm5XYu8OMiWySvory5f2Wl5rN1F/3tFRLD1/M+n8ezyiI 5aI7W7M3zq2G+LMKfMn3l1u9TvqG6ZnoXZb6o4eWw5DZEz5h6eheudKPOHJUD06/uDAX kg4qslMuoJYnpo75flz3x3eeRNUNOs1JKiPPvIOF/Pnyc31yeGCMKEHwF/C+HMJOJop8 m8yniLQXO/uc9ZYSQnAe3AWOpdnyE5leWUjlYi+KFfpPDXoIFkxtVXVpdPTSAPXQDCl+ fbQqmZNuZjzDQYm2bm7RdnOQPz+10taorSqmGGuLrTM5qdN7Jl7qQaqNNZsVcekUgyUM CoSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qsOTrP3s; 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 w18si1595037otp.48.2020.02.28.04.44.24; Fri, 28 Feb 2020 04:44:36 -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=qsOTrP3s; 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 S1725933AbgB1Mnq (ORCPT + 99 others); Fri, 28 Feb 2020 07:43:46 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:36113 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725730AbgB1Mnp (ORCPT ); Fri, 28 Feb 2020 07:43:45 -0500 Received: by mail-ot1-f66.google.com with SMTP id j20so2436347otq.3 for ; Fri, 28 Feb 2020 04:43:45 -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=zfQoq+1M8fvl87X+Ubkvp6zzrnswmjJsf0b9A+26ex8=; b=qsOTrP3sERclKpVIMKpYziz0m6/2T73Ci4O0VLjMWrAmFabsOH6/Hfhgq7d+4uG0sD PS9cTXQpCWjogewIdRsDWdUDpgkxbnjhBnul7Ez8GZiFu4Cz7V76bbputXQlyW0NfsfI f3ca5VfPhYL1yMuPomfYonVoEzBphe4ULCpd9vTD7v5nZLyueoV0KGi9frmrgyjbq8v0 VA+tCCN8MLl09kBIUkmrOrOKLU76xbQkeu0i8CpvbVP+3nmMooQrGdSeKzLkt+UB/iOp v35Xl/dUCU9xg/ZWEdZ0BhzOoGxdu4tHxLI0s/eA5vZ80xkU7ZwOXShTYdq6Cumtprc6 Wlsw== 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=zfQoq+1M8fvl87X+Ubkvp6zzrnswmjJsf0b9A+26ex8=; b=ZYE+wmOKSbcXLGa4GRfpMo6sSs1TUPSK7/KNTSozpzV7kjalMrdXt99K1y6RYci3gV NHEj3wZ+iuEc8dOP98K62292UHCr0rtRK9lF7tb9kEtf7owQCijCebPwD15AS1PhPxgk CBlxfPDCCr6LBMUfL/gp1cw1JVGiV89RahoQJQ5n+Mex7ivona1005/QwofXaUa+rDjV icjz9Idy7rzhF6JCc+SDuRtjqnYto4CjS0t4e/f9kauvMUydV5SuCw9mDkTaXGaEO6S0 GiwjxauJvfUgcN7qfOJtOB6kL2J86uxNtyE7IjpIPmtHhomQk/AudhBiYW5khD/+3Rsm v3sw== X-Gm-Message-State: APjAAAWTANfWdyE2kZouafGyhdzOX8ahrRX9xvAC5vbPBO/MKStUsLyC nnkQKH8sPuokZu7MYWAkbRWiZu1jrDudgwfDszCXMA== X-Received: by 2002:a9d:4e8a:: with SMTP id v10mr3370715otk.17.1582893823992; Fri, 28 Feb 2020 04:43:43 -0800 (PST) MIME-Version: 1.0 References: <463BBB2A-8F9A-4CF1-80AE-677ACD21A3C6@lca.pw> In-Reply-To: <463BBB2A-8F9A-4CF1-80AE-677ACD21A3C6@lca.pw> From: Marco Elver Date: Fri, 28 Feb 2020 13:43:32 +0100 Message-ID: Subject: Re: [PATCH] mm/swap: annotate data races for lru_rotate_pvecs To: Qian Cai Cc: Andrew Morton , Linux Memory Management List , LKML , kasan-dev 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 Fri, 28 Feb 2020 at 12:30, Qian Cai wrote: > > > > > On Feb 28, 2020, at 5:49 AM, Marco Elver wrote: > > > > Note that, the fact that the writer has local interrupts disabled for > > the write is irrelevant because it's the interrupt that triggered > > while the read was happening that led to the concurrent write. > > I was just to explain that concurrent writers are rather unlikely as people may ask. > > > > > I assume you ran this with CONFIG_KCSAN_INTERRUPT_WATCHER=y? The > > option is disabled by default (see its help-text). I don't know if we > > want to deal with data races due to interrupts right now, especially > > those that just result in 'data_race' annotations. Thoughts? > > Yes, I somehow got quite a bit clean runs lately thanks to the fix/annotations efforts for the last a few weeks (still struggling with the flags things a bit), so I am naturally expanding the testing coverage here. > > Right now the bottleneck is rather some subsystem maintainers are not so keen to deal with data races (looking forward to seeing more education opportunities for all), but the MM subsystem is not one of them. Sounds reasonable. FWIW Acked-by: Marco Elver