Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4310009imm; Mon, 14 May 2018 05:52:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZro/iHsrAgcsfOLDwTvbSYRTWsJXjpP2A3QRcMo076VJ64eQclIUbWrpAxi7OlTwCcdR4ld X-Received: by 2002:a63:a807:: with SMTP id o7-v6mr185298pgf.445.1526302325031; Mon, 14 May 2018 05:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526302324; cv=none; d=google.com; s=arc-20160816; b=fqg9x7x4T8ks808tIBlJrklmsgY5B/ypi+QPpwz0CzrKodyoeJJRTY/6BeK4fsax7A xDcwNbEDRYsXlUlkAaaggjmlVmJ+9ZesRSAgnIUHfyb+mSz6txT0DCSGhygYqpVQi+d1 bJVvzhoE41Vug07kS3zpMX+x67EGDEeGRAYleZfgLFY4Bq3I0xJ3DubyafWDO+X4U5NA /G9HDD3sK6b7h6xKpNxUCsHU001I5/k4MQ9+JvajDI1LqQB+s1uVoyUq1XvIa/as40Z3 2jH996ubT9ow1MemIcD8eIaTWt94rBAc+1YvrJdG6+b79TXpANEjfHMUesaqWOIChffc wj2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references :subject:cc:to:from:date:message-id:arc-authentication-results; bh=lQl43xerw2m0sWg3+qeuwK5HF5Edsn2s7lbZBmDPOSQ=; b=Tk2uCfbnA5ioiAQIlHaqhPkCQfZt+TUVXy7vJQMVWZMPqSUrzIqMnn09nTaIs96C0D YoUkaPv0e7KBT+N35wqUJgZYwbLwWNKmgGDUxKMuGiIikUtH5MVJX4fhT5YwKKexKmLK p0s+2UA7NeBjQEhJ7U0QV1s2qYwEGWobcnOZFHNUG4cOSa83X7/lgGWzmqFDepk+e6Sl kmlQpPLfFDpVp+0hSxzfCAvw3Y+TfQAcWqJUtErk4SwtyjmtsPC5BXd1v71qCnvDHHSd RtKp+JjIn+hg2R8mI91vBQrZVFgaGWqDJmjG0f/lje/XevIJJtLfBuK3SP77zAhlQLuF QOYA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5-v6si9394251pfb.314.2018.05.14.05.51.45; Mon, 14 May 2018 05:52:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932093AbeENMvF convert rfc822-to-8bit (ORCPT + 99 others); Mon, 14 May 2018 08:51:05 -0400 Received: from prv1-mh.provo.novell.com ([137.65.248.33]:41604 "EHLO prv1-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753530AbeENMu4 (ORCPT ); Mon, 14 May 2018 08:50:56 -0400 Received: from INET-PRV1-MTA by prv1-mh.provo.novell.com with Novell_GroupWise; Mon, 14 May 2018 06:50:56 -0600 Message-Id: <5AF9862C02000078001C27B5@prv1-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 18.0.0 Date: Mon, 14 May 2018 06:50:52 -0600 From: "Jan Beulich" To: "Boris Ostrovsky" Cc: "xen-devel" , "Juergen Gross" , Subject: Re: [Xen-devel] [PATCH v2 1/2] xen/PVH: Set up GS segment for stack canary References: <20180509203318.2611-1-boris.ostrovsky@oracle.com> <20180509203318.2611-2-boris.ostrovsky@oracle.com> In-Reply-To: <20180509203318.2611-2-boris.ostrovsky@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> On 09.05.18 at 22:33, wrote: > @@ -64,6 +67,17 @@ ENTRY(pvh_start_xen) > mov %eax,%es > mov %eax,%ss > > + /* Set base address in stack canary descriptor. */ > + movl _pa(gdt_start),%eax > + movl $_pa(canary),%ecx > + movw %cx, (PVH_GDT_ENTRY_CANARY * 8) + 0(%eax) > + shrl $16, %ecx > + movb %cl, (PVH_GDT_ENTRY_CANARY * 8) + 2(%eax) > + movb %ch, (PVH_GDT_ENTRY_CANARY * 8) + 5(%eax) Is this meaningful / correct for the 64-bit case? I'd rather expect you to write the GS base address MSR there. Jan