Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2113428ybv; Fri, 14 Feb 2020 11:42:46 -0800 (PST) X-Google-Smtp-Source: APXvYqypQ2Q2RRl0bXXsyT+j8Mmx9SjuEgetIUGbtP65I+bGKhqJAeJV//LVteezDT6g7DcdYo9r X-Received: by 2002:aca:afd8:: with SMTP id y207mr2861652oie.96.1581709366249; Fri, 14 Feb 2020 11:42:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581709366; cv=none; d=google.com; s=arc-20160816; b=ct+/lMLjZswk6uBx+YTeGycbNeoZtAbx+zNrd9tmwWlULcgwDymhwZOi1HK4WZyIgY NknYRGkFXQrmtz4M25H9jZq1BordhEZdRK9+ORFBfxdOQfuc66z0wnTxtun7bPyPKLIv tW/CDTDx95Qrnd+73tUJCk6BSMMI7rcrQtTqx4QBfZnHkBndHI6ImUB4cJm5ou1A3fwd n4OPGZbRuOfLlPcUjTg2B35BeA14Fl2loKjre5yYq7AuQLH5Wbv+x84QF/oOdJvZo3hO njo9PfNRW7bCJcaQGLXIpriw84kSPzS2sy5k/VRplJsBjcv7ITxXRnzrnNTrts0ShyxX 0E3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=4MDn1E1DH1sIKIqa3ADqNSnVgYp6SRisAIyC9Tuxvfg=; b=dC+eDcFewzcMf7NbqhkTZPYYu13wABhqI1auF8d5on7Os6OWSXMwwW0Jk1PBbfSFIm nbptPhWow14vodSbXRDZjEvb6/Y1lfFVpJQHfyuwAzYeQRsgXU6tk5MBswQISTBSu1PP 0mBKg3RUU9VimftylV9H5RZ+bO0Tn8W/AXe3FSM9gBX/4J3LU5kUfsEtx4jRNpi5VYSr T0zXnKlsncAh9YEBxOl++xledx4B6M3miz84jan05Nq8vmhsDHtLLmsAp1jWdx3+qcDA 9riG1kEsLGKtPuvQvryy2dfvtcD9u6bcm9eqU6GtqugE/vxo8doSVhaNK0w0UphG24NG ne8Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si3206487otc.160.2020.02.14.11.42.32; Fri, 14 Feb 2020 11:42:46 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388442AbgBNTki (ORCPT + 99 others); Fri, 14 Feb 2020 14:40:38 -0500 Received: from mga05.intel.com ([192.55.52.43]:59394 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729633AbgBNTkh (ORCPT ); Fri, 14 Feb 2020 14:40:37 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Feb 2020 11:40:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,441,1574150400"; d="scan'208";a="238451500" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by orsmga006.jf.intel.com with ESMTP; 14 Feb 2020 11:40:36 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id B9EC13018B1; Fri, 14 Feb 2020 11:40:36 -0800 (PST) From: Andi Kleen To: Joerg Roedel Cc: x86@kernel.org, hpa@zytor.com, Andy Lutomirski , Dave Hansen , Peter Zijlstra , Thomas Hellstrom , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, Joerg Roedel Subject: Re: [PATCH 08/62] x86/boot/compressed/64: Add IDT Infrastructure References: <20200211135256.24617-1-joro@8bytes.org> <20200211135256.24617-9-joro@8bytes.org> Date: Fri, 14 Feb 2020 11:40:36 -0800 In-Reply-To: <20200211135256.24617-9-joro@8bytes.org> (Joerg Roedel's message of "Tue, 11 Feb 2020 14:52:02 +0100") Message-ID: <87k14p5557.fsf@linux.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Joerg Roedel writes: > + addq $8, %rsp > + > + /* > + * Make sure we return to __KERNEL_CS - the CS selector on > + * the IRET frame might still be from an old BIOS GDT > + */ > + movq $__KERNEL_CS, 8(%rsp) This doesn't make sense. Either it's running on the correct CS before the exception or not. Likely there's some other problem here that you patched over with this hack. -Andi