Files
linux-cix/scripts
Josh Poimboeuf 048bc979ec x86/srso: Fix unret validation dependencies
Mainline: eeb9f34df065f42f0c9195b322ba6df420c9fc92
From: v6.7-rc1
Severity: Low

[ Upstream commit eeb9f34df065f42f0c9195b322ba6df420c9fc92 ]

CONFIG_CPU_SRSO isn't dependent on CONFIG_CPU_UNRET_ENTRY (AMD
Retbleed), so the two features are independently configurable.  Fix
several issues for the (presumably rare) case where CONFIG_CPU_SRSO is
enabled but CONFIG_CPU_UNRET_ENTRY isn't.

Fixes: fb3bd914b3 ("x86/srso: Add a Speculative RAS Overflow mitigation")
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/299fb7740174d0f2335e91c58af0e9c242b4bac1.1693889988.git.jpoimboe@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>

(backported from commit 626ea25e6d)

Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Change-Id: I86eeef234672109d279ef08f17562de8f0541060
Reviewed-on: http://gerrit.kylin.com/c/klinux/+/83517
Tested-by: k2ci <kernel-bot@kylinos.cn>
2023-11-28 14:49:33 +08:00
..
2022-10-03 14:03:19 -07:00
2022-03-07 13:54:59 +01:00