Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5440212imb; Thu, 7 Mar 2019 16:06:54 -0800 (PST) X-Google-Smtp-Source: APXvYqzgETg/vCkmYnhWpj/ShIfDUo8lA+UJ8KeEAfnRAFe80IHV81yY3JbgwMBfhA5qwOeMG6ci X-Received: by 2002:a63:ea48:: with SMTP id l8mr13638293pgk.431.1552003614753; Thu, 07 Mar 2019 16:06:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552003614; cv=none; d=google.com; s=arc-20160816; b=FOF8AilyJcHAjIN4ogN0ZQM9+UaN5ELAvJhDgDI61tIOZXgdd71Mo6zn3J8HiuDwp1 47o1JtFOzyIN/fFjpxY+jwCRXPAPiZIfltreIMRARlg0waZ1jyto4Gq6laTxPH3FmHft a4PPqQXhGntpMN13qpT01m9uQS1iznBpAgIjEDtBHObseHem8COmKJxN+ZPnMg3KqWOh /6sUTNkJTdHVHuHHHC9xFj2E0NMiH0scUkQ4FWIFXmlzVKV8LHNglrRbSYlunYb2nMU0 T0oPgbBqL/EPHRackGJxobQhT1iafPMbgVCPlUO4EkRdXPzDo8JXWUpN0WL37+q2c2zM +mDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=tsVzEHkWwvehOdkIdjjF1GTyTAyLfCHX5dPLG40EVmE=; b=LBglaAfKen9BTCfwokIZuOkfsFrohYpWkwTb2usuCC2J8Ed+4Jg2hk5x1cPqSlFSdl MC04qedbv+M8F5Ie+6cfrnMmRGZ+VbIxWFQ1fsSne4vORiZh+DMbMuEdMi075UnOHz5t smhgNdZF0DTiLvUIxiaJqT9vhUOMRZpImQ2yEOnEjNDJCCY/ZgLeqQ/i3vHn313KLGUR bk6EtXH3yjPp5DjCFjjJWjho9dr1lN9FVC7i6aRRA23P1DVHgIcHBkZn1g4EpP3thBrU q7kzVaLh2H/fg43TfN0W45B27AsN8RK7ZsEgBV/9lI9SF6pQLCUqMl5B6R2nmFN0Rg/C b8Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="ljy/8d3A"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s35si5235008pgl.101.2019.03.07.16.06.38; Thu, 07 Mar 2019 16:06:54 -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=@google.com header.s=20161025 header.b="ljy/8d3A"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726388AbfCHAEg (ORCPT + 99 others); Thu, 7 Mar 2019 19:04:36 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46339 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbfCHAEf (ORCPT ); Thu, 7 Mar 2019 19:04:35 -0500 Received: by mail-pg1-f196.google.com with SMTP id 196so12573883pgf.13 for ; Thu, 07 Mar 2019 16:04:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tsVzEHkWwvehOdkIdjjF1GTyTAyLfCHX5dPLG40EVmE=; b=ljy/8d3AhJljd5mmxbwKDuR8HXOGANvMLtcC9L5oNFoHfqKuPJcj6HMjJ5bKTKKeRW Bppk89z9AmgHYkSh+1MSXoGz+XIkjUKncz5SZUTQEGJPK7mPRtR17v0mapf8DxzBByPj tL247/SUN0BSXfziD6HZfJkY8Lcoauw89JJg//GMUIvuty5QwpsxBzBJrEF2pWAzU9SC 8gY74bNaO/UjeicyeFWEHNLcin1Gjq9BV1OnVyNzJhyss2W38GyNYNusaqi6aTNzPHAI JdLLqU9xTOWoMCj9taU0Y6eLoDVUmbaFvq6/CAMUkitDsesJxb2G6XulxtWUWfgLUTqH Snjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tsVzEHkWwvehOdkIdjjF1GTyTAyLfCHX5dPLG40EVmE=; b=lRypipPVX9qckA6nuWb82buiJzRLZ+Na6SZp6ShTR+lfgm5cm+8QBvy4kupyx934Q4 5aNd/tsmCBNX0b5EhFkp72XFCPrl2Cdk4aGIifIj28DquKUsjGYCRPmDN6UHMW2W08FQ VM0h2Ojo6YgN4FuAI5nFtQ1YTJgUwrJOSqi2sSS7U0QBantCnGTtEEOBYhTGrICLAIOR hsJvVx+4x4jqiqeGE58QGr8464xsWJUna5asBtzQHk3KwwoAwQY6YTtUgF9LhE1KRvJS opA/3WAoV0yKK4oqA83ZOcaxIPOL594Ag/2hpyF6WpFPIuds7BByMRldcu3TxGVlhVfT LPJA== X-Gm-Message-State: APjAAAUN7Xf7QEfNYYykKqVbFgKEQzrMgH7n030SuOrkVK6WLSsFXQgd w5e4Z8s/aA35EChP8WHAw8lhbHtTfK6m/s2znOasTw== X-Received: by 2002:a63:5506:: with SMTP id j6mr13879486pgb.202.1552003474330; Thu, 07 Mar 2019 16:04:34 -0800 (PST) MIME-Version: 1.0 References: <20190307091514.2489338-1-arnd@arndb.de> <20190307091514.2489338-2-arnd@arndb.de> <20190307234850.nsbpkfcit3lnmytu@shell.armlinux.org.uk> In-Reply-To: <20190307234850.nsbpkfcit3lnmytu@shell.armlinux.org.uk> From: Nick Desaulniers Date: Thu, 7 Mar 2019 16:04:23 -0800 Message-ID: Subject: Re: [PATCH 2/2] ARM: futex: make futex_detect_cmpxchg more reliable To: Russell King - ARM Linux admin Cc: Arnd Bergmann , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Darren Hart , Mikael Pettersson , Mikael Pettersson , Dave Martin , Linux ARM , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 7, 2019 at 3:49 PM Russell King - ARM Linux admin wrote: > > On Thu, Mar 07, 2019 at 11:39:08AM -0800, Nick Desaulniers wrote: > > Underspecification of constraints to extended inline assembly is a > > common issue exposed by other compilers (and possibly but in-effect > > infrequently compiler upgrades). > > I don't see what is "underspecified" in the original constraints. > Please explain. From the link: The problem is that in the T(streq) insn, %3 and %4 MUST be different registers, but nothing in the asm() constrains them to be different. > > > "One way of fixing this is to make uaddr an input/output register, since > > > "that prevents it from overlapping any other input or output." -- Thanks, ~Nick Desaulniers