Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3935292ybi; Tue, 18 Jun 2019 08:51:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcPPJwIkXaSbIxgXCwe2EuhuErnyvS57ybsGbsHb/rQ1Q2S8sR+Dx8Nm5/h0nrCMIp2LxJ X-Received: by 2002:a63:591d:: with SMTP id n29mr3252184pgb.75.1560873115100; Tue, 18 Jun 2019 08:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560873115; cv=none; d=google.com; s=arc-20160816; b=pUabMBE+9dWgbkKlG0LzjlHFeYXZzjyccKGDswnVNQueJetncmxMQ+tPOztITGe/Xq Yvtd2PI9AexwZXUIt63NOZOATRiySyOoiYNXhj+ptYPM348ygNLUNUTxj6Z9yc4htN8m B4FQ5Y0CPc6t01L6gwMemq/6TEC86nJQtrOkV84VsBSiWkx12PdKXeDk1f9jR7GgiqiF nxArDyJaoClJ7T34fBjXLvRR8mPQizHyicy4iO7Wjy6Gv/717nIhUM2hTt+UBWbi8AHR MXjvje4MO32CZlWuIQr5LVZAwoRCMmIuy5+/IOcp1b08ox1QJTGQvPKVMHtsFoloEZSb 5uGA== 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:date :references:subject:cc:to:from; bh=u3DxXnn/aVB8Gzqg83K/P+ZrSDD5XNARdQd98eOAH/U=; b=t+YW1xy/p1W//JwYVCQSO73ZQPYRIPMyTnTyn/eITfsnpLZiks5f3VfAprbzQj8awv 5FChtgwQu7JdzoKF7fWulbwmKBvxEPN2YJIof7/N5Z7TUj2ToeNGvBKjNX66Yxs+uIJ/ cOYqltktf0bUQEJUjc7US9BbCbQyIf2+uBPixqfhQ611lH0uSui2GThsB6KsmlZFuD9C WZhCHC/4daIihOmzuXmUAeBEfmBjaZeJHJGzDAdo4kSn/Jw0nRp4jsvrd1DSmC4CTxXe vKCsZP4tOLukxoVGYFJyow9L4nt1OpvrlKmgXzr17Izl95s1Kqdoojh5H1FuUhUYJOa/ +m5g== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j23si13472103pfh.215.2019.06.18.08.51.40; Tue, 18 Jun 2019 08:51:55 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729693AbfFRPuM (ORCPT + 99 others); Tue, 18 Jun 2019 11:50:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54708 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729247AbfFRPuM (ORCPT ); Tue, 18 Jun 2019 11:50:12 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5D2F530C0DE3; Tue, 18 Jun 2019 15:50:09 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-116-87.ams2.redhat.com [10.36.116.87]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 15A245C2E4; Tue, 18 Jun 2019 15:49:51 +0000 (UTC) From: Florian Weimer To: Yu-cheng Yu Cc: Dave Martin , Peter Zijlstra , Thomas Gleixner , x86@kernel.org, "H. Peter Anvin" , 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 , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , "H.J. Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue Subject: Re: [PATCH v7 22/27] binfmt_elf: Extract .note.gnu.property from an ELF file References: <87lfy9cq04.fsf@oldenburg2.str.redhat.com> <20190611114109.GN28398@e103592.cambridge.arm.com> <031bc55d8dcdcf4f031e6ff27c33fd52c61d33a5.camel@intel.com> <20190612093238.GQ28398@e103592.cambridge.arm.com> <87imt4jwpt.fsf@oldenburg2.str.redhat.com> <20190618091248.GB2790@e103592.cambridge.arm.com> <20190618124122.GH3419@hirez.programming.kicks-ass.net> <87ef3r9i2j.fsf@oldenburg2.str.redhat.com> <20190618125512.GJ3419@hirez.programming.kicks-ass.net> <20190618133223.GD2790@e103592.cambridge.arm.com> Date: Tue, 18 Jun 2019 17:49:50 +0200 Message-ID: <87pnna7v1d.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Tue, 18 Jun 2019 15:50:11 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Yu-cheng Yu: > The kernel looks at only ld-linux. Other applications are loaded by ld-linux. > So the issues are limited to three versions of ld-linux's. Can we somehow > update those?? I assumed that it would also parse the main executable and make adjustments based on that. ld.so can certainly provide whatever the kernel needs. We need to tweak the existing loader anyway. No valid statically-linked binaries exist today, so this is not a consideration at this point. Thanks, Florian