Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1467982yba; Sun, 14 Apr 2019 10:52:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGK0nMn2TVXliBtY7rmeclAMEArYjUz4s5Xj+v8JPzZPT2d1z3XOp5RGQfdRk5WnWEdAh2 X-Received: by 2002:a65:430a:: with SMTP id j10mr62592000pgq.143.1555264354445; Sun, 14 Apr 2019 10:52:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555264354; cv=none; d=google.com; s=arc-20160816; b=IPMP93ry4fI8vjNeaLZIaXg90OUkalNl3xVfL4N/ZmcxAjETNY+OAIKJzlvwqr4/Ns hNeTZgzhulyev41hx/0q1j2hwglQzmnTG5Z+W1lAOfJiJFjExaY4GWEvx5OmxBTglgNJ 6Po6+Qn4/dQFVFERVPJtyZPrfy3TOuO7wJ0uwAcRtWABv7WblpnnMtWNMJk4nBKyiGQK FSq/4s8T1OF9qBBRWgHR1nKASQIo82Y8aCF5sfr4SqnOH9mCoODSJdPbXacUkhzrm+vR M22ht3MA+ey6R9INWEYYXW5ZftBL3NAEsqOQjvGhqLXALOfb/jiYoJTjhOkF1bVd3tlO RiNQ== 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=NEdQviKyCQcLYs4YBSOsMv5bl+6R8OcGYuWkYZs/ZYE=; b=dmT+X1r5XF/j0UKF5tZTTukUT+SerBGFbdipw/b3GKqo4lTcWxS5d5TAVcoShqaVo1 nxJtY5zPIAAlRlGNd8POJ/g9/t6xDfstcTw0sR4QBcd1TW5fTofhi6RLAFlH2mpggD3C 3rzxxhFsNzFG093H466ipZGCkr6RznGtuHk+aLECVO3QoCLhU7acy51GInfLiddvIYRc oV37P4gnsfyhZxtNEGe9cD/mKSHCb1SmfgoFwTN2RPClQjszMCJGyjfQqKlO05cCfcun ulvfrlAyknOTd9ecN6EeCXMw+poUslZsCc10Cm0ZRSnzWusxoDzszuLIrkTiwrfDE5Jr RJ2w== 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 h2si11424512pfk.277.2019.04.14.10.52.06; Sun, 14 Apr 2019 10:52:34 -0700 (PDT) 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 S1726305AbfDNRvK (ORCPT + 99 others); Sun, 14 Apr 2019 13:51:10 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:43718 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbfDNRvJ (ORCPT ); Sun, 14 Apr 2019 13:51:09 -0400 Received: from pd9ef12d2.dip0.t-ipconnect.de ([217.239.18.210] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hFjHW-0005tt-Ni; Sun, 14 Apr 2019 19:51:06 +0200 Date: Sun, 14 Apr 2019 19:51:06 +0200 (CEST) From: Thomas Gleixner To: Mikhail Gavrilov cc: Linux List Kernel Mailing , thomas.lendacky@amd.com Subject: Re: [5.0.0 rc3 BUG] possible irq lock inversion dependency detected In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 Hi, On Sun, 14 Apr 2019, Mikhail Gavrilov wrote: > This bug is still present in 5.1 rc4 > Why no one answered me? Because mails fall through the cracks occasionally. Does the patch below cure your problem? Thanks, tglx 8<------------------ --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c @@ -426,6 +426,8 @@ static __always_inline void __speculatio u64 msr = x86_spec_ctrl_base; bool updmsr = false; + lockdep_assert_irqs_disabled(); + /* * If TIF_SSBD is different, select the proper mitigation * method. Note that if SSBD mitigation is disabled or permanentely @@ -477,10 +479,12 @@ static unsigned long speculation_ctrl_up void speculation_ctrl_update(unsigned long tif) { + unsigned long flags; + /* Forced update. Make sure all relevant TIF flags are different */ - preempt_disable(); + local_irq_save(flags); __speculation_ctrl_update(~tif, tif); - preempt_enable(); + local_irq_restore(flags); } /* Called from seccomp/prctl update */