Received: by 10.223.176.5 with SMTP id f5csp3196528wra; Thu, 1 Feb 2018 12:19:48 -0800 (PST) X-Google-Smtp-Source: AH8x225K9k+20J8oBm3BWG3mFaefogFRNF1Xi17M8arjtBB2Tsvda0D8V4xmQ9lJUT0kHTVpkFcO X-Received: by 10.99.103.198 with SMTP id b189mr5039917pgc.20.1517516388823; Thu, 01 Feb 2018 12:19:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517516388; cv=none; d=google.com; s=arc-20160816; b=b27y8u9wlOqMPj69HGaBL8z2iY7e9PPlaTBHAts7otIur1AiiE4MiEnfE7PPyBpe+8 bPb5bQn8GcRNsX4+vERftSTjLZt418GsachnXbh5tgs7fooLLLe2sBen/48JOBuypIe7 ucYIc6iQPY6JLLCcPo/hWwoPS/bedPKTy8M7sVS0ZrpFSuQD7PP1eE+UZhAsx1e8LNIL NbbygEZ3qFqQw4SwQhNC8V9bPMvxjnWhWCgCrt1VphG73BC1yYMRz0OY4XijuQgnGMq2 8IF05mFvhkdXreR0N2oO0la9iHlKsE94SLq59o9LwBSEXnrQdRrf5NbqBhsOBaoI3q7w Jbqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=RyPf7ty77Yboy+piFfe4scBju8oHQ61Dx+u/aCsGO14=; b=URNkz8XF5xFH9hlr7FG9BX/+x7X7IMM3ef9g129uaFE9j92wZkJZAiP9KR95iaJY4j CmhvBUp8auvuyoaSL/p7yZoPlUDkRObmFqOT6/1YFOSxpitCb7Twowq/lCCt6o5Ex/wa oouWX0WAcEeidCfHrtjWmBDhwbQpi2km9bsk3TYU8k6JnGzHnqzjSxiI46j2lXzwT7Y7 /fYjWKaxnFQd5exKjK3YRxXh28QLqtEOjj3eLmznLc+iD1SRtyKanNjLtqWkaR6j1rfZ OtQdUlVfXNO+SYZQ5ZsA/dETsICFwqhNW4cX4EtE5yzbv7+TrqdBjVyFV4gd1X2X08EK 4yKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=gzklXrAU; 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 u5-v6si281347plz.513.2018.02.01.12.19.33; Thu, 01 Feb 2018 12:19:48 -0800 (PST) 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=gzklXrAU; 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 S1754992AbeBAURJ (ORCPT + 99 others); Thu, 1 Feb 2018 15:17:09 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:37036 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754891AbeBAURB (ORCPT ); Thu, 1 Feb 2018 15:17:01 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w11KGbqh084575; Thu, 1 Feb 2018 20:16:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=RyPf7ty77Yboy+piFfe4scBju8oHQ61Dx+u/aCsGO14=; b=gzklXrAUKYIT4rCPKj3Yy7+oIJoFZuvWB7cBrDVfzBOL7FZnwbvtOMstgMxNChe4pQqO X9scLu28OxtZvUOwfBiFaT0aPMjg3vjqlALaPMbqwarCT9kYEBkUGCfccAIaRkifQ0bk H8Nyl7Vx8fESimnzKi/ynx6WfN6yiHi7bClIXKJ5XpxGfJ0PXOckJ5Hlv0wTb5W66ncR XAJwW+2qGL/5mrnOAM55iH9J4fMEyID4Tr/5+llQ7VEtJBW86JZ+QE+A/aQKYPENli7U e8djXQ6kAhzGLjX2ox+MF4fDTrVilcVFx6UxkCCEHbPVNOMOJJhzKqh737gdXOh7o0DD iw== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2fuqf3cspp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 01 Feb 2018 20:16:57 +0000 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 w11KGupL002589 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 1 Feb 2018 20:16:56 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w11KGtAs029528; Thu, 1 Feb 2018 20:16:55 GMT Received: from dhcp-burlington7-2nd-B-east-10-152-55-162.usdhcp.oraclecorp.com (/10.152.32.65) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 01 Feb 2018 12:16:55 -0800 Subject: Re: [Xen-devel] [PATCH v2] x86/xen: init %gs very early to avoid page faults with stack protector To: Juergen Gross , linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Cc: stable@vger.kernel.org References: <20180201124019.11693-1-jgross@suse.com> From: Boris Ostrovsky Message-ID: Date: Thu, 1 Feb 2018 15:17:38 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20180201124019.11693-1-jgross@suse.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8792 signatures=668660 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=758 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1802010259 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/01/2018 07:40 AM, Juergen Gross wrote: > When running as Xen pv guest %gs is initialized some time after > C code is started. Depending on stack protector usage this might be > too late, resulting in page faults. > > So setup %gs and MSR_GS_BASE in assembly code already. > > Cc: stable@vger.kernel.org > Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky