From nobody Wed Mar 05 12:29:18 2025 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Z7Bgj15hwz5pqPD for ; Wed, 05 Mar 2025 12:29:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z7Bgg1g0xz3Hgs for ; Wed, 05 Mar 2025 12:29:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741177759; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EL5GljugccEfTwdy9lIBNMJuFip/3cMnnRf7LBvhwCI=; b=qjYUOrsbYRYza+MtQMpLG4LEbCB3EzP75Bjs8gkdxNVGC02urkYZSLmahwS0TdS6Sne+R4 vgj7FfKGBoI45s0Mc4LT2k3GZVzb9HUYgcGpisE/mmJGF22hM5lnnT3J1sYwA0LwYDHRoY HzNOLepIdCOBgOrhVs6xOlsHQC2nJT4X/FXLl+NlqEzoK8Pd9EeAHDk7iTbHFInOZrtN6n 5ShmuKblbSSQ36EIF0UKFZ0lxnl5zSfZj6RJWEHnWgyXa6NS2qOmaBiBK54k6jkDNUbgtm oAG5hI9nn6eadpQ98PihV/bPT6t8DXHnqKsiG4j7rioXREvL9uXofDBSxFaEYg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1741177759; a=rsa-sha256; cv=none; b=HsjJmSn5X5zeVkuCpRozdPYhp1XQgVt5npFJGYyRjQP8wi/BfZe8KMw9lsbzzvMnjqhLR5 N3l6u/7DX5nVLn01lv0kDNvPOf1VpvxBOxjsVsC7Zld+Wjcuk8yvYY9n/vvTBP6i74YJRa fAJIyaVWU3cBlVuDn69j3fm4dGsiDWDGQT4/2Qe9Rqurdg5Lx3wA/UyXBx2ajZi5EOIOF1 xLMgQZiz7RkHjAm68lGuNf0YndpKl7aVDrxosBGapzJ1odurW6BXNeX37MM+63XjF1hy/E U6NCFUwp+TcTmMTX2M0bBElZPfsDbNNd79KSXuYznthalqr41EzLjfZ5csL85g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1741177759; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EL5GljugccEfTwdy9lIBNMJuFip/3cMnnRf7LBvhwCI=; b=KeRSpdw+xRHBQDzotMyIqJhoqTG1VqHrBLU13OyResYFHO1NuXnjGRQO3eTw6OcccHKmU5 vT4kOsE/qlijYbyHqMXvOQ5heF8VzJeHCTuqdFS/JUCn/sQJTQ7LB4SqwIda/djqOeLZpP q3xGjaVrboUKZTW7zW6oE3jN8TUKlN3G7vqrIN200Ajv/Xrqlstft7uZcRLtr+z1j8v1Hn vYeaOxIRYLVZYsuX6efVElOVRFOBndDVoRA+lzr79BECEcJnEt7zA3X7b4L8Z9lawqQONW DbMUwhEaPs9ai0KO3bB7PFrejsMLQKkOizAbmZ8vSU8F+dEt5TxM6ILobnM7MA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Z7Bgf3Yttz14Fs for ; Wed, 05 Mar 2025 12:29:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 525CTIfQ016287 for ; Wed, 5 Mar 2025 12:29:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 525CTIjo016286 for virtualization@FreeBSD.org; Wed, 5 Mar 2025 12:29:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 279901] glibc-2.39-2 and above on the host segfault Date: Wed, 05 Mar 2025 12:29:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279901 --- Comment #76 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D0698ce429f78f548f7eb3e54476fb3121= 09ddd8b commit 0698ce429f78f548f7eb3e54476fb312109ddd8b Author: Konstantin Belousov AuthorDate: 2024-12-17 21:09:33 +0000 Commit: Konstantin Belousov CommitDate: 2025-03-05 12:27:58 +0000 bhyve: fix CPUID L3 Cache Size reporting for AMD/SVM Adjust leaf 0x8000_001D %ecx 3 on AMD (L3 cache params). - Report cache as 1-way associative. Glibc does not believe that there are fully associative L3 caches, ignoring the leaf and falling back to legacy way of reading cache params. - Do not report 4095 logical CPUs per L3 cache, report the true total number of emulated CPUs. The insanely large value tricked some version of glibc to overflow 32bit calculation of the L3 cache size, as reported in the PR. Also, for leaf 0x8000_0008, do not clip ApicIdSize to zero if less than 4. This effectively falls back to legacy. PR: 279901 With the help from: Florian Weimer Reviewed by: kevans, meta, mp Tested by: meta, mp Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D48187 sys/amd64/vmm/x86.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=