From: Florian Weimer Date: Fri, 2 Aug 2024 13:22:14 +0000 (+0200) Subject: x86: Tunables may incorrectly set Prefer_PMINUB_for_stringop (bug 32047) X-Git-Tag: glibc-2.41~781 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a630f7d3392ca391a399486ce2846f9e4b4ee63;p=thirdparty%2Fglibc.git x86: Tunables may incorrectly set Prefer_PMINUB_for_stringop (bug 32047) Fixes commit 5bcf6265f215326d14dfacdce8532792c2c7f8f8 ("x86: Disable non-temporal memset on Skylake Server"). Reviewed-by: Noah Goldstein --- diff --git a/sysdeps/x86/cpu-tunables.c b/sysdeps/x86/cpu-tunables.c index ae9dcd6180..ccc6b64dc2 100644 --- a/sysdeps/x86/cpu-tunables.c +++ b/sysdeps/x86/cpu-tunables.c @@ -248,6 +248,7 @@ TUNABLE_CALLBACK (set_hwcaps) (tunable_val_t *valp) CHECK_GLIBC_IFUNC_PREFERRED_BOTH (n, cpu_features, Avoid_Non_Temporal_Memset, 25); } + break; case 26: { CHECK_GLIBC_IFUNC_PREFERRED_NEED_BOTH