Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1329280ybg; Wed, 29 Jul 2020 11:14:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEsyBGz9vPkSojq5sNNlmOlm7/r8TogrHVzoeq64Sn2TO+ldY1XZnCCUESe/r8/YyJKn5S X-Received: by 2002:aa7:c70b:: with SMTP id i11mr12795121edq.272.1596046487922; Wed, 29 Jul 2020 11:14:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596046487; cv=none; d=google.com; s=arc-20160816; b=KuzEjN83TQA9mHTn+PG6qwxkiY0fICwhzLo47hVMaeq4kE47RhNu5+ruWkEWiCel4x l8eNfCGq2FJBM5vJ7Uu8mOFFZ6vCb0AM6f5A/1mOIPh+n4pI0R6RO0jrmP5kk+VR3AMs zTQ8a2ZE93pSaWkCddLhnSpep0PEDMekISrZvZSBOeebqW4aiTIv6jRA/hC143Sv89tv 3sAg3q88eoiwKu+HW5k1T9RsbvzYB2tRTCKyXpevnD/s7WOpGtfUE1X8DpRuYZm5zpfG CffNUJEBzFOkIoN0myew9e8o51r0A6rew1w1UxNja1E/lrgiOTWH2uRmh/5kO2swMBUk zLlQ== 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:message-id :in-reply-to:date:references:organization:subject:cc:to:from; bh=BnWrnhs9WAiVaJAD9+igLI5SIt5LtVoxZn4Wg/v2A4A=; b=sCojUgnQFRIZ+skrbl8L/zYZd+gniW6BKCodWp63ijZao58PKP9oNy6z3dnscw6B01 d8XiYj9AaPCPtY3cKaCqQUCickCayt5cEnmPhhh68V0yvt9AuHh7pAjNF3U/hsSmmUxS 0OkH1MpbAyGiH0HeyPWF2WtQJ9qhaFlLKI+kj5sk+ODFH4SXkLqGTHoIgn490pJpEZx2 2ne1EAhoQjWOpIZF1yVRzA6FRrfOvaioqzgFZWsCqoUexcSjBy/3Kc956bU0MI+ZvfOT gbKaAjWrZcvkYdSM+dqNrJ4xGD30Jtfz1C2r0CxNu+iHGwnJjs4aloIcms+txyG5x97+ 2e5w== ARC-Authentication-Results: i=1; mx.google.com; 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n7si1570253ejg.734.2020.07.29.11.14.25; Wed, 29 Jul 2020 11:14:47 -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; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727791AbgG2SLv (ORCPT + 99 others); Wed, 29 Jul 2020 14:11:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726365AbgG2SLv (ORCPT ); Wed, 29 Jul 2020 14:11:51 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF3A6C061794 for ; Wed, 29 Jul 2020 11:11:50 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 0636728EB45 From: Gabriel Krisman Bertazi To: Andy Lutomirski Cc: Peter Zijlstra , Christoph Hellwig , Thomas Gleixner , Kees Cook , X86 ML , LKML , kernel@collabora.com Subject: Re: [PATCH 2/6] arch: x86: Wrap TIF_IA32 checks Organization: Collabora References: <20200728202229.1195682-1-krisman@collabora.com> <20200728202229.1195682-3-krisman@collabora.com> <878sf3j5cl.fsf@collabora.com> Date: Wed, 29 Jul 2020 14:11:44 -0400 In-Reply-To: (Andy Lutomirski's message of "Tue, 28 Jul 2020 22:09:26 -0700") Message-ID: <874kpqjin3.fsf@collabora.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andy Lutomirski writes: > On Tue, Jul 28, 2020 at 9:46 PM Gabriel Krisman Bertazi > wrote: >> >> Andy Lutomirski writes: >> >> > On Tue, Jul 28, 2020 at 1:22 PM Gabriel Krisman Bertazi >> > wrote: >> >> >> >> In preparation to remove TIF_IA32, add wrapper that check the process >> >> has IA32 ABI without using the flag directly. >> > >> > Thank you for doing this, but let's please do it right. There is, >> > fundamentally, no such thing as a "process with IA32 ABI". >> >> Hi Andy, >> >> Thanks a lot for your review. >> >> As you can see, I'm learning my way here. Can you clarify "there is no >> such a thing as a 'process with IA32 ABI'"? I'm not sure if I confused >> the terminology or if (more worrisome for me) I got the concepts wrong. >> >> My understanding is that TIF_IA32 marks a thread that is running under >> the 32-bit compat mode, which would be running a 32-bit process (as in >> compiled with -m32, for instance), while TIF_X32 marks a process running >> under the X32 ABI. Each process would have only one of these >> "personalities". This is what I meant by a process with IA32 ABI (which >> is wrong in any case). Is there more to it, or is the problem the >> terminology I used? > > There's more to it. Thanks again for the explanation! >> I don't have any comments on the other things you mentioned, except that >> I need to go through them and better understand your suggestions. Would >> you prefer me to rework this patch series with what you suggested or is >> this something you want to take over and do yourself? Both ways are >> fine by me. > > Please rework it :) I have seriously limited bandwidth right now. Will do. -- Gabriel Krisman Bertazi