Announcement

Collapse
No announcement yet.

PowerPC Memory Protection Keys In For Linux 4.16, Power Has Meltdown Mitigation In 4.15

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PowerPC Memory Protection Keys In For Linux 4.16, Power Has Meltdown Mitigation In 4.15

    Phoronix: PowerPC Memory Protection Keys In For Linux 4.16, Power Has Meltdown Mitigation In 4.15

    Linux's POWER code with the upcoming Linux 4.16 cycle will introduce support for PowerPC Memory Protection Keys. With the current Linux 4.15 cycle is also initial Meltdown mitigation for these CPUs too...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    Michael,

    Hopefully you can get access. I'm very interested in see what the impact is.

    Comment


    • #3
      Indeed, some performance hints would be interesting (either from IBM themselves, phoronix or anyone else more neutral than IBM). In the commit message I read
      In order for that [vulnerability] to happen, the first load must hit in the L1, because before the load is sent to the L2 the permission check is performed. Therefore if no kernel addresses hit in the L1 the vulnerability can not occur. We can ensure that is the case by flushing the L1 whenever we return to userspace. Similarly for hypervisor vs guest.
      I get mixed feelings on whether flushing the L1 cache should impact performance a lot or a little:
      • Flushing caches kills performance in general.
      • The L1 cache is smallish, so it is not as severe as flushing a bigger cache.
      • But the L1 cache is fast, so loses there are very slow compared to hits.
      • The contents in the cache from kernelspace should not be needed in userspace and vice versa. Flushing just in the context switch should not cause many misses, I would only expect misses after the next switch returns to the original context (whenever the process without the flush would still have cache lines from the original context). So high performance impact would only come if there are very rapid user-kernel-user-kernel... switches. Not really fast, more like little enough code so as to not access a lot of memory, which might be more or less code or more or less time depending on what the code does.
      • I assume the flushing itself is fast, the performance degradation comes from any cache misses it causes. This may depend on CPU version (flushing NOP being faster than flushing by a software loop).
      On the other hand, avoiding the fix might be more of an option, since it reads as if the vulnerability is not so serious as on Intel. In Intel it sounds like the attack can read arbitrary memory at some speed, but in Power it looks like it can only read whatever is already in the L1 cache, not any address.
      I guess tricking the kernel into accessing the memory you want to exfiltrate before you do the attack slows it down further if at all possible.

      But what do I know ?
      Last edited by phoron; 22 January 2018, 08:05 PM.

      Comment

      Working...
      X