Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp224916pxb; Thu, 21 Apr 2022 22:19:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAZ1Sv6nONsK4boEmRjU55dFmXCmkX2f6QdPzZo3hPOC/UEtbbR18k9Q09mkYSUf568cWt X-Received: by 2002:a17:902:c2c7:b0:159:9f9:85f3 with SMTP id c7-20020a170902c2c700b0015909f985f3mr2658061pla.18.1650604779067; Thu, 21 Apr 2022 22:19:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650604779; cv=none; d=google.com; s=arc-20160816; b=H837SgTBgSxMoyMrL6h/+6pkn3hyb7qeyCBqgrrUci3eL5csR7ZMEdPh2Sc5+YM1y/ E/v3FHmYiXumfR3Nik5zdd5CeuFWHc0aOgMvSE/PFIs1AJLc9t3X+9MY0MC6Y4u8Et3l mOOQjbTQjwtHnNUn5cffwvbyy9dTOWjTR29Vl9Pc1iXQFev3jTlRyvsuAFUop4yhWAHS NNa2A4T6tmmv9O/tG2BXFgxn7jMSEm7YkG0L2+zRnyb20rgEhecEtlFMCYcRxizRVyN+ tXJ+fgFq5CFniGk7uD7HvrjWuijGlT3jMux4vMdRjOlqRxOJH+i5pyeVRnJuEbQXAA0T p8DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=i63ZkxNRlNHXco3+JoElc8N1jThvGEauBYk/v0lACNg=; b=usMAUrnkryHcM2N3BPwHRdikftHHHiHAYRUBUNLx2blCS8nwyNb6BlsjPF2QVTjN8H kYobUVA7j5GHBJQuLzvLRdVEbNgYkudOO1hEQithgvD91JtlLptOMvVv1ygQ/sUduN5r HMyrlw6RxGAUXiL6vM1albRixhh01QVWXTvE0BI3jr4V0Jwx7oVOTI9+J3xO0NpM6Znb HUN4Y8GaAiVIrPXd/Fc4AuSZmUXijxEdUsnoSa1H7mYuPpXXwB1tsTMmOpHwzbV2zW5M IwVWihx0y91sHpV6SWqWuWvl6J48pICCZAYNAduTzZKim8Gu2Zgxn7aFb/FU8h/oT3Z4 nMtA== 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 o8-20020a1709026b0800b00156f0783c58si6525274plk.47.2022.04.21.22.19.20; Thu, 21 Apr 2022 22:19:39 -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 S1376846AbiDUHYV (ORCPT + 99 others); Thu, 21 Apr 2022 03:24:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbiDUHYU (ORCPT ); Thu, 21 Apr 2022 03:24:20 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B4CA17079 for ; Thu, 21 Apr 2022 00:21:30 -0700 (PDT) Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KkTVR2F88zhXZq; Thu, 21 Apr 2022 15:21:19 +0800 (CST) Received: from dggpemm500013.china.huawei.com (7.185.36.172) by dggpemm500022.china.huawei.com (7.185.36.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 21 Apr 2022 15:21:28 +0800 Received: from [127.0.0.1] (10.67.108.67) by dggpemm500013.china.huawei.com (7.185.36.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 21 Apr 2022 15:21:28 +0800 Message-ID: <9f4a058d-1f6d-69ab-3c31-5817db7d1f90@huawei.com> Date: Thu, 21 Apr 2022 15:21:25 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 5.10] fix csdlock_debug cause arm64 boot panic Content-Language: en-US To: Randy Dunlap , , CC: , , , , References: <20220421033914.217622-1-chenzhongjin@huawei.com> <461fa8ba-82c1-73b0-b900-7fa1ffb774f9@infradead.org> From: Chen Zhongjin In-Reply-To: <461fa8ba-82c1-73b0-b900-7fa1ffb774f9@infradead.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.108.67] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500013.china.huawei.com (7.185.36.172) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS 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 Hi, On 2022/4/21 12:08, Randy Dunlap wrote: > Hi-- > > On 4/20/22 20:39, Chen Zhongjin wrote: >> --- >> kernel/smp.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/kernel/smp.c b/kernel/smp.c >> index 65a630f62363..1ce64de460d0 100644 >> --- a/kernel/smp.c >> +++ b/kernel/smp.c >> @@ -176,7 +176,7 @@ static int __init csdlock_debug(char *str) >> >> return 0; > > ^^^ This should be > return 1; > > since __setup() functions return 1 on success -- opposite of > early_param() return values. > Fixed in v2. By the way, below patch forced to open CONFIG_SPARSEMEM_VMEMMAP on arm64 from 5.12-rc3. By this __page_to_pfn won't call __nr_to_section and causes this bug. https://lore.kernel.org/all/20210420093559.23168-1-catalin.marinas@arm.com/ So this patch is only applied to 5.10-LTS. >> } >> -early_param("csdlock_debug", csdlock_debug); >> +__setup("csdlock_debug=", csdlock_debug); >> >> static DEFINE_PER_CPU(call_single_data_t *, cur_csd); >> static DEFINE_PER_CPU(smp_call_func_t, cur_csd_func); > > Thanks. > Thanks!