Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8744412ybi; Thu, 6 Jun 2019 19:07:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3sKmcp7V1sex846bSG2XqEoi7IstgJo8BHw99VTmnKo6Cxyc/nZYaCVZ/QS4Gzsa6NwK4 X-Received: by 2002:a17:902:b717:: with SMTP id d23mr36969619pls.53.1559873242863; Thu, 06 Jun 2019 19:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559873242; cv=none; d=google.com; s=arc-20160816; b=iZ7SJqFQX22f2uBIlvt5fEQoDVmrwSbEzqpfxVAfl9TS1ydRkZecHSw1OqW9gO2pXX Kk9p5WqrJVCereByewVg8m3hhTZdNCQYXATdQDykwdmp8dEOA+6geKty1EZWa3rUjB6Z p6CwPxDVfcPa9kksh6XctGppuqiQILejZq/MsxwygSkmsvZVBCyVtrmMwp6Z8Hw5SnXX +/HF1FQGQZS8zp1TX8EKzob1ZpCPsLV095vhJPLyjDG/HB59FLQS6+Mt7ZPkRNHCmoU3 94GFi5g6yikFyU0GbI6Xt38uV8ibaLwnTa2liySFiVqu05abudieqxo9xDxVO5yrzvHr kaLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QEUnkE6Im8einmZj2C6MIq4PTwm8bjOQ1E1LQ2F5/1Q=; b=DVgnnb3Yfg8vp0xiRPQlMd1/RM7ZtKtcyFxQoT/BdS4sQkbZqKasMJoNX23l07euvZ oQIThTwV+HReNy7w3KxZLo4WM0MvBUogha9S/3lkyDW5FQnGjZ8At16bwj7+DW77W5l2 a8D/8drK9dWxyFxB6nvdqekI+yq1KCR+CNo1/wiX+7UOJHe/1eNvzQWZp5Uw/KPWBXBC Msd1duPW7E0EnSwH7Evc534jHC7SQLI0yqU85BTvFMyqj/0ZBYQaFUtRnHsA03mfXDvi 6Ciut+WK29AIcoTxkRMiJyonvoTLwjs9dkzmznNs5hlYAR4poIsnNSjAifSzrbsLZ7HF Mnig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iYVyDjB2; 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 c2si635775pgd.415.2019.06.06.19.06.49; Thu, 06 Jun 2019 19:07:22 -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=@gmail.com header.s=20161025 header.b=iYVyDjB2; 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 S1727106AbfFFXLf (ORCPT + 99 others); Thu, 6 Jun 2019 19:11:35 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:40949 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726349AbfFFXLf (ORCPT ); Thu, 6 Jun 2019 19:11:35 -0400 Received: by mail-ed1-f67.google.com with SMTP id r18so91420edo.7; Thu, 06 Jun 2019 16:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=QEUnkE6Im8einmZj2C6MIq4PTwm8bjOQ1E1LQ2F5/1Q=; b=iYVyDjB27ZoY2J+fA/C4YM+TJgoVpnrkcjDB56OyGXRumXAtq/rIt8zYaszUOEfjp1 iPAboJAJVTnITpR9DNOFQtSeD0c6dqkLPEGmQmdkMBlU09vEmrZqFwAPm6uv1Hl5xgkq RFeZRXsei4Cc6qaXjjzR19dokNaTAcwuk3E3husnIII9AlycYH/HFNwBjqenSlgFOAwb n1jnQkUAaQHPJfLnrY43VBExrRNH+UN9OyfAMk4fAuur0zlxdmCQ4oXh03j3h6TPRNMn GdsN3RA49FTjxKEnDS0j5IG79Yyz+2GasCYISZe801tgVCjmOOuDCFoYMCqdiSL61bpN jLdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=QEUnkE6Im8einmZj2C6MIq4PTwm8bjOQ1E1LQ2F5/1Q=; b=TOO33hjXeIoKO1zs2DF9NxFt05gjpCj+WuuCzjXV0svHKcjHn8cT1mhQQDHnhZhnXr VkCxR4+cB6CXenEuCw1U4UaLPBZkLBLn8ZNfBffHmnMj8QDlDWtFQ+z1LAmM9tOoIrwT qgkzEAl9Drsv8cknuPMf8pAAv/iricoB3WOtracCO2W0LsRJLTHVSS8CDo8x7OAwJuGT eKm+Fi7mFkR03G5wpweEasxsz26arl5qcDddIhTWHQXEBYc8Ww3qrCWVsLvBGrxD8/XA e57mtZRVJkAXzj4HcMmisLa4vmcHnksMPrKvpFpV8fZONpX+msnrQkKbQUp2LLPgteNb pBxw== X-Gm-Message-State: APjAAAVnHz/Xdj3Dc3CKGwdpxvF/PVKfFKlIQuHb5fufDa2MiN7HpJaX F9HfHtILvpLy/cJuI5N9zdc= X-Received: by 2002:a50:f5c2:: with SMTP id x2mr6609917edm.13.1559862693382; Thu, 06 Jun 2019 16:11:33 -0700 (PDT) Received: from archlinux-epyc ([2a01:4f9:2b:2b15::2]) by smtp.gmail.com with ESMTPSA id a17sm72898edt.63.2019.06.06.16.11.32 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 06 Jun 2019 16:11:32 -0700 (PDT) Date: Thu, 6 Jun 2019 16:11:30 -0700 From: Nathan Chancellor To: Joe Korty Cc: "stable@vger.kernel.org" , LKML , Alistair Strachan , Nick Desaulniers , clang-built-linux@googlegroups.com Subject: Re: [BUG 4.4.178] x86_64 compat mode futexes broken Message-ID: <20190606231130.GA69331@archlinux-epyc> References: <20190606211140.GA52454@zipoli.concurrent-rt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190606211140.GA52454@zipoli.concurrent-rt.com> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 06, 2019 at 09:11:43PM +0000, Joe Korty wrote: > Starting with 4.4.178, the LTP test > > pthread_cond_wait/2-3 > > when compiled on x86_64 with 'gcc -m32', started failing. It generates this log output: > > [16:18:38]Implementation supports the MONOTONIC CLOCK but option is disabled in test. > [16:18:38]Test starting > [16:18:38] Process-shared primitive will be tested > [16:18:38] Alternative clock for cond will be tested > [16:18:38]Test 2-3.c FAILED: The child did not own the mutex inside the cleanup handler > What is the exact build command + test case command? I'd like to reproduce this myself. > A git bisection between 4.4.177..178 shows that this commit is the culprit: > > Git-Commit: 79739ad2d0ac5787a15a1acf7caaf34cd95bbf3c > Author: Alistair Strachan > Subject: [PATCH] x86: vdso: Use $LD instead of $CC to link > Have you tested 4.4.180? There were two subsequent fixes to this patch in 4.4: 485d15db01ca ("kbuild: simplify ld-option implementation") 07d35512e494 ("x86/vdso: Pass --eh-frame-hdr to the linker") > And, indeed, when I back this patch out of 4.4.178 proper, the above test > passes again. > > Please consider backing this patch out of linux-4.4.y, and from master, and from > any other linux branch it has been backported to. > So this is broken in mainline too? > PS: In backing it out of 4.4.178, I first backed out > > 7c45b45fd6e928c9ce275c32f6fa98d317e6f5ee > > This is a follow-on vdso patch which collides with the > patch we are interested in removing. As it claims to be > only removing redundant code, it probably should never > have been backported in the first place. While it is redundant for ld.bfd, it causes a build failure with the release version of ld.lld: https://github.com/ClangBuiltLinux/linux/issues/31 Cheers, Nathan