linux/arch/x86/include
Borislav Petkov (AMD) c9c0b889e2 x86/CPU/AMD: Do not leak quotient data after a division by 0
commit 77245f1c3c upstream.

Under certain circumstances, an integer division by 0 which faults, can
leave stale quotient data from a previous division operation on Zen1
microarchitectures.

Do a dummy division 0/1 before returning from the #DE exception handler
in order to avoid any leaks of potentially sensitive data.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2023-08-11 12:14:29 +02:00
..
asm x86/CPU/AMD: Do not leak quotient data after a division by 0 2023-08-11 12:14:29 +02:00
uapi/asm x86/mtrr: Replace size_or_mask and size_and_mask with a much easier concept 2023-07-19 16:35:18 +02:00