Received: by 10.223.176.5 with SMTP id f5csp518432wra; Fri, 2 Feb 2018 01:34:10 -0800 (PST) X-Google-Smtp-Source: AH8x227A+/7/idEC2FJ6yDvufvE3XYg45VJy0aC8GAJ+1aZ38oxDBww2vORufu+ySxQ7X3wI0nMF X-Received: by 10.98.206.1 with SMTP id y1mr1730627pfg.136.1517564050104; Fri, 02 Feb 2018 01:34:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517564050; cv=none; d=google.com; s=arc-20160816; b=wDVsrUlq+KQH+EyvZAtYDm1yKM0+r+Myq9zkZBdNDh/CwsbuhEgjq20Ht9/kph+7yL imHuRuw8Jm80p6YRCGV5drCp6IJSqgbGDV9hK08XRE0H5o7mVX89RiaJvrTDuRV/TPJw ZgeielpDw0kZg58a4Ct1HjQyMEstcOATclinYTxoKvi+JvEzw8eOz9wIV/dzJ7CYjxKe TSQxWnJbLPMBxj7TV3T6vc0wnelPR1sChpdIz6ukcDzZ6lYLoBpu5QyuEDV6W/VM7D4c B/leG0fP4a7gSN1aMHbUTTCMffhEJy/Twso8hObYb1TrbA1DxU7F+xsiR+MNhm3pENzA Qeeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=PelU/mBgoHhagA5Qu8lbssM1C0RCskRXG0wV5z6S88E=; b=Il9rM8hQWDTzlEFsiDb/Ok3q6+8eMN+HM06VjgbAfYcs3TY/17LJNRoVmQrnNn1uEW 36QBoCSvzhvBwbU0v/eYJXxxGGlj9sjWj70RKNVw0g4c4LPfr6Oa2BxRZfvz3/vKiDMR 5+PlMFTYII/CghZhcaIBT59HVBnzba6gei2CfAdyXTTS9BtY11NuOOql7TjEZRwdII55 XSrlC/PQC4XzGvjUYyD+hG1SJizbAuvOmAXtXMQwNP/Z7u2UFJF9caeuYBGxlsZqzdvu ggUiXB/fozEijmNeBG55oYDLG6Ujs7Wonje76pMEGwBrZbOCt9K/RcRyPSnTqZIRyJr9 9ZKg== 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 d7si1178790pgf.470.2018.02.02.01.33.55; Fri, 02 Feb 2018 01:34:10 -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; 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 S1751826AbeBBJdD (ORCPT + 99 others); Fri, 2 Feb 2018 04:33:03 -0500 Received: from mx2.suse.de ([195.135.220.15]:41335 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221AbeBBJca (ORCPT ); Fri, 2 Feb 2018 04:32:30 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E5409AD93; Fri, 2 Feb 2018 09:32:25 +0000 (UTC) Subject: Re: [Xen-devel] [PATCH v2] x86/xen: init %gs very early to avoid page faults with stack protector To: Chris Patterson , Boris Ostrovsky Cc: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, stable@vger.kernel.org References: <20180201124019.11693-1-jgross@suse.com> From: Juergen Gross Message-ID: <3a4fa32b-7909-9fa6-4b6c-71d6b51ad35d@suse.com> Date: Fri, 2 Feb 2018 06:56:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/02/18 01:36, Chris Patterson wrote: > Works great, tested it and it fixes booting Linux v4.15 kernel for me :) Can I add your "Tested-by:" to the patch when committing it? Juergen > > Cheers! > > On Thu, Feb 1, 2018 at 3:17 PM, Boris Ostrovsky > wrote: >> 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 >> >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xenproject.org >> https://lists.xenproject.org/mailman/listinfo/xen-devel >