[Bug dynamic-link/32470] New: Integer truncation during x86-64 cache size computation
fweimer at redhat dot com
sourceware-bugzilla@sourceware.org
Tue Dec 17 17:08:10 GMT 2024
https://sourceware.org/bugzilla/show_bug.cgi?id=32470
Bug ID: 32470
Summary: Integer truncation during x86-64 cache size
computation
Product: glibc
Version: 2.41
Status: NEW
Severity: normal
Priority: P2
Component: dynamic-link
Assignee: unassigned at sourceware dot org
Reporter: fweimer at redhat dot com
Target Milestone: ---
Target: x86_64-*-*
It seems that FreeBSD's bhyve hypervisor sets the L3 cache size to 1 TiB in
some cases (notably on AMD systems). This causes rep_movsb_threshold to turn to
zero, leading to crashes in memcpy/memmove.
/* NB: The REP MOVSB threshold must be greater than VEC_SIZE * 8. */
unsigned int minimum_rep_movsb_threshold;
/* NB: The default REP MOVSB threshold is 4096 * (VEC_SIZE / 16) for
VEC_SIZE == 64 or 32. For VEC_SIZE == 16, the default REP MOVSB
threshold is 2048 * (VEC_SIZE / 16). */
unsigned int rep_movsb_threshold;
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list