Function report |
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 activity | Download SCCT | Chinese |
Name:ssb_prctl_set
Proto:static int ssb_prctl_set(struct task_struct *task, unsigned long ctrl)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | task | |
| unsigned long | ctrl |
| 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 |
| 1130 | task_update_spec_tif(task) |
| 1131 | Break |
| 1132 | Case ctrl == PR_SPEC_DISABLE |
| 1135 | task_update_spec_tif(task) |
| 1136 | Break |
| 1137 | Case ctrl == PR_SPEC_FORCE_DISABLE |
| 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 |
| 1147 | task_set_spec_ssb_noexec(task) |
| 1148 | task_update_spec_tif(task) |
| 1149 | Break |
| 1150 | Default |
| 1151 | Return -ERANGE |
| 1153 | Return 0 |
| Name | Describe |
|---|---|
| arch_prctl_spec_ctrl_set |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |