From patchwork Tue Nov 26 12:25:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wieczorkiewicz, Pawel" X-Patchwork-Id: 11262103 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3085117F0 for ; Tue, 26 Nov 2019 12:26:32 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0E3852068E for ; Tue, 26 Nov 2019 12:26:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amazon.de header.i=@amazon.de header.b="PSyzcAGZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0E3852068E Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amazon.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iZZuP-0004Uw-QQ; Tue, 26 Nov 2019 12:25:33 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iZZuP-0004Ur-2b for xen-devel@lists.xenproject.org; Tue, 26 Nov 2019 12:25:33 +0000 X-Inumbo-ID: d6bd669e-1047-11ea-9db0-bc764e2007e4 Received: from smtp-fw-9102.amazon.com (unknown [207.171.184.29]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id d6bd669e-1047-11ea-9db0-bc764e2007e4; Tue, 26 Nov 2019 12:25:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1574771133; x=1606307133; h=from:to:cc:subject:date:message-id:mime-version; bh=VgUH1ERZ/ftwsq9cIecciJKoBLsLE3AEV/qb1c7b1NU=; b=PSyzcAGZlZB62Gnev8RnsJAiPeBdZJuKFlwdz4tiZjF2Uj9OZc8iy549 JGPIJcNcR9Rq38nGlBjXeT1FCnO9ntFwHYZ/3FJQQga424kEJuMjjbiDt e0QwESJrPZvbBQdqFn3vrYQyd5abVL0gzl9Wr2nhUUHtTQZXBnRrQsJ8K M=; IronPort-SDR: WDXA7GpefCC/WIZZlTX+hmi4pZflAJn8MM2XcNzxesaiRPUQHhZMeHXIOiK6zamIQ9ZKxe3Szk Nfo71EmO783g== X-IronPort-AV: E=Sophos;i="5.69,245,1571702400"; d="scan'208";a="9942791" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2b-4ff6265a.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 26 Nov 2019 12:25:21 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2b-4ff6265a.us-west-2.amazon.com (Postfix) with ESMTPS id ED80EA2507; Tue, 26 Nov 2019 12:25:20 +0000 (UTC) Received: from EX13D03EUA003.ant.amazon.com (10.43.165.89) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 26 Nov 2019 12:25:20 +0000 Received: from EX13MTAUWC001.ant.amazon.com (10.43.162.135) by EX13D03EUA003.ant.amazon.com (10.43.165.89) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 26 Nov 2019 12:25:19 +0000 Received: from dev-dsk-wipawel-1a-0c4e6d58.eu-west-1.amazon.com (10.4.134.33) by mail-relay.amazon.com (10.43.162.232) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 26 Nov 2019 12:25:17 +0000 From: Pawel Wieczorkiewicz To: Date: Tue, 26 Nov 2019 12:25:04 +0000 Message-ID: <20191126122511.7409-1-wipawel@amazon.de> X-Mailer: git-send-email 2.16.5 MIME-Version: 1.0 Precedence: Bulk Subject: [Xen-devel] [PATCH v3 0/7] livepatch-build-tools: new features and fixes X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Pawel Wieczorkiewicz , Ross Lagerwall , mpohlack@amazon.com, Konrad Rzeszutek Wilk Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" This series introduces new features to the livepatch functionality as briefly discussed during Xen Developer Summit 2019: [a] and [b]. It also provides a few fixes and some small improvements. IMPROVEMENTS: 1. Strip redundant or transient symbols from resulting object files: [6], [7] This change limits the size of resulting modules by dropping unneeded bits. FEATURES: For details see cover letter of xen series: [c] 1. independent modules (patches: [1]) 2. pre- and post- apply|revert actions hooks (patches: [2]) 3. apply|revert actions replacement hooks (patches: [3], [4]) 4. inline asm hotpatching expectations (patches: [5]) [a] https://wiki.xenproject.org/wiki/Design_Sessions_2019#LivePatch_improvements_and_features [b] https://lists.xenproject.org/archives/html/xen-devel/2019-07/msg00846.html [c] [PATCH 00/14] livepatch: new features and fixes Merged in v1: livepatch-gcc: Allow toolchain command with versions livepatch-gcc: Ignore built_in.o and prelink.o object files livepatch-build: Do not follow every symlink for patch file livepatch-build: Handle newly created object files common: Add is_standard_section() helper function common: Add is_referenced_section() helper function create-diff-object: Add is_special_section() helper function livepatch-build: detect special section group sizes create-diff-object: Add new entries to special sections array create-diff-object: Do not include all .rodata sections create-diff-object: Do not create empty .livepatch.funcs section create-diff-object: Extend patchability verification: STN_UNDEF create-diff-object: Strip all undefined entires of known size Pawel Wieczorkiewicz (7): [1] livepatch-build: Embed hypervisor build id into every hotpatch [2] create-diff-object: Handle extra pre-|post- hooks [3] create-diff-object: Handle optional apply|revert hooks [4] create-diff-object: Add support for applied/reverted marker [5] create-diff-object: Add support for expectations [6] livepatch-build: Strip transient or unneeded symbols [7] livepatch-build: Strip all metadata symbols from hotpatch modules common.h | 13 ++++++- create-diff-object.c | 82 +++++++++++++++++++++++++++++++++++-------- livepatch-build | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 177 insertions(+), 16 deletions(-)