]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Check minimum/maximum of non_temporal_threshold [BZ #29953]
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 3 Jan 2023 21:06:48 +0000 (13:06 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 15 Mar 2023 15:23:56 +0000 (08:23 -0700)
commitf3991fec8071dbcf3ec9f13a91c738b66fcd4159
tree338faf8a7afc4b7b46d583fab8f0f6d14ff56017
parentfb1bd9f00337db9120e61d5a511766b68ea03e28
x86: Check minimum/maximum of non_temporal_threshold [BZ #29953]

The minimum non_temporal_threshold is 0x4040.  non_temporal_threshold may
be set to less than the minimum value when the shared cache size isn't
available (e.g., in an emulator) or by the tunable.  Add checks for
minimum and maximum of non_temporal_threshold.

This fixes BZ #29953.

(cherry picked from commit 48b74865c63840b288bd85b4d8743533b73b339b)
sysdeps/x86/dl-cacheinfo.h