Skip to contentSkip to conversation

x86/cpu/amd: Add Van Gogh to Zenbleed fix

PATCH New James Preston 1 participant 1 message Aug 11, 2023 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/cpu/amd: Add Van Gogh to Zenbleed fix

Van Gogh (Steam Deck) is family 17h model 90h, and was missing from the model range array for the fix.

As the SoC is Zen 2 based it is vulnerable and with no available microcode updates it currently has no mitigations without the fix.

This patch does not provide any microcode revision to check against to disable the kernel fix, since that is an unknown. Once such a revision is available it would then have to be added in cpu_has_zenbleed_microcode().

---

Before patch:

	[nameless@steam-deck tmp]$ lscpu | grep -A2 'Model name'
	Model name:                      AMD Custom APU 0405
	CPU family:                      23
	Model:                           144
	[nameless@steam-deck tmp]$ ./zenbleed -m 4 -t 30
	*** EMBARGOED SECURITY ISSUE --  DO NOT DISTRIBUTE! ***
	ZenBleed Testcase -- [email protected]

	NOTE: Try -h to see configuration options

	Spawning 8 Threads...
	Thread 0x7f55e1fff6c0 running on CPU 0
	Thread 0x7f55e17fe6c0 running on CPU 1
	Thread 0x7f55e0ffd6c0 running on CPU 2
	Thread 0x7f55dbfff6c0 running on CPU 3
	Thread 0x7f55d3fff6c0 running on CPU 4
	Thread 0x7f55db7fe6c0 running on CPU 5
	Thread 0x7f55daffd6c0 running on CPU 6
	Thread 0x7f55da7fc6c0 running on CPU 7
	Thread 04: "%%%%%%%%%%%%%%%%"
	Thread 06: "5db7fe6c"
	Thread 06: "        "
	Thread 06: " CPU 1  "
	The consumer thread completed, sending cancellation requests...
	All threads completed.

Test immediately found strings from sibling threads.

After patch:

	[nameless@steam-deck tmp]$ ./zenbleed -m 4 -t 30
	*** EMBARGOED SECURITY ISSUE --  DO NOT DISTRIBUTE! ***
	ZenBleed Testcase -- [email protected]

	NOTE: Try -h to see configuration options

	Spawning 8 Threads...
	Thread 0x7f8ac1fff6c0 running on CPU 0
	Thread 0x7f8ac17fe6c0 running on CPU 1
	Thread 0x7f8ac0ffd6c0 running on CPU 2
	Thread 0x7f8abbfff6c0 running on CPU 3
	Thread 0x7f8abaffd6c0 running on CPU 5
	Thread 0x7f8aba7fc6c0 running on CPU 6
	Thread 0x7f8ab9ffb6c0 running on CPU 7
	Thread 0x7f8abb7fe6c0 running on CPU 4
	Alarm clock

The test found nothing in 30 seconds so the vulnerability is now closed. The system is operating normally with no ill effects.

 arch/x86/kernel/cpu/amd.c | 1 +
 1 file changed, 1 insertion(+)
arch/x86/kernel/cpu/amd.c +1 -0
index b55d8f82b621..506ce9257e35 100644
@@ -73,6 +73,7 @@ static const int amd_erratum_1054[] =
 static const int amd_zenbleed[] =
 	AMD_LEGACY_ERRATUM(AMD_MODEL_RANGE(0x17, 0x30, 0x0, 0x4f, 0xf),
 			   AMD_MODEL_RANGE(0x17, 0x60, 0x0, 0x7f, 0xf),
+			   AMD_MODEL_RANGE(0x17, 0x90, 0x0, 0x90, 0xf),
 			   AMD_MODEL_RANGE(0x17, 0xa0, 0x0, 0xaf, 0xf));
 
 static const int amd_div0[] =

base-commit: 25aa0bebba72b318e71fe205bfd1236550cc9534

Signature · 1 line
2.41.0