From patchwork Tue Jan 15 18:59:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruslan Nikolaev X-Patchwork-Id: 10765001 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 481E76C5 for ; Tue, 15 Jan 2019 19:08:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 352F129E38 for ; Tue, 15 Jan 2019 19:08:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 296E82B02C; Tue, 15 Jan 2019 19:08:51 +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=-5.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id 6277C29E38 for ; Tue, 15 Jan 2019 19:08:50 +0000 (UTC) Received: (qmail 23816 invoked by uid 550); 15 Jan 2019 19:08:44 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Delivered-To: moderator for kernel-hardening@lists.openwall.com Received: (qmail 13365 invoked from network); 15 Jan 2019 19:00:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1547578798; bh=Evd54j5Gamllj+Hj/K5KYAeeO5seN3JPrVdZ0ZuB5w8=; h=To:Cc:From:Subject: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5dSxsa2x7IHHS8mYxDxupqmK1mvLGQAuzZqC3 YAHaR.AX8NwLvGgWNUmYVJRyBMfUCdZe1LbYknW3gx1Y87e.5d9YeZFC5Uj9CcWMqT5WKONwPs3c n0kgYYEUPUWlGdaesSTix_d1BZP.rsXbHp.hiaOvvv7tGVz_Ew1.zz1y6kromLqswwJpGHXvvzzU MsshiXG7dp.RmiVzBl9rSE4ZXiZnM_2ngoe3CIIPJRTu91Xwiz2BB_goH8EMTDxEFSwGr9Wsl9Y4 .tbhKF8AHvLUP5LHiPHMJXJJ2O8xUYtIoH8yyqzHmz9LXyyBqkW0tUBtZ.5TFbLEvUC_EDePMMKn WNlfxId9RyrGbhCBva5QDL59hhIafI8vlJtW7A39LMH4cYYcTicFqtY7CzjvfbYA1mBFVdt68p9B 72AAPSgzlaig- To: kernel-hardening@lists.openwall.com Cc: thgarnie@google.com, x86@kernel.org, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, keescook@chromium.org From: Ruslan Nikolaev Subject: [PATCH v1 03/06]: Export individual Xen hypercalls Message-ID: <2d406c4a-8a37-fe1a-acd5-0e2758e234b2@yahoo.com> Date: Tue, 15 Jan 2019 13:59:52 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 Content-Language: en-US X-Virus-Scanned: ClamAV using ClamSMTP Export individual Xen hypercalls The patch is by Hassan Nadeem and Ruslan Nikolaev. This extends the prior PIE kernel patch (by Thomas Garnier) to also support position-independent modules that can be placed anywhere in the 48/64-bit address space (for better KASLR). Signed-off-by: Ruslan Nikolaev --- xen-head.S | 2 ++ 1 file changed, 2 insertions(+) diff -uprN a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S --- a/arch/x86/xen/xen-head.S 2019-01-15 11:20:45.279168462 -0500 +++ b/arch/x86/xen/xen-head.S 2019-01-15 11:28:54.676189964 -0500 @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -66,6 +67,7 @@ ENTRY(hypercall_page) .endr #define HYPERCALL(n) \ + EXPORT_SYMBOL_GPL(xen_hypercall_##n); \ .equ xen_hypercall_##n, hypercall_page + __HYPERVISOR_##n * 32; \ .type xen_hypercall_##n, @function; .size xen_hypercall_##n, 32 #include