Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2204075ybx; Fri, 8 Nov 2019 01:19:28 -0800 (PST) X-Google-Smtp-Source: APXvYqzHxRW6fl1Rqu6Wx/irtvg+z3b0s3XC9bb32zDDAwCTmNa1DyeUxb2wm1+GtOZq6KgtfdQh X-Received: by 2002:a17:906:5e52:: with SMTP id b18mr7578521eju.318.1573204768304; Fri, 08 Nov 2019 01:19:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573204768; cv=none; d=google.com; s=arc-20160816; b=vxgs66rq1V4QeRzc5tjBxBhzQRp31d3e8O7UYu7eBc3mTtHIsiySrkf7aHgWumL+e3 wNtu2DT7LkI2A3twjUCKLI78jtg6xPsFFYllaqMIYL1b8UvxrbP78EBLSuhkc71VK/G5 JwrvTmn0YNFPCr1HdEXJ7M7+yMT5cWI0wXrFB95AYHtlLIqsdbjStqm5rxEm92ypoTms e4krhwDki+ORm/kqih5Z9Ia2dj5LnUibpPjt+XgRJblvtChvTnrSYLFZJIFDA8p+BXy1 jDNwU9jf71TokE14k8sPo8hUQG72zUJ9HpzM9JTr4Glc1E1r6j2r6EbZX+LKm+JTMJtZ qs5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=ZaHLoXm/bNyyQPHUcUW5hEC+bxIY4fVOXhImMJci6DY=; b=G1Yx3RWPGLRXCWvh3kzelqOOswgElVqJMOT7X9GyQYPc/TWppT28+Vcw3rpLC6sR2A 9FhPHkd1TxXUsV4DfoqGWftOcp7pz7eQ6ixtPxjSOftc9oCTfiDCdsGnSBPy5tc1nNfU AQMvEACQ0aIvP3hDv1wYfJkR2X7qvysyoP3HliCaZAN07tiKFJjywzyhoMly2E6Q9++Q vzMOPx9lq1JZbUzCga2OTeoVBYkiiHekdLW2Dtu4OFtgdNI+p6ZSKpL7HsZfoKuihEv4 QAdQfd/N/g+a92nYynVavZmO8jQhYo5In6j78zF0WFKK0Letkuwptp1Z2/YE5uYyvU4K N3xA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gw9si3433996ejb.284.2019.11.08.01.19.03; Fri, 08 Nov 2019 01:19:28 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730231AbfKHJSQ (ORCPT + 99 others); Fri, 8 Nov 2019 04:18:16 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:50443 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726987AbfKHJSQ (ORCPT ); Fri, 8 Nov 2019 04:18:16 -0500 Received: from p5b06da22.dip0.t-ipconnect.de ([91.6.218.34] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iT0PC-000543-33; Fri, 08 Nov 2019 10:18:10 +0100 Date: Fri, 8 Nov 2019 10:18:08 +0100 (CET) From: Thomas Gleixner To: Florian Weimer cc: LKML , Peter Zijlstra , Ingo Molnar , Darren Hart , Yi Wang , Yang Tao , Oleg Nesterov , Carlos O'Donell , Alexander Viro Subject: Re: [patch 00/12] futex: Cure robust/PI futex exit races In-Reply-To: <87o8xm95rt.fsf@oldenburg2.str.redhat.com> Message-ID: References: <20191106215534.241796846@linutronix.de> <87zhh78gnf.fsf@oldenburg2.str.redhat.com> <87v9rv8g44.fsf@oldenburg2.str.redhat.com> <87o8xm95rt.fsf@oldenburg2.str.redhat.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 Nov 2019, Florian Weimer wrote: > * Florian Weimer: > > * Florian Weimer: > >> I ran the glibc upstream test suite (which has some robust futex tests) > >> against b21be7e942b49168ee15a75cbc49fbfdeb1e6a97 on x86-64, both native > >> and 32-bit/i386 compat mode. > >> > >> compat mode seems broken, nptl/tst-thread-affinity-pthread fails. This > >> is probably *not* due to > >> because the failure > >> is non-sporadic, but reliable fails for thread 253: > >> > >> info: Detected CPU set size (in bits): 225 > >> info: Maximum test CPU: 255 > >> error: pthread_create for thread 253 failed: Resource temporarily unavailable > >> > >> I'm running this on a large box as root, so ulimits etc. do not apply. > >> > >> I did not see this failure with the x86-64 test. > >> > >> You should be able to reproduce with (assuming you've got a multilib gcc): > >> > >> git clone git://sourceware.org/git/glibc.git git > >> mkdir build > >> cd build > >> ../git/configure --prefix=/usr CC="gcc -m32" CXX="g++ -m32" --build=i686-linux > >> make -j`nproc` > >> make test t=nptl/tst-thread-affinity-pthread > > > > Sorry, I realized that I didn't actually verify that this is a > > regression caused by your patches. Maybe I can do that tomorrow. > > Confirmed as a regression caused by the patches. Depending on the > nature of the bug, you need a machine which has or pretends to have many > CPUs (this one has 256 CPUs). Sure I can do that, but I completely fail to see how that's a regression. Unpatched 5.4-rc6: FAIL: nptl/tst-thread-affinity-pthread original exit status 1 info: Detected CPU set size (in bits): 225 info: Maximum test CPU: 255 error: pthread_create for thread 253 failed: Resource temporarily unavailable TBH, the futex changes have absolutely nothing to do with that resource fail. Thanks, tglx