From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 287C03002C8 for ; Sun, 23 Aug 2026 14:43:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787496199; cv=none; b=GuJsAzapXJUb/SMyytnE7nEES+zT6iScQam775feotwVLMQDyIyoMQbu17n2CcbdJZWv6OHgPghXjQ1qrnSSr8A5Iy68x5CwgRMTQOPBRWYRZTpQQlYPazTl3AnhXhgYu3phdADMj7d9U2rUjbPNrd+H5xaAb4Naz4f0mzQ+z8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787496199; c=relaxed/simple; bh=K9ydm/YtNFHT0R3cwbkQpao8KnlyL3aKmaMVR5yBsRw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZpAoycM8x9JAdF/G8nI3Qz7xkQhohUBGAuvDvo/LP9Sq+TpDniMlmkgzzu1MKnGMk3cf+TKiCj2jqWJtaZlnuY3R1EGpM+TiwU6NZobTW3XYBWCT+S2jXhUEeS6B60FZFk9MAEOWwvSVW2m49mD2B+ddYuQ7EhCd8bOvKAjbN60= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h+AvD5Qd; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h+AvD5Qd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D796A1F000E9; Sun, 23 Aug 2026 14:43:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1787496196; bh=pvjv/nyRQmsWaIMsCt8srBUubLaMtm17KGRMdE9iACI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=h+AvD5QdsIyzhG+gUEoYCTYnrzZkvWKchkhatD+NaXvh7aQ3sGD03cnt8uKfIkNfC W5EsA23A8Bn+dwg/5XLzaShcZ0mOx0Y+IqgHdHpSIbCQQ+Aj3hTtHOydp2gwEA82d1 iShmCKnM1xH8HPh4N5OD3uJX+Xoeq7746YRZL/qAmJx/71zUY/PA68vuw18IwaorRW J5/yPZouO8hIyinoJSHSK1Gg7lo+iOEcF8ISnCax9YdMy3ETBk5z1JbUXzgUdQ6zcS VSDUB3AjYmvBI/61rocahAtZgRfYQ7i/3U6nVYViIQVi2+/jx1WcWXwL+02bb7Nv7b goI06wVJCl86w== Date: Sun, 23 Aug 2026 17:43:11 +0300 From: Mike Rapoport To: Meijing Zhao Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Wandun Chen , Meijing Zhao Subject: Re: [PATCH v2 RESEND 0/3] mm: memblock: fix debugfs flag reporting and synchronization Message-ID: References: <20260821020910.3428585-1-zhaomeijing100@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20260821020910.3428585-1-zhaomeijing100@gmail.com> Hi, On Fri, Aug 21, 2026 at 10:09:07AM +0800, Meijing Zhao wrote: > From: Meijing Zhao > > The memblock debugfs interface has two issues when reporting region > flags. MEMBLOCK_RSRV_HUGETLB has no corresponding name, and regions > with multiple flags only show the lowest set bit. > > In addition, memblock_debug_show() walks the region arrays without > synchronizing against memory hotplug. If memory hotplug grows an array, > the debugfs reader may continue accessing the old array after it has > been freed. > > Add the missing HugeTLB flag name, report every set bit including those > beyond flagname[], and hold the memory hotplug read lock while walking > the arrays. > > With the series applied, a HugeTLB bootmem reservation is reported as: > > RSV_KERN|RSV_HUGETLB > > RESEND: > - Regenerate the series from the same clean base as v1. The previous v2 > was inadvertently generated with an unrelated MEMBLOCK_NODUMP change > in the patch context, causing apply failures. No code changes. I presume the changes were on top of linux-next and it's not clear how to apply them before the end of the merge window. Can you please resend the patches after v7.3-rc1 is out and base them on that? > Changes in v2: > - Report set bits beyond flagname[] as UNKNOWN instead of ignoring them. > - Add a separate patch to synchronize debugfs reads with memory hotplug. > > v1: https://lore.kernel.org/linux-mm/20260819075422.2387980-1-zhaomeijing100@gmail.com/ > > Meijing Zhao (3): > mm: memblock: add missing HugeTLB flag name > mm: memblock: show all region flags in debugfs > mm: memblock: synchronize debugfs reads with memory hotplug > > mm/memblock.c | 26 ++++++++++++++++++-------- > 1 file changed, 18 insertions(+), 8 deletions(-) > > -- > 2.25.1 -- Sincerely yours, Mike.