aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPawan Gupta <[email protected]>2025-05-05 21:35:12 +0000
committerDave Hansen <[email protected]>2025-05-06 15:18:59 +0000
commit073fdbe02c69c43fb7c0d547ec265c7747d4a646 (patch)
tree453bb3e1a7c95014cea041fd2f1779594171db80 /net/unix/af_unix.c
parentx86/bpf: Add IBHF call at end of classic BPF (diff)
downloadkernel-073fdbe02c69c43fb7c0d547ec265c7747d4a646.tar.gz
kernel-073fdbe02c69c43fb7c0d547ec265c7747d4a646.zip
x86/bhi: Do not set BHI_DIS_S in 32-bit mode
With the possibility of intra-mode BHI via cBPF, complete mitigation for BHI is to use IBHF (history fence) instruction with BHI_DIS_S set. Since this new instruction is only available in 64-bit mode, setting BHI_DIS_S in 32-bit mode is only a partial mitigation. Do not set BHI_DIS_S in 32-bit mode so as to avoid reporting misleading mitigated status. With this change IBHF won't be used in 32-bit mode, also remove the CONFIG_X86_64 check from emit_spectre_bhb_barrier(). Suggested-by: Josh Poimboeuf <[email protected]> Signed-off-by: Pawan Gupta <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Reviewed-by: Josh Poimboeuf <[email protected]> Reviewed-by: Alexandre Chartre <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions