[Bug 279901] glibc-2.39-2 and above on the host segfault

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 05 Mar 2025 08:50:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279901

--- Comment #71 from Koichiro Iwao <meta@FreeBSD.org> ---
(In reply to Mark Peek from comment #69)
With your patch, EL8 glibc no longer crashes. It looks good to me as for this
issue. However, it still reports wrong L3 cache size.

My processor is AMD Ryzen 7 5700G (8-core/16-threads) so it has the following
cache sizes.
L1: 64KiB (32KiB instruction + 32KiB data/core)
L2: 4MiB (512KiB/core)
L3: 16MiB
https://www.techpowerup.com/cpu-specs/ryzen-7-5700g.c2472

(AlmaLinux 9 on bhyve with D48187 patch)
$ ld.so --list-diagnostics | grep cache
x86.cpu_features.data_cache_size=0x8000
x86.cpu_features.shared_cache_size=0x2000000
x86.cpu_features.level1_icache_size=0x8000    # 32768 -> 32KiB
x86.cpu_features.level1_icache_linesize=0x40
x86.cpu_features.level1_dcache_size=0x8000    # 32768 -> 32KiB
x86.cpu_features.level1_dcache_assoc=0x8
x86.cpu_features.level1_dcache_linesize=0x40
x86.cpu_features.level2_cache_size=0x80000    # 524288 -> 512KiB
x86.cpu_features.level2_cache_assoc=0x8
x86.cpu_features.level2_cache_linesize=0x40
x86.cpu_features.level3_cache_size=0x2000000  # 33554432 -> 32MiB <= WRONG!
x86.cpu_features.level3_cache_assoc=0x0
x86.cpu_features.level3_cache_linesize=0x40
x86.cpu_features.level4_cache_size=0x0
x86.cpu_features.cachesize_non_temporal_divisor=0x4

-- 
You are receiving this mail because:
You are the assignee for the bug.