diff options
| author | Alexandre Chartre <[email protected]> | 2022-07-13 19:58:08 +0000 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2022-07-14 07:45:12 +0000 |
| commit | d16e0b26672066035439b2f49887f6576c4a3689 (patch) | |
| tree | 344c305d091ecbfeb36d9612c59ad442d3d4847a /net/unix/af_unix.c | |
| parent | x86/bugs: Mark retbleed_strings static (diff) | |
| download | kernel-d16e0b26672066035439b2f49887f6576c4a3689.tar.gz kernel-d16e0b26672066035439b2f49887f6576c4a3689.zip | |
x86/entry: Remove UNTRAIN_RET from native_irq_return_ldt
UNTRAIN_RET is not needed in native_irq_return_ldt because RET
untraining has already been done at this point.
In addition, when the RETBleed mitigation is IBPB, UNTRAIN_RET clobbers
several registers (AX, CX, DX) so here it trashes user values which are
in these registers.
Signed-off-by: Alexandre Chartre <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
