Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp948917pxv; Thu, 22 Jul 2021 17:02:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/D/fIz2bLlQSv31DX+e5+PW66SSyPVg4GSU+0wgreR6kTVOqsqgOp5OZy/WR46Dnw/vc1 X-Received: by 2002:a92:b111:: with SMTP id t17mr1726871ilh.208.1626998528071; Thu, 22 Jul 2021 17:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626998528; cv=none; d=google.com; s=arc-20160816; b=a3mE0qJKYi/GNDgldJg9ca3SkhmbgWjrSR75JS+rIC2utoRh8H9vaFyXI2xHpwdl2H gm4u8zqBDYZWUZMMClMOgpe1cm+mHWo/xVdQEFozZj+GLoMvvU9oo67rnJ7LMVoWI1hv XVEyIqtYlbpiU+NX92NnQLYYNnbQQ3f5No+FYnJPkdaFaS1UUx0BhIyjSdriVCpbulCg JIvs/56DDfdbqeSjn67CLhq3afuIOEmU/Bl0X7dHVNiXwXd5SerW3PisvJNWPUqMoWMJ 87rNjglzsUrQpnT0cXx4DNj7JMjNPUaLxMp0li99bHak7mS/64zq/aS4FnbsOFkr88HC diIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=yUfE01syks9KMUP1WZewBPR3Ce93PpQgYz2u0Qf4kxE=; b=Kmd0F5MK2GKuX0MZnytbiMKNBgZbT2g2Gwxsg9NMAMWJmccowq6udJeWOavjf3EFtp RPs8Sv7tVnaCJc7od0xMaGX9vjgDbFzetqMfSg1XmbkUmRRBlFSLN8clfHPE+Suq4m38 G4fpCuSUfsLJulahOzg6wD1ZTTxTDFhg22X6IttR81gwfLqr5IvKvqaC/I14sct4/O/0 PziFvUDh+DD2AlWgR60iiweCIJKB9FKqOCtvPKZqf0G29B3kW5Wa38+53hNJnmjfyg5b TMOGdm5e0h//d0+a/lAOP7nTL2CePubtcpX7PkS01xUbBBbKIrhnDbdaEbLOl/VV7Cpd Kjfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mail.ustc.edu.cn header.s=dkim header.b=jO9pRCzZ; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mail.ustc.edu.cn Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si13785941ilc.19.2021.07.22.17.01.54; Thu, 22 Jul 2021 17:02:08 -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; dkim=pass header.i=@mail.ustc.edu.cn header.s=dkim header.b=jO9pRCzZ; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mail.ustc.edu.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232728AbhGVXUI (ORCPT + 99 others); Thu, 22 Jul 2021 19:20:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232550AbhGVXUH (ORCPT ); Thu, 22 Jul 2021 19:20:07 -0400 Received: from ustc.edu.cn (email6.ustc.edu.cn [IPv6:2001:da8:d800::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A762FC061575 for ; Thu, 22 Jul 2021 17:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mail.ustc.edu.cn; s=dkim; h=Received:Date:From:To:Cc:Subject: Message-ID:In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=yUfE01syks9KMUP1WZewBPR3Ce93PpQgYz 2u0Qf4kxE=; b=jO9pRCzZna0F5kbbYf3mJWRud3oABY3Kw/caD3ePYSzhQXExcP 2uZEjm9gQm/4VMuekv/CilumiGy7sK0Gc5H3p46XaJCFAOpQjqnFZ7uMbWRy3BfM iGEfulV+slHfGMDtpOHXNO/pkEnalXzMZd4HXKrEZqilo0jOhM/EjSL/4= Received: from xhacker (unknown [101.86.20.15]) by newmailweb.ustc.edu.cn (Coremail) with SMTP id LkAmygCn2VWaBvpg4JUuAA--.7569S2; Fri, 23 Jul 2021 08:00:27 +0800 (CST) Date: Fri, 23 Jul 2021 07:54:32 +0800 From: Jisheng Zhang To: Andreas Schwab 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 Message-ID: <20210723075432.098634a2@xhacker> In-Reply-To: <87zguexslf.fsf@igel.home> References: <87bl6yrcmd.fsf@igel.home> <20210722213724.1f12a0e7@xhacker> <87zguexslf.fsf@igel.home> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CM-TRANSID: LkAmygCn2VWaBvpg4JUuAA--.7569S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUU5Z7k0a2IF6F4UM7kC6x804xWl14x267AK xVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGw A2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r4j 6ryUM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7xvwVC2z280aVAFwI0_Gr 1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJwAS0I0E0xvYzxvE52x082IY 62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7V C2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI48JMxAIw28I cxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2 IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc40Y0x0EwIxGrwCI 42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42 IY6xAIw20EY4v20xvaj40_WFyUJVCq3wCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E 87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07j189NUUUUU= X-CM-SenderInfo: xmv2xttqjtqzxdloh3xvwfhvlgxou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Jul 2021 17:42:52 +0200 Andreas Schwab wrote: > 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. > Thanks for testing. I will send out formal patch later Thanks