Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp752369imu; Wed, 9 Jan 2019 05:54:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN5TMb16cfZXwqHpFJOkVIq6JKqSr3QmyWlAZLamDZhJaegVUC3XoRHHIgeFkx60YAiECrXc X-Received: by 2002:a17:902:584:: with SMTP id f4mr6323243plf.28.1547042045565; Wed, 09 Jan 2019 05:54:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547042045; cv=none; d=google.com; s=arc-20160816; b=wmI42EsqtBGKtk14YJ6rffmwqxSPW1PZ6ORn7Pfb2IgFf1SPbUEms+rauflJGVvWnc /ymzMHqHIjm985c7wv8t5T+zEV2KPHo5/c+v5AF+3zwujNAMoO/eu7Cke2LC8I+l/k06 UoJFyplX8rabbX+2p93bs3ImtztnwbhPgFvkEzWL7jrlHynKOdiJ6ZMoxx9zIOjuaCou lJXfAgXpe606/l6/wbXJkWkkoFchddwRh1er1v85Y1s99GE531DHFBKHleTWHs8zEFX3 IaOl7+g2IzGFIjFkjxqHDgo5NUXwaPVG3L7U7OKNMfla7A6WVfPZ7FIQgH5thq8CFOUM 2YrA== 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:references :message-id:in-reply-to:subject:cc:to:from:date; bh=5QaimV6UwDnKV6JH1EAS8nL85QMNuump+wwtcOb/4zI=; b=NrS0wobguHOXf8Aiwo1HnzkBc5334Jr5UK+WR8jG15i2DDl/GI37meog3izCCbuJFF DMQVPDRY2RgMtJ/8oRaIzZB6oqT/SqQ2UgfDFQYnKwvH5I2Ap12CkFZ6uornvw5eC4LJ S1pEfCZVmEV/Ovk79AN1lyGUNeGhe7xA3PXxESy1mU/BiseM2Z9ARn3Iehu40TDfAjjw hAhR3GQtv1QRHCcJQt4nM4cxZFXDL83fgVqP/kC7YGayirasWLjpFhwrNP6q8Bx0bKCS F44qz94Y7G8THEFOu/Ijz79MzKB3w0greAQT3DvGujQWEBbidOYGNJYEiPBP2rHjzveC CObQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7si67375151pgc.236.2019.01.09.05.53.50; Wed, 09 Jan 2019 05:54:05 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731058AbfAINQK (ORCPT + 99 others); Wed, 9 Jan 2019 08:16:10 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:56432 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730249AbfAINQJ (ORCPT ); Wed, 9 Jan 2019 08:16:09 -0500 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ghDiG-0000mJ-Kx; Wed, 09 Jan 2019 14:16:05 +0100 Date: Wed, 9 Jan 2019 14:16:04 +0100 (CET) From: Thomas Gleixner To: Paul Menzel cc: Jiri Kosina , x86@kernel.org, LKML , Thomas Lendacky , Tim Chen , Borislav Petkov Subject: Re: General protection fault in `switch_mm_irqs_off()` In-Reply-To: Message-ID: References: <784ab00e-ed72-c1bc-bc0c-31264deb7726@molgen.mpg.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Paul, On Wed, 9 Jan 2019, Paul Menzel wrote: > I get the same with microcode updates applied. > > $ dmesg | grep 'microcode: CPU0: patch_level' > [ 3.809210] microcode: CPU0: patch_level=0x0600063e > $ sudo modprobe msr > $ sudo ./wrmsr 0x49 0x1 > wrmsr: CPU 0 cannot set MSR 0x00000049 to 0x0000000000000001 > > > Could you please post /proc/cpuinfo from such a boot as well? /proc/cpuinfo unfortunately does not contain the amd specific IBPB flag, but the dmesg of the original report says: Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier which means, that the CPUID bit is set. Can you please provide the output of: cpuid -1 -l 0x80000008 -r On my AMD Opteron(TM) Processor 6276 with microcode 0x600063d loaded I get: 0x80000008 0x00: eax=0x00003030 ebx=0x00000000 ecx=0x0000500f edx=0x00000000 EBX is 0, which means that X86_FEATURE_AMD_IBPB is not enabled. So the kernel does not try to use the speculation control MSR (0x49). Thanks, tglx