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 66BBAC98309 for ; Fri, 16 Jan 2026 22:34:42 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4dtF5r1YHLz2y6G; Sat, 17 Jan 2026 09:34:40 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.105.4.254 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1768602880; cv=none; b=drfOR6EYwOcpskKmGMzrEl7u0xDPCa1e9PsLpUK5x9Vg643wYumaI7mi1vxi9dKaY/hj6cG4Djr7fCyR2FaVPKb0XucYo9qnkWwULRg/kNx2/3HaJzIF4YrVeNS95/q1wnV0chECXrtjNjh5sD6vAQyMFyKjO3yiuvTqIegvu37AOCzam+XUytxq6xtTaGbgPfHfbj77LuszoI7NZNyGe9GXITDJWp9LoMyaEivboS1B5fniboGak0+4zlIz0G1SM1kcrjVfB1tv1N4jbQ+xeksras+ZSokglo8Wbq2cdLh8ya86HZWmDf7F95WOPpvyCXlRAK61AtRNKnSU+SvwwQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1768602880; c=relaxed/relaxed; bh=lwkYngeioKbxDRwX4+wJC8A9juDqdXklK5QTVnHLsAE=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=UDehFZ/Uj3L/3Lm4f9yJuT92wKJRx7zpcPjbVHO2RaYbZvyD/mNxCdTghi6o+KT2DBZLk69yU1wDGGzxT7be0C0TIKpHnH2dCFacQB4NqtLJ88zQZtBLbEnFpdb+gUonMPQvY+tYt2VsZ/UzQNLAlYohE1t++tAOQNWRGrEpJT7dVskDplKPIrb3QhZpHHDa01/JiLkmlj635VRZe1AFqin7SnUNG/rFQgtSLzyGJ81aWm416C4eEEP3Gv+2AdYTD0oAKJHhSXtfEMypPdaRnyrP8bJ6ZKaV/FCjyfKn5ggYL4xkBBI2mkoYa4zMMwBPL2xq2TNkCgkOpwlbX23MlA== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; dkim=pass (1024-bit key; unprotected) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=NLUgKdV5; dkim-atps=neutral; spf=pass (client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=akpm@linux-foundation.org; receiver=lists.ozlabs.org) smtp.mailfrom=linux-foundation.org Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=NLUgKdV5; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux-foundation.org (client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=akpm@linux-foundation.org; receiver=lists.ozlabs.org) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) (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 4dtF5p73qQz2xqG for ; Sat, 17 Jan 2026 09:34:38 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 9074D60169; Fri, 16 Jan 2026 22:34:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C71AC116C6; Fri, 16 Jan 2026 22:34:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1768602874; bh=kVpnh95TVOJW8VAQPIPSr+AtflaSPXQdvwC6ha92XDY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NLUgKdV5rMmMraQ4VO7tdHdrJG5WmEsW2juttELKBYBSDejVV0hR/IQgTFpr6tYdn f5JOdy9G2qNC3TIB3r9ZkeZQVi40l9CLIQGFYANM/qzbhKj84KDPLBY+TLopNEs9gP AXuzcWaHlQVHSDIiihDEiNj6+9fQ5Vr/JnmhU0fs= Date: Fri, 16 Jan 2026 14:34:32 -0800 From: Andrew Morton To: Francois Dugast Cc: intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Matthew Brost , Zi Yan , Alistair Popple , adhavan Srinivasan , Nicholas Piggin , Michael Ellerman , "Christophe Leroy (CS GROUP)" , Felix Kuehling , Alex Deucher , Christian =?UTF-8?B?S8O2bmln?= , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Lyude Paul , Danilo Krummrich , David Hildenbrand , Oscar Salvador , Jason Gunthorpe , Leon Romanovsky , Lorenzo Stoakes , "Liam R . Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Balbir Singh , linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-mm@kvack.org, linux-cxl@vger.kernel.org Subject: Re: [PATCH v6 1/5] mm/zone_device: Reinitialize large zone device private folios Message-Id: <20260116143432.50b98d6dc965b94f3b915333@linux-foundation.org> In-Reply-To: <20260116111325.1736137-2-francois.dugast@intel.com> References: <20260116111325.1736137-1-francois.dugast@intel.com> <20260116111325.1736137-2-francois.dugast@intel.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Fri, 16 Jan 2026 12:10:16 +0100 Francois Dugast wrote: > Reinitialize metadata for large zone device private folios in > zone_device_page_init prior to creating a higher-order zone device > private folio. This step is necessary when the folio’s order changes > dynamically between zone_device_page_init calls to avoid building a > corrupt folio. As part of the metadata reinitialization, the dev_pagemap > must be passed in from the caller because the pgmap stored in the folio > page may have been overwritten with a compound head. > > Without this fix, individual pages could have invalid pgmap fields and > flags (with PG_locked being notably problematic) due to prior different > order allocations, which can, and will, result in kernel crashes. Is it OK to leave 6.18.x without this fixed?