From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B6BD8EA4FBB for ; Mon, 23 Feb 2026 13:46:32 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4fKMZv2qJQz2yFc; Tue, 24 Feb 2026 00:46:31 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2607:7c80:54:3::133" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1771854391; cv=none; b=TSR/FN3wq8PKB0HxwyM4zvxi09eQKPpWg8XAOTZDoVhHxTvs3noZ+gUotQrQXEcuH0ziciitGrhEYUQpF2NhUxwGxr48fL+NKQguzKaIcZiI6atSHgVx73wqp8AE+s3cnZ0cdJxZXZCBqo425JXL9xZLU0i+QylG3V1Mcd3RFPsjEFG2WY1rqIyoseW8oCDmWRF6bVyHfE+rTiXgewmEUsbXl6g1fwX5+9fpKuljGbkDiE29kp1OT+3+1u+ypnd9p1DIw5p4RmR0OQj6fJedBufGtLIuBp9pCjVdQ/frXR51NfFr4ImnFaA0/DSdArNW22GFMDY8ELK3zklE4riFIQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1771854391; c=relaxed/relaxed; bh=JJ4KtBZ4k7mPQNvSdOKma/KrL8oFM/9ZCZpnL0vUUmQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JK69gaxR+XOyCwrN5mHSDg76qM1WmSC/CA+vZI8kjvGV380dCC+xAYM3u5hB7iykkJ+cKPHUpKqRuulnpvzxXvPwll++SYAw1wgh3oYxelAliqBba7TepHXqKJ8Y0UXr457/P0kv+XH+W80vJnDt2rTy5KAwTHksWSFRoeFS2mtN5lYaXS2Oe6jsTVa7fohzfuIPfcznrqLQ19nhiJ7mIfK6GVZGnm5PQ52Fb5b7fGsAmw38ZnVnWQq9RoYKLCNFuXngyzZ2zyeMCFOq81RVh0nogYbkyFnAi5w4ab72rY9znzoDgij/AvTzhwKa2LrsI/KzRtfL0rdi6QzwPXN6gQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=infradead.org; dkim=pass (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=cszANuHk; dkim-atps=neutral; spf=none (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=batv+48176073e30864d8fa6b+8219+infradead.org+hch@bombadil.srs.infradead.org; receiver=lists.ozlabs.org) smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=cszANuHk; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=bombadil.srs.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=batv+48176073e30864d8fa6b+8219+infradead.org+hch@bombadil.srs.infradead.org; receiver=lists.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4fKMZn3Fhpz2yDk for ; Tue, 24 Feb 2026 00:46:23 +1100 (AEDT) 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> X-Mailing-List: linux-erofs@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Subscribe: , , List-Unsubscribe: Precedence: list 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.