Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA65FC433DF for ; Fri, 16 Oct 2020 12:14:18 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3E5952083B for ; Fri, 16 Oct 2020 12:14:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="nWVBV8JX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3E5952083B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.8058.21444 (Exim 4.92) (envelope-from ) id 1kTOcV-0008M2-Of; Fri, 16 Oct 2020 12:14:03 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 8058.21444; Fri, 16 Oct 2020 12:14:03 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kTOcV-0008Lv-LU; Fri, 16 Oct 2020 12:14:03 +0000 Received: by outflank-mailman (input) for mailman id 8058; Fri, 16 Oct 2020 12:14:02 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kTOcU-0008Lq-S0 for xen-devel@lists.xenproject.org; Fri, 16 Oct 2020 12:14:02 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id cf054e8b-e817-40a3-bbbe-7b256a4dd983; Fri, 16 Oct 2020 12:14:02 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4D0A4ACC5; Fri, 16 Oct 2020 12:14:01 +0000 (UTC) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kTOcU-0008Lq-S0 for xen-devel@lists.xenproject.org; Fri, 16 Oct 2020 12:14:02 +0000 X-Inumbo-ID: cf054e8b-e817-40a3-bbbe-7b256a4dd983 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id cf054e8b-e817-40a3-bbbe-7b256a4dd983; Fri, 16 Oct 2020 12:14:02 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1602850441; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sJIiQ9yrcyyr/TSYLzEY2pC0tit/0unVayTqJXularY=; b=nWVBV8JXaIh5UHVbFYkqXaZdzkypEAyNIxQG3JAX4a1plaP+EvsQGD/RyCI1ciP1IuZGi+ gVI6MdUgPH5Vi2fSpz4bMFtjbO3j8Gqorl+Kr4O4AUgW2hhyjxdhvwWvBszfQw0BYJOHqm gmzZojfCo+MJ3sEw2y+ADVSCtfmX5P4= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4D0A4ACC5; Fri, 16 Oct 2020 12:14:01 +0000 (UTC) Subject: Re: [PATCH] x86/traps: 'Fix' safety of read_registers() in #DF path To: Andrew Cooper Cc: Xen-devel , =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , Wei Liu , Julien Grall References: <20201012134908.27497-1-andrew.cooper3@citrix.com> <307753b0-fef8-658d-f897-8c0eb99ce3e5@citrix.com> <948f0753-561b-15e8-bf8c-52ff507133d2@suse.com> <00ba5885-5ee6-c772-a72e-15431cd3b1f4@suse.com> <09049e52-548b-3ffc-5259-b1ffc26413a5@citrix.com> <7f3272d5-8ec7-26ec-33ec-2281539920e2@suse.com> <5807e645-7242-125a-03cf-c7c23f28dfa3@citrix.com> From: Jan Beulich Message-ID: <8f8da1a9-47dd-57d6-a91f-de90de36ea22@suse.com> Date: Fri, 16 Oct 2020 14:14:03 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <5807e645-7242-125a-03cf-c7c23f28dfa3@citrix.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 16.10.2020 14:07, Andrew Cooper wrote: > On 16/10/2020 12:55, Jan Beulich wrote: >> On 16.10.2020 13:24, Andrew Cooper wrote: >>> On a tangent, what are your views WRT backport beyond 4.14? >>> >>> Back then, it was #DB which was adjacent to the guard frame (which was >>> not present), but it doesn't use show_registers() by default, so I think >>> the problem is mostly hidden. >> I wasn't fully decided yet, but as long as it applies reasonably >> cleanly I think I'm leaning towards also putting it on 4.13. >> 4.12 closes anyway once 4.12.4 is out, and I don't think I want >> to pick up not-really-urgent changes for putting there beyond >> the few ones that I already have (and that I mean to put in >> alongside the XSA fixes on Tuesday); I could be talked into it, >> though. > > The question I was asking was really "should I try and make an > equivalent fix for 4.13 and older". Oh, I see. > While the base premise of the fix would be the same, the logic in > load_system_tables() is different, and the commit message is completely > wrong. > > I only encountered this problem with added instrumentation in the #DB > handler, which is why I'm questioning the utility of going to this effort. Yeah, then probably not worth it. Jan