Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\common.c Create Date:2022-07-28 07:55:19
Last Modify:2020-03-16 20:28:31 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cpu_set_bug_bits

Proto:static void __init cpu_set_bug_bits(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
1111  ia32_cap = x86_read_arch_cap_msr()
1114  If Not cpu_matches(NO_ITLB_MULTIHIT) && Not (ia32_cap & The processor is not susceptible to a* machine check error due to modifying the* code page size along with either the* physical address or cache type* without TLB invalidation.) Then setup_force_cpu_bug(CPU may incur MCE during certain page attribute changes )
1117  If cpu_matches(NO_SPECULATION) Then Return
1120  setup_force_cpu_bug(CPU is affected by Spectre variant 1 attack with conditional branches )
1121  setup_force_cpu_bug(CPU is affected by Spectre variant 2 attack with indirect branches )
1123  If Not cpu_matches(NO_SSB) && Not (ia32_cap & Not susceptible to Speculative Store Bypass* attack, so no Speculative Store Bypass* control required.) && Not cpu_has(c, "" Speculative Store Bypass is fixed in hardware. ) Then setup_force_cpu_bug(CPU is affected by speculative store bypass attack )
1127  If ia32_cap & Enhanced IBRS support Then setup_force_cpu_cap(Enhanced IBRS )
1130  If Not cpu_matches(NO_MDS) && Not (ia32_cap & Not susceptible to* Microarchitectural Data* Sampling (MDS) vulnerabilities.) Then
1131  setup_force_cpu_bug(CPU is affected by Microarchitectural data sampling )
1132  If cpu_matches(MSBDS_ONLY) Then setup_force_cpu_bug(CPU is only affected by the MSDBS variant of BUG_MDS )
1136  If Not cpu_matches(NO_SWAPGS) Then setup_force_cpu_bug(CPU is affected by speculation through SWAPGS )
1149  If Not (ia32_cap & Not susceptible to* TSX Async Abort (TAA) vulnerabilities.) && (cpu_has(c, Restricted Transactional Memory ) || ia32_cap & MSR for TSX control is available. ) Then setup_force_cpu_bug(CPU is affected by TSX Async Abort(TAA) )
1154  If cpu_matches(NO_MELTDOWN) Then Return
1158  If ia32_cap & Not susceptible to Meltdown Then Return
1161  setup_force_cpu_bug(CPU is affected by meltdown attack and needs kernel page table isolation )
1163  If cpu_matches(NO_L1TF) Then Return
1166  setup_force_cpu_bug(CPU is affected by L1 Terminal Fault )
Caller
NameDescribe
early_identify_cpuDo minimum CPU detection early.* Fields really needed: vendor, cpuid_level, family, model, mask,* cache alignment.* The others are not touched to avoid unwanted side effects.* WARNING: this function is only called on the boot CPU. Don't add code