Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp72087pxb; Tue, 14 Sep 2021 19:02:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoUXb8Aq3MXJrlCyPPdw9QyfFJRjRpGhZXLGq2D09kW0r5LdvFPVgmTRZ2k14L7RG21Nz2 X-Received: by 2002:a05:6512:38a8:: with SMTP id o8mr15921712lft.97.1631671327052; Tue, 14 Sep 2021 19:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631671327; cv=none; d=google.com; s=arc-20160816; b=EosJzVkOPJgYDQXkK0m7c6FKtHT1XhtVC9Nio6Oa0CU2elN+iqnS5UNx0IiCgssRmV hYpkqAsvHLjxhqzJgBPOa2oHufn0XjHkwwwe+A6fDocMjRGpe7V2HQCsStGUAAkx4YwC qQ7NhyXFWq5Pvj3ioh6BZoCAbjXtW4OtW9NLP91tfLOvuFmBDVr1Tpo0mGc7azPXSfzB gdV6tlbTa2vTJWAK5Q5vL2PSJc7WO3zUUGSXTFNvOzzhGxzCLabffzbOivCOguYbG05N ZJ69FR3yrKy1oUBt4KYfp4wDvX0JZoQXg+KkLDSa5CyeTzZPiM0AiFelWN8Zb96aS0uk YaXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject; bh=xVJ62vEvCcMJTKzxifmi8FoguHOOdHAA8W30TefaLGk=; b=fBPHe7V9WHkONp1kKQ4wQSuRzLq5ekA9z7uV+QtCy7XoUq0dh8emo4WWT8B7P+VAqp VHQzGumTBvNqo3xK8efzJAHWApFn/4j7cVNpMbV0rPS9p2vNmZ9qASb0A2Vl9ox5QMvi 6GX/L7nMgGZhRORTY6ivIu26l8lPe4cwrDOLb5RKqdeD3oH9QqaZbL+BoU+oVQ5i9aXf ed/bkGw5ImjUaAK+WTWGn6Elwwkfg70L2rO24OA8R5CdO+jpHz6wUXEXTJ4f8UKv68CR qqXIO9q6n34+2fg5VPf++vcr8MkAUGig+d1iLNXcQr24b+CBqNlvavmJ0kx2XXt4sTtK EUmg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si15405567ljd.608.2021.09.14.19.01.33; Tue, 14 Sep 2021 19:02:07 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234031AbhIOB55 (ORCPT + 99 others); Tue, 14 Sep 2021 21:57:57 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:59184 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbhIOB54 (ORCPT ); Tue, 14 Sep 2021 21:57:56 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R761e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04407;MF=yun.wang@linux.alibaba.com;NM=1;PH=DS;RN=20;SR=0;TI=SMTPD_---0UoQf.V6_1631670993; Received: from testdeMacBook-Pro.local(mailfrom:yun.wang@linux.alibaba.com fp:SMTPD_---0UoQf.V6_1631670993) by smtp.aliyun-inc.com(127.0.0.1); Wed, 15 Sep 2021 09:56:34 +0800 Subject: Re: [PATCH] perf: fix panic by disable ftrace on fault.c To: Dave Hansen , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , "open list:X86 MM" , "open list:BPF (Safe dynamic programs and tools)" , "open list:BPF (Safe dynamic programs and tools)" References: <09777a57-a771-5e17-7e17-afc03ea9b83b@linux.alibaba.com> <4f63c8bc-1d09-1717-cf81-f9091a9f9fb0@linux.alibaba.com> <18252e42-9c30-73d4-e3bb-0e705a78af41@intel.com> From: =?UTF-8?B?546L6LSH?= Message-ID: <4cba7088-f7c8-edcf-02cd-396eb2a56b46@linux.alibaba.com> Date: Wed, 15 Sep 2021 09:56:33 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <18252e42-9c30-73d4-e3bb-0e705a78af41@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/9/15 上午12:16, Dave Hansen wrote: > On 9/14/21 12:23 AM, 王贇 wrote: >> >> On 2021/9/14 上午11:02, 王贇 wrote: >> [snip] >>> [ 44.133509][ C0] traps: PANIC: double fault, error_code: 0x0 >>> [ 44.133519][ C0] double fault: 0000 [#1] SMP PTI >>> [ 44.133526][ C0] CPU: 0 PID: 743 Comm: a.out Not tainted 5.14.0-next-20210913 #469 >>> [ 44.133532][ C0] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011 >>> [ 44.133536][ C0] RIP: 0010:perf_swevent_get_recursion_context+0x0/0x70 >>> [ 44.133549][ C0] Code: 48 03 43 28 48 8b 0c 24 bb 01 00 00 00 4c 29 f0 48 39 c8 48 0f 47 c1 49 89 45 08 e9 48 ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 <55> 53 e8 09 20 f2 ff 48 c7 c2 20 4d 03 00 65 48 03 15 5a 3b d2 7e >>> [ 44.133556][ C0] RSP: 0018:fffffe000000b000 EFLAGS: 00010046 >> Another information is that I have printed '__this_cpu_ist_bottom_va(NMI)' >> on cpu0, which is just the RSP fffffe000000b000, does this imply >> we got an overflowed NMI stack? > > Yep. I have the feeling some of your sanitizer and other debugging is > eating the stack: Could be, in another thread we have confirmed the exception stack was overflowed. > >> [ 44.134987][ C0] ? __sanitizer_cov_trace_pc+0x7/0x60 >> [ 44.135005][ C0] ? kcov_common_handle+0x30/0x30 > > Just turning off tracing for the page fault handler is papering over the > problem. It'll just come back later with a slightly different form. > Cool~ please let me know when you have the proper approach. Regards, Michael Wang