函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ssb_prctl_get

函数原型:static int ssb_prctl_get(struct task_struct *task)

返回类型:int

参数:

类型参数名称
struct task_struct *task
1220  :ssb_mode恒等于SPEC_STORE_BYPASS_DISABLE
1221  返回:PR_SPEC_DISABLE
1222  :ssb_mode恒等于SPEC_STORE_BYPASS_SECCOMP
1223  :ssb_mode恒等于SPEC_STORE_BYPASS_PRCTL
1224  如果task_spec_ssb_force_disable(task)则返回:PR_SPEC_PRCTL按位或PR_SPEC_FORCE_DISABLE
1226  如果task_spec_ssb_noexec(task)则返回:PR_SPEC_PRCTL按位或PR_SPEC_DISABLE_NOEXEC
1228  如果task_spec_ssb_disable(task)则返回:PR_SPEC_PRCTL按位或PR_SPEC_DISABLE
1230  返回:PR_SPEC_PRCTL按位或PR_SPEC_ENABLE
1231  默认
1232  如果boot_cpu_has_bug(CPU is affected by speculative store bypass attack )则返回:PR_SPEC_ENABLE
1234  返回:Return and control values for PR_SET/GET_SPECULATION_CTRL
调用者
名称描述
arch_prctl_spec_ctrl_get