Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp499260lqt; Fri, 19 Apr 2024 02:07:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXKfQz/WnBiSBsU6Yx6UAQOWdZcd2Tgg7pjYzOcvn+Sqf/zQEAvDhrtaLXWCD6SJBiEbFgtkERwhjsFQ2USHFViv3qH7ga9I/gurrPWVQ== X-Google-Smtp-Source: AGHT+IGiy+MSydai6mIqy+Dh4A7XZ3gDFsPHaDYP2pS2B1Qtq4kBcuH9ybr/fjFlK6RSYlDFm93C X-Received: by 2002:a05:6358:d59d:b0:183:a0ac:b5c2 with SMTP id ms29-20020a056358d59d00b00183a0acb5c2mr1825397rwb.11.1713517652123; Fri, 19 Apr 2024 02:07:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713517652; cv=pass; d=google.com; s=arc-20160816; b=lZ6Bz0ZtgBhW/Q68lGG7HozXFy6rRXFlvm897y5eNXI5lvVfy87hRYiFQZ8m40Bld1 bmRP1N98+mLYRHoAiNTt0HF9bd5ZwL7ItOLqPKZudHL7BMsUAFdRPKe5POkb3DKwDifH aIbn5qqIjiVmsbl6Du4JKtUrybbVnqa3q8601oN7DsPVBJMjgNbsAioO8rX5P3pvL/6p iPjhHtHjZ316imojHfMxTE+PkZLw3JD5XIrN5yJ69KrGTTYp2BHtejywzvEefZR+A6dX 5g5jzCGPp6Lguxh4N0XYLMQzCPsYT3zQZMj20hYxdMnHzkXT1+F7yXcgurdNlLzIpMHk hyXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=Slt31qUcXR41VCzHptxc5ElFV6zMN/8SWyRYMtvlgbo=; fh=HoT4SAQusgIuE0d/MUAFgZOxaeFJsQxcLSTnj1LTkgo=; b=MHvxhuiS0Ub+gFIc9pkBDNrKYc65d65q77U1HlU6sFUUoUqrbgua/nsHy3jeIdptYk lE9wywhId1AN1jROirB7LmWj/HZGVXKmLRfDrAqie2/3jByihhv24JfDsbS7ypSpRqKe b34IUA8dISl2TxQkyfU2+oV6ggwddIn+n9Nb6NJOS2zVwkM6fqoX6zFNS3wyDxaeBVf4 XarSzbiT0NMTV83sfO0bHGyk8Huwz7FsE5JNr7AD5XXmKmisGqzWRHQrlxZ+8LhZYuug ahiijo31Jdzpk+yr0eu7SlO28fSqaBq6BjjTiWhgYn1lYYnt8xjBA77/JGSo7Nahy2R1 CcEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-151214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o17-20020a05622a009100b00437c4cc0b11si1149319qtw.290.2024.04.19.02.07.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 02:07:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-151214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D00501C20F2E for ; Fri, 19 Apr 2024 09:07:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0246274C09; Fri, 19 Apr 2024 09:07:25 +0000 (UTC) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E324F7350E for ; Fri, 19 Apr 2024 09:07:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713517644; cv=none; b=Sn5si78VoVJDBMZKliI0VO8qe9SEsOCyd028e3zyu8vU+k2vt4abj1spnN4b1+/tgvIopxeu74lMPeiEtwnyeddhqXiKpgb3lvUFxLUj2jwLdyXxMLInnwloEENa6qJo0EIcxZlcnoeYiR2EMbW8X47iGRNrls9SMIThiaegWQg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713517644; c=relaxed/simple; bh=CfnZg8r/QZUEzgHHXpfTKLfEuUrj3HYN6sGnFATCDh0=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=NEoyw2cVdspCf7uIQaSJ3b5xLHo7BZerRzQPswiikzFkBUODoeywAEVN6gxDsQqJgV3UiipQTtPTzz4CGBVq1cgEYhMSM8pfs3pJ9ELUNr4uppELIoPh90O9rPM3Y1pxNhTzhTmXJxXpCI+KVEgWKJP+WpmyOfQi8fgzCga4ZLY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.17]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4VLTGr4Clqz1hwlS; Fri, 19 Apr 2024 17:04:20 +0800 (CST) Received: from canpemm500002.china.huawei.com (unknown [7.192.104.244]) by mail.maildlp.com (Postfix) with ESMTPS id 30D651A0188; Fri, 19 Apr 2024 17:07:20 +0800 (CST) Received: from [10.173.135.154] (10.173.135.154) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 19 Apr 2024 17:07:19 +0800 Subject: Re: [PATCH 2/2] mm/hugetlb: fix unable to handle page fault for address dead000000000108 To: Andrew Morton CC: , , , , , References: <20240418022000.3524229-1-linmiaohe@huawei.com> <20240418022000.3524229-3-linmiaohe@huawei.com> <20240418133817.afb65c8dcd11cfea7c686d25@linux-foundation.org> From: Miaohe Lin Message-ID: Date: Fri, 19 Apr 2024 17:07:19 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240418133817.afb65c8dcd11cfea7c686d25@linux-foundation.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To canpemm500002.china.huawei.com (7.192.104.244) On 2024/4/19 4:38, Andrew Morton wrote: > On Thu, 18 Apr 2024 10:20:00 +0800 Miaohe Lin wrote: > >> Below panic occurs when I did memory failure test: >> >> BUG: unable to handle page fault for address: dead000000000108 >> >> ... >> >> The root cause is that list_del() is used to remove folio from list when >> dissolve_free_hugetlb_folio(). But list_move() might be used to reenqueue >> hugetlb folio when free_huge_folio() leading to above panic. Fix this >> issue by using list_del_init() to remove folio. >> >> ... >> >> --- a/mm/hugetlb.c >> +++ b/mm/hugetlb.c >> @@ -1642,7 +1642,7 @@ static void __remove_hugetlb_folio(struct hstate *h, struct folio *folio, >> if (hstate_is_gigantic(h) && !gigantic_page_runtime_supported()) >> return; >> >> - list_del(&folio->lru); >> + list_del_init(&folio->lru); >> >> if (folio_test_hugetlb_freed(folio)) { >> h->free_huge_pages--; > > We should cc:stable and find a Fixes:. This appears to predate > 6eb4e88a6d27022ea8aff424d47a0a5dfc9fcb34, after which I got lost. I think this series can be dropped because this didn't fix the root cause. Please see my v2 patch for details. So this Fixes tag isn't needed anymore. Thanks. . > . >