Breaking Systems For Fun And Profit
Image by geralt @ pixabay

Multithreading Schmultithreading

Given how a lot of recent vulnerabilities have to do with symmetric multithreading, the world would be a lot safer if all your systems only used a single core:

1
2
3
4
for I in /sys/devices/system/cpu/cpu[1-9]*
do
  echo 0 > ${I}/online
done

What it does

It disables every single core but the first one, cpu0.

Why it works

The Linux kernel allows you to enable/disable cores on demand using files under /sys/devices/system/cpu.

TL;DR