Amazon Looks To Expand Linux's Core Scheduling To Fend Off More Side Channel Attacks

The Linux kernel for several years now has supported the notion of core scheduling to address security issues around SMT/HT. With core scheduling up to now it's been focused on ensuring only trusted tasks can share a core with the SMT sibling and that any distrusted tasks are not simultaneously sharing a core via an SMT sibling. Amazon/AWS is now working on expanding the core scheduling to additional considerations for better isolating tasks in light of ongoing CPU side channel security concerns. Core scheduling has worked out well for allowing Simultaneous Multi-Threading / Hyper Threading to remain enabled on servers where untrusted tasks / multi-user environments and just ensuring tasks that distrust each other are isolated onto separate CPU cores. With the patches sent out today by Amazon engineer Ahmed Abdelraoof, core scheduling would be extended to also ensure isolation around CPU cores that share an L2 cache. Thus even better isolation of tasks distrusting each other but with fewer options for CPU core selection depending upon the cache topology of the processor. "Core scheduling isolates tasks that distrust each other by never running them simultaneously on CPUs that share microarchitectural state. Today the isolation unit is hard-wired to the SMT sibling set. New processors can share an L2 cache between pair of cores while providing no SMT at all. There, the SMT sibling set reduces to a single CPU, so core scheduling has nothing to isolate, while the shared L2 exposes the same class of side channel one level up. This series generalizes core scheduling to a configurable isolation unit and adds support for cluster unit, which on x86 is the set of CPUs sharing an L2. Two side-channel classes motivate this: - Cache-based channels (Prime+Probe and friends): if an attacker and a victim can co-run on cores sharing an L2 between a small number of cores, a reliable cross-core channel exists. Restricting each cluster to same-cookie co-residency removes that concurrent precondition. Attacks that span a context switch remain out of scope, as they are for SMT core scheduling. - Frequency-domain channels: one core's activity modulates the clock the whole cluster observes, leaking information without any cache traffic. This series does not attempt to mitigate that class; it is future work." The patch series for this L2 cache isolation for Linux's core scheduling is out for review on the kernel mailing list.

Original Source

Read the full article at Phoronix →

KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.