aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorBorislav Petkov (AMD) <[email protected]>2023-08-04 22:06:43 +0000
committerLinus Torvalds <[email protected]>2023-08-09 14:55:00 +0000
commit77245f1c3c6495521f6a3af082696ee2f8ce3921 (patch)
treefca77ee5bfe3c557f190f201e39a82688f9ac9b4 /tools/perf/util/c++/clang.cpp
parentMerge tag 'hardening-v6.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
downloadkernel-77245f1c3c6495521f6a3af082696ee2f8ce3921.tar.gz
kernel-77245f1c3c6495521f6a3af082696ee2f8ce3921.zip
x86/CPU/AMD: Do not leak quotient data after a division by 0
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) <[email protected]> Cc: <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions