Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1751604ybb; Sun, 29 Mar 2020 12:25:30 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs0mLGGD3MyO5NcHZB0ZyqoNUBzmP8zfnonG5OYfGylz9EfOlMfmvYWtjv/gf9u0nU1R1tZ X-Received: by 2002:aca:da57:: with SMTP id r84mr5303240oig.79.1585509929963; Sun, 29 Mar 2020 12:25:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585509929; cv=none; d=google.com; s=arc-20160816; b=vpBAXS0VVjkX0ubYGfop7IpAx2xFQll8Q8LK32A/VHy+fVzUkSUli+rOIhSNlU8uvJ EeVSLaYs6OxV12DePNcpiPQyn56UbxHRI6ZoreFKx5Eb31imwWwXl572ervx9Swx1FHE aZCdaRU1MBlwLLhD5uE9vPofY/7nD+1Htf1LulUMGcc/BpLiFEM4Kz5Gs7tE4J94soRa 2dgFvQJhc8BjTqFwgV33SNXDe50CbxR1H5//gZfJO5WC7IMIdqxcBeACcDJSw6910lv6 njOMdEm9uepizQ8/HEBb4+84ceA1xUwews355o+pVeYRhT3FqZYEmggqDUwD3UTXRmFP 4l3g== 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=UzKIqjkzj7/Eq13gEM5B5ww/GQ27+9p2+1RGc78xjeY=; b=nqs3N/JxBl82eJBVomeOMqmCZfn3ZOfBPZ96chi9Lbf8wRvBOrIKH5iba05asbCFMk TB9AYdW3Up9IPcvr1IKQ6IeCgFeWJT2+e+IFohkH7OqiKJgTg5HF8kYU1tbnpF/OXS5V J95mXz5ovM78Yzvx9k+dL/RZ+LVZwnUxih4uOehSFth1CQ15WZdcouhGaTC8ZIACNya2 QzJQR4Kyhu40H4AZU+CQTrCVBAsuo1AoXOms9hnwyXLYDSlLGzOhPBptdv5/Nc4pdMQP YXO/BjOrmJSfdPb1zZ1ObRO1H1unLwrpE4Rf1p+JeZxvgdHVBs0Je/1hybYw11nIe6Es 1SaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=D+OjUPi3; 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 v67si4468859oie.127.2020.03.29.12.25.16; Sun, 29 Mar 2020 12:25:29 -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=@linux-foundation.org header.s=google header.b=D+OjUPi3; 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 S1728479AbgC2Szz (ORCPT + 99 others); Sun, 29 Mar 2020 14:55:55 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:35107 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726283AbgC2Szz (ORCPT ); Sun, 29 Mar 2020 14:55:55 -0400 Received: by mail-lf1-f68.google.com with SMTP id t16so11361331lfl.2 for ; Sun, 29 Mar 2020 11:55:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UzKIqjkzj7/Eq13gEM5B5ww/GQ27+9p2+1RGc78xjeY=; b=D+OjUPi3ac95W7wx3JJ+HoZ9kpnqs7I9BWSpuiS7wpheI0dITNUhYwkvqOqLLBNYDh 9WAbxP7m6Sa5QIhVj9VyhWYDMUKkVVEAbxSY/yCNmYwu25Zcr07r7yvq0asr3LG9inQo L7vDJ8tlVdyT5LHFiQVKewJYbq9Vs/tl4Vw6A= 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=UzKIqjkzj7/Eq13gEM5B5ww/GQ27+9p2+1RGc78xjeY=; b=Z1VnqbQHuedhstImUk6zEOmS7JbFxMclBxCwUFkOpfaZLO5mPhd4e2NyynEqysv3sF cxu6JhGme9cyw3pRZ+Z2e2YnkSUOQMAMheKdmgnhLf7MWOAJzkCQ28VT7pACd7mU4RsX 28GGZa77kht222K0/BAwqHtQp7tcMsyVNp7XTNHT+EX068Qjk7AvMOLtZQifwsweW41w +tjFYOW9iBAwqsuPH5BKp1Ts5i12dyXVrdVONoW+WM+qwaeNefgCFRrcS1QnsmdmqhnC qj1StQyfIK44UDkFUcB1mEZERBUycD8jbPSC2TsEFjriTJISeZc/XZ6GHoUjHg2Omf/c vSYQ== X-Gm-Message-State: AGi0Pua41w0UiJcWy+qIkivRGBweLyDNA9F8Blwo18KrA+3YsTOvZgSy E9dUPnvEzl7hwTQKL02NaTOItC0ugFI= X-Received: by 2002:a19:c388:: with SMTP id t130mr5980962lff.175.1585508150955; Sun, 29 Mar 2020 11:55:50 -0700 (PDT) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com. [209.85.167.53]) by smtp.gmail.com with ESMTPSA id e4sm777246lfn.80.2020.03.29.11.55.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Mar 2020 11:55:50 -0700 (PDT) Received: by mail-lf1-f53.google.com with SMTP id v4so12150000lfo.12 for ; Sun, 29 Mar 2020 11:55:49 -0700 (PDT) X-Received: by 2002:ac2:5e36:: with SMTP id o22mr5576296lfg.142.1585508149219; Sun, 29 Mar 2020 11:55:49 -0700 (PDT) MIME-Version: 1.0 References: <20200323183620.GD23230@ZenIV.linux.org.uk> <20200323183819.250124-1-viro@ZenIV.linux.org.uk> <20200328104857.GA93574@gmail.com> <20200328115936.GA23230@ZenIV.linux.org.uk> <20200329092602.GB93574@gmail.com> <489c9af889954649b3453e350bab6464@AcuMS.aculab.com> <9352bc55302d4589aaf2461c7b85fb6b@AcuMS.aculab.com> In-Reply-To: From: Linus Torvalds Date: Sun, 29 Mar 2020 11:55:33 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC][PATCH 01/22] x86 user stack frame reads: switch to explicit __get_user() To: David Laight Cc: Andy Lutomirski , Ingo Molnar , Al Viro , Thomas Gleixner , X86 ML , LKML , Borislav Petkov 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 Sun, Mar 29, 2020 at 11:32 AM David Laight wrote: > > Can't you simplify that by using the =d constraint rather > than relying on a asm register variable. No, because that asm register variable can be 64-bit. Which on x86-32 isn't "=d". It's "%edx:%ecx". The asm register variable thing handles that automatically, but "=d" would not. Linus