Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp878989lqp; Thu, 21 Mar 2024 20:25:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkpNLJuY+mFyQRM8uOVgsnEA0RfLauOGhclAMZSUaGzeuVBcLezfc5fA2phrInFmQ2xsWQbS2vZLOikbCeEYLklaqjoAIcCOE4bW270g== X-Google-Smtp-Source: AGHT+IGbXhVvXdKQc1Vg2FRVH6iXYS89mpJXvjZ9qvrfwjpQ1nynlQg77crux8Cxzp0bMGaCEFjb X-Received: by 2002:a50:9b4c:0:b0:56b:b698:accd with SMTP id a12-20020a509b4c000000b0056bb698accdmr731386edj.25.1711077905679; Thu, 21 Mar 2024 20:25:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711077905; cv=pass; d=google.com; s=arc-20160816; b=dsro/0GOKZ/tf1hOJ5uE1WWnvZYe8jZkvWBRl94+nVdCfjsjsQZ/Ql4Q4c2VCr9F5G R2ZUqoWh9KnbCfr7o2N/y/8DMtWi3yse0x/JSl3AmVJ+T2iOmB8im64ICbU0ZDpcZsUp oRfzBGYWaJlQAhOHtLMyoGzpYYpXY7IzRcgsofvuLs/9CIWiAFovmlUNfssgthOyUeAc eG8zVWc9VLFAhisC30B2YBIunAVtPEzl7DoyolmC/rn0Oayfvb//QFo+LNIfsGWzJ8Fk j2sdNGSIccGnJ/9D6IafAVKgLTdt8KJcCZGL2oh730eit8t0o53ULu0RmwNfsGIofEZx e/YA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=9XPjD+HP21f4zddlLmex6fWKZNAEjxzYlyxyr/LxtsQ=; fh=pxp100u7vwG0/vKaUmXaXAh5tTrlX4vifzIwSaUnwzM=; b=Nh5KG4oIoT0NIxbjzHy25PAQZSK6gk1KpGXusk3MbL1H5pMmUXfwWBVEL0s+WXOikw bQlK6Y/mL6Fj3DMpyuui1OddQr03N8w8BfNRX2JxgdPyG28rQbT+Vuefpq7Gxs5ZTesw OdZSWZoBrLiCcuLc0+74ZxVhZVG8PU8tYHREx2Wct0XkI2WOBxNn8w4F3v5G2nPbm9i7 xMbIM9+JNIfWoRXT5Y4IiWYNQIxhqqE9k7brzNmIAnK/ZQR1qjqtV1AsSq9T4YwSYcfJ NGroNG7E8HNaQa8Bu6DHb+a73ggwwyONJ1O876HVnUhv/T/psL9hGURSqxzMsMsznLGD 6p/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=UVJ+CcqO; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-110901-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110901-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t11-20020a50d70b000000b005686b169b20si501867edi.354.2024.03.21.20.25.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 20:25:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110901-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=UVJ+CcqO; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-110901-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110901-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 602E11F24830 for ; Fri, 22 Mar 2024 03:25:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DD608F44; Fri, 22 Mar 2024 03:25:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="UVJ+CcqO" Received: from out-188.mta1.migadu.com (out-188.mta1.migadu.com [95.215.58.188]) (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 C290D8BE0 for ; Fri, 22 Mar 2024 03:24:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711077899; cv=none; b=iBack1afHNiWOveuxgpqNll6Dufxuld7VwCX8u9BxQ6+e35WqS/Q9eQRZL6xkEyiu3RouNyWiu/wI0Z0KsgRxQRgvRSTF+yaoBOZsKb8SY+vEq/x0evJYLphbF5SJM/XSuyVpCqEU+HgVrR+TkNjhZDnewQkgn6CEDwvV3v/rvc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711077899; c=relaxed/simple; bh=9XPjD+HP21f4zddlLmex6fWKZNAEjxzYlyxyr/LxtsQ=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=cM6YJsM4Vr/oSj1m6URO/RQJ/8p7saflBG469tRf68oBin0Q2H7p5OOk1TiGoK86Ttmbk3Ei16U/ImGLBCvy+LiADqWuCEfwUc4Umag65iR97xIOJUtiJh6+0zYGhrrazqzCzV12m+yThsCGqZMvTZDUpp2u/vAZ6O1p6zoy1d8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=UVJ+CcqO; arc=none smtp.client-ip=95.215.58.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1711077894; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9XPjD+HP21f4zddlLmex6fWKZNAEjxzYlyxyr/LxtsQ=; b=UVJ+CcqORFfUVHdqZRyiE8nwhY51TtQGbRVq27cC7AtHLcN2BtsZkcd8Wj15Eni/xVSpn/ Ptaw19McrVffmH9YvE67dyFLMe4B8su+FODJYCUsqLYyT4UB0jyY5mfLMJP/E53NL1UbsW jOn93oXrVO8Vw5KqTRsQG2GX8StVyiA= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Subject: Re: [syzbot] [mm?] kernel BUG in const_folio_flags X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: Date: Fri, 22 Mar 2024 11:24:10 +0800 Cc: syzbot , David Hildenbrand , Matthew Wilcox , Andrew Morton , LKML , Linux-MM , syzkaller-bugs@googlegroups.com Content-Transfer-Encoding: quoted-printable Message-Id: <1349A15A-341F-4EE4-AD40-805A97A9FFD1@linux.dev> References: <0000000000006cfe98061423cde7@google.com> <812E97E8-668F-414D-9480-1D284834A034@linux.dev> To: Oscar Salvador X-Migadu-Flow: FLOW_OUT > On Mar 21, 2024, at 18:20, Oscar Salvador wrote: >=20 > On Thu, Mar 21, 2024 at 05:49:49PM +0800, Muchun Song wrote: >> There are some more page dumping information from console: >>=20 >> [ 61.367144][ T42] page: refcount:0 mapcount:0 = mapping:0000000000000000 index:0xffff888028132880 pfn:0x28130 >> [ 61.371430][ T42] flags: = 0xfff80000000000(node=3D0|zone=3D1|lastcpupid=3D0xfff) >> [ 61.374455][ T42] page_type: 0xffffffff() >> [ 61.376096][ T42] raw: 00fff80000000000 ffff888015ecd540 = dead000000000100 0000000000000000 >> [ 61.379994][ T42] raw: ffff888028132880 0000000000190000 = 00000000ffffffff 0000000000000000 >>=20 >> Alright, the page is freed (with a refcount of 0). >=20 > Yes, basically the page changed betwen folio_test_large() (returned = true > for PG_Head) and the call to const_folio_flags() (which now returned > false for PG_Head). >=20 > As David pointed out, Willy is working on making PageHutelb more > robust [1]. >=20 >=20 > [1] = https://lore.kernel.org/linux-mm/20240314012506.1600378-1-willy@infradead.= org/ Sorry, I am not on the CC list, so I didn't know this. But thank you and David for this information, I think it could fix this problem. Muchun, Thanks.