From nobody Sat Apr 4 04:54:47 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 421AC3F077E; Fri, 20 Mar 2026 19:31:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774035069; cv=none; b=aqp+wj9cOynX5I0Y9hyp5eq+NzeBbWfYJpw9TPwr359LbVTeoIuvv/CcSMR+ce9tA87TMQcR3CipnDtInT30pgGoKDwARtjPx5IxZ5Mz2VISBa5PaxOyoVhs0832kESCbBpUD8WF07L9mfJfcSpanaEvDAf6/Y+Th4b3DcHxlvw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774035069; c=relaxed/simple; bh=wUFBbt8p9qSJgvvtK72uqiY1FChedImvcX2ezM1uS3I=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=MSy9HzqATkFSM1Afk0BS2qKyLPY5r15UV+Q4JkeLVe+h5g4E6a1tSr/QmDcLlmQ6oYj5N66017VhFPvwyjefKPWtP++3AOz5qYYV6wwy/VNzHQaINWM5ZB1obsujwdf+mLgOKgKgLKgX1HXPEnIc8mE4X6NxywpXD1XNMciXcH8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Z7NxU6tP; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=IpnhCvBx; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Z7NxU6tP"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="IpnhCvBx" Date: Fri, 20 Mar 2026 19:31:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1774035066; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TI5+lqqq0Exxk6ajvVWXnUxVykRsPkkMe++QEp0zTQA=; b=Z7NxU6tPFFEZDrcar/t1n1mHSXW/OYgjNbM9nUCiwUzP2logIgQcr01ENkmqaoWmXQYWSw bSzqh6EqQ8H9bo/cdOKjVtdJUAXAL9W+C6CyP/wsWJZ3HG4bE2P6iTgUwk77UnN/jzFFHn oGf6tiRWkdji52v5c/Nvjs1j2HSCuRD2iI35kCB2IyqedErotrzVaToSS9vTyGB19fJ5ca 7nwDPCl84hrOEuOiUjLRKF2RzoAWUulCEv0q6horYqXYKDLPGGDNpEu3ON1csL+bFHMtxt vscU8Xeuy9IcToLLvEuF0JGlhpRXN2zcWxYyX3pRmrf4TrlKQRFvA85J6y2XYw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1774035066; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TI5+lqqq0Exxk6ajvVWXnUxVykRsPkkMe++QEp0zTQA=; b=IpnhCvBxwLMNe4fzaclGwg6+jF+Bv6gWDEY0ybvAhhRKq9Pr/X4juEJynY3Z0ioEsuSBeh IoGUmoAhAuC7DlBQ== From: "tip-bot2 for Kyle Meyer" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/platform/uv: Handle deconfigured sockets Cc: Kyle Meyer , "Borislav Petkov (AMD)" , Steve Wahl , stable@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177403506478.1647592.16874302286474436327.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 1f6aa5bbf1d0f81a8a2aafc16136e7dd9a609ff3 Gitweb: https://git.kernel.org/tip/1f6aa5bbf1d0f81a8a2aafc16136e7dd9= a609ff3 Author: Kyle Meyer AuthorDate: Fri, 20 Mar 2026 12:19:20 -05:00 Committer: Borislav Petkov (AMD) CommitterDate: Fri, 20 Mar 2026 19:01:03 +01:00 x86/platform/uv: Handle deconfigured sockets When a socket is deconfigured, it's mapped to SOCK_EMPTY (0xffff). This cau= ses a panic while allocating UV hub info structures. Fix this by using NUMA_NO_NODE, allowing UV hub info structures to be allocated on valid nodes. Fixes: 8a50c5851927 ("x86/platform/uv: UV support for sub-NUMA clustering") Signed-off-by: Kyle Meyer Signed-off-by: Borislav Petkov (AMD) Reviewed-by: Steve Wahl Cc: stable@vger.kernel.org Link: https://patch.msgid.link/ab2BmGL0ehVkkjKk@hpe.com --- arch/x86/kernel/apic/x2apic_uv_x.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2ap= ic_uv_x.c index 15209f2..42568ce 100644 --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++ b/arch/x86/kernel/apic/x2apic_uv_x.c @@ -1708,8 +1708,22 @@ static void __init uv_system_init_hub(void) struct uv_hub_info_s *new_hub; =20 /* Allocate & fill new per hub info list */ - new_hub =3D (bid =3D=3D 0) ? &uv_hub_info_node0 - : kzalloc_node(bytes, GFP_KERNEL, uv_blade_to_node(bid)); + if (bid =3D=3D 0) { + new_hub =3D &uv_hub_info_node0; + } else { + int nid; + + /* + * Deconfigured sockets are mapped to SOCK_EMPTY. Use + * NUMA_NO_NODE to allocate on a valid node. + */ + nid =3D uv_blade_to_node(bid); + if (nid =3D=3D SOCK_EMPTY) + nid =3D NUMA_NO_NODE; + + new_hub =3D kzalloc_node(bytes, GFP_KERNEL, nid); + } + if (WARN_ON_ONCE(!new_hub)) { /* do not kfree() bid 0, which is statically allocated */ while (--bid > 0)