From nobody Tue Dec 17 16:59:36 2024 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 4YCNMY5KLKz5hS6x for ; Tue, 17 Dec 2024 16:59:37 +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 4YCNMY1Zyhz47KY for ; Tue, 17 Dec 2024 16:59:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734454777; 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=uywQ0tGraUG2EacD+QDq5UanBm+E2ShDEwNfpQwGByw=; b=htY51u8+YkxJkhWjxeu9khsycMPssY28y8BUDY05ANIY7fkiqKAzW3karfYK8hNUhJr25E okaDVTU2lw3vFwM+BtGmfS0SmX4x+vl+KvDjkqVzfJ9hCRl/5ru/6Hsphs0JrQDoCMXpPn y/QCVZwd/AFFldA3hr0My9pfT6qp5O95Idb9zxFodQee/yTeruaKBbMQICXDmdjJVlLfeN 1yJd/dLYSWx9SLvlmMrTwCkD3JueORtFdOeekpa3PVn2r+1c+SzhhCpzyW74F22Q1NHRs3 Yxp9IQaB+/UhhnOuP5rEu3S1C3rapMH/9TWcazEiPv/8gti8PIw3clsU3i3mBA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734454777; a=rsa-sha256; cv=none; b=Ob3+VB9/SWx2lH5e4hp8yGpFseHqCWbso7JT7SU8J/LbMRsfjSFseskr4C6ZtaCqOohaUO nb/t66QshBIXuAmt65X8Vv433MQPysMT/0ojIpwo9YubaUDgvALpUdvYkzaACSNBlE8KPi Rqmeo0H03DdikCgoG5aoB+yseSTm6pJxftRSVD4ZLYdqS7ypRVAmfgTZJJLHEnE4NcCHmH jM/AzseqtvcN8aaTUIEn6acfMQdpPQqo5w4EEZugIkAK9r33fS0/VaitjbTtf2RTQ1J27T wcA1Q9jnYHnwZw9M1arbu9XLmyazJn28k2SZtLASQKiGhr7kKA98Kf1vxc9YYA== 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 4YCNMY1Bk7zX94 for ; Tue, 17 Dec 2024 16:59:37 +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 4BHGxbY7018781 for ; Tue, 17 Dec 2024 16:59:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BHGxbQF018780 for virtualization@FreeBSD.org; Tue, 17 Dec 2024 16:59:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www 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: Tue, 17 Dec 2024 16:59:36 +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: fweimer@redhat.com 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-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 #36 from Florian Weimer --- Thanks for the offers of machine access. I should have studied the ld.so --list-diagnostics output. It's a recurrenc= e of the previous rep_movsb_threshold bug because it ends up as zero. The bhyve = bug that triggers this is that it reports 1 TiB of L3 cache (x86.cpu_features.level3_cache_size=3D0x10000000000 in the diagnostic outpu= t). This triggers an integer truncation in glibc's cache size computation. Misreporting cache information like this typically impacts performance, so = it should be fixed independently of the glibc bug. The glibc bug is below. I'll submit it upstream and we'll backport it. diff --git a/sysdeps/x86/dl-cacheinfo.h b/sysdeps/x86/dl-cacheinfo.h index e9579505..6a0a30ba 100644 --- a/sysdeps/x86/dl-cacheinfo.h +++ b/sysdeps/x86/dl-cacheinfo.h @@ -1021,11 +1021,11 @@ dl_init_cacheinfo (struct cpu_features *cpu_feature= s) non_temporal_threshold =3D maximum_non_temporal_threshold; /* NB: The REP MOVSB threshold must be greater than VEC_SIZE * 8. */ - unsigned int minimum_rep_movsb_threshold; + unsigned long int minimum_rep_movsb_threshold; /* NB: The default REP MOVSB threshold is 4096 * (VEC_SIZE / 16) for VEC_SIZE =3D=3D 64 or 32. For VEC_SIZE =3D=3D 16, the default REP MO= VSB threshold is 2048 * (VEC_SIZE / 16). */ - unsigned int rep_movsb_threshold; + unsigned long int rep_movsb_threshold; if (CPU_FEATURE_USABLE_P (cpu_features, AVX512F) && !CPU_FEATURE_PREFERRED_P (cpu_features, Prefer_No_AVX512)) { With this fix, the testsuite is very clean, only nptl/tst-mutex10 fails wit= h a test timeout. Cause is unclear. (The test does not actually use elision bec= ause the system does not support RTM.) --=20 You are receiving this mail because: You are the assignee for the bug.=