Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1733659ybv; Sat, 8 Feb 2020 04:50:45 -0800 (PST) X-Google-Smtp-Source: APXvYqzKi4Tf3TLU9ZLvlqQbqYZVKv2WDvQrq1flrY9AjqalHe6ZIciuA8JmVx96O+/oZv/wHeMC X-Received: by 2002:a05:6830:4a7:: with SMTP id l7mr3155860otd.372.1581166245617; Sat, 08 Feb 2020 04:50:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581166245; cv=none; d=google.com; s=arc-20160816; b=u17gfpIJnF0Jp5DFfhCPKW9hZrb/NibatqibjOBxz2LU+ATyDmJNqrR0idympFXnfc UDj4/91vRL6DUoiiO3DpPIu/hTH5Nh6DuUNXD8+BrtZiAIDGT1q5Pg+Csd/7i01HYHK9 cicKqJmpca9Xzq831lMVaBEiiLQcBdT01fUcMkeKcQx/P47yHoPRZhQkqW6mdR/QP9PV 5+SMvcB+rBOHeiXfmUe5GQ7Wb5LHb+aZvGL32BwPw+jLmNkn5KMuaJg3vhDBdh/09aZE OPNaELTvSylE1fwcJVHSG+GDsTUnJZMjyRlz6xWIRDqV3D+BtMqdfb6E09M5uVBEj4Pc Eiag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to; bh=6dDTQIJtHE5P/ESDT3kowxnLIxwpJQDIeHYbxNOl8EU=; b=xIuDY7rrTYrz317rcjWizDuwncy6OL/qzrHdYmGLWT7bb7zC/4CNw9QIaeC3nktKgO 9YhAhbpZnPou7s56aP3a1epc9rzFJDh0Cmsh2OEAbRbbstpszn4moJRL6av1EKYe+0vB 5F9B4Kb1Ceg2IFsMFTHYU3fKsnqjE/0HVo4UATSKKKunWrqWx69F+BxCBsrbsOHEkqWj KJ/E4FOR+7a/LJhytxNLQnor4cRy3R32NXCAbYLZuIJ7Bc1ZQNVGTohpqSRRj8OXYLvY 9/UlUrcBNl13AJdy8L7o54MPNVuhQPDES297aOsykVOi4y3MAU9PHU6q1NEfPWbeDm98 mh1Q== 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 t7si1548254otl.133.2020.02.08.04.50.19; Sat, 08 Feb 2020 04:50:45 -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 S1727175AbgBHMuJ (ORCPT + 99 others); Sat, 8 Feb 2020 07:50:09 -0500 Received: from ozlabs.org ([203.11.71.1]:51285 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727118AbgBHMuI (ORCPT ); Sat, 8 Feb 2020 07:50:08 -0500 Received: by ozlabs.org (Postfix, from userid 1034) id 48FBpP4qWsz9sRY; Sat, 8 Feb 2020 23:50:05 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: d4bf905307a1c90a27714ff7a9fd29b0a2ceed98 In-Reply-To: To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras , Guenter Roeck From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: Fix CONFIG_TRACE_IRQFLAGS with CONFIG_VMAP_STACK Message-Id: <48FBpP4qWsz9sRY@ozlabs.org> Date: Sat, 8 Feb 2020 23:50:05 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2020-02-07 at 17:20:57 UTC, Christophe Leroy wrote: > When CONFIG_PROVE_LOCKING is selected together with (now default) > CONFIG_VMAP_STACK, kernel enter deadlock during boot. > > At the point of checking whether interrupts are enabled or not, the > value of MSR saved on stack is read using the physical address of the > stack. But at this point, when using VMAP stack the DATA MMU > translation has already been re-enabled, leading to deadlock. > > Don't use the physical address of the stack when > CONFIG_VMAP_STACK is set. > > Signed-off-by: Christophe Leroy > Reported-by: Guenter Roeck > Fixes: 028474876f47 ("powerpc/32: prepare for CONFIG_VMAP_STACK") Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/d4bf905307a1c90a27714ff7a9fd29b0a2ceed98 cheers