Bug 26208 - Incorrect bit_cpu_CLFSH
Summary: Incorrect bit_cpu_CLFSH
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.32
: P2 normal
Target Milestone: 2.32
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-06 13:15 UTC by H.J. Lu
Modified: 2020-07-07 08:12 UTC (History)
1 user (show)

See Also:
Host:
Target: i386,x86-64
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2020-07-06 13:15:47 UTC
There is

#define bit_cpu_CLFSH     (1u << 20)

and SDM has

19 CLFSH CLFLUSH Instruction. CLFLUSH Instruction is supported.
20 Reserved Reserved

It should be

#define bit_cpu_CLFSH     (1u << 19)
Comment 1 H.J. Lu 2020-07-06 13:45:28 UTC
Fixed for 2.32 by

commit f8b4630ef673486c2c77bd291a08ef132981e149
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Jul 6 06:38:05 2020 -0700

    x86: Correct bit_cpu_CLFSH [BZ #26208]
    
    bit_cpu_CLFSH should be (1u << 19), not (1u << 20).