Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664054 - app-emulation/qemu: bump to 2.12.1; add support for ssbd
Summary: app-emulation/qemu: bump to 2.12.1; add support for ssbd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: CVE-2018-3639, XSA-263
  Show dependency tree
 
Reported: 2018-08-19 12:05 UTC by kfm
Modified: 2018-08-19 17:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
qemu-9802316ed6...403503b162.patch (qemu-9802316ed6...403503b162.patch,4.74 KB, patch)
2018-08-19 12:08 UTC, kfm
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description kfm 2018-08-19 12:05:19 UTC
I run KVM on a host with a Xeon X5650 (Westmere) processor and normally launch qemu-system-x86_64 with the following CPU parameters:-

-cpu Westmere,+spec-ctrl,+pcid

Before applying the attached patch to qemu-2.12.0-r5, the reported CPU vulnerability status in a guest running "install-amd64-minimal-20180812T214502Z.iso" was as follows:-

# cd /sys/devices/system/cpu/vulnerabilities
# grep . *
l1tf:Mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
meltdown:Mitigation: PTI
spec_store_bypass:Vulnerable
spectre_v1:Mitigation: __user pointer sanitization
spectre_v2:Mitigation: Full generic retpoline, IBPB, IBRS_FW

After applying the patch and adding +ssbd to the -cpu flags:-

l1tf:Mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
meltdown:Mitigation: PTI
spec_store_bypass:Mitigation: Speculative Store Bypass disabled via prctl and seccomp
spectre_v1:Mitigation: __user pointer sanitization
spectre_v2:Mitigation: Full generic retpoline, IBPB, IBRS_FW

See also bug 663502 and bug 664052.
Comment 1 kfm 2018-08-19 12:08:11 UTC
Created attachment 544028 [details, diff]
qemu-9802316ed6...403503b162.patch

Patch to support "ssbd" as a CPUID flag.
Comment 2 kfm 2018-08-19 12:16:34 UTC
I meant to write qemu-2.12.0-r4 there; -r5 is the revision in my personal overlay.