函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\bugs.c Create Date:2022-07-27 08:56:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__ssb_select_mitigation

函数原型:static enum ssb_mitigation __init __ssb_select_mitigation(void)

返回类型:enum ssb_mitigation

参数:

1021  mode等于SPEC_STORE_BYPASS_NONE
1024  如果非boot_cpu_has(Speculative Store Bypass Disable )则返回:mode
1027  cmd等于ssb_parse_cmdline()
1028  如果非boot_cpu_has_bug(CPU is affected by speculative store bypass attack )且cmd恒等于SPEC_STORE_BYPASS_CMD_NONEcmd恒等于SPEC_STORE_BYPASS_CMD_AUTO的值则返回:mode
1034  :cmd恒等于SPEC_STORE_BYPASS_CMD_AUTO
1035  :cmd恒等于SPEC_STORE_BYPASS_CMD_SECCOMP
1040  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_SECCOMP)则mode等于SPEC_STORE_BYPASS_SECCOMP
1042  否则mode等于SPEC_STORE_BYPASS_PRCTL
1044  退出
1045  :cmd恒等于SPEC_STORE_BYPASS_CMD_ON
1046  mode等于SPEC_STORE_BYPASS_DISABLE
1047  退出
1048  :cmd恒等于SPEC_STORE_BYPASS_CMD_PRCTL
1049  mode等于SPEC_STORE_BYPASS_PRCTL
1050  退出
1051  :cmd恒等于SPEC_STORE_BYPASS_CMD_NONE
1052  退出
1060  如果static_cpu_has("" Speculative Store Bypass Disable )或static_cpu_has("" Speculative Store Bypass Disable )则
1062  The vendor and possibly platform specific bits which can be modified in* x86_spec_ctrl_base.或等于Speculative Store Bypass Disable
1071  如果mode恒等于SPEC_STORE_BYPASS_DISABLE
1072  setup_force_cpu_cap("" Disable Speculative Store Bypass. )
1080  否则
1086  返回:mode
调用者
名称描述
ssb_select_mitigation