From patchwork Tue Feb 14 18:33:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Kiper X-Patchwork-Id: 9572477 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 C7E9760578 for ; Tue, 14 Feb 2017 18:36:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B032F28455 for ; Tue, 14 Feb 2017 18:36:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A369128460; Tue, 14 Feb 2017 18:36:43 +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 2CE9828455 for ; Tue, 14 Feb 2017 18:36:43 +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 1cdhvj-00024u-6F; Tue, 14 Feb 2017 18:34:23 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdhvh-00024o-T1 for xen-devel@lists.xenproject.org; Tue, 14 Feb 2017 18:34:21 +0000 Received: from [85.158.137.68] by server-12.bemta-3.messagelabs.com id 92/75-16730-DAD43A85; Tue, 14 Feb 2017 18:34:21 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupkkeJIrShJLcpLzFFi42LpnVTnqrvGd3G EwdytOhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8a8O4sZC86zVszddoKpgfE2SxcjF4eQwGQm iQvLXzBCOL8ZJW7P3cQG4WxklNhy+yYrhDORUeLawoXMXYycHGwCOhIXvzxkB7FFBJQk7q2az ARSxCwwk0ni9J2TLCAJYQFfieUNb4EaODhYBFQlWh4IgoR5Bdwldi1vYQKxJQQUJbqfTWADsT kFPCQ2PusAmy8EVLP3UCsLRI2xRPvbi2wTGPkWMDKsYtQoTi0qSy3SNTbQSyrKTM8oyU3MzNE 1NDDWy00tLk5MT81JTCrWS87P3cQIDJZ6BgbGHYydJ/wOMUpyMCmJ8toJLY4Q4kvKT6nMSCzO iC8qzUktPsQow8GhJMH73gcoJ1iUmp5akZaZAwxbmLQEB4+SCO90kDRvcUFibnFmOkTqFKMux 6lPF14yCbHk5eelSonzbgYpEgApyijNgxsBi6FLjLJSwryMDAwMQjwFqUW5mSWo8q8YxTkYlY R5s4ARKcSTmVcCt+kV0BFMQEewxi0EOaIkESEl1cDIwhwXlxPIUX4lL256WHrP5Uce+3x/ypY +mHzHRKjN7eCbgIlqExz747Ytrzm/f9bs06d7D25lPWyskrP7omashuGmppJcY7l87qlLn9hP T8kr5fn23TI0g+HZ+SqtzoXS6pv4m+1aT+9xXnClTDVVvTfhzOp2RVbdNZYff8vWG2sJT5TI+ q3EUpyRaKjFXFScCADq1P7xnAIAAA== X-Env-Sender: daniel.kiper@oracle.com X-Msg-Ref: server-9.tower-31.messagelabs.com!1487097258!30103304!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: 9.2.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 8465 invoked from network); 14 Feb 2017 18:34:20 -0000 Received: from aserp1040.oracle.com (HELO aserp1040.oracle.com) (141.146.126.69) by server-9.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 14 Feb 2017 18:34:20 -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 v1EIY6Mo025020 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Feb 2017 18:34:07 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v1EIY5vK032352 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 14 Feb 2017 18:34:06 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v1EIY5AH015880; Tue, 14 Feb 2017 18:34:05 GMT Received: from olila.local.net-space.pl (/10.175.236.150) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 14 Feb 2017 10:34:04 -0800 From: Daniel Kiper To: xen-devel@lists.xenproject.org Date: Tue, 14 Feb 2017 19:33:20 +0100 Message-Id: <1487097209-19552-2-git-send-email-daniel.kiper@oracle.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1487097209-19552-1-git-send-email-daniel.kiper@oracle.com> References: <1487097209-19552-1-git-send-email-daniel.kiper@oracle.com> X-Source-IP: aserv0022.oracle.com [141.146.126.234] Cc: jgross@suse.com, sstabellini@kernel.org, andrew.cooper3@citrix.com, cardoe@cardoe.com, pgnet.dev@gmail.com, ning.sun@intel.com, julien.grall@arm.com, jbeulich@suse.com, qiaowei.ren@intel.com, gang.wei@intel.com, fu.wei@linaro.org Subject: [Xen-devel] [PATCH v15 01/10] x86: add "w" flag to .init.data section definition 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 init.data section is clearly writable, so, add "w" flag to its definition in xen/arch/x86/boot/x86_64.S. Signed-off-by: Daniel Kiper Reviewed-by: Andrew Cooper --- xen/arch/x86/boot/x86_64.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/boot/x86_64.S b/xen/arch/x86/boot/x86_64.S index 139b2ca..4d507fb 100644 --- a/xen/arch/x86/boot/x86_64.S +++ b/xen/arch/x86/boot/x86_64.S @@ -186,7 +186,7 @@ GLOBAL(idle_pg_table) GLOBAL(__page_tables_end) /* Init pagetables. Enough page directories to map into the bottom 1GB. */ - .section .init.data, "a", @progbits + .section .init.data, "aw", @progbits .align PAGE_SIZE, 0 GLOBAL(l2_bootmap)