Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp639222pxv; Thu, 22 Jul 2021 08:44:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT+2PQnJyJ3JL6HQTIG5m8vzRDHQUhpeKRW9jWALldk0hP8Co4Gtq44zl9osdtaf6h2CWK X-Received: by 2002:aa7:c04e:: with SMTP id k14mr273602edo.193.1626968698033; Thu, 22 Jul 2021 08:44:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626968698; cv=none; d=google.com; s=arc-20160816; b=jG7G9UbVHLr62W95A3wlk/RkYK7RoAp0yvl+svfo94JZksLHwVLwavTSSi6CaqXVJe Vq01naIRkHm7Br5R6BJ/ibBcU1gHBFQOrPH7P4iLiwQjT3rWwe2F4bhCX0/w+JOYzu42 ctHEcnavXd31WCpoHPNsspxg2ymaklkCMJEQfzUIkgBPX1kLOMFwX9I5G/GuNXXDWD+M KmdI5GwNE+SdLQeBDa9N2Gy5EuIiLXbYppNPaNgHW6jCqTDKLasLAIWA0bmucBHsxbA7 OGyAuZTwKiMA/QQomC1hL8Cnan/U3/8fH2dB5zmeYxQksEijOztc/JD32SqGQpGc/Xdu IupQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=F14I6w63OMCTf1VCPUPojgFxjHUbbfpC/U6TaLNfvp0=; b=0/M2Y8I1icGDeqMyQJjMlLMYLTvrgoNr1HngSyOYVBOTcWY2UT7r3+fFirRa0wfTzo sIBIl+8ME9UTxkZuGf9LGfRW0IsP+bJ0xwbvSw0VTZuxEXpKZD5dIY8o1FCyROS+HLTp Ts/iI478ANAQJvnfhgaYfZAez2PsuEalVH1iRue9C8iUE4HtD69yFJJBaz+8EQAHhNZY WRTytB+EMbgmjgAYbCW0K2Ny3e8vyzDy/b9ixkB9kHGvFK1IqGZPOvD7UIKtkGtPlGaK GcYwFkPX8wHIRAbA6N9vtKH/OKnCqM5XmtgBXCkf1jtN4lV/QVUzeWctkYHDpZ6Zc5qT lgSQ== 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 y22si30219242edu.579.2021.07.22.08.44.34; Thu, 22 Jul 2021 08:44:58 -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 S232421AbhGVPCX (ORCPT + 99 others); Thu, 22 Jul 2021 11:02:23 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:48365 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230343AbhGVPCX (ORCPT ); Thu, 22 Jul 2021 11:02:23 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4GVxYB2TV3z1qy4L; Thu, 22 Jul 2021 17:42:54 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4GVxYB0jbnz1rmYB; Thu, 22 Jul 2021 17:42:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id bY5aEtjrg-3r; Thu, 22 Jul 2021 17:42:53 +0200 (CEST) X-Auth-Info: PIjtPIK9afYCsoiZrRCgLg1D74hHiwqDc3Ol8FTCod9odBW8gn7GZlgUh/jJPM+a Received: from igel.home (ppp-46-244-188-81.dynamic.mnet-online.de [46.244.188.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 22 Jul 2021 17:42:53 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 8D6C92C2659; Thu, 22 Jul 2021 17:42:52 +0200 (CEST) From: Andreas Schwab To: Jisheng Zhang Cc: Atish Patra , Palmer Dabbelt , tongtiangen@huawei.com, Paul Walmsley , Albert Ou , linux-riscv , "linux-kernel@vger.kernel.org List" Subject: Re: [PATCH -next v2] riscv: add VMAP_STACK overflow detection References: <87bl6yrcmd.fsf@igel.home> <20210722213724.1f12a0e7@xhacker> X-Yow: Don't hit me!! I'm in the Twilight Zone!!! Date: Thu, 22 Jul 2021 17:42:52 +0200 In-Reply-To: <20210722213724.1f12a0e7@xhacker> (Jisheng Zhang's message of "Thu, 22 Jul 2021 21:37:24 +0800") Message-ID: <87zguexslf.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Jul 22 2021, Jisheng Zhang wrote: > I think we need to pin the stack before calling get_wchan(), could you please > try below patch? Thanks, this fixes the crash for me. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."