From nobody Wed Feb 26 03:10:35 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 4Z2fcF1tWBz5pWn1 for ; Wed, 26 Feb 2025 03:10: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 4Z2fcD6dzkz47Rh for ; Wed, 26 Feb 2025 03:10:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740539436; 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=oO2UMsV/HzQak6nEp/b5F2DA1JxjM5p8PNRCcnvJQe8=; b=wwh/yTOvjwf3FBjyOOYmCenrb/wapG7UXAFv7+EX3Nc6aBVawinapULQ4VmKUy/WJvW+Tc 7TaBi+9ZC27kP+WmSH5LGscuIqGTwm84W3FMqezqlkejmEZxMa8gC0v31EOPVmFJGpQ0VO XD2YESQaK+Rr95PScptUrMQzOLEVBewxTGbtxhVbm3rtIPJdSrIPOWMrliSzMad0B5+wXb ufQrnmRaC3V72aLcihfsdJPPN2oS+8cJNoxTFW9lQ1hq7vwYEf7w7fbfJk28gvxgTg6WEp +8iSRya8Gvy2f43aZ/PLb0glMqeieGTM8jX578Tp6ydh/DrtsuvWKMKBmEkAEw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1740539436; a=rsa-sha256; cv=none; b=kY7+Ls32YL4IK/SrhLLNkLuQQfonwWtIkW5stEqBUItJiP0zt98D0bDQf1DSemQnGyzoDL cUY8Kj5sgsXSlk7i4r5iA+hjOGToAFl4SYD/olnkj77V9bB0S9tOwAY2IIn5hYgGMsRE3n DjhSvYvIFFYNSLi7Ti5NGnVZGqwoXQppQtSAtan6BQFH05/QWqxK2aKhahc55bDjzeVx8o wT4gD6o5n4sDJh7L9mOwY3zH3ssq0rwnpMLJ+x1H79KAjsMBJ5nW9sr6TZ4FqquX/o7Kjg ZxtbGxDGbtxy9j2Bp8QPnh0sJNATcIznCnHtXSgKcBH8KNfbGjvprGZrUtsJtg== 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=1740539436; 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=oO2UMsV/HzQak6nEp/b5F2DA1JxjM5p8PNRCcnvJQe8=; b=ToFo2Szozaical1m8jZKmIMN0lS5LCinkpKZHwnRXT9ncvou+3VZKE9UqtPH4tI2GXdyw0 u3/FZMkLV/LU681jf61iV2R64p6z7vy0lU8wk+y0U4OOr4pRjxICGCGMDOEKbsGuzoFHPv b4/0cmKQzKjkIFLUJ+oMAehyh3Gh9g4dLFQx9MU0oiRMwfF2AINWMtdIgrB4WgzorHrx0P 0RNpVMVBYQac2mfz4iprikzFmlspTEZZdDdSq06KGZounkTlTe5nR6V/Yt6enJicgkketG 47ESjL3VdfsmWhsTOyi+YcAYt0J3kzdPTQmPJgn3dtfWLSw3JKYM5TlfuIRmJg== 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 4Z2fcD64b7zvVX for ; Wed, 26 Feb 2025 03:10:36 +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 51Q3Aa3e027354 for ; Wed, 26 Feb 2025 03:10:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 51Q3Aa9o027353 for virtualization@FreeBSD.org; Wed, 26 Feb 2025 03:10:36 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: Wed, 26 Feb 2025 03:10:35 +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: meta@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 #65 from Koichiro Iwao --- (In reply to Florian Weimer from comment #63) Let me sort out the remaining issues.=20 1TB L3 cache issue: - Addressed in glibc upstream - AlmaLinux 9.5 and Kitten 10 already include the upstream patch - Addressed also on bhyve side (temporary patch) However, the temporary bhyve patch broke glibc on AlmaLinux 8 / EL8 (glibc-2.28-251.el8_10.13). So the temporary patch for bhyve might have regression. This regression prevents the bhyve patch from being merged.=20 The bhyve patch means here is the following: --- a/sys/amd64/vmm/x86.c +++ b/sys/amd64/vmm/x86.c @@ -152,6 +152,8 @@ x86_emulate_cpuid(struct vcpu *vcpu, uint64_t *rax, uint64_t *rbx, * pkg_id_shift and other OSes may rely on = it. */ width =3D MIN(0xF, log2(threads * cores)); + if (width < 0x4) + width =3D 0; logical_cpus =3D MIN(0xFF, threads * cores = - 1); regs[2] =3D (width << AMDID_COREID_SIZE_SHI= FT) | logical_cpus; To reproduce the EL8 glibc issue, run the following command on PATCHED bhyve environment. $ podman run -it --rm quay.io/almalinuxorg/almalinux:8 /bin/bash $ podman run -it --rm quay.io/rockylinux/rockylinux:8 /bin/bash AlmaLinux doesn't have a8 branch for glibc package, so there are no AlmaLinux-specific patches. AlmaLinux's glibc and Rocky Linux's one are bui= lt from the same source.=20 So what we need to do is,=20 - Improve bhyve patch not to break EL8 glibc but fix EL9 glibc issue (1TB L3 cache issue) - Fix EL8 glibc issue in upstream if it is an upstream issue I will give you access for PATCHED bhyve environment if necessary. Send me = your SSH public key. --=20 You are receiving this mail because: You are the assignee for the bug.=