From mboxrd@z Thu Jan 1 00:00:00 1970 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=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 E31E5C4321A for ; Sat, 29 Jun 2019 07:37:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B8A7E214AF for ; Sat, 29 Jun 2019 07:37:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726859AbfF2Hhn (ORCPT ); Sat, 29 Jun 2019 03:37:43 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:38360 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726818AbfF2Hhn (ORCPT ); Sat, 29 Jun 2019 03:37:43 -0400 Received: from p5b06daab.dip0.t-ipconnect.de ([91.6.218.171] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hh7vR-0001t8-Ng; Sat, 29 Jun 2019 09:37:33 +0200 Date: Sat, 29 Jun 2019 09:37:32 +0200 (CEST) From: Thomas Gleixner To: "Bae, Chang Seok" cc: Andy Lutomirski , Vegard Nossum , Ingo Molnar , "H . Peter Anvin" , Andi Kleen , "Shankar, Ravi V" , LKML , Dave Hansen Subject: Re: [PATCH v7 12/18] x86/fsgsbase/64: GSBASE handling with FSGSBASE in the paranoid path In-Reply-To: Message-ID: References: <1557309753-24073-1-git-send-email-chang.seok.bae@intel.com> <1557309753-24073-13-git-send-email-chang.seok.bae@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1304247078-1561793853=:1802" X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1304247078-1561793853=:1802 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Sat, 29 Jun 2019, Bae, Chang Seok wrote: > > On May 8, 2019, at 03:02, Chang S. Bae wrote: > > > > ENTRY(paranoid_exit) > > … > > + > > + /* On FSGSBASE systems, always restore the stashed GSBASE */ > > + wrgsbase %rbx > > + jmp .Lparanoid_exit_no_swapgs; > > It would crash any time getting a paranoid entry with user GS but kernel CR3. > The issue is thankfully uncovered by Vegard N. A relevant test case will be > published by Andy L. The patch fixes the issue. (Rebased on the tip master.) Can you please provide a proper patch with a proper changelog? Thanks, tglx --8323329-1304247078-1561793853=:1802--