Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6564738imu; Wed, 30 Jan 2019 17:46:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN6IbaHroktW7wMIiL0M96ulkwK6MK4JTb6Tghl1k2sjou6PUkDyf+PlE5olH0nwO9p4TUpD X-Received: by 2002:a63:7044:: with SMTP id a4mr29155755pgn.359.1548899188020; Wed, 30 Jan 2019 17:46:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548899187; cv=none; d=google.com; s=arc-20160816; b=eN7Iq0xfpx6lDNwT06JPkDrGqdwyixnrnbkzV+Q/hoqfP+yHaIylsMEUyQie1PHzV8 qFsmONnnC6Gq9iqq7NnQfmkxCguHWZwG7gmFgT5z0S7h91pXmKIDnvmA9LeUHBFciCow FjPSrGe3FNpDNfBCs8Fm5U5XViq0SHuR9VhlrKclX1eLWW/K5MCSy7+z0IG2+siVIwZ3 EmsZ3N0PjEkQvZFZjxkR/QVwJXXyJAU4dbFrGfZuOl9Q1zvtMwCfFJq1Lm/vnbCwfyGA s8L4QCLjZksPbFqNJQafFuhxw+z8YRE6CUw8vHboQioT/YxFUrhj4wAJN8FZmaHyB2iR peYA== 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=SSTv00Mw8Seh8BOilZKpM1RUiK4wzZzL6jDhtQN9D+o=; b=HmvdBjyNfCFkTCAZHw4DrcbnTMXmDXYNLEHCV54z9l5BnPMDVnlwNUpbBd0Aq49izQ Xi0vM01Efn8GoIKJTwJuI2YitBmf+3WnJBL/t0dLacIHN0weJ7ZIdCx9gYEqi/a0lIXM Ho3OuIrkLh+J7stjAMxWN5UR0Hugii5zx/LuuucPcUNbTRL96UvNb9HeveONc6UwRLSZ Bo4ZSPgUKDOU/L5BUaKd0/b/MszkaTWReaO1oH+dxZRUCx5HeK03NKHYRyUgTgeUZe4U j9Yc+mox/k1WGE4IcZUoBHbCMzkfsfJh89wXIVz/LAzLetUlvD4qAVZvaFdzbY+fkQbU 49fQ== 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 q127si3495676pfq.19.2019.01.30.17.46.12; Wed, 30 Jan 2019 17:46:27 -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 S1728125AbfAaBpR (ORCPT + 99 others); Wed, 30 Jan 2019 20:45:17 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:34486 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725535AbfAaBpR (ORCPT ); Wed, 30 Jan 2019 20:45:17 -0500 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0V1dDpD056130 for ; Wed, 30 Jan 2019 20:45:15 -0500 Received: from e12.ny.us.ibm.com (e12.ny.us.ibm.com [129.33.205.202]) by mx0b-001b2d01.pphosted.com with ESMTP id 2qbjqpbjdd-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 30 Jan 2019 20:45:13 -0500 Received: from localhost by e12.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 31 Jan 2019 01:45:12 -0000 Received: from b01cxnp22033.gho.pok.ibm.com (9.57.198.23) by e12.ny.us.ibm.com (146.89.104.199) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 31 Jan 2019 01:45:09 -0000 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x0V1j7VV12124410 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 31 Jan 2019 01:45:07 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6CB54B2064; Thu, 31 Jan 2019 01:45:07 +0000 (GMT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4B354B205F; Thu, 31 Jan 2019 01:45:07 +0000 (GMT) Received: from paulmck-ThinkPad-W541 (unknown [9.80.205.154]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Thu, 31 Jan 2019 01:45:07 +0000 (GMT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 0A37316C69CE; Wed, 30 Jan 2019 17:45:07 -0800 (PST) Date: Wed, 30 Jan 2019 17:45:07 -0800 From: "Paul E. McKenney" To: Thomas Gleixner Cc: Sebastian Sewior , Heiko Carstens , Peter Zijlstra , Ingo Molnar , Martin Schwidefsky , LKML , linux-s390@vger.kernel.org, Stefan Liebler Subject: Re: WARN_ON_ONCE(!new_owner) within wake_futex_pi() triggerede Reply-To: paulmck@linux.ibm.com References: <20190130125955.GD5299@osiris> <20190130132420.spwrq2d4oxeydk5s@linutronix.de> <20190130210733.mg6aascw2gzl3oqz@linutronix.de> <20190130233557.GA4240@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 19013101-0060-0000-0000-0000030341E0 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010507; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000277; SDB=6.01154173; UDB=6.00601795; IPR=6.00934550; MB=3.00025361; MTD=3.00000008; XFM=3.00000015; UTC=2019-01-31 01:45:11 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19013101-0061-0000-0000-0000481F0EA2 Message-Id: <20190131014506.GC4240@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-30_19:,, 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-1901310011 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 31, 2019 at 01:27:25AM +0100, Thomas Gleixner wrote: > On Thu, 31 Jan 2019, Thomas Gleixner wrote: > > > On Wed, 30 Jan 2019, Paul E. McKenney wrote: > > > On Thu, Jan 31, 2019 at 12:13:51AM +0100, Thomas Gleixner wrote: > > > > I might be wrong as usual, but this would definitely explain the fail very > > > > well. > > > > > > On recent versions of GCC, the fix would be to put this between the two > > > stores that need ordering: > > > > > > __atomic_thread_fence(__ATOMIC_RELEASE); > > > > > > I must defer to Heiko on whether s390 GCC might tear the stores. My > > > guess is "probably not". ;-) > > > > So I just checked the latest glibc code. It has: > > > > /* We must not enqueue the mutex before we have acquired it. > > Also see comments at ENQUEUE_MUTEX. */ > > __asm ("" ::: "memory"); > > ENQUEUE_MUTEX_PI (mutex); > > /* We need to clear op_pending after we enqueue the mutex. */ > > __asm ("" ::: "memory"); > > THREAD_SETMEM (THREAD_SELF, robust_head.list_op_pending, NULL); > > > > 8f9450a0b7a9 ("Add compiler barriers around modifications of the robust mutex list.") > > > > in the glibc repository, There since Dec 24 2016 ... > > And of course, I'm using the latest greatest glibc for testing that, so I'm > not at all surprised that it just does not reproduce on my tests. Sounds about right. :-/ > I just hacked the ordering and restarted the test. If the theory holds, > then this should die sooner than later. ;-) Thanx, Paul