Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1137848pxu; Sat, 24 Oct 2020 01:31:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/G2k58Zk0dqA6GgM5fmlydJ/KsraWTlRfnFDEx1H/wkBLntnsqZ7qMGmt3/v9LNi49g8s X-Received: by 2002:a17:906:b216:: with SMTP id p22mr5993724ejz.228.1603528316776; Sat, 24 Oct 2020 01:31:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603528316; cv=none; d=google.com; s=arc-20160816; b=XJ75xqhDQSl6bvF9I2a9Y0Rf8iPaeDOgc19gPLLqloddNbieAe+G6WoqZMvww8USkG 5KXMtD+ufg+/KyDjrzTsSsdivWspYO4d6KDAvs6kzVRzbNQleHgPPLttrKS0H864hsNr WTvh9GwnxMt3vCFDpVF3qXvTuiCdzmXC2D97JNtsBueutgCiMSJyY1ATtUdxjxEeCDL7 yLqtc+1g5+eoIqXiXfqbV9DizotbbZmljI4H2svQ+LjhnZlpA6kgB15fcUwOr9zPqK8l tkOm7dYKdu/OSdJjK+mhXQM1/h3L+kwqVVHhMPtMiiPv1VBKCiclV8nepH9AQlk58t7Q E3fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature:dkim-filter; bh=9u/4bAHcrBBcc7goONQARCdwO+FUd0P7GG36TXEkpHY=; b=SjXLhFyHEassKJxo8eyxWYqiigcJDb5lTxc94RwxS00cq7fA/zmrRvGOCOj7Ylluqs 22jnlNtnZKbhc6aWxVPV+c3JaIHNJnlbNeZPiqk+HdBQLV3U0ppOgAtwL0iDhnJNxbRf 4+qhH7f9d23ty6gue7RlZiCj3UFMWSuk25LUcAdqkPxmfxf+624x1hl6tn9+fAe9RBQH wXMBpzdjjljYdN2AdQySHtyVp9ysNWuwY2yIsz5FI0sESRJHyuLyuU3z9TJu8zRFcxxZ vdFvhyN9UFFx4vuWRibL8FyUDGKxiQreDT80oWhXoYoeF2sT3NE0YGtXscx9Nvgz3KJJ ls+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@zytor.com header.s=2020092401 header.b=gKnCvn2h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dg18si2625586edb.214.2020.10.24.01.31.34; Sat, 24 Oct 2020 01:31:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@zytor.com header.s=2020092401 header.b=gKnCvn2h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756548AbgJWVAS (ORCPT + 99 others); Fri, 23 Oct 2020 17:00:18 -0400 Received: from terminus.zytor.com ([198.137.202.136]:46567 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756459AbgJWVAR (ORCPT ); Fri, 23 Oct 2020 17:00:17 -0400 Received: from wld157.hos.anvin.org (c-24-6-168-49.hsd1.ca.comcast.net [24.6.168.49]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id 09NL00sd3977700 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Fri, 23 Oct 2020 14:00:00 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 09NL00sd3977700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2020092401; t=1603486802; bh=9u/4bAHcrBBcc7goONQARCdwO+FUd0P7GG36TXEkpHY=; h=Date:In-Reply-To:References:Subject:To:CC:From:From; b=gKnCvn2haztGzj+7RlTFTHDsXYJwAuq4PU+wKo7S3FTdvCAXvVfMAfeWEq542gu4Y RVxxkmefKR2XmdSdxFhF7EY7waiWoETQuhhlzpy1LfKBdVeqd96IcKBD1XzNll5zEk pAnJL3wHH5q8PqKYb8EaaTzTJ2uhaMPtw8VduB0ronP91vOIyc5gHe/FG2IGb33IFR Pzf4Bvaxi73tsZDKoIoIVgOKBYnLiwZO35EvmQfHJoMIrlpCP4DoVrX9YZ3ZY+bNmK 6BEMsi+5twpsOmZp72hHJ9oV45sgyuVYOP56Gwe8GFSMISQFY9LiVn6dr9FIYEa26o RW96m+CngfF2Q== Date: Fri, 23 Oct 2020 13:59:58 -0700 User-Agent: K-9 Mail for Android In-Reply-To: References: <20201023203154.27335-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] x86/uaccess: fix code generation in put_user() To: Linus Torvalds , Rasmus Villemoes CC: Thomas Gleixner , Ingo Molnar , Borislav Petkov , the arch/x86 maintainers , Sean Christopherson , Naresh Kamboju , Linux Kernel Mailing List From: hpa@zytor.com Message-ID: <8820745F-E761-42E6-8A70-7B04EE70692C@zytor.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On October 23, 2020 1:55:22 PM PDT, Linus Torvalds wrote: >Thanks, applied=2E > >On Fri, Oct 23, 2020 at 1:32 PM Rasmus Villemoes > wrote: >> >> I'm wondering if one would also need to make __ptr_pu and __ret_pu >> explicitly "%"_ASM_CX"=2E > >No, the "c"/"0" thing is much better, and makes it properly atomic wrt >the actual asm=2E > >As mentioned to Andy, the "register asm()" thing is not uncommon and >often useful, but when you can specify the register directly in asm, >that's certainly simpler and more straightforward and preferred=2E > > Linus There is no same reason to mess around with hacks when we are talking abou= t dx:ax, though=2E We have to do pretty ugly hacks when other register pair= s are involved, but "A" is there for a reason=2E _ASM_AX64 maybe=2E=2E=2E --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E