Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp654596img; Tue, 26 Feb 2019 06:29:39 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia8FDjZuI7nC/vi5oeu+aumRbR0cpNFpoFW5IApgbEa31rdIBqdct0Ze7eQ5h5V/v1WNr6w X-Received: by 2002:a63:5459:: with SMTP id e25mr17356730pgm.131.1551191379099; Tue, 26 Feb 2019 06:29:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551191379; cv=none; d=google.com; s=arc-20160816; b=Zv4oWTb1owfe3vwv1hY459S0GS0voAEvpGK8E5rIgTfVaYfyj0xSkLHWi4udaDiBYA HrQZTpcU9YsvZqqTo+4f4hZiaIYsDYvhwc5hZthD1GLe4v7FFB4AzjacqqYaBrgneJAz IH5W9337CgHrcUe9/648A3L97ilmc+bE7Xhb21N1S/sXaxabyhAwNXkIFfLd2WAZdfCs zpBHD0+fruMGcelFfm2xAC/jIYXrXCuC6Lj/4gHX4EjG5LJYzko6xejvqnjpXv29r82c wyyN/W/n88yUtjd7SsC392LG/+YCv4C7qNjDQ8TgxVssirkx8CCBqJXP9WS9i71QTPCf oq5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date; bh=A+tu2vR4F6b/751ZEF3xr2iv0GntuQ4ts4P+t6YKrY8=; b=TFixzx8SSDt2xNDEb0Dll4pvCVvL9MSQxAqq/JKBUc/URXw/1aBMjg+dHs4tT0foCP /t82icU8+oyXCRyYnwrUSGss2l/orTywPITKFSNr94cWQU5i0WmGrSkxugYdyw56Gfvp S20I9dAY/UNFWSWq7OY74zXaH8HmFJsYvgOa9BIYZsyxW4H3wd32Q5CMl0Nbj5jJUpk7 IF2QJsnejTyGwSAf7gawK8jv6SJ+s9P90Mie9v0iITmZKbU3qPnHZnD+TC2/9lwjdKzD MBxBphb4VlWVOosQZW53HxE/0c9rfigvJHDFYPpzc2LrHTUOiRvJrvCuILtLEy2dsptb gPKA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g98si9089768plb.11.2019.02.26.06.29.23; Tue, 26 Feb 2019 06:29:39 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727203AbfBZO2y (ORCPT + 99 others); Tue, 26 Feb 2019 09:28:54 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:36466 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726020AbfBZO2y (ORCPT ); Tue, 26 Feb 2019 09:28:54 -0500 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1QEE3Sp030137 for ; Tue, 26 Feb 2019 09:28:53 -0500 Received: from e14.ny.us.ibm.com (e14.ny.us.ibm.com [129.33.205.204]) by mx0a-001b2d01.pphosted.com with ESMTP id 2qw6gmu60e-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 26 Feb 2019 09:28:52 -0500 Received: from localhost by e14.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 26 Feb 2019 14:28:51 -0000 Received: from b01cxnp22035.gho.pok.ibm.com (9.57.198.25) by e14.ny.us.ibm.com (146.89.104.201) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 26 Feb 2019 14:28:47 -0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x1QESksT22675630 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 26 Feb 2019 14:28:46 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 15A40B2064; Tue, 26 Feb 2019 14:28:46 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EBE0EB2065; Tue, 26 Feb 2019 14:28:45 +0000 (GMT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.188]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 26 Feb 2019 14:28:45 +0000 (GMT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 9E57316C2BF9; Tue, 26 Feb 2019 06:28:45 -0800 (PST) Date: Tue, 26 Feb 2019 06:28:45 -0800 From: "Paul E. McKenney" To: Peter Zijlstra Cc: 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 , Akira Yokosawa , Daniel Lustig Subject: Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo Reply-To: paulmck@linux.ibm.com References: <20190222112128.GA7213@andrea> <20190222130014.GY32494@hirez.programming.kicks-ass.net> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190226134906.GG32494@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 19022614-0052-0000-0000-000003911F05 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010668; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000281; SDB=6.01166661; UDB=6.00609424; IPR=6.00947266; MB=3.00025748; MTD=3.00000008; XFM=3.00000015; UTC=2019-02-26 14:28:50 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19022614-0053-0000-0000-00005FFA06C1 Message-Id: <20190226142845.GK4072@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-26_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902260105 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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