Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\bugs.c Create Date:2022-07-28 07:56:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ib_prctl_get

Proto:static int ib_prctl_get(struct task_struct *task)

Type:int

Parameter:

TypeParameterName
struct task_struct *task
1240  If Not boot_cpu_has_bug(CPU is affected by Spectre variant 2 attack with indirect branches ) Then Return Return and control values for PR_SET/GET_SPECULATION_CTRL
1244  Case spectre_v2_user == SPECTRE_V2_USER_NONE
1245  Return PR_SPEC_ENABLE
1246  Case spectre_v2_user == SPECTRE_V2_USER_PRCTL
1247  Case spectre_v2_user == SPECTRE_V2_USER_SECCOMP
1248  If task_spec_ib_force_disable(task) Then Return PR_SPEC_PRCTL | PR_SPEC_FORCE_DISABLE
1250  If task_spec_ib_disable(task) Then Return PR_SPEC_PRCTL | PR_SPEC_DISABLE
1252  Return PR_SPEC_PRCTL | PR_SPEC_ENABLE
1253  Case spectre_v2_user == SPECTRE_V2_USER_STRICT
1254  Case spectre_v2_user == SPECTRE_V2_USER_STRICT_PREFERRED
1255  Return PR_SPEC_DISABLE
1256  Default
1257  Return Return and control values for PR_SET/GET_SPECULATION_CTRL
Caller
NameDescribe
arch_prctl_spec_ctrl_get