Function report |
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 activity | Download SCCT | Chinese |
Name:ib_prctl_get
Proto:static int ib_prctl_get(struct task_struct *task)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 |
Name | Describe |
---|---|
arch_prctl_spec_ctrl_get |
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 |