函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\common.c Create Date:2022-07-27 08:55:37
Last Modify:2020-03-16 20:28:31 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cpu_set_bug_bits

函数原型:static void __init cpu_set_bug_bits(struct cpuinfo_x86 *c)

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
1111  ia32_cap等于x86_read_arch_cap_msr()
1114  如果非cpu_matches(NO_ITLB_MULTIHIT)且非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.的值则setup_force_cpu_bug(CPU may incur MCE during certain page attribute changes )
1117  如果cpu_matches(NO_SPECULATION)则返回
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  如果非cpu_matches(NO_SSB)且非ia32_cap按位与Not susceptible to Speculative Store Bypass* attack, so no Speculative Store Bypass* control required.的值且非cpu_has(c, "" Speculative Store Bypass is fixed in hardware. )则setup_force_cpu_bug(CPU is affected by speculative store bypass attack )
1127  如果ia32_cap按位与Enhanced IBRS support setup_force_cpu_cap(Enhanced IBRS )
1130  如果非cpu_matches(NO_MDS)且非ia32_cap按位与Not susceptible to* Microarchitectural Data* Sampling (MDS) vulnerabilities.的值则
1131  setup_force_cpu_bug(CPU is affected by Microarchitectural data sampling )
1132  如果cpu_matches(MSBDS_ONLY)则setup_force_cpu_bug(CPU is only affected by the MSDBS variant of BUG_MDS )
1136  如果非cpu_matches(NO_SWAPGS)则setup_force_cpu_bug(CPU is affected by speculation through SWAPGS )
1149  如果非ia32_cap按位与Not susceptible to* TSX Async Abort (TAA) vulnerabilities.的值且cpu_has(c, Restricted Transactional Memory )或ia32_cap按位与MSR for TSX control is available. 的值则setup_force_cpu_bug(CPU is affected by TSX Async Abort(TAA) )
1154  如果cpu_matches(NO_MELTDOWN)则返回
1158  如果ia32_cap按位与Not susceptible to Meltdown 则返回
1161  setup_force_cpu_bug(CPU is affected by meltdown attack and needs kernel page table isolation )
1163  如果cpu_matches(NO_L1TF)则返回
1166  setup_force_cpu_bug(CPU is affected by L1 Terminal Fault )
调用者
名称描述
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