[PATCH v4 0/7] Retbleed fixes

From: Pawan Gupta
Date: Wed Jun 11 2025 - 13:28:56 EST


v4:
- Replace the warning message in set_return_thunk() with an info. (Borislav)
- Collected tags.
- Rebased to v6.16-rc1.

v3: https://lore.kernel.org/r/20250522-eibrs-fix-v3-0-12704e291e1e@xxxxxxxxxxxxxxx
- Get rid of AUTO check in retbleed mitigation. (Borislav)
- Update commit message to mention the preparatory patch. (Nikolay)
- Collected tags.

v2: https://lore.kernel.org/r/20250521-eibrs-fix-v2-0-70e2598e932c@xxxxxxxxxxxxxxx
- Split the ITS stuffing patch into smaller patches. (Borislav)
- Zap spectre_v2_in_retpoline_mode() helper. (Borislav)

v1: https://lore.kernel.org/r/20250520-eibrs-fix-v1-2-91bacd35ed09@xxxxxxxxxxxxxxx

This series untangles retbleed and ITS mitigation.

Signed-off-by: Pawan Gupta <pawan.kumar.gupta@xxxxxxxxxxxxxxx>
---
Pawan Gupta (7):
x86/retbleed: Avoid AUTO after the select step
x86/retbleed: Simplify the =stuff checks
x86/bugs: Avoid warning when overriding return thunk
x86/its: Use switch/case to apply mitigation
x86/retbleed: Introduce cdt_possible()
x86/its: Remove =stuff dependency on retbleed
x86/its: Allow stuffing in eIBRS+retpoline mode also

arch/x86/kernel/cpu/bugs.c | 93 ++++++++++++++++++++++++++--------------------
1 file changed, 52 insertions(+), 41 deletions(-)
---
base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
change-id: 20250520-eibrs-fix-6c452b697dbf

Best regards,
--
Thanks,
Pawan