Received: by 10.192.165.148 with SMTP id m20csp3968638imm; Mon, 30 Apr 2018 09:23:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpI2Hew/XVsdSQ3qASYnpDVQPUZEQ4YdmuYBtPzVsfZsvdVloFbgsSjEBlC76LE+36puAyN X-Received: by 10.98.18.17 with SMTP id a17mr12656546pfj.104.1525105416803; Mon, 30 Apr 2018 09:23:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525105416; cv=none; d=google.com; s=arc-20160816; b=TrP6HAJgS6zdPtTwxfGRz/0VsFE4t+Lq8HRstmRFGR1IsISTBSGLQxjbDgLuQvTjm1 AGmeViSqLlsrlIMqL7S+0JctTr/1whKqA6I5SDGKQIISuwZGVFd6T0vyaeXfXnYc9ivN ZubMsSjQ7mB186jU+jmYelWIDC8yMQ85Kn2Qp7IlIjCyOj2xsnWxezqG3Vjj41zSiNsx GLlClCBW1qwRp3s2z0EG/yfKkfg9zln0xulkCFeW/cVlnupFHgFrsgnWUHEjR4XcUFXs r5Sop1HGyMFG0gzbGP8yBJTj/KilPW2GKIMsgoKQCTsB5DCKtLG28nSXgVtNErbGWmj6 juxA== 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=HiRfTkmNimVKlH+AQjNBPyYJOBSp8D+k7UmE2OnP26s=; b=aW5H5C0BWoJzJtM5adWyNHENlSP3xFIgvsGjvHDzWnSBWfaIvotaIBbt+6+0D/LyFQ pzHZEediLBKuLecZj5g450MZ37Ee7xFPT0CdGau+ht+3D6KrCpLzv6Wh6QGqXYZNp1AZ 7VpBQoK2tF6tg9uU0wzUSZpEcd/m2iumEizrbriPFcYr3tF7oUjo4B+iS0ZbH8eUkhrH wcxGHvIxVOXzLNWqnxZrakYIrhd2JAzCbmHqpNizt2NQZC+659pUQD03gjCw9ypxuvru gLfQ/a705BP8+1ECuNjIdG2zuDKHvzmmxWL8kOEx/AKZFOyNLcfgogtOsg6ObUIqzZyb EnwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=IFTlsv5r; 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 b89-v6si7652387plb.262.2018.04.30.09.23.22; Mon, 30 Apr 2018 09:23:36 -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=IFTlsv5r; 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 S1754911AbeD3QVm (ORCPT + 99 others); Mon, 30 Apr 2018 12:21:42 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:60046 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754868AbeD3QVk (ORCPT ); Mon, 30 Apr 2018 12:21:40 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3UGKmUn163850; Mon, 30 Apr 2018 16:21:35 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=HiRfTkmNimVKlH+AQjNBPyYJOBSp8D+k7UmE2OnP26s=; b=IFTlsv5rTnkCYQhLi0t2Numkn4s76KEdzYUnqGGblZdtsBp9apX89fG84QShwFw34OoV zqMGrPmALmHmc2pUzffvxW/ziPdkK0oGrZmUnhfWovsKvnYQQ2fBt84Z9poOT2stxacU nJKikt24UTXVGp5lBc0HkqP/btrINREpVx2lxErB1ALc8ZynTDqK7RHd1k+fuZgSukOI UdmfJ7P43RgLG0Xo5cfxnkr7c5YsyHIF7brT5uas+vt0m8wheDg10Rnto2n8IDCvM1Xm 0xKP/zHiQOcj2K1RIyXh9gLhgHrwMAymOiIubYVyVikYrkmvXSM7VljiPs85P0vl2tA+ Sw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2hmhmfct95-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 30 Apr 2018 16:21:35 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w3UGLYgQ001795 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 30 Apr 2018 16:21:34 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w3UGLYdH026045; Mon, 30 Apr 2018 16:21:34 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, 30 Apr 2018 09:21:34 -0700 From: Boris Ostrovsky To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Cc: jgross@suse.com, Boris Ostrovsky Subject: [PATCH 0/4] PVH GDT fixes and cleanup Date: Mon, 30 Apr 2018 12:23:35 -0400 Message-Id: <20180430162339.17143-1-boris.ostrovsky@oracle.com> X-Mailer: git-send-email 2.14.3 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8879 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=688 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804300156 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Switching to new binutils release triggered the first bug. Not sure if stack canary bug is related to the new tools as well (haven't checked it with old tools, but they are really old, from Fedora 13 days). 64-bit guests run fine even without adding the entry for GS but my guess is that's because Xen toolstack sets cached portions of the register to sane values and HW makes fewer checks in long mode. Since those values are not part of the ABI I figured I should fix it for both 32- and 64-bit mode. Boris Ostrovsky (4): xen/PVH: Replace GDT_ENTRY with explicit constant xen/PVH: Use proper CS selector in long mode xen/PVH: Set up GS segment for stack canary xen/PVH: Remove reserved entry in PVH GDT arch/x86/xen/xen-pvh.S | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) -- 2.9.3