Skip to content

Commit e2ec5d7

Browse files
seehearfeelKernel Patches Daemon
authored andcommitted
LoongArch, bpf: Set bpf_jit_bypass_spec_v1/v4()
JITs can set bpf_jit_bypass_spec_v1/v4() if they want the verifier to skip analysis/patching for the respective vulnerability, it is safe to set both bpf_jit_bypass_spec_v1/v4(), because there is no speculation barrier instruction for LoongArch. Suggested-by: Luis Gerhorst <[email protected]> Signed-off-by: Tiezhu Yang <[email protected]> Acked-by: Luis Gerhorst <[email protected]>
1 parent dd96e0b commit e2ec5d7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

arch/loongarch/net/bpf_jit.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,3 +1359,13 @@ bool bpf_jit_supports_subprog_tailcalls(void)
13591359
{
13601360
return true;
13611361
}
1362+
1363+
bool bpf_jit_bypass_spec_v1(void)
1364+
{
1365+
return true;
1366+
}
1367+
1368+
bool bpf_jit_bypass_spec_v4(void)
1369+
{
1370+
return true;
1371+
}

0 commit comments

Comments
 (0)