Commit 6b80d98a authored by Michael Zhivich's avatar Michael Zhivich Committed by Greg Kroah-Hartman
Browse files

x86/bugs: Fix use of possibly uninit value in amd_check_tsa_microcode()



For kernels compiled with CONFIG_INIT_STACK_NONE=y, the value of __reserved
field in zen_patch_rev union on the stack may be garbage.  If so, it will
prevent correct microcode check when consulting p.ucode_rev, resulting in
incorrect mitigation selection.

This is a stable-only fix.

Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarMichael Zhivich <mzhivich@akamai.com>
Fixes: f2b75f13 ("x86/bugs: Add a Transient Scheduler Attacks mitigation")
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6d40dd35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment