Home
last modified time | relevance | path

Searched refs:cpu_mitigations_off (Results 1 – 10 of 10) sorted by relevance

/linux-6.12.1/arch/powerpc/kernel/
Dsecurity.c67 if (!no_nospec && !cpu_mitigations_off()) in setup_barrier_nospec()
138 if (no_spectrev2 || cpu_mitigations_off()) in setup_spectre_v2()
334 if (!no_stf_barrier && !cpu_mitigations_off()) in setup_stf_barrier()
533 if (no_spectrev2 || cpu_mitigations_off()) { in setup_count_cache_flush()
703 if (!cpu_mitigations_off() && !no_rfi_flush) in setup_rfi_flush()
709 if (cpu_mitigations_off()) in setup_entry_flush()
718 if (cpu_mitigations_off()) in setup_uaccess_flush()
/linux-6.12.1/arch/x86/kernel/cpu/
Dbugs.c248 if (!boot_cpu_has_bug(X86_BUG_MDS) || cpu_mitigations_off()) { in mds_select_mitigation()
321 if (cpu_mitigations_off()) { in taa_select_mitigation()
410 cpu_mitigations_off()) { in mmio_select_mitigation()
504 if (!boot_cpu_has_bug(X86_BUG_RFDS) || cpu_mitigations_off()) { in rfds_select_mitigation()
539 if (cpu_mitigations_off()) in md_clear_update_mitigation()
678 else if (cpu_mitigations_off() || srbds_off) in srbds_select_mitigation()
806 if (cpu_mitigations_off()) in gds_select_mitigation()
906 if (!boot_cpu_has_bug(X86_BUG_SPECTRE_V1) || cpu_mitigations_off()) { in spectre_v1_select_mitigation()
1039 if (!boot_cpu_has_bug(X86_BUG_RETBLEED) || cpu_mitigations_off()) in retbleed_select_mitigation()
1475 cpu_mitigations_off()) in spectre_v2_parse_cmdline()
[all …]
/linux-6.12.1/include/linux/
Dcpu.h193 extern bool cpu_mitigations_off(void);
196 static inline bool cpu_mitigations_off(void) in cpu_mitigations_off() function
Dbpf.h2360 return cpu_mitigations_off() || bpf_token_capable(token, CAP_PERFMON); in bpf_bypass_spec_v1()
2365 return cpu_mitigations_off() || bpf_token_capable(token, CAP_PERFMON); in bpf_bypass_spec_v4()
/linux-6.12.1/arch/s390/kernel/
Dnospec-branch.c64 if (test_facility(156) || cpu_mitigations_off()) { in nospec_auto_detect()
/linux-6.12.1/arch/arm64/kernel/
Dproton-pack.c94 bool ret = __nospectre_v2 || cpu_mitigations_off(); in spectre_v2_mitigations_off()
424 bool ret = cpu_mitigations_off() || in spectre_v4_mitigations_off()
1015 } else if (cpu_mitigations_off() || __nospectre_bhb) { in spectre_bhb_enable_mitigation()
Dcpufeature.c1794 if (cpu_mitigations_off() && !__kpti_forced) { in unmap_kernel_at_el0()
/linux-6.12.1/arch/x86/mm/
Dpti.c87 if (cpu_mitigations_off()) in pti_check_boottime_disable()
/linux-6.12.1/kernel/
Dcpu.c3220 bool cpu_mitigations_off(void) in cpu_mitigations_off() function
3224 EXPORT_SYMBOL_GPL(cpu_mitigations_off);
/linux-6.12.1/arch/x86/kvm/mmu/
Dmmu.c7235 return boot_cpu_has_bug(X86_BUG_ITLB_MULTIHIT) && !cpu_mitigations_off(); in get_nx_auto_mode()