Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6560084yba; Wed, 1 May 2019 15:03:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyL56TqN9mcZbPCCXMw/WVcxkaUZ9U3kAlzSsG07JuoRaM6zaius3b3O8q4wV++Fj+FxXtS X-Received: by 2002:a63:c64c:: with SMTP id x12mr326337pgg.379.1556748215954; Wed, 01 May 2019 15:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556748215; cv=none; d=google.com; s=arc-20160816; b=SlnOZNSVlMFxkGwh4sAtUih6ctt6P8E+iN4RsbpYJc1yq7g8x0iyiZDkFVHHw7yeH2 sENGqBdwC1r0v8lwWp7blpVyqfSQoPxC7+wWy0lNxXaVy249q77O3Mfutsb0eCocPYj8 f06Q6kUZm+g7c7YDJc6O8yiXZWcP/HE8Z1/tbQBNsoOK+SXSwz863gY64QmRO1nES1qW EYD+sbaJd470qRFfzNip9gSoTx9eXwOdA5vDnjYECPat6fMkY39qk9h4QYfmuieAMkel MWgbVp7kwjayRGdT7iG58WvejDWf3effRxlO/2jZxBoMHgbh77A0TQNbAZ6lRImf7EPR +Rmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=CS7LbYoPibyc87lVkhPVK+F/JCApQtyCOzkPKm+7umc=; b=N5nzOIwsvcSpSkHdEOyhl2yEHD+nLK/gMDJ8SqjzW0b7ieJOR72Mt8bgg7mMCPBrOn aI/my3uRXBJmRP4D8uTURqdooRBKh04yafzDV2ZvJ4rNpp9qGlgHTfn64gJf/zGQehLB dZQ+/kgATRdHkPQUUOcbU7WfYPKz2K3vluJQv1V/xuEHqCdbPJW08uX08cy8CmRHjrSY Bu6wMeEEZqVMxBnnLT9IhWnBsyoaAzCVpkYo+8A1g2+spBRgsAaXZApTuei8u93Bz8aF z7W2WvbWC3hPqaZuzqOJBVNnV/NH3aqG8H8bYPI5/MUC1hjdRGaBdEJ+nzvZ+93LuLQD WIEA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12si10469806pll.94.2019.05.01.15.03.20; Wed, 01 May 2019 15:03:35 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726328AbfEAWBz (ORCPT + 99 others); Wed, 1 May 2019 18:01:55 -0400 Received: from mga05.intel.com ([192.55.52.43]:31714 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726137AbfEAWBy (ORCPT ); Wed, 1 May 2019 18:01:54 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 May 2019 15:01:53 -0700 X-ExtLoop1: 1 Received: from yyu32-desk1.sc.intel.com ([143.183.136.147]) by orsmga002.jf.intel.com with ESMTP; 01 May 2019 15:01:49 -0700 Message-ID: <1c69263279be0b2f6582e58a0bf28bc213d94693.camel@intel.com> Subject: Re: [PATCH] binfmt_elf: Extract .note.gnu.property from an ELF file From: Yu-cheng Yu To: Matthew Wilcox Cc: 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 Date: Wed, 01 May 2019 14:54:23 -0700 In-Reply-To: <20190501213709.GD28500@bombadil.infradead.org> References: <20190501211217.5039-1-yu-cheng.yu@intel.com> <20190501213709.GD28500@bombadil.infradead.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-05-01 at 14:37 -0700, Matthew Wilcox wrote: > On Wed, May 01, 2019 at 02:12:17PM -0700, Yu-cheng Yu wrote: > > +++ b/fs/Kconfig.binfmt > > @@ -35,6 +35,10 @@ config COMPAT_BINFMT_ELF > > config ARCH_BINFMT_ELF_STATE > > bool > > > > +config ARCH_USE_GNU_PROPERTY > > + bool > > + depends on 64BIT > > I don't think this is right. I think you should get rid of the depends line > and instead select the symbol from each of argh64 and x86 Kconfig files. That makes sense. Thanks! Yu-cheng