From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 821BD24397A; Mon, 23 Feb 2026 13:46:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771854384; cv=none; b=bjzAmNXVPbJWDjaY7qNL9ZBE/ekLK3xwgqBei8p0J50PsSam0X8BmsI3BZt0AjmFIYWCin++rLZ7UUnax5Wwgs70D/e4aoGQa4yymFce9gtF+6HEsQqnAFp2CRP0yc0dVJm+HFgDubqPNAJSzYP9TjE0zQ/JoqVlOYZzcLHTAs4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771854384; c=relaxed/simple; bh=AslV2qA63gUWoHS9QZYmMq0vrpv1g+5PpOK6LBBpAsY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nm7jvZS65XPLGqMHF5XjV3h84xgJddVUYm5D7o+cpeyI9HDmPypQ0PVi2rC82yLaAS3usKcAyn6gs3/kyFF49Ukt4ygQFjGZCQJFfMR2p5h5pt+wWcNSXFHOm0ylbar9sIhNdini3mXD6ke20t9oN8c8V2csvtW1L575m/dRUVw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=cszANuHk; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="cszANuHk" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=JJ4KtBZ4k7mPQNvSdOKma/KrL8oFM/9ZCZpnL0vUUmQ=; b=cszANuHklU70b08hJly+nRjFHg WEQcf911XV0uvJ2N74cAit4X9NPl4xV/giOETJPgb0YHIS521/q+bYzLZEUzd6pXStd06OMni3Eu5 mdT5LXABrkMHMDrT2Ju6QHSPhM6Ej1zfaMmrR+ZCGYYsKMgB3p0yVh1HY6u6aL8J6m1BuS9pUgrjA 81cuqWcc4U43+rrQruzTuAbrV9QaHXpKpD4f/2gAXhfdWy+OCrDVjEsMtAwibGd00Gsz4PnbtLBkn KXNs6D6p62k6+uYouKOuuxvOV3ttPQzzsK/RwvUZJi+Ia19k8oBEa9AQFTF9aY1xZ5hgD4P62KR3R 0xozqhkw==; Received: from hch by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1vuWGG-00000000PAF-25JZ; Mon, 23 Feb 2026 13:46:08 +0000 Date: Mon, 23 Feb 2026 05:46:08 -0800 From: Christoph Hellwig To: Zi Yan Cc: linux-mm@kvack.org, David Hildenbrand , Andrew Morton , linux-erofs@lists.ozlabs.org, linux-block@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Lorenzo Stoakes , Baolin Wang , "Liam R. Howlett" , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Suren Baghdasaryan , Michal Hocko , Brendan Jackman , Johannes Weiner , Jason Xing , Yushan Zhou , "Masami Hiramatsu (Google)" , Vlastimil Babka , Christoph Lameter , David Rientjes , Roman Gushchin , Harry Yoo , Christian Koenig , Huang Rui , Matthew Auld , Matthew Brost , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Jens Axboe , Christian Brauner , K Prateek Nayak , Davidlohr Bueso , Eric Sandeen , Greg Kroah-Hartman , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Carlos Llamas , Alice Ryhl , Damien Le Moal , Johannes Thumshirn , Dennis Zhou , Tejun Heo , Gao Xiang , Yue Hu , Jeffle Xu , Sandeep Dhavale , Hongbo Li , Chunhai Guo Subject: Re: [PATCH v1 00/11] Zero page->private when freeing pages Message-ID: References: <20260223032641.1859381-1-ziy@nvidia.com> Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260223032641.1859381-1-ziy@nvidia.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Sun, Feb 22, 2026 at 10:26:30PM -0500, Zi Yan wrote: > Hi all, > > Based on a recent discussion with David Hildenbrand on page->private > is not zero when a page is freed[1], this patchset is trying to fix all > users do not zero ->private when freeing a page and add checks to make > sure all freed pages have ->private set to zero. For compound pages, > both head page and tail pages need to have ->private set to zero. Requiring the user to clear a field before freeing is just a way to awkward interface. Don't do that.