NewsCrawler.org

Amazon proposes extending Linux core scheduling to CPU clusters sharing an L2 cache

Amazon proposes extending Linux core scheduling to CPU clusters sharing an L2 cache
Image: Reddit

Amazon engineer Ahmed Abdelraoof sent patches to the Linux kernel mailing list on 4 December that extend core scheduling beyond SMT[1]. Core scheduling is a kernel feature that keeps tasks that do not trust each other from running at the same time on the hardware threads of one physical core. It lets SMT stay enabled on multi-user servers while reducing the risk of side-channel attacks[2].

Some new processors share an L2 cache[3] between pairs of cores and have no SMT. Core scheduling has nothing to isolate on such chips, yet the shared L2 cache exposes the same kind of side channel one level up. The patch series adds a configurable isolation unit and a cluster unit, which on x86 is the set of CPUs that share an L2 cache.

For cache-based attacks such as Prime+Probe[4], the patches restrict each cluster to tasks with the same cookie. Attacks that span a context switch remain out of scope. Frequency-domain attacks, where one core's activity changes the clock the whole cluster sees, are not addressed and are left as future work. The patch series is now out for review on the kernel mailing list.

Amazon shares (AMZN)

253.96 USD 0.0% since the news day, December 4

Close on December 4 Quotes: CNBC

Read the original phoronix.comDiscussion

Sources

  • Phoronix

    Author: u/Doug24

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

Published: First seen: Читать по-русски

Open as a page