From patchwork Fri Sep 16 15:29:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Rzeszutek Wilk X-Patchwork-Id: 9336119 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AC60A6089F for ; Fri, 16 Sep 2016 15:31:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D2BB2A014 for ; Fri, 16 Sep 2016 15:31:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 91DBF2A018; Fri, 16 Sep 2016 15:31:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A64CA29F43 for ; Fri, 16 Sep 2016 15:31:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkv59-00042S-W5; Fri, 16 Sep 2016 15:29:39 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkv58-00041p-S0 for xen-devel@lists.xenproject.org; Fri, 16 Sep 2016 15:29:38 +0000 Received: from [85.158.143.35] by server-2.bemta-6.messagelabs.com id AC/E9-13744-2EF0CD75; Fri, 16 Sep 2016 15:29:38 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplkeJIrShJLcpLzFFi42LpnVTnqvuQ/06 4wfrlihbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8bet8sZCw5yVRzf18fewNjL2cXIySEkMJlJ 4uI3Xgj7C6PEvo9pXYxcQPZGRomn79rYIZxuRoknq1+wQ1QVSTzZ3svYxcjBwSZgIvFmlSNIW ESgWGLzpbtMIDazQLTEpL42NhBbWMBX4uj112A2i4CqxIN/v8FaeQXcJD6usgAJSwjISWzbso cRxOYUcJc49XU9I8QmN4klDz6zQdQYS7S/vcg2gZF/ASPDKkaN4tSistQiXSNLvaSizPSMktz EzBxdQwMzvdzU4uLE9NScxKRiveT83E2MwOBhAIIdjAcWBR5ilORgUhLlLS68HS7El5SfUpmR WJwRX1Sak1p8iFGGg0NJgref7064kGBRanpqRVpmDjCMYdISHDxKIrxrQdK8xQWJucWZ6RCpU 4yKUuK83SAJAZBERmkeXBssdi4xykoJ8zICHSLEU5BalJtZgir/ilGcg1FJmHcryBSezLwSuO mvgBYzAS1ePes2yOKSRISUVANjXS/HQ0GJXmm2loJDGRJ3oiWj1l+Yd+3E1thFxyveVsisSak p/WN08Jl2jPOyprx1W19Un358NDD7xcZL35dt33w77smWe37zjOLy3Bb8cb6rEjGtwq14Ql3l nrfrvk0rXL/A57vBir63VmzqkQJp4YUvDuxhla35eMjKat828SDHrP/3fLZrKrEUZyQaajEXF ScCABAQfOCYAgAA X-Env-Sender: konrad@char.us.oracle.com X-Msg-Ref: server-16.tower-21.messagelabs.com!1474039775!29161443!1 X-Originating-IP: [141.146.126.69] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTQxLjE0Ni4xMjYuNjkgPT4gMjc3MjE4\n X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 56227 invoked from network); 16 Sep 2016 15:29:37 -0000 Received: from aserp1040.oracle.com (HELO aserp1040.oracle.com) (141.146.126.69) by server-16.tower-21.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 16 Sep 2016 15:29:37 -0000 Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u8GFTJVU004817 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Sep 2016 15:29:19 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id u8GFTIOr013820 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 16 Sep 2016 15:29:18 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u8GFTIFl007957; Fri, 16 Sep 2016 15:29:18 GMT Received: from char.us.oracle.com (/10.137.176.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 16 Sep 2016 08:29:17 -0700 Received: by char.us.oracle.com (Postfix, from userid 1000) id F06CE6A0E00; Fri, 16 Sep 2016 11:29:15 -0400 (EDT) From: Konrad Rzeszutek Wilk To: xen-devel@lists.xenproject.org, konrad@kernel.org, ross.lagerwall@citrix.com, andrew.cooper3@citrix.com Date: Fri, 16 Sep 2016 11:29:13 -0400 Message-Id: <1474039754-25816-6-git-send-email-konrad.wilk@oracle.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1474039754-25816-1-git-send-email-konrad.wilk@oracle.com> References: <1474039754-25816-1-git-send-email-konrad.wilk@oracle.com> X-Source-IP: aserv0022.oracle.com [141.146.126.234] Cc: Jan Beulich , Konrad Rzeszutek Wilk Subject: [Xen-devel] [PATCH v6 5/6] livepatch/tests: Make .livepatch.depends be read-only X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP As currently during the injection of the build-id it ends up being marked as AW. We want it to be read-only. Signed-off-by: Konrad Rzeszutek Wilk Reviewed-by: Ross Lagerwall --- Cc: Andrew Cooper Cc: Jan Beulich v6: New submission. --- xen/arch/x86/test/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/test/Makefile b/xen/arch/x86/test/Makefile index 23dff1d..48ff843 100644 --- a/xen/arch/x86/test/Makefile +++ b/xen/arch/x86/test/Makefile @@ -55,7 +55,7 @@ $(LIVEPATCH): xen_hello_world_func.o xen_hello_world.o note.o note.o: $(OBJCOPY) -O binary --only-section=.note.gnu.build-id $(BASEDIR)/xen-syms $@.bin $(OBJCOPY) -I binary -O elf64-x86-64 -B i386:x86-64 \ - --rename-section=.data=.livepatch.depends -S $@.bin $@ + --rename-section=.data=.livepatch.depends,alloc,load,readonly,data,contents -S $@.bin $@ rm -f $@.bin # @@ -66,7 +66,7 @@ note.o: hello_world_note.o: $(LIVEPATCH) $(OBJCOPY) -O binary --only-section=.note.gnu.build-id $(LIVEPATCH) $@.bin $(OBJCOPY) -I binary -O elf64-x86-64 -B i386:x86-64 \ - --rename-section=.data=.livepatch.depends -S $@.bin $@ + --rename-section=.data=.livepatch.depends,alloc,load,readonly,data,contents -S $@.bin $@ rm -f $@.bin xen_bye_world.o: config.h