Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1920303pxk; Tue, 1 Sep 2020 10:52:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJqfJzmDDo4LD+XegJsFYW306sNM9w3/4j69ci6O83QKTGmUfbaFumlZrIBo7roiNuY5Oo X-Received: by 2002:aa7:c985:: with SMTP id c5mr2931858edt.355.1598982722980; Tue, 01 Sep 2020 10:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598982722; cv=none; d=google.com; s=arc-20160816; b=o2vnmwFVtj4a2gOfVaeClRHLXeMGik/xgLdAVQ6274otvucJO+g0thKoWFLQzx2/MS kedD73CMjgrTyxB6Hl1UHcyWTlxGlPzcj1m7toZrqYnASBzuGERr/YN8IfzzHWo6kPwv xllkwcR/87QST1YmuJITzKyNE3v/pdJc6vGemtWKFSFw6T7P8SYXH/yLd34QwJv1urs5 5GRUAFzNvRjRrZaKhB7DtLvMvp3RQYx5bddsesSnLf9QC5DbfTZgC9fdjIFPL9HYw6xC 1xZyaxdd/fdXYS9p9kQFPjfPcBIl6s6mDaLkOiabi68ynMEF4m3O/96arPj71+RYpaOF tEEw== 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:subject:cc:to:from:dkim-signature; bh=LJQ9qbxmQlGXiLqbEYSaeGjkLOhWAWXWbiUsuRzUZMg=; b=gIdGc8BtBpoWpZTGTlDQU+xh/kTQvscIWdIBVhR1mHu0BmtGAGPv+HvkOORxveedXS flG4Q57kJfEBMrqwj06N21uJw9gfMPPDT4oZ39ztjsceurE+2FmsoRwIQmYfOqlUg8Jv S7SSjgK+Ek8ceRQMeoh/EOeFTufIjFPVwDG+PbvjQHclx4x/yrp/Rw0jNA0VDibinBQB B7tAJFP+Cbvo7zCXUoQ1NskSefTDG6lRsAkUtWEzmOEM2/PaLtOpV79kDapliF2haI7o 0IXK00s7GT5AAJVykrCNAbnGhmFJoDPFaNPls3bej5G3bu58FE78PikaZ/xNMZ3XHDHB LWJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MgHej4kt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c18si1127400eje.555.2020.09.01.10.51.39; Tue, 01 Sep 2020 10:52:02 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MgHej4kt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728074AbgIARu5 (ORCPT + 99 others); Tue, 1 Sep 2020 13:50:57 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:24788 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728053AbgIARu5 (ORCPT ); Tue, 1 Sep 2020 13:50:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1598982655; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LJQ9qbxmQlGXiLqbEYSaeGjkLOhWAWXWbiUsuRzUZMg=; b=MgHej4kt+seujZyGpQvoqPG2yWC1yv4Wd0gGDcSRt+HQdV62ICZRBtpp9Pvzs/LFj16+k0 /INhxhldAuOXice/vTQBLekX6yvMEiO2NY8+hHetr/nGr0OTMkPLdusmmJde378JW9uY1z Jwo+QJU80rXubNaNFgf7csJ/n+ogi1Q= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-356-0uJb2eE_NhiqiYY54UEPVA-1; Tue, 01 Sep 2020 13:50:51 -0400 X-MC-Unique: 0uJb2eE_NhiqiYY54UEPVA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 02495802B7E; Tue, 1 Sep 2020 17:50:48 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-113-228.ams2.redhat.com [10.36.113.228]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6923B5C1BB; Tue, 1 Sep 2020 17:50:34 +0000 (UTC) From: Florian Weimer To: "Yu, Yu-cheng" Cc: "H.J. Lu" , Dave Martin , Dave Hansen , Andy Lutomirski , X86 ML , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , LKML , "open list:DOCUMENTATION" , Linux-MM , linux-arch , Linux API , Arnd Bergmann , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Weijiang Yang Subject: Re: [PATCH v11 25/25] x86/cet/shstk: Add arch_prctl functions for shadow stack References: <20200825002540.3351-1-yu-cheng.yu@intel.com> <20200825002540.3351-26-yu-cheng.yu@intel.com> <2d253891-9393-44d0-35e0-4b9a2da23cec@intel.com> <086c73d8-9b06-f074-e315-9964eb666db9@intel.com> <73c2211f-8811-2d9f-1930-1c5035e6129c@intel.com> <20200826164604.GW6642@arm.com> <87ft892vvf.fsf@oldenburg2.str.redhat.com> <20200826170841.GX6642@arm.com> <87tuwow7kg.fsf@oldenburg2.str.redhat.com> <873648w6qr.fsf@oldenburg2.str.redhat.com> <3c12b6ee-7c93-dcf4-fbf7-2698003386dd@intel.com> Date: Tue, 01 Sep 2020 19:50:32 +0200 In-Reply-To: <3c12b6ee-7c93-dcf4-fbf7-2698003386dd@intel.com> (Yu-cheng Yu's message of "Tue, 1 Sep 2020 10:49:01 -0700") Message-ID: <87o8mpqtcn.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Yu-cheng Yu: > Like other arch_prctl()'s, this parameter was 'unsigned long' > earlier. The idea was, since this arch_prctl is only implemented for > the 64-bit kernel, we wanted it to look as 64-bit only. I will change > it back to 'unsigned long'. What about x32? In general, long is rather problematic for x32. Thanks, Florian