From patchwork Fri Aug 23 17:23:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Martin X-Patchwork-Id: 172127 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp955917ily; Fri, 23 Aug 2019 10:23:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqywKtVRfr5zLjFpKqKXV7AI/gnE7a3ovuawLbNXRKey3tF21vT5bOmpe+M4wQEjyaDhBlro X-Received: by 2002:a17:902:f204:: with SMTP id gn4mr6136909plb.3.1566581028272; Fri, 23 Aug 2019 10:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566581028; cv=none; d=google.com; s=arc-20160816; b=ELW99VfKEOl7mSxRwE5xBc5rMfTI7NmiO+tKxvUf6Ot2GDMdenDbrcDLEqwqBixJf/ UMrLUXcUTqHG2Kg/9lL8lZKHR8NTby8zwS4iNxb+WrBX1TysScBYsZ835VW86xa+Suvt snJn+0XZgkQbANMTqyjrVHtmIbXZwCXRIsHCQIjG6FOSM87mhHXQMVnwayYYV8F9TMnS eEyUit0S/2kc96Sal2pAwL64nlvuP6UhBxkFqPW+hRHzKTj2qBxXsGXCE9jRRsOBmPPi zGPEQL2eWfUutoFhtri/xfaF23cGC8SC8GeMLV4yYAwQmupGFSXBQrcbBzBxuL9yiWCO c2Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=NmjemQrvo4bnV4z2z5V4GBQOCCn1zriF7QO1MhTusb8=; b=Nn7qTJ7gS85uIEwej/6jC7GqzqrZCbeisgXJe8Dyf++WAmDnJbB/MZX9eSY3bdaWgV TQz2jGqlOjDzq2fQu6/DDXSnKHD5WMpyt0Ld3trJNJ2E4up3r/kfTZk278lPEtOBfyvM wf/SUDwkNU+ncxomvzjqa5iNzQoyGXBY2mVKpWQ0euZkCDall+JIh+fol0sw9vrpMCFt Zlo0myTeydt1KEaZzApN08buW2N9Y1byJSHbfaZDhy9lGMEMvWuMwFPFaIvc5QoKNbBv IsQeeLORMEdAcL4dVTbAuBTjkJXUoOdj8wcWkWoMsTXz0GHmjZmTq8rEme/H2EFVOYH+ JujA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i187si3161146pfe.21.2019.08.23.10.23.47; Fri, 23 Aug 2019 10:23:48 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389118AbfHWRXq (ORCPT + 28 others); Fri, 23 Aug 2019 13:23:46 -0400 Received: from foss.arm.com ([217.140.110.172]:37574 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388934AbfHWRXq (ORCPT ); Fri, 23 Aug 2019 13:23:46 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C82F2337; Fri, 23 Aug 2019 10:23:45 -0700 (PDT) Received: from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 66C113F246; Fri, 23 Aug 2019 10:23:44 -0700 (PDT) From: Dave Martin To: linux-kernel@vger.kernel.org Cc: linux-arch@vger.kernel.org, Kees Cook , Thomas Gleixner , Jann Horn , "H.J. Lu" , Eugene Syromiatnikov , Florian Weimer , Yu-cheng Yu , Peter Zijlstra Subject: [RFC PATCH v2 0/2] ELF: Alternate program property parser Date: Fri, 23 Aug 2019 18:23:38 +0100 Message-Id: <1566581020-9953-1-git-send-email-Dave.Martin@arm.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series is an experimental reimplementation of ELF property parsing (see NT_GNU_PROPERTY_TYPE_0, [1]) for the ELF loader. This is intended for comparison / merging with [2] (or could replace it, if people think this approach is better). This supersedes RFC v1 [3]. For changes see the individual patches. [1] Linux Extensions to gABI https://github.com/hjl-tools/linux-abi/wiki/Linux-Extensions-to-gABI [2] [PATCH v8 22/27] binfmt_elf: Extract .note.gnu.property from an ELF file https://lore.kernel.org/lkml/20190813205225.12032-23-yu-cheng.yu@intel.com/ [3] [RFC PATCH 0/2] ELF: Alternate program property parser https://lore.kernel.org/lkml/1566295063-7387-1-git-send-email-Dave.Martin@arm.com/ Dave Martin (2): ELF: UAPI and Kconfig additions for ELF program properties ELF: Add ELF program property parsing support fs/Kconfig.binfmt | 3 ++ fs/binfmt_elf.c | 124 +++++++++++++++++++++++++++++++++++++++++++++++ fs/compat_binfmt_elf.c | 4 ++ include/linux/elf.h | 27 +++++++++++ include/uapi/linux/elf.h | 5 ++ 5 files changed, 163 insertions(+) -- 2.1.4