Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2792426rdb; Mon, 12 Feb 2024 17:45:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVC3jpr0H/KeB9mYoxc9TgLn9S064qQxO4LPKUivm8JlPQUbsr9kMgbHaaZ0gM5eOGGO/I+J00J/+IvSWSqBRs9OwYG+Q90SirdquxEbg== X-Google-Smtp-Source: AGHT+IEMh2UE4tpDpQBjzy5zDhVjbY9bgFdZ2A73n4bU0MMOy+GjahaGJcWBhrYlcFZfRd784yCx X-Received: by 2002:a17:906:ecf3:b0:a3c:f6dc:e98b with SMTP id qt19-20020a170906ecf300b00a3cf6dce98bmr486141ejb.21.1707788741680; Mon, 12 Feb 2024 17:45:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707788741; cv=pass; d=google.com; s=arc-20160816; b=jHpNz6iSFDyy5Tt2W/kxITJyY7T2ZLHhvQeuUEzRyItddRCTMdFIzlOsizlAFyNIw+ PB3ijtkhY738dpfywBUkwK5J+54Ys4eU7fNEP4wBSskG9ravApe3xJOju6mUqK5JX9PI Dlwg+32pr0/Ruj1/Lu3uYbuVr5OSuRwnp2rxfnmJHwWNMBsz1QqpF48tchzcqhWCi70L W/4pzS/Vy1gPapwxsjzsmDvlEUVOvgipJgPlcG9Jf217Ijn6SWR2Rgw/f+Z/vC4KhGb0 QyHgQesl4Y362yi1ZqVXbiMCfTQpnXvfxiMuh27L69K8qBUffCaHLKd/hMj1lmVWSDA+ Ea0A== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=uY491dozaF61T11P5jh3FyvidcqOGEh4TcM0uRk9KEE=; fh=DV4srA9g1/4zIeMawf1h22jMNJksIds3V9+2zl3/VEM=; b=SQ9s7pQw5emtsgBmjDiHw1Cz6NC+XN5dntoDLymd4SeFdm9oLBzrcwPP0o2J6TpaKD Vbw+Nz87VLoufavc1N7DLwxuEPoV6rUIpTa6XvbrB6OvyoYq0mvVPiNGE7iw5aPS0X0W G7GgbFGP6C6CC3n5wCrDrGM1O9098YhXnqZlmK1PZQvGxDcychcB3s2bXGAeI1c1mfHM Mh3JQJPjeNKWLjQHX5kozzy0jjNTL+dxEJ+NXihKeR550OZzRd9DJwhrB9KnnQybl/tS vkHfRhgvKi7QzSodUBvQh3OhQoJKw2oW0Mx1zKGi3WnB03mlQpBMExRaOf+j1LIMCbHW X9aw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jk61vhMv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62853-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62853-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCXthFYUpF8/XxvYfMgWDnKlfyPCfpiHoUDZomcz630wDuNtxm9mfiGH/GVegqcPGZuK3GOB5sRneEBorLHRWNeTeq7u6TCHE1iEbkdn/Q== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cf22-20020a170906b2d600b00a37905c1452si756635ejb.678.2024.02.12.17.45.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 17:45:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62853-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jk61vhMv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62853-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62853-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6C12D1F25887 for ; Tue, 13 Feb 2024 01:45:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A7EB7AE68; Tue, 13 Feb 2024 01:07:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jk61vhMv" 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 5131428DB7; Tue, 13 Feb 2024 01:07:03 +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=1707786424; cv=none; b=BLVxx/QzblCrBIU3iv3sw0cMdxmCj4wlpXF0oMjb9li8wgqOaBkT1AnOI/DI1MiFuxQfO0cL1QAGhg+w7ipwHNkU7kjJfzw6LNN+OMSTuV8tflxemeB+0NzDnn8EP2h5zrz44oCk5G0u9fHhtKKAtO8VpzgIusVRZztG3bTYa2g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707786424; c=relaxed/simple; bh=peoO574K4wfwc8JzNW3ZPwHb5yzWC0yTYMUNPjNzFMk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Tu2zv0L6VDaPjZ9wsjb5WmAhzknAskgyCUxuxjpw5cNkjBpgWAJOzFt2pfja/rHVHQ58VVg+CX3FW6gjb6XXgtWvJ3n4Rz9xOVSv6v+YH+LFKfdBm2433+ps9pWBN8R5mB2f8YAvrBsKUnmLiaQ47UKY9kx+3zwBvvZ/5WI1SbM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jk61vhMv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6431C43390; Tue, 13 Feb 2024 01:07:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707786423; bh=peoO574K4wfwc8JzNW3ZPwHb5yzWC0yTYMUNPjNzFMk=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=jk61vhMv0DpQERHjsyFWEND7ONl8w1aGspJ5NqBje076fszXvrnzoPAuiqTnAcEai YzmqtNKBXKGGUFX03135Pb5OjN0AU+IuiZs5ZMLvwm62PnkFBipnYXhfu2416GlpW4 qh6sNYFvrDfXNAR28Ec4uIY1Z+P0/KI1Zr9zb3ls6arDTJlxcSqeaOGIVNfpqnnXsP KA+4BvC3a1S8ZRDFa5gvikE1rd1N03O4iR1kKVbqD8IprCnFhtVuEfljDKWFNqMBUA iwQAuf/S6WxTOLFyEEA+NNYOVSZbMYMZFDfdtMBTi0yMpZmZ3Ubu/emiFFDD8PB110 2qsCEvfDnoE4g== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 575BCCE0C4C; Mon, 12 Feb 2024 17:07:03 -0800 (PST) Date: Mon, 12 Feb 2024 17:07:03 -0800 From: "Paul E. McKenney" To: Borislav Petkov Cc: "Luck, Tony" , Yazen Ghannam , "Naik, Avadhut" , "Mehta, Sohil" , "x86@kernel.org" , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Avadhut Naik Subject: Re: [PATCH 2/2] x86/MCE: Add command line option to extend MCE Records pool Message-ID: Reply-To: paulmck@kernel.org References: <20240211111455.GAZcisL09LeFPWa2EI@fat_crate.local> <34b19db5-bd72-457c-9b6a-c2089f6be83c@amd.com> <20240212201038.GNZcp7PuIqIJndpDM9@fat_crate.local> <47901422-ac07-47db-bf44-3f4353e92b1d@paulmck-laptop> <20240212212741.GPZcqNTXfU2OX7uRtx@fat_crate.local> <2d8b17f2-c22f-478f-b407-9d2dfd2064f7@paulmck-laptop> <20240212231009.GAZcqlUVY8U2hzOaF4@fat_crate.local> 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: <20240212231009.GAZcqlUVY8U2hzOaF4@fat_crate.local> On Tue, Feb 13, 2024 at 12:10:09AM +0100, Borislav Petkov wrote: > On Mon, Feb 12, 2024 at 02:46:57PM -0800, Paul E. McKenney wrote: > > The usual reason is to exclude other CPUs also doing list_add_rcu() > > on the same list. > > Doh, it even says so in the comment above list_add_rcu(). > > And the traversal which is happening in NMI-like context is fine. > > So phew, I think we should be fine here. Thanks! > > And as it turns out, we're not going to need any of that after all as > it looks like we can allocate the proper size from the very beginning... Sounds even better! ;-) Thanx, Paul