Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp697502img; Tue, 26 Feb 2019 07:10:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IYK/lDUGW7fvvlfBtp7LR7ZGxZ2yDoVd+2k/p2SWL4KQCyu2t/aOm8nkm7gHnEbw5OuSvdZ X-Received: by 2002:a65:6554:: with SMTP id a20mr11967225pgw.170.1551193814743; Tue, 26 Feb 2019 07:10:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551193814; cv=none; d=google.com; s=arc-20160816; b=s1MJa8UZxEnk8rF/9+O5HM+/Im3RkaKTPXWOUcvxPQ3xBLEj3D1KmZkTLJLjERCumy FgJNdAs6nuoFH1K4LnXJaaoK4r/alElLXSn0Y4teopVh2InErisQguVxtFis9MQYeNsE VhG3Gci/4+DvvKmiWoSDqiwnlfYWkjB6udj3CpNKBBRqNatd50Z6LsuVvHpJSzdYa49o RoAIz52WXDR2JHk0o6oga+dNh7XXeYB4tHih9RBUL0yLW0WHXaOhjwUECKGsv8HrD/Es /yPc86p14YcX6vh/cNvzcolQO6VQVIjJw2ypUG6BXSgt4jLEnJHXlkrz5cGN1VONgD9f zkbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=EX8Tb2qZjAuXogAbVQcMHbnJVBhMl1AW8AghBUbtDYM=; b=oMTdapB9RMXsPAfDhn2yd/fq2w+HFmWBpwvaVCMXmSdKsdIkl6LXEIsQqssa4zWdYj imnJCuNFv5m/Nx/Adc87GUq5tNGxMHFQzivZlDzBasgGnva+UJFbTnYpi4Jpmu8PPXla KB4La1AL/e6o61xc2FMGx097Vn3g9vYcBmp6NRVbgnIPPxcgytSemKYxe7Fn6CdUNXEE 7sE4+IfUPfGU7zF5H8CNkVojSAshHI7JDfMoQPcIYHfOl8tO4EdPkFFZ1xcegFSKw9h5 2T89s8mcGlf91hhccnrWtsoIhWjjMDeXcsLYMw/nzAlu33bXeMm4yQpHSIroyK1ziimp F6+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=I7bNZ6ji; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j71si1971909pfc.280.2019.02.26.07.09.59; Tue, 26 Feb 2019 07:10:14 -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=@gmail.com header.s=20161025 header.b=I7bNZ6ji; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727196AbfBZPJW (ORCPT + 99 others); Tue, 26 Feb 2019 10:09:22 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:34465 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726245AbfBZPJV (ORCPT ); Tue, 26 Feb 2019 10:09:21 -0500 Received: by mail-pf1-f196.google.com with SMTP id u9so6386660pfn.1; Tue, 26 Feb 2019 07:09:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=EX8Tb2qZjAuXogAbVQcMHbnJVBhMl1AW8AghBUbtDYM=; b=I7bNZ6jiDm+7HVLjRpeXunY3fJSfVoNI75N+LVrt5/aCySaFcXlgmdNrxMKdBu0bWS 9OrBxj3QRQcyvYVHpDX6Zb0radh6roiZ3SqLhkZ0CS+LH7BI5G0RZ79tmL3Vj1UJcUp8 MaLuMF6PgwY5AsW1i0q7ibVeTXiccafbimWerEd7+xKd01Qd3PLT0RHCj6rgdWPTg4RE RlLSKMta/jN7OO2j+cJTu8+zjhjQMsfbt/bbJv7JXyD0349r8cEUvrxPaqGEiNsbWGIJ 0caEhvSoyDfNqxrWmMlc+P2UhBipZ9Ouru5paxVwDn9rAOthRg9S4/GcOHjtTrP5C77z 2CAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=EX8Tb2qZjAuXogAbVQcMHbnJVBhMl1AW8AghBUbtDYM=; b=C8exzEzC13sHTN3ymbAImP8oUSEW4ymFlx3/jtFPecfTHasSGdCpI58+uUY/BLLZNv NmFqbmMNVAM7x/H+RlyPGMYYY47KjGHwfDrwtePpoQbNy+Gfq+F8Ne1Kp/4uL2lmxT0O XIboUmBe1IWS4I2rOmaKT8BUhhGLez58sliTItMNbe4d1BtmtOqkEtJjdWLI6Xof2XZm ECIjuXmdbgISpBlc9nMbAuso29hEP6SOMYO6MRscfnB3t0a4GOSMfE+Xk9MZ/2rfi9In aGT4jHvYMpJ239vKuGxJv9T1qd0yCy68UizDC+S40rztHR7lLBZ/Zhd2+LN6CNvQjBYM PEgQ== X-Gm-Message-State: AHQUAuZ9jVgcXcJu+T47q6jrkHDpjNaVWwojMEtb3HOagCZdg9YOqrOb YRFc0qAKSdZAu4YDINgSGko= X-Received: by 2002:a62:fc10:: with SMTP id e16mr26725122pfh.83.1551193760935; Tue, 26 Feb 2019 07:09:20 -0800 (PST) Received: from [192.168.11.4] (KD106167171201.ppp-bb.dion.ne.jp. [106.167.171.201]) by smtp.gmail.com with ESMTPSA id z15sm19095368pgc.25.2019.02.26.07.09.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Feb 2019 07:09:20 -0800 (PST) Subject: Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo To: "Paul E. McKenney" Cc: Peter Zijlstra , Borislav Petkov , Andrea Parri , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Alan Stern , Will Deacon , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , Daniel Lustig References: <20190225175517.GK4072@linux.ibm.com> <20190226093009.GS32477@hirez.programming.kicks-ass.net> <20190226104551.GF32534@hirez.programming.kicks-ass.net> <20190226112133.GG32534@hirez.programming.kicks-ass.net> <20190226112521.GH32534@hirez.programming.kicks-ass.net> <20190226113008.GI32534@hirez.programming.kicks-ass.net> <20190226113813.GA14753@zn.tnic> <20190226134906.GG32494@hirez.programming.kicks-ass.net> <20190226142845.GK4072@linux.ibm.com> <20190226150427.GM4072@linux.ibm.com> From: Akira Yokosawa Message-ID: <0d7275f1-4ed1-f13d-baab-27de8a061aa0@gmail.com> Date: Wed, 27 Feb 2019 00:09:15 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190226150427.GM4072@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Feb 2019 07:04:27 -0800, Paul E. McKenney wrote: > On Tue, Feb 26, 2019 at 11:56:57PM +0900, Akira Yokosawa wrote: >> Hi Paul, >> >> On Tue, 26 Feb 2019 06:28:45 -0800, Paul E. McKenney wrote: >>> On Tue, Feb 26, 2019 at 02:49:06PM +0100, Peter Zijlstra wrote: >>>> On Tue, Feb 26, 2019 at 12:38:13PM +0100, Borislav Petkov wrote: >>>>> On Tue, Feb 26, 2019 at 12:30:08PM +0100, Peter Zijlstra wrote: >>>>>> When I used the argc variant, gcc-8 'works', but with s/argc/1/ it is >>>>>> still broken. >>>>> >>>>> As requested on IRC: >>>> >>>> What I asked was if you could get your GCC developer friends to have a >>>> look at this :-) >>> >>> Yes, this all is a bit on the insane side from a kernel viewpoint. >>> But the paper you found does not impose this; it has instead been there >>> for about 20 years, back before C and C++ admitted to the existence >>> of concurrency. >> >> By "it", do you mean the concept of "pointer provenance"? >> >> I'm asking because the paper's header reads: >> >> "ISO/IEC JTC1/SC22/WG14 N2311, 2018-11-09" >> >> Just wanted to make sure. > > This paper introduces neither pointer provenance nor indeterminate-on-free, > but rather proposes modification. These things have been around for a > few decades. Got it! Thank, Akira > > Thanx, Paul > >> Thanks, Akira >> >>> But of course compilers are getting more aggressive, >>> and yes, some of the problems show up in single-threaded code. >>> >>> The usual response is "then cast the pointers to intptr_t!" but of >>> course that breaks type checking. >>> >>> There is an effort to claw back the concurrency pieces, and I would >>> be happy to run the resulting paper past you guys. >>> >>> I must confess to not being all that sympathetic to code that takes >>> advantage of happenstance stack-frame layout. Is there some reason >>> we need that? >>> >>> Thanx, Paul >>> >> >