Skip to content

AMD Zen-based IF Unit Poison Quirk

Yazen Ghannam linux-edac lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/MCE: Always save CS register on AMD Zen IF errorsarch/x86/kernel/cpu/mce/amd.c arch/x86/kernel/cpu/mce/core.c arch/x86/kernel/cpu/mce/internal.h+26 -00 replies
2/2x86/MCE: Don't call kill_me_now() directlyarch/x86/kernel/cpu/mce/core.c+1 -42 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] AMD Zen-based IF Unit Poison Quirk

From: Yazen Ghannam <[email protected]>

The Instruction Fetch unit on AMD Zen-based systems has a microarchitectural quirk in which RIPV is not set on poison consumption errors. However, the error is guaranteed to be delivered before a context switch. Therefore, the CS register can be considered valid.

Patch 1 handles this behavior. Patch 2 addresses fallout from the change in behavior in Patch 1.

Both patches Cc: stable because there have been bug reports that seem to exhibit this behavior. There are no Fixes tags, because I don't think we can point to specific commits that introduced this issue.

Thanks,
Yazen

Yazen Ghannam (2):
x86/MCE: Always save CS register on AMD Zen IF errors x86/MCE: Don't call kill_me_now() directly

 arch/x86/kernel/cpu/mce/amd.c      | 17 +++++++++++++++++
 arch/x86/kernel/cpu/mce/core.c     | 12 ++++++++----
 arch/x86/kernel/cpu/mce/internal.h |  2 ++
 3 files changed, 27 insertions(+), 4 deletions(-)
Signature · 1 line
2.25.1