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:ssb_prctl_get

Proto:static int ssb_prctl_get(struct task_struct *task)

Type:int

Parameter:

TypeParameterName
struct task_struct *task
1220  Case ssb_mode == SPEC_STORE_BYPASS_DISABLE
1221  Return PR_SPEC_DISABLE
1222  Case ssb_mode == SPEC_STORE_BYPASS_SECCOMP
1223  Case ssb_mode == SPEC_STORE_BYPASS_PRCTL
1224  If task_spec_ssb_force_disable(task) Then Return PR_SPEC_PRCTL | PR_SPEC_FORCE_DISABLE
1226  If task_spec_ssb_noexec(task) Then Return PR_SPEC_PRCTL | PR_SPEC_DISABLE_NOEXEC
1228  If task_spec_ssb_disable(task) Then Return PR_SPEC_PRCTL | PR_SPEC_DISABLE
1230  Return PR_SPEC_PRCTL | PR_SPEC_ENABLE
1231  Default
1232  If boot_cpu_has_bug(CPU is affected by speculative store bypass attack ) Then Return PR_SPEC_ENABLE
1234  Return Return and control values for PR_SET/GET_SPECULATION_CTRL
Caller
NameDescribe
arch_prctl_spec_ctrl_get