Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp19823rwn; Wed, 7 Sep 2022 19:04:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR6LG2q7EzZwJ8xGfWhnSQgOaxa7ZzWhJgNhGfxXW1+KpTpDbq2vd5LzzumQObYBIob0EB76 X-Received: by 2002:a63:6e09:0:b0:430:663:7757 with SMTP id j9-20020a636e09000000b0043006637757mr5614316pgc.340.1662602639907; Wed, 07 Sep 2022 19:03:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662602639; cv=none; d=google.com; s=arc-20160816; b=qi2aN8JkeldMN9kxTkrC6pnZavnE/adZOzoiHkAL+/NEwRfXwNStrwsOvcdLaFjmZB vU624GYaRjk4OH5W7xrIZUNvMZ9MftInQ4dU172Se+916toK/vve6pQKKxWayUZbQu+J vrsF4oeklV+bHKPUXPEH1vslTvEMzlB426pm8iC9norN8gZOHyX0dOKQPS1psXTpazMk y9sO7VKRv3AR/Lrqze4t9to7Fq8LJtKCYhKbFumTZpkTLO4TzJ6LsxzrD8i03mtnK9k3 iNG5K4g2WrZv6sMFAPV+s2QyzRH9gh3+0ryx94SZT7lU5BmRSltz+fvhvDb6bcsGBpth G8ug== 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 :cc:to:subject; bh=+/Lr+0j/kPr+STsPht/Bb/rrsmjLwg5kCPBoNwJAIEc=; b=NHtk5P8MmRTjeMSsMKVlt0eGODwFejVUGK66NYWi1ov3tgnlthHmi4DXJTZQirIm+d s6tdqzXWZLCYakoatB3c09HOsm91K847qvaAYlywmgxeVyLY0jzojg17Dg3kxxu9gJH0 cTFc7mj0q1iqyKW0vQq390f1QfiThGHhJoc+Ojr0tSUEJ6ZzhaUCRU6xOPmstXys6vmG AxJ/OevQNzZBBReTXuO9NH10hfj481yG3zWvLMjDFO1SfW9Ub+mJY6NoPDk/rkCnQNam ES8v+PG/k1OLdEaUVpwbMoCqpuZ7292rhmdqSO5ww9l6LFaOri6yjl2tIqyXo57EdFoS 2mCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a17090a928900b00202549ab87bsi836738pjo.31.2022.09.07.19.03.47; Wed, 07 Sep 2022 19:03:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229884AbiIHBrQ (ORCPT + 99 others); Wed, 7 Sep 2022 21:47:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbiIHBrP (ORCPT ); Wed, 7 Sep 2022 21:47:15 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 021F69C8DA for ; Wed, 7 Sep 2022 18:47:14 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MNMM55j6wzZcdy; Thu, 8 Sep 2022 09:42:41 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 8 Sep 2022 09:47:12 +0800 Received: from [10.174.178.55] (10.174.178.55) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 8 Sep 2022 09:47:11 +0800 Subject: Re: [PATCH v2 0/2] arm: Replace this_cpu_* with raw_cpu_* in panic_bad_stack() To: "Russell King (Oracle)" CC: Catalin Marinas , Will Deacon , Mark Rutland , , , References: <20220826095112.289-1-thunder.leizhen@huawei.com> From: "Leizhen (ThunderTown)" Message-ID: <4e153b71-5bb4-d2ee-1feb-0ffd33d48ef5@huawei.com> Date: Thu, 8 Sep 2022 09:47:10 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.178.55] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/9/7 22:13, Russell King (Oracle) wrote: > Please distinguish your patches/patch series between arch/arm and > arch/arm64. The two are maintained separately, and it gets quite > annoying to read messages nd then realise that they're not for 32-bit > ARM, but are for arm64/aarch64. OK, I'm sorry for causing you any trouble. > > Thanks. > > On Fri, Aug 26, 2022 at 05:51:10PM +0800, Zhen Lei wrote: >> v1 --> v2: >> Update commit message of two patches. >> >> v1: >> I'm analyzing a strange problem these days, and I find that there are some areas in >> panic_bad_stack() that can be optimized. That is, replace this_cpu_* with raw_cpu_* . >> >> Just optimization, it is unlikely to cause the following exception nesting, because of >> "lr : __bad_stack+0x88/0x8c". >> >> [20220819163739]Unable to handle kernel paging request at virtual address f7ffff94901b8048 >> [20220819163739]Mem abort info: >> [20220819163739] ESR = 0x96000004 >> [20220819163739] EC = 0x25: DABT (current EL), IL = 32 bits >> [20220819163739] SET = 0, FnV = 0 >> [20220819163739] EA = 0, S1PTW = 0 >> [20220819163739]Data abort info: >> [20220819163739] ISV = 0, ISS = 0x00000004 >> [20220819163739] CM = 0, WnR = 0 >> [20220819163739][f7ffff94901b8048] address between user and kernel address ranges >> [20220819163739]Internal error: Oops: 96000004 [#1] PREEMPT SMP >> [20220819163739]Modules linked in: ... >> [20220819163740]CPU: 2 PID: 1272 Comm: 00002SWDLMain Tainted: G W O 5.10.0 #1 >> [20220819163740]Hardware name: hisilicon,hi1213-fpga (DT) >> [20220819163740]pstate: 000003c5 (nzcv DAIF -PAN -UAO -TCO BTYPE=--) >> [20220819163740]pc : __bad_stack+0x4c/0x8c >> [20220819163740]lr : __bad_stack+0x88/0x8c >> [20220819163740]sp : ffffff953ffa8160 >> [20220819163740]x29: f7ffff953ffa8120 x28: f7ffff94901b8040 >> [20220819163740]x27: ffffffeb72ea6940 x26: ffffffebeee6cf10 >> [20220819163740]x25: ffffffebef627000 x24: 0000000000000000 >> [20220819163740]x23: 00000000600003c5 x22: f7ffffebeee11904 >> [20220819163740]x21: ffffff953ffa82b0 x20: 0000007fffffffff >> [20220819163740]x19: f7ffffc0133ab898 x18: 0000000000000000 >> [20220819163740]x17: 0000000000000000 x16: ffffffebef32f0a0 >> [20220819163740]x15: 00000000624057a0 x14: 953325a7da350fb3 >> [20220819163740]x13: 09bbbe32ce2b3c11 x12: c15a0e2d1991997b >> [20220819163740]x11: 0bc8be839e7850d0 x10: cafa1cb223203045 >> [20220819163740]x9 : f36bed299e5840dc x8 : ffffffc0133aba48 >> [20220819163740]x7 : ffffff953b1b0480 x6 : ffffffebef3e1000 >> [20220819163740]x5 : 0000000000000000 x4 : 0000000000000001 >> [20220819163740]x3 : f7ffffc0133ab750 x2 : 0000000000000025 >> [20220819163740]x1 : 0000000096000004 x0 : ffffff953ffa8160 >> [20220819163740]Call trace: >> [20220819163740] __bad_stack+0x4c/0x8c >> [20220819163740]Code: a90d6ffa a90e77fc 910543f5 d538411c (f9400794) >> [20220819163740]---[ end trace 07532bfa2c24851c ]--- >> [20220819163740]Kernel panic - not syncing: Oops: Fatal exception >> >> Zhen Lei (2): >> arm64/traps: Replace this_cpu_* with raw_cpu_* in panic_bad_stack() >> ARM: replace this_cpu_* with raw_cpu_* in panic_bad_stack() >> >> arch/arm/kernel/traps.c | 4 ++-- >> arch/arm64/kernel/traps.c | 4 ++-- >> 2 files changed, 4 insertions(+), 4 deletions(-) >> >> -- >> 2.25.1 >> >> > -- Regards, Zhen Lei