函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ib_prctl_get

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

返回类型:int

参数:

类型参数名称
struct task_struct *task
1240  如果非boot_cpu_has_bug(CPU is affected by Spectre variant 2 attack with indirect branches )则返回:Return and control values for PR_SET/GET_SPECULATION_CTRL
1244  :spectre_v2_user恒等于SPECTRE_V2_USER_NONE
1245  返回:PR_SPEC_ENABLE
1246  :spectre_v2_user恒等于SPECTRE_V2_USER_PRCTL
1247  :spectre_v2_user恒等于SPECTRE_V2_USER_SECCOMP
1248  如果task_spec_ib_force_disable(task)则返回:PR_SPEC_PRCTL按位或PR_SPEC_FORCE_DISABLE
1250  如果task_spec_ib_disable(task)则返回:PR_SPEC_PRCTL按位或PR_SPEC_DISABLE
1252  返回:PR_SPEC_PRCTL按位或PR_SPEC_ENABLE
1253  :spectre_v2_user恒等于SPECTRE_V2_USER_STRICT
1254  :spectre_v2_user恒等于SPECTRE_V2_USER_STRICT_PREFERRED
1255  返回:PR_SPEC_DISABLE
1256  默认
1257  返回:Return and control values for PR_SET/GET_SPECULATION_CTRL
调用者
名称描述
arch_prctl_spec_ctrl_get