From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794677556; b=SMxWKmHDfoE7bLLXoAUnCQi2aucHGQpsfwdtftZvdJnmxRU39RYAB7C1CPd3ALzpaCzV VmdLT2p5JmbRw88a9jrsoVMFo8EUIZVBgvKCVLaJ+4+DLIyuO9ERNzqi7GM06RaOK5seN GYi/VVocKhHLogz2mHYzVliWG0QksposYVlbH7MmJ6OhVDnMwdmyCd6qgOE+xKQ3B8mOy MlpnINImCkp/ZpDMc8pSTJ5VmuWPWKQ51IwaQ9YbW2haYCVSPte27OV3ffjQpzs3NeaOv KEgUM+RGX6aWHVfY9FadgrkE/AqAcvY1aR1mMStdFSK3j85ompMQfa+UeGVVYaHCWBA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794677556; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=jd8/NeUBcvGVBl3/IVvk/GOuA5V+/Z06IONroCz7q6I=; b=D9mD1IvXOjH5esYwjxuagSMlX9xa/YsOoLNsoUDwLbm04HgFIrOVGCs8taTIKtyTowez ZIwfo4fF+cLjUa3lxrcgU65CZsdX6T0jmZd489W0aWpniES5A7RpNQFkNeXlLFXPqSeB7 27Allh1QlwIDeT4MaQEXIWcDTcEKlFqGo4/0D9ogOfmkqHUPB9+fGfi1EfNR0IJS6LnHn wZbc8x1oP2PYCY4mw0dcsFUQtjRXrBnDp+NatqWPzk53OrAd6t7xuEg+uAoI25/9Hpl9z rca7Q2+lkaRuncRgjd3V5mSq+vftM/gHpkqvAh++YxXQqrQgEcbkSvlZh4vxVTtTSIA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VI99JbvX; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4782606A329 for ; Sat, 14 Nov 2026 17:32:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VI99JbvX Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDD491F000C4; Sat, 14 Nov 2026 17:32:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794677556; bh=jd8/NeUBcvGVBl3/IVvk/GOuA5V+/Z06IONroCz7q6I=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=VI99JbvX5Z2NlNPLoYgkjL81q/Cig9LlU2aO3HtvyXsC7gP6GqLlha6fJSTcZdZSa H7BYkxGbDyxHvTyCVvOJ3dcNsV4DDUjCPyrDMDScdjdY8lS4U0xVeqcKTnr7Jv4HgL e7DzH++DgDtR7AVeINQoCXKgDM7pqg3CseeXbeV9OxIPM6AXWSjPVn734vZ4euskPp z77bcLD4xUjnfzzt72HaubOIgazybGQygT11OIuMCOFVFkz/jR9JYxq34Bp3+9y3lu 5IAJcuMsXl+m0wiKjBlsZSig2aC6Oty8WGxu3TCdQNmHYNVrZ1nWpc5RD2zZlaD2+y krFlVWDaaUBdQ== Date: Sat, 14 Nov 2026 17:32:32 +0000 From: "Lorenzo Stoakes (ARM)" To: shao.mingyin@zte.com.cn Cc: akpm@linux-foundation.org, rppt@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/numa_emulation: use the real node id for leftover nodes Message-ID: References: <20261115004706741mYrBkIRqmj_IWsv3oh1uZ@zte.com.cn> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261115004706741mYrBkIRqmj_IWsv3oh1uZ@zte.com.cn> On Sun, Nov 15, 2026 at 12:47:06AM +0800, shao.mingyin@zte.com.cn wrote: > From: Shao Mingyin > > mm/numa_emulation: use the real node id for leftover nodes > > After assigning fake nodes, fix_pxm_node_maps() gives the remaining > physical nodes free slots in the emulated node space. The second > distance loop in numa_emulation() derives their physical node IDs by > subtracting max_emu_nid from those slots. The slot assignment does not > guarantee that this yields the original physical IDs. > > For example, with fake nodes 0 and 1 mapped to physical nodes 0 and 1, > a remaining physical node 2 assigned slot 2 is read as physical node 1. > The wrong row of the physical distance table is then installed. > > Record the physical ID when assigning each remaining node's slot and > use that mapping in the distance loop. Keep the first loop's fake-node > distances, and check the physical IDs before indexing the copied table. > > Fixes: 63db8170bf34 ("mm/fake-numa: allow later numa node hotplug") > Signed-off-by: Shao Mingyin NAK. this is generated by some AI slopper's script, spamming the kernel. The patches I looked at were wrong/broken, so no to anything from this person. They've sent 300 mails in under four weeks spanniing: ata, scsi, target, ufs, nvme/nvmet, ubifs, ublk, zloop, dm, md, mmc, virtio-blk, mfd, gpio, pwm, spi, PCI, ASoC, ACPI, net, vfs mount, block partitions, and now mm. and 17 series across 7 subsystems over the past 23 hours. We need a way to ban emails from people like this... -- Cheers, Lorenzo