Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97B6DC54EAA for ; Fri, 27 Jan 2023 10:37:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231954AbjA0Khx (ORCPT ); Fri, 27 Jan 2023 05:37:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231968AbjA0Khr (ORCPT ); Fri, 27 Jan 2023 05:37:47 -0500 Received: from mail.8bytes.org (mail.8bytes.org [85.214.250.239]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D35EA84B58 for ; Fri, 27 Jan 2023 02:37:40 -0800 (PST) Received: from 8bytes.org (p5b006afb.dip0.t-ipconnect.de [91.0.106.251]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.8bytes.org (Postfix) with ESMTPSA id 434BB262DAE; Fri, 27 Jan 2023 11:37:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=8bytes.org; s=default; t=1674815859; bh=R/vzonbPGqlI/fZmSZV7Oq3KpncVikgbGOtJc5uDHsA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uiyg7VAqvx1KvY6pAty0HyViBFPcPNKJa7yPW1NGoUvjsD/KZbw2NK8bf1v3p0bVG jcQSMu+XiQg8Qh5XzZvnyQ63ZLUp8Rzzr1OaPIssfgw7VRKjbqX/PVHKO7TRJlMMES 0e+iuWQVzRR3UU8f7raFD7bhHsn1ILcyoAiHaZc0AmX1168uJHCZo6ocJEo+PXvhpM EqgjfxweSWpCZKwPpokCPzZBIJ9sKZ00feXY27b5sV1ns88FfocHRatiqO562iG7aC sQ6SmA57DlPOXDryPlYaO2YvJ238p96W5LqGxvU28h605f4T2coCgYS6C2tlrPA8sD ZcMfICSYsqTFQ== Date: Fri, 27 Jan 2023 11:37:38 +0100 From: Joerg Roedel To: Peter Zijlstra Cc: Alexey Kardashevskiy , kvm@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Sean Christopherson , Jiri Kosina , Ingo Molnar , Dave Hansen , Borislav Petkov , "H. Peter Anvin" , Tom Lendacky Subject: Re: [Question PATCH kernel] x86/amd/sev/nmi+vc: Fix stack handling (why is this happening?) Message-ID: References: <20230127035616.508966-1-aik@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 27, 2023 at 10:08:14AM +0100, Peter Zijlstra wrote: > Welcome to the wonderful shit show that is x86 exceptions :/ > > I thought sev_es_*() is supposed to fix this. Joerg, any clue? Hmm, no, not yet, the stack-trace doesn't make much sense to me. The sev_es_* function calls in the NMI path are for re-enabling NMI and adjusting the #VC IST stack to allow nested VCs. Alexey, can you try to get a more stable backtrace? For example by building the kernel with frame pointers? Regards, Joerg