Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp643424lqs; Fri, 14 Jun 2024 00:48:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWpdjNURyGtVjQLUGzNnFbpuPOxIEVKZ2Z7TGmHJd26RgdJrRrQirVNEx9HNhGvbUM92gLnY7EOJhrXdak+5JE/HvpV8cvQNAkP8lGWrQ== X-Google-Smtp-Source: AGHT+IHciacDX61g08smQHvleIIB27GZkEzgKvBuLyaxuU1Z0lM5D+XMw00QEtLLGoKxOreMmFS6 X-Received: by 2002:a05:6a00:4b0c:b0:704:19f5:361b with SMTP id d2e1a72fcca58-705d71aee11mr2243718b3a.28.1718351326200; Fri, 14 Jun 2024 00:48:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718351326; cv=pass; d=google.com; s=arc-20160816; b=Rn7sIXUz6l4Bo+8/rdmX1GSS0VpILJ1mSgpBlgSzfGFHdc0smRT72tKui5GsrDHTfE VJtu49EuWvt6kLnqnoEYaKpZwuMOiRHAWu0lH7Sw22FB0VVqsqRPuqXG+eS9wGB0WiTe QF8Oa6LJjXwDtCYPuKWOjbc8318rxpuXYNxbBTG05nkvHBd3mDWAh0PM13C+boXae4of 93p12XiCxqJKUaF5QBNjx5VLdfUUxpkBnmmVC2VAwtOcLIeP0VmvaZ+rduKNsN21BFFa NZNt1Q22hRtVEIi8fSsjWWgLstyAxT72Zaivusjrt2IeiSZSwgxHX/Sq86GMQjjRDRVd Jz/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5zGw/kxW4Ag5E+n9C3Osx0KVYBe88VfUDToQvQxL5n4=; fh=x6zFyfUoOeVAy4Nu5VwAE9T4xWdptJz192T/mOLqQ8Q=; b=ttsTTGI0Xbfeey7IpAlCgHe0XWjyOHro9NERxbdrEvxomLwdHK7FE5/pqVU0HApy32 X14lHBHvY/dlHKd797cUj0jcf8s6C7cPt+TdwTDq2+VtaZGwz5mRgp8BQDKi2y75EMiw kTNQ578+3LH+ZQyFjsRWohByQkqmvqDbM6tVSwyHJCTB+R+Soo4RsRRjGWeOqQZ2ZGXZ d1sVoWjvnKkqe08cmEbWsxzcTg3YLnjggxOVnsWI+ekB/emWXIH5eB3fwglqsvAa5QXP 0Juj+3TpAdo32swDaEDqpFy7CC+XX4nM49vWfTngwGHkmZV+QBggPzdZaA2a8JjhRYET 0xgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DI5xFhOd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214468-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214468-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee67b8987si2918877a12.847.2024.06.14.00.48.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:48:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214468-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DI5xFhOd; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214468-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214468-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0E578B274B1 for ; Fri, 14 Jun 2024 07:35:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 931AD1836D6; Fri, 14 Jun 2024 07:33:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DI5xFhOd" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B4CC8158D87; Fri, 14 Jun 2024 07:33:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718350413; cv=none; b=hzVfUrQUaJRLN3jouQnF34T/prmbDmLdTLsnam97qD/lg1+dv2F54wv6zwQNxy/4kQsnMjXxMPg7K3n+vfjC9Jk/PWKfSY7msU7sfZync9yUPA3ckLxxqAtBylGwqH7kSFYTI9JR380cH3ay3cAdNoTNHcdC1HiU3cypsnMfVss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718350413; c=relaxed/simple; bh=NnkmAXOOWVZBMmSqgujLFcgmwxn48aka8vwCP+88UZs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UdNKl1T7jmLjcbRi+wNO3Bfw71GO9Yqy3eK4xOyzZl8nM34Sq8ILqEHQYlMffmxYIXVAG+mUVWgaz7c3JWPA1aJ9fbx0CwK1SY1uU96ac1TznGBUTzunGJVtrJNrdbuVrBRKI88g4HYBL0tShy8WdjvcHUUahcRJb83ft2SPzGw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DI5xFhOd; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9F89CC2BD10; Fri, 14 Jun 2024 07:33:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718350412; bh=NnkmAXOOWVZBMmSqgujLFcgmwxn48aka8vwCP+88UZs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DI5xFhOdjQNg736myA0URAZZXPnU4nkPBwlDT5j11/xqDepPKNTSeUJOZL0VzP78z Gija8ZvzsBIvSQvQZgN2CKyBYONNbneV97Xw46m0pZ6iejHSj3QVukJgOHaw6n5vEJ oPmNs7XQyKSovf9ZEFJM6K15LIm3xk4zeLcrYGHwDqPjUCQ1snvszipq3ByAXJg8iQ bH22iOboDVQpyv1c0zS0BOBES5DnTQZ8taQOTO4VL6P5MvVJabccgtOreaS1mIayMf Qki3z/jPfNl6nl++W+rT3j9EzUHaYd6pMBIRMyAoApsEr1aQyraU56QXk5+aQujBGv Eojfa4GEc9Isg== Date: Fri, 14 Jun 2024 10:31:21 +0300 From: Mike Rapoport To: Jan Beulich Cc: Linus Torvalds , Borislav Petkov , Narasimhan V , "Paul E. McKenney" , stable@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [GIT PULL] memblock:fix validation of NUMA coverage Message-ID: References: <663e80fc-6785-4ac5-ae74-e5f26d938f49@suse.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: <663e80fc-6785-4ac5-ae74-e5f26d938f49@suse.com> On Fri, Jun 14, 2024 at 08:01:33AM +0200, Jan Beulich wrote: > On 13.06.2024 19:38, Linus Torvalds wrote: > > On Thu, 13 Jun 2024 at 10:09, Linus Torvalds > > wrote: > >> > >> Is there some broken scripting that people have started using (or have > >> been using for a while and was recently broken)? > > > > ... and then when I actually pull the code, I note that the problem > > where it checked _one_ bogus value has just been replaced with > > checking _another_ bogus value. > > > > Christ. > > > > What if people use a node ID that is simply outside the range > > entirely, instead of one of those special node IDs? > > > > And now for memblock_set_node() you should apparently use NUMA_NO_NODE > > to not get a warning, but for memblock_set_region_node() apparently > > the right random constant to use is MAX_NUMNODES. > > > > Does *any* of this make sense? No. > > > > How about instead of having two random constants - and not having any > > range checking that I see - just have *one* random constant for "I > > have no range", call that NUMA_NO_NODE, > > Just to mention it - my understanding is that this is an ongoing process > heading in this very direction. I'm not an mm person at all, so I can't > tell why the conversion wasn't done / can't be done all in one go. Nah, it's an historical mess and my oversight. > Jan -- Sincerely yours, Mike.