Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for AMD Zen1 DIV0 bug CVE-2023-20588 #473

Open
taggart opened this issue Aug 18, 2023 · 3 comments
Open

support for AMD Zen1 DIV0 bug CVE-2023-20588 #473

taggart opened this issue Aug 18, 2023 · 3 comments

Comments

@taggart
Copy link

taggart commented Aug 18, 2023

New hardware bug affecting AMD Zen1: "on some AMD processors a division-by-zero can potentially return speculative data"

https://www.amd.com/en/resources/product-security/bulletin/amd-sb-7007.html

According to that it affects:

Datacenter
AMD EPYC™ 7001 Processors

Desktop
AMD Athlon™ 3000 Series Processors with Radeon™ Graphics
AMD Ryzen™ 3000 Series Processors with Radeon™ Graphics

Mobile
AMD Athlon™ PRO 3000 Series Processors with Radeon™ Vega Graphics
AMD Ryzen™ PRO 3000 Series Processors with Radeon™ Vega Graphics

Here is the linux kernel mitigation
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=77245f1c3c6495521f6a3af082696ee2f8ce3921

I do not know if there will be microcode mitigation for this.

Please consider adding support for detecting this. I have access to an affected CPU and can help test.
Thanks

@speed47
Copy link
Owner

speed47 commented Aug 25, 2023

That should be easy, as I see from the kernel commit.

If you have an affected CPU, could you run the script with -v -v -v, and paste here the line near the end where it says "To mock this CPU, set those vars"? It'll help testing by mocking your CPU on my side.

@carnil
Copy link

carnil commented Aug 25, 2023

There is the followup to the orginal fix as per https://git.kernel.org/linus/f58d6fbcb7c848b7f2469be339bc571f2e9d245b

@taggart
Copy link
Author

taggart commented Aug 25, 2023

Here's the output for my AMD Ryzen 5 3400G with Radeon Vega Graphics
smc-mock.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants