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=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 578A9C433E2 for ; Tue, 1 Sep 2020 13:51:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 33549206EF for ; Tue, 1 Sep 2020 13:51:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728238AbgIANvI (ORCPT ); Tue, 1 Sep 2020 09:51:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728020AbgIANau (ORCPT ); Tue, 1 Sep 2020 09:30:50 -0400 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B247C061245; Tue, 1 Sep 2020 06:30:03 -0700 (PDT) Received: by theia.8bytes.org (Postfix, from userid 1000) id B2BB7391; Tue, 1 Sep 2020 15:29:52 +0200 (CEST) Date: Tue, 1 Sep 2020 15:29:51 +0200 From: Joerg Roedel To: Borislav Petkov Cc: x86@kernel.org, Joerg Roedel , hpa@zytor.com, Andy Lutomirski , Dave Hansen , Peter Zijlstra , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , David Rientjes , Cfir Cohen , Erdem Aktas , Masami Hiramatsu , Mike Stunes , Sean Christopherson , Martin Radev , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v6 48/76] x86/entry/64: Add entry code for #VC handler Message-ID: <20200901132951.GD22385@8bytes.org> References: <20200824085511.7553-1-joro@8bytes.org> <20200824085511.7553-49-joro@8bytes.org> <20200831113002.GH27517@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200831113002.GH27517@zn.tnic> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 31, 2020 at 01:30:02PM +0200, Borislav Petkov wrote: > AFAICT, that STACK_TYPE_UNKNOWN gets set only by the plain > get_stack_info() function - not by the _noinstr() variant so you'd need > to check the return value of latter... You are right, it needs to check the return value of get_stack_info_noinstr() instead of STACK_TYPE_UNKNOWN. Fixed that now. Regards, Joerg