Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp346352pxu; Tue, 1 Dec 2020 12:45:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJz0e6wvhd90Q2RLFwNRY/Facwq3SU2ra3139zLa3Hu5eQwF6Vh4ByyJKOiSVVqWQ2pe4UDY X-Received: by 2002:a17:906:33d4:: with SMTP id w20mr4704970eja.396.1606855557483; Tue, 01 Dec 2020 12:45:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606855557; cv=none; d=google.com; s=arc-20160816; b=wroFE4pMgEuDl0EC6ra5yuFGCDLycdbm/URURH0erjgILfk8c9FRCAZksT7E0GtVpa U5aEjGaRCVV83ax3+WV5KSHaTNp3KrRAmAlny5u6RK09c0l2hJvAzQfKaYHRNq3/gEA7 OoBpCx37IYkwT6pYgTQGXViiqL7c2LnBWIX7B/AlMZAMjjptos5jcLVb76gPrtdLJPNH 3KMmAYBmD5Mf+NtbhBhO7xaLfDJmUkeQBY2GYMh14OWOS8RpTU4X2D0fC4Qy+ZwtHTwX dTuDbJDey1/rNAKqH5GYOR+lm/xlmGFp7l4KlSyEZuyN/r7k3LTOjrPpeoleKxzB6FDA ydng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0RBtUKeaPvU/GzP+jMS3Dsfo2rIt9YBehMmbHfwGd7A=; b=X8INKrakvETsro4b3IsM7uLaeHerOW3+3wubEon3SjivSW1yZ+mh0NPhGv66HKBz/X AhbpHSrQCYVDCDei8i0sOxjDQWvL7j7RCoN3pdkQMr8b/anpN9uFzMseHqyisFsZzHyw 3XNxle0UrK3RCmquQQNI8M5PUMHyqcPH9O03UJPzxBRGCfKs07qyq1a1sYBHYHvmJ5r5 bTMmdUFec08C/uxDtUHQOoXYOosUaVeJs1MVBc+wk5mXrfRB499RYiIsfPfA4tkjK/+b wbKH0zC7aS5ukeN+OfeOHxAc8JW+ZLQ1nXtXZ+jL0Lhj+jJUiYFlymOT2bzbwFHqVLuu LTTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=TqhVp2wu; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r12si611003edy.447.2020.12.01.12.45.33; Tue, 01 Dec 2020 12:45:57 -0800 (PST) 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; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=TqhVp2wu; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727914AbgLAUn1 (ORCPT + 99 others); Tue, 1 Dec 2020 15:43:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725977AbgLAUnY (ORCPT ); Tue, 1 Dec 2020 15:43:24 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E8D7C0613D4 for ; Tue, 1 Dec 2020 12:42:44 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id f23so7151100ejk.2 for ; Tue, 01 Dec 2020 12:42:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0RBtUKeaPvU/GzP+jMS3Dsfo2rIt9YBehMmbHfwGd7A=; b=TqhVp2wuukokz3jQZaxuijfGTg+Cyjvo8mdtdphab3ayx20SLvi+f40TsI25kmNJeL 5M2h1btbRcDdel8DD9g99aMFTOgPjufRoT+EAKc/IvZnOuthenykWAdJLoYk0R/AMnzc K3phAD+e/oP8ciIYw9uLyiviA2Opl7uz1mGiZTCXW6KNWaaKWvJDMnRH412k7nAhGIvi LWMYa9mqdQDpXUMm7q1C4JZCnxUAu/9zDzN9f8eWCdw3l2y8vrFW2JrLMjGgkHvsEbY/ yVTXH2NGH0EKQdqJ6YQ7eenVmrU7rvYcu2VsIyB2QYSgs9eiMcblah5Mn7uDjxkqsjnu NpUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0RBtUKeaPvU/GzP+jMS3Dsfo2rIt9YBehMmbHfwGd7A=; b=VWBSDjEEcYaI7+YLPKFn1XQVAM6hbWjPEkJZ8kHAeHVvBNucOfbkxsCkSzJzZE5DxT vlq/1Bb7QPUUtnjQyEWTd4QD0Ii7DrWtt/XcNX8n1kqT+uodRoRnY0FmCyqc00kHeQkE qyRu7rN457navK7Ycdh5uH3KzaBx49et3bKdkwkcVo9Etz9lSwg6rDAkaVJe4P99yfkx dYdXUL+7yXCHz9q/ENT4CLSyvNj4X6danEM7dEEB6lO/t4oOdkioN749DvfTQqZjrWtu wR30LVAyJj5shYGL77ZRAL9DSXhQSgxYXStnANedHgz/POIBAjxe7tfqHwgCpUcC5hgi hQHQ== X-Gm-Message-State: AOAM530t0fr+bw7tt0W9j1D6r/dC1T9t51wVDFcb+Jc0X1cLyiNBCUb+ PPcdlKmNmT+tVQ/HlmjLf2UB3/1eA4n02BjsPQTwBg== X-Received: by 2002:a17:906:c51:: with SMTP id t17mr4830318ejf.523.1606855363156; Tue, 01 Dec 2020 12:42:43 -0800 (PST) MIME-Version: 1.0 References: <20201201022412.GG4327@casper.infradead.org> In-Reply-To: <20201201022412.GG4327@casper.infradead.org> From: Dan Williams Date: Tue, 1 Dec 2020 12:42:39 -0800 Message-ID: Subject: Re: mapcount corruption regression To: Matthew Wilcox Cc: "Shutemov, Kirill" , Linux Kernel Mailing List , Linux MM , linux-nvdimm , Vlastimil Babka Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 30, 2020 at 6:24 PM Matthew Wilcox wrote: > > On Mon, Nov 30, 2020 at 05:20:25PM -0800, Dan Williams wrote: > > Kirill, Willy, compound page experts, > > > > I am seeking some debug ideas about the following splat: > > > > BUG: Bad page state in process lt-pmem-ns pfn:121a12 > > page:0000000051ef73f7 refcount:0 mapcount:-1024 > > mapping:0000000000000000 index:0x0 pfn:0x121a12 > > Mapcount of -1024 is the signature of: > > #define PG_guard 0x00000400 Oh, thanks for that. I overlooked how mapcount is overloaded. Although in v5.10-rc4 that value is: #define PG_table 0x00000400 > > (the bits are inverted, so this turns into 0xfffffbff which is reported > as -1024) > > I assume you have debug_pagealloc enabled? Added it, but no extra spew. I'll dig a bit more on how PG_table is not being cleared in this case.