Received: by 2002:a05:6358:9392:b0:b2:7f6c:8e3b with SMTP id h18csp5979rwb; Wed, 10 Aug 2022 13:29:40 -0700 (PDT) X-Google-Smtp-Source: AA6agR5PWCK6/2ZvaxSUM7BS9vwAFUkrEQLylbttqEx00K4E11Kn3uUFj+XMn+Vhr0Htz3ufA6se X-Received: by 2002:a17:902:f649:b0:16d:22fd:5c14 with SMTP id m9-20020a170902f64900b0016d22fd5c14mr29919972plg.98.1660163380348; Wed, 10 Aug 2022 13:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660163380; cv=none; d=google.com; s=arc-20160816; b=hi+do6tVVToOehUSxKBdZ5avXYWxH9yXcaEmIBMmCyIMXOhamGQWUkifZ8oFtPZLk8 dbR3Z2x96QlBJxuiT0FXzWEAdj9R1Ko3Cvqt+8Jv2sQEhrTE/OQClIWgDKtNkQ8EF+pO HXo/sZFy3zhsCa/2WJoLgk1rvVyGCoF5QBsDFp/+7CtRzM6lTMz8R4H3uilx/f7Kx+qX XxxsUYYbpzNUZYbHykR33Ne6yGdjSUFavppTnrhnlcgm3+K9VBpeC4Mn/dvV0aiHPfAP NyF+QaOXeTvn5iflKDzxRlQXwpQ1WuwAWJyb87oG20GkouHtq4bZd0D7L2XYzzj+k5oT KoUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4322khwaC/pzWPqvcZwsNsFu97u8Q1+hjk+YFwWEDbE=; b=ZYYbJwBTQURNA20Z1C2NGTpWt2AiT4Dur0XPeMYgjmGPEHPlrvDQQUMZFWNyfTxR2F 9bSPEfBKxNLot43LVqk8gjmjkI+W6DmeGzSTx59u5w/Dvpf8EXX3nZDKn+AN+RPs8WRW Ycc+6BKUPq+ZhXKH5JLtT+oV+01NJqRdof26ESALNIrUzge3PIYCeZ7P7dRlxRmZy/Kz MFxzTAUVEf7+V3wX3u5OKHBIOpTlemCJkQYOFrLTYZuvYdnhgK4+Tck/6z41aAGPOVUm zKjfbRaJ7rMc8/wxqM+xr1cPMDkvBpVoEQU6ia6CmCtAt+Xklkxp4Le+GS8WJW/4L//M y2sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Gsip4Q5P; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12-20020a170902f54c00b0016d3e1a3f90si21428036plf.328.2022.08.10.13.29.26; Wed, 10 Aug 2022 13:29:40 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Gsip4Q5P; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233329AbiHJU1Z (ORCPT + 99 others); Wed, 10 Aug 2022 16:27:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231804AbiHJU1X (ORCPT ); Wed, 10 Aug 2022 16:27:23 -0400 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C52E27176 for ; Wed, 10 Aug 2022 13:27:22 -0700 (PDT) Received: by mail-oi1-x234.google.com with SMTP id c185so19049413oia.7 for ; Wed, 10 Aug 2022 13:27:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc; bh=4322khwaC/pzWPqvcZwsNsFu97u8Q1+hjk+YFwWEDbE=; b=Gsip4Q5Pztucsw8+1VUWjFa2tgNUsfsXA9GXhWzh0z73XlAeElXI8HwWYLcJNR/go2 JxxuF01cLNcq3AZySdyRXS0CZ5KzDf8IhIsPO8Epxg8jdmCmWtRvQ7eoDCRMFNCbnpV8 Jbwx8gIoRtQBAudMnMwXhP92CyOmvfK9o3rLkkf3qLq4k7jnjwx3fsE2JLbAh/77T+07 ubwnvQVZ6PUvnKbEUW1Pjx8bYHavXJh3YM3Sj7IBZAVT4nYX3DbCbYQJpkeXTI6kTPBQ CtUV1tYONpDc5XdDonzfBQJkvW1JyoKK/C6KartUutE0iakGIhtDx0zFenPz/L+ubGLH k6Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc; bh=4322khwaC/pzWPqvcZwsNsFu97u8Q1+hjk+YFwWEDbE=; b=pWPwi//J1bYnwddi34CGCIksjjcN+JnSR87VGMAjHVlSV8S0wFYgymhWMx42eaJ/nY v3EKAhi0IyE+/MRarGAqm+JHN9gh7MuGPQX+6usUj7REMXk289QuhRNJ6dDoQygLze8m fQRHt9+Ui8BDMEz0tkQ+D8AqNboFu3GlPgswtLpTyiKvIwIjAnREb00HDI8mK2ewPi7Z rZHJq5SNnSiUpYnMAJ47eVAlZIMGRMTl1Mn/Zs5/WSIg6TG23HaMmEoBT9fjxKb2FQJE TAJjHNnwRtyK65975IPxkVFYGFCjwu+ENUiyXRzOJfKqQqqoeGlMoa2xRgR4K2doiv3d uUYQ== X-Gm-Message-State: ACgBeo0hUuamnzfWAqnH+K02YUktmxqkGWAltuPxus7M4oealvxEsgUU oWz43DM2CjUgcq7fRLtzwOLOpQ0wZZIt4zR8pLQICYqKpmQ= X-Received: by 2002:a05:6808:1a11:b0:343:1ae:87d2 with SMTP id bk17-20020a0568081a1100b0034301ae87d2mr2073811oib.281.1660163241746; Wed, 10 Aug 2022 13:27:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kallol Biswas Date: Wed, 10 Aug 2022 13:27:12 -0700 Message-ID: Subject: Re: mm/memory-failure: __get_any_page: unknown zero refcount To: "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Probably we are hitting a race condition. Upstream code has changed. On Tue, Aug 9, 2022 at 2:28 PM Kallol Biswas wrote: > > While running a memory RAS test on a new platform I encountered the > following on the 5.10.117 kernel. > > __get_any_page: 0x77df: unknown zero refcount page type 7fffe000000000 > > The address 0x77df000 is in a system ram area: > 00100000-5c9c0017 : System RAM > > The page is not a huge page, not on the free buddy list and not in use. > > __get_any_page() > .................. > if (!get_hwpoison_page(p)) { > if (PageHuge(p)) { > pr_info("%s: %#lx free huge page\n", __func__, pfn); > ret = 0; > } else if (is_free_buddy_page(p)) { > pr_info("%s: %#lx free buddy page\n", __func__, pfn); > ret = 0; > } else if (page_count(p)) { > /* raced with allocation */ > ret = -EBUSY; > } else { > pr_info("%s: %#lx: unknown zero refcount page type %lx\n", > __func__, pfn, p->flags); > > > Sparse mem configs are set: > cat /boot/config-5.10.117-2.el7.nutanix.20220304.1002776.x86_64 | grep -i sparse > CONFIG_SPARSE_IRQ=y > CONFIG_ARCH_SPARSEMEM_ENABLE=y > CONFIG_ARCH_SPARSEMEM_DEFAULT=y > CONFIG_SPARSEMEM_MANUAL=y > CONFIG_SPARSEMEM=y > CONFIG_SPARSEMEM_EXTREME=y > CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y > CONFIG_SPARSEMEM_VMEMMAP=y > CONFIG_MEMORY_HOTPLUG_SPARSE=y > > Can someone help understand why we have such a page in the system? > What the purpose is. > > Thank you, > Kallol