Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1242034pxj; Fri, 21 May 2021 09:30:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7BOg3FAeDAbdDnIIKCzFs4MAy0NP56P0sQ9/q37sSAvjB+5UqKvfMfw4t//BhSAHK3Vf8 X-Received: by 2002:aa7:d61a:: with SMTP id c26mr12292022edr.351.1621614624730; Fri, 21 May 2021 09:30:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621614624; cv=none; d=google.com; s=arc-20160816; b=f7RloHGYlyC1nSh7no0YgRBbKq+pHf2qQyuEzf6b8s3FnT0u7ci25rrMZDxHO9eDDz iq0s7TfDkuWd703iCT01Uy+loguuOIPbfasa+RkLRFk7AF+ss33r/z1GGz6mgEs+DPXP JgBxW/b8c5wrl5IpSl6fbhpnvObEoAjOii/RuAV9elKzyc7eXO47y7NchkfGTgClWH6A 0kSUpV9/eN0rzlbDiA4NI+d0VUCBdwnadA+iv7X5OqCD3dyEmJRltxAA1yGD/BemTSzs D+ZV0qB5Jah0VdmuFER+TUTT6HABxX8Bozg7wRk/vYUGDeWb2usRuyN6Tt5fiDKqEVPH 3I/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xAcCCkyhMBeA+FlHmzfzPiZtaAE/GIh+EEGr21kJE5o=; b=GX6XiRqy9Sf/DuFU5dNWopK6da+aEoLdgnklyXM/rzzL7grEkqj4XH+cQEZ00mfPFl P/qE/N+gwhzp+C7HI/GiKvLeFQPRVYceXXcYXA1RKa5gAyekM6u0YdHe3QVKAH5qeIIl Xd0qn1wXObjfiKTSpoyaSBYMo1Qjyby26u4cqBQGy8XuNS1XGhvTM8L/N4siB5nk+/gH iL0vyLOUQk6Qvc7/a2fylpIzXpPjAg1DMcErf5Od/50eGJF1F8SiItcDnDM1c8com2Cv 49szfS98DOcj2ZtrrOacloUbS0gL9bUo0+byTqAR/1+vNlLE6UrhdU0YU0fivMsf4cVt xZqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=kec7QH+y; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si7611189edj.401.2021.05.21.09.29.58; Fri, 21 May 2021 09:30:24 -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=@infradead.org header.s=casper.20170209 header.b=kec7QH+y; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234678AbhETRl1 (ORCPT + 99 others); Thu, 20 May 2021 13:41:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232607AbhETRl0 (ORCPT ); Thu, 20 May 2021 13:41:26 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30EAAC061574; Thu, 20 May 2021 10:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=xAcCCkyhMBeA+FlHmzfzPiZtaAE/GIh+EEGr21kJE5o=; b=kec7QH+yYYLs8HscTdTqy33p4w T1gIXianzT7SRzE025+ho+dKtGojV6O7fz0WY6U02d1x4R0w6PPXeJ/0ok0XpA3cCDarg4tRh5GBr cthpgpsvrbhclUIffjijQrwOuFz6Jhhn39KVk7EGobhoXyhp4oEE22AFmbWERlukwx+6DUgvukwhb VJeYu8TQ85UA7x3vk76JRlQurkYo+nTmE1VZ7SQYXwFnrKIqlXm2tl3VGZJX7A8kPV+mJRiE4LaaU B8FFRD//81AgcAtZ0j7d2nJKVjXQNe+Pbvpw4CuLPs6qV6GOKVYGeWT0lmIbvS1PxHfVczpbYlPnj PGGtKssQ==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1ljmdO-00GG3I-8E; Thu, 20 May 2021 17:39:03 +0000 Date: Thu, 20 May 2021 18:38:58 +0100 From: Matthew Wilcox To: "Yu, Yu-cheng" Cc: Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin , Weijiang Yang , Pengfei Xu , Haitao Huang , Mark Brown , Catalin Marinas Subject: Re: [PATCH v26 26/30] ELF: Introduce arch_setup_elf_property() Message-ID: References: <20210427204315.24153-1-yu-cheng.yu@intel.com> <20210427204315.24153-27-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 19, 2021 at 03:14:58PM -0700, Yu, Yu-cheng wrote: > > > +++ b/include/uapi/linux/elf.h > > > @@ -455,4 +455,13 @@ typedef struct elf64_note { > > > /* Bits for GNU_PROPERTY_AARCH64_FEATURE_1_BTI */ > > > #define GNU_PROPERTY_AARCH64_FEATURE_1_BTI (1U << 0) > > > +/* .note.gnu.property types for x86: */ > > > +#define GNU_PROPERTY_X86_FEATURE_1_AND 0xc0000002 > > > > Why not 0xc0000001? ARM64 is 0xc0000000... > > > > I just looked at the ABI document. > > ARM has GNU_PROPERTY_AARCH64_FEATURE_1_AND 0xc0000000 > > X86 has: > GNU_PROPERTY_X86_ISA_1_USED 0xc0000000 > GNU_PROPERTY_X86_ISA_1_NEEDED 0xc0000001 > GNU_PROPERTY_X86_FEATURE_1_AND 0xc0000002 Please add all three, not just the last one.