Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1073669imm; Mon, 21 May 2018 20:53:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoEUdDFOJREPZNfK2mGpdSSF5WqwCq74/bp6SYN4pV4qFp0+T+c+LDyN6Vja1cTJRkX/33X X-Received: by 2002:a63:305:: with SMTP id 5-v6mr11871167pgd.98.1526961208026; Mon, 21 May 2018 20:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526961207; cv=none; d=google.com; s=arc-20160816; b=lUDbaRyB1x5cMRj5xSAQV1vwp7tCs8OlAVIO56oEBGsuHhJhDuMDFpk3FB18e9PNCP BIPyFCHhpiQZfDrBIOjOY36IWEZ7+caMr3Qy8Xi3Vpc1NeUDdKejYwKoJfFPjsgoxx10 YlDfJtG9WD3S/zp4eTVxzMpKmw64HlkWSkn/Q/8FX9iLH6SnoZdmHjZqPFSYEH6WFsSR C0JLB4WWU74NIp6m8c+lrm1OaktwfUMrrlygJbw7HaB6UltgBHwtAGiF/DSvg5Rvl0qj VcElUFGC6XSjaFRXoEsO39ZEieV6HR6hKfrrajZRNjXTaImYkfEQ9SE2aSoq3HoxY3Sc gztA== 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 :dkim-signature:arc-authentication-results; bh=2DvsTg/3iHyGY2ucdL/6ftb0ZeVvmt4czDdvyJ2YCP0=; b=YtC7b9T3DPgBLnGVHFQmz1Hk4NV8zVcghOuM2vfVJ/rubQKLiqenKyMJCd90ZpAnZL MMqWz0E19Tjj7oonkAYEc9uFOws/46UzuJFlGu8M8rO/3j8aFNvwseLEgFEt8mBviC3y JrUfNf014MFv3L83Ixo1SXqIDXoULq+/rhAqwEuyT95sfZBfrXNUwj87ttZiYXgoMidj sTatP8Y0esgUBHcqrADJ/aOnGWSFc7SEnDZjtLUgs97HKA7EZJneJja6rkA7SMoG05FU XkLyfb2uY9l18NYraWZhOQ7eYCYvl7Bfrk1DZC7JUNbqPX8NS5eL2Hnxadbjox58nC3I 3YQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=Wd9F2Uqh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b10-v6si12149624pgs.456.2018.05.21.20.53.13; Mon, 21 May 2018 20:53:27 -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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=Wd9F2Uqh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752574AbeEVDwz (ORCPT + 99 others); Mon, 21 May 2018 23:52:55 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:59364 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751745AbeEVDwy (ORCPT ); Mon, 21 May 2018 23:52:54 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4M3nYTt073467; Tue, 22 May 2018 03:52:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2017-10-26; bh=2DvsTg/3iHyGY2ucdL/6ftb0ZeVvmt4czDdvyJ2YCP0=; b=Wd9F2Uqh6SEqCmr1/7RqB7vxv1sF4PbAKQzEA5WgbHPxMcJyGH1QbobFt/NsJ669KXq9 qc0J4lRJcQaTfbYMoQ1lZifyC+UuFR79LixN7H0oDuMPmFOQ/aSYqa9fER6l/1EVtOBG ZveESL0E3Uco9i6asN3A/armmhLfTLfSOkN27kbZKy2fXWgLvJRniBz6n4lTnLfhgGGx Yf0um2zP9jSpCDlGWgd5d9v+vSPTDjDYGgofyNIYkFVTlyukVrxhDkkiG1B8D2cMipPx nn/9syZvyOB/2Oe1bLZhQ8XrPlP8PoC7tYEw+ArXlb9JCGLOOov4zAbUOIoizGz9odnm hg== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2j2bw86n3m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 22 May 2018 03:52:50 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w4M3qnCp024431 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 22 May 2018 03:52:49 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w4M3qnpf022642; Tue, 22 May 2018 03:52:49 GMT Received: from dhcp-burlington7-2nd-B-east-10-152-55-162.usdhcp.oraclecorp.com.com (/10.152.32.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 21 May 2018 20:52:48 -0700 From: Boris Ostrovsky To: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Cc: jgross@suse.com, JBeulich@suse.com, Boris Ostrovsky Subject: [PATCH v4 0/2] PVH GDT fixes Date: Mon, 21 May 2018 23:54:43 -0400 Message-Id: <20180522035445.16911-1-boris.ostrovsky@oracle.com> X-Mailer: git-send-email 2.14.3 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8900 signatures=668700 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=401 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805220044 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix stack canary handling (in the first patch) and re-index PVH GDT to make it explicit that the GDT PVH-specific v4: * Load %gs after base address is calculated * Increase stack canary segment size to 48 bytes for long mode. Boris Ostrovsky (2): xen/PVH: Set up GS segment for stack canary xen/PVH: Make GDT selectors PVH-specific arch/x86/xen/xen-pvh.S | 47 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 10 deletions(-) -- 2.9.3