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:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ssb_prctl_set

Proto:static int ssb_prctl_set(struct task_struct *task, unsigned long ctrl)

Type:int

Parameter:

TypeParameterName
struct task_struct *task
unsigned longctrl
1119  If ssb_mode != SPEC_STORE_BYPASS_PRCTL && ssb_mode != SPEC_STORE_BYPASS_SECCOMP Then Return -ENXIO
1124  Case ctrl == PR_SPEC_ENABLE
1126  If task_spec_ssb_force_disable(task) Then Return -EPERM
1128  task_clear_spec_ssb_disable(task)
1129  task_clear_spec_ssb_noexec(task)
1130  task_update_spec_tif(task)
1131  Break
1132  Case ctrl == PR_SPEC_DISABLE
1133  task_set_spec_ssb_disable(task)
1134  task_clear_spec_ssb_noexec(task)
1135  task_update_spec_tif(task)
1136  Break
1137  Case ctrl == PR_SPEC_FORCE_DISABLE
1138  task_set_spec_ssb_disable(task)
1139  task_set_spec_ssb_force_disable(task)
1140  task_clear_spec_ssb_noexec(task)
1141  task_update_spec_tif(task)
1142  Break
1143  Case ctrl == PR_SPEC_DISABLE_NOEXEC
1144  If task_spec_ssb_force_disable(task) Then Return -EPERM
1146  task_set_spec_ssb_disable(task)
1147  task_set_spec_ssb_noexec(task)
1148  task_update_spec_tif(task)
1149  Break
1150  Default
1151  Return -ERANGE
1153  Return 0
Caller
NameDescribe
arch_prctl_spec_ctrl_set