Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3637842ybg; Fri, 25 Oct 2019 06:58:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBilaG8fNDVFqREuC0DE+SB+u9WKcuSlCqb4wK54o//lgtUFdb7x6ZxaCTHTXyz5oQ+eQk X-Received: by 2002:a05:6402:557:: with SMTP id i23mr4013315edx.71.1572011884675; Fri, 25 Oct 2019 06:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572011884; cv=none; d=google.com; s=arc-20160816; b=WOMMalVVY+jmz+A4+fHitvdkC47kN5ca7mn3pegvShOSMZrqaLRpV8qJWAokWC9qec 4ewDdiufzj8WVe48QJkgyRi/v1C1FTW/D90WW4AyI7/T4wkGBJ7IP6a10tlDZLCS2j4B eFJIKMPDoRa4tLoZil+6+qX/RQcJx3MVGgAmQ7TmUsDFhjVfIDpwcZq4jpUja4dIj3XM DScjHUTkwRZa4e7ASz/y0mD4yMYzQt0oUf7fPA5vgepqYw9nYyIYxAuhNyuIHKW+5rbb Ej06Mo30r7aAgt54CltkvirQte/o4G402dKK+UMl6fdRjUKvgawIbrgXINXjg3UvnR9D HsMw== 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=UOruI0JrGFz7xrLotlBY15Zel47+fi3BtuX0TPe8v+s=; b=YbJWpyBO2HrcjGjgVGf91ztHnS874EDDtFcrlphp6x4jVO/uTHGjQ+UlsX24PT2F53 oYYBJ/0vORGn8kSMgxhrrEMbYr5R1VVzVTys19S0PFnHXPNXNP3faSQpGT1MuhRSIxlT akX3C1RtlPOd9nvJhA+k0YINM6xDWKxkfdYh99oHNvNeUBNlZWhHPx6JzSQP3NUgow/u cVKPL5Qy/Og3Gg5ikvRE96UECg+atTOhYCBtA5APdYD+H75NzwI0ZCrdn1Kn1Msl32W8 qVYhACjMR7AG4oSuCNItkgZiKkKvFx7yOn7OaV5Bli0rLrmmCVHNmzyrzOmOjCOZDpJp R6wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ojoJPg1v; 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 nj2si1262707ejb.233.2019.10.25.06.57.40; Fri, 25 Oct 2019 06:58:04 -0700 (PDT) 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=ojoJPg1v; 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 S2393866AbfJXN6y (ORCPT + 99 others); Thu, 24 Oct 2019 09:58:54 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:42354 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727811AbfJXN6y (ORCPT ); Thu, 24 Oct 2019 09:58:54 -0400 Received: by mail-qk1-f196.google.com with SMTP id m4so6541597qke.9 for ; Thu, 24 Oct 2019 06:58:53 -0700 (PDT) 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=UOruI0JrGFz7xrLotlBY15Zel47+fi3BtuX0TPe8v+s=; b=ojoJPg1vybYzGTONg5L7cUYX3/GVoymSo7uGRPUG8kfU1ldQOrWGDfUvzrRLML+CTR UQL7SYjkigtIrTndCk+J0sqzk13K/85JxFkzAbqUaCFWWDZI4YYySteGjhZMidl2qheO aZxZgnpPgNsSK15IiJgvGT5BdDnuUmbFM1hjK4ivbLNK6cThuC4D8v+qljKLKDcGN3/P TrIaok3VoSEirnQkvCNRUntWEgh1Q49kKUWXK0nmXE6yxBqs+k62GJVES6/h/H3bF44w DrykRV0/8HC4e6JMdM4e6DUtDUDxGsrOEfu5/vj1EUsnQnuoqikCl9AuRm+yaCsOmatn HEpQ== 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=UOruI0JrGFz7xrLotlBY15Zel47+fi3BtuX0TPe8v+s=; b=FFuj0fOYaYZEFRf/UCfvytGjVbsgyYrFVe4XGspAUTAGoqyRF9qrJMQbTeO5xoHtgE rzBG4HHNzHQojMFwjLyL9O4Wh9+584vkis1UokY93AJPYeTGJ2m8u2QhF3PYJe3aJdRO dTMT8FJYAvVPHQj6Zd2xPDykFfE9AHtJLmHnReykp3019G+BbEtg3zPoe8Dw+bdVoWBQ DO6Y8TVe6BsvA8prdp42D0MwBVOVcu5mYmbqJYsfSlr2F5KVRLJwMXQGEVJ3+X6noBjj Qub7refQ7dYUGoQ3dK0toLuRfv3w+1ri6R5/YRe+pgVJY1SdEyoLT4+WOfjrfmx1RXxt y5Ag== X-Gm-Message-State: APjAAAXDuhL2l+m/fvc3e/P8TpUH/OtU0f9JQ3C4/HejgtlNN5OTHSK1 mdk6w4EbBxD9LRcmt/VQsOC3zlm0taT4pIxQYHu2wA== X-Received: by 2002:a05:620a:2158:: with SMTP id m24mr14081580qkm.250.1571925532851; Thu, 24 Oct 2019 06:58:52 -0700 (PDT) MIME-Version: 1.0 References: <20191009114809.8643-1-christian.brauner@ubuntu.com> <20191021113327.22365-1-christian.brauner@ubuntu.com> <20191023121603.GA16344@andrea.guest.corp.microsoft.com> <20191024113155.GA7406@andrea.guest.corp.microsoft.com> <20191024130502.GA11335@andrea.guest.corp.microsoft.com> <20191024134319.GA12693@andrea.guest.corp.microsoft.com> In-Reply-To: <20191024134319.GA12693@andrea.guest.corp.microsoft.com> From: Dmitry Vyukov Date: Thu, 24 Oct 2019 15:58:40 +0200 Message-ID: Subject: Re: [PATCH v6] taskstats: fix data-race To: Andrea Parri Cc: Christian Brauner , Will Deacon , LKML , bsingharora@gmail.com, Marco Elver , stable , syzbot , syzkaller-bugs 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 Thu, Oct 24, 2019 at 3:43 PM Andrea Parri wrote: > > > But why? I think kernel contains lots of such cases and it seems to be > > officially documented by the LKMM: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/memory-model/Documentation/explanation.txt > > address dependencies and ppo > > Well, that same documentation also alerts about some of the pitfalls > developers can incur while relying on dependencies. I'm sure you're > more than aware of some of the debate surrounding these issues. I thought that LKMM is finally supposed to stop all these centi-threads around subtle details of ordering. And not we finally have it. And it says that using address-dependencies is legal. And you are one of the authors. And now you are arguing here that we better not use it :) Can we have some black/white yes/no for code correctness reflected in LKMM please :) If we are banning address dependencies, don't we need to fix all of rcu uses?