Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp3605929ybg; Sun, 7 Jun 2020 05:05:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjxtdZ2RXDUI+4CghzQDf2tSkBUdWxuNws8l1jYbChxsFd0pXq8ornrspOn6zM/acucPZH X-Received: by 2002:aa7:cdda:: with SMTP id h26mr17819005edw.327.1591531514827; Sun, 07 Jun 2020 05:05:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591531514; cv=none; d=google.com; s=arc-20160816; b=oDFG/L7PglC7pVam1VaZ1OSMd3Uj3/SGuafmBgrg+RZwHt6cb8z5DbrSmIkyPTs9/r HEiXOmssMRElNm/lDO3r4dtrSeysEfbZpWO4cTCfA1WgUbgZP6vPKY4TunA0x2UjyiyV OgwGIhiGXn3VF3AnK2FUEhx7iyaZi/5mTI0eO3LdGMePFqBRkrGDj95zvcz6qPjPRShQ B2/8LpFXbzCohkMzd0jpby/ljj2QxJf73xJp/c0zt5fAiCW5uqKrUd+LHpAsWKncs6MY qXQXHGIUnC+sYKqjjRQjYjLg3Lb1YOGMnS/znFHjSRWXESzMIjnVRcoUVM/5NdnP2asD 0WAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=OPqvcOL7LYVACNROPa7XFG1XdTzkfeEVQf4o0XnRplc=; b=qWwgy3ve2xqPa4T8uH3PsClgsysRIlycNrAujTBBGdK6HdvAkqR4QImQzyRC0OMtXW 2hNSaeU5t4SC8qURdPDq9rFyxcSFHHNU7AUO56QV07dNG8DfdSalHeqIxdHu6AerwGLw +pe+rmI9OH/Dt6YpyW6VXbQBdXY6cLdQgHa7QhXwdXXoDG5miDIUyzKPzOn8O1pcR5K1 alJ2lyGHfH/VpptcgYlhc20aG7BMxYLdMXR9dkIgWgLmmkZ/F+u8k5wwvyUD5gKnowgE SqbO9/HbKAsYRSGCZIpEQOQTao7Y8RQhHZpheZXzBYNksTyp4FLZejw929sgtGnTCVIl OjWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n4si7148607eje.267.2020.06.07.05.04.40; Sun, 07 Jun 2020 05:05:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726488AbgFGMAx (ORCPT + 99 others); Sun, 7 Jun 2020 08:00:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725886AbgFGMAx (ORCPT ); Sun, 7 Jun 2020 08:00:53 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56CD2C08C5C2 for ; Sun, 7 Jun 2020 05:00:53 -0700 (PDT) Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] 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 1jhtxy-0001Yd-Hk; Sun, 07 Jun 2020 13:59:54 +0200 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id B5D5810108F; Sun, 7 Jun 2020 13:59:53 +0200 (CEST) From: Thomas Gleixner To: Qian Cai , Peter Zijlstra Cc: LKML , Andy Lutomirski , Andrew Cooper , X86 ML , "Paul E. McKenney" , Alexandre Chartre , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Steven Rostedt , Joel Fernandes , Boris Ostrovsky , Juergen Gross , Brian Gerst , Mathieu Desnoyers , Josh Poimboeuf , Will Deacon , Tom Lendacky , Wei Liu , Michael Kelley , Jason Chen CJ , Zhao Yakui , Alexander Potapenko Subject: Re: [patch V9 10/39] x86/entry: Provide helpers for execute on irqstack In-Reply-To: <20200605175200.GA5393@lca.pw> References: <20200521200513.656533920@linutronix.de> <20200521202117.763775313@linutronix.de> <20200605171816.GA4259@lca.pw> <20200605173622.GL3976@hirez.programming.kicks-ass.net> <20200605175200.GA5393@lca.pw> Date: Sun, 07 Jun 2020 13:59:53 +0200 Message-ID: <87v9k3jdc6.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain 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 CC:+ Alexander Qian Cai writes: > On Fri, Jun 05, 2020 at 07:36:22PM +0200, Peter Zijlstra wrote: >> > [ 9371.959858] asm_call_on_stack+0x12/0x20 >> > asm_call_on_stack at arch/x86/entry/entry_64.S:710 > > This is one piece of call from the warning call traces that introduced > by the patch which leads me to revert the commit in the first place. It > may or may not be the real culprit, but just wanted to highlight it in > case. Oh well. The warning is a storage check in the stack depot code, i.e. stack depot ran out of storage space. Even if that commit causes stack traces to be larger that revert does not make any sense at all and handwaving about recursions does not help either. If that commit introduced a recursion then that would have worse effects than triggering this warning. The difference between the interrupt stack switching introduced by this commit is that it generates another entry in the stack trace compared to the state before it, which obviously has an effect on the storage requirements in the stack depot. Thanks, tglx