Skip to content

Instantly share code, notes, and snippets.

View sophec's full-sized avatar
🖤
[[maybe_unused]]

Sophie Eccles sophec

🖤
[[maybe_unused]]
View GitHub Profile
@marcan
marcan / m1cat.c
Last active October 26, 2023 15:42
m1cat: a PoC for the M1RACLES covert channel vulnerability in the Apple M1
/*
* m1cat: a proof of concept for the M1RACLES vulnerability in the Apple M1.
*
* This program implements a covert channel that can be used to transmit data
* between two processes when run on the Apple Silicon "M1" CPUs.
*
* The channel is slightly lossy due to (presumably) the scheduler sometimes
* scheduling us on the wrong CPU cluster, so this PoC sends every byte twice
* together with some metadata/framing bits, which is usually good enough.
* A better approach would be to use proper FEC or something like that.
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 3 columns, instead of 2 in line 1.
PROCESSOR,ARCHITECTURE,IGNORED
77B1,ARM-FlexRIO
77B2,ARM-FlexRIO
77AC,ARM-FlexRIO
762F,ARM-cRIO-myRIO
76D3,ARM-cRIO-myRIO
76F2,ARM-cRIO-roboRIO
7AAE,ARM-cRIO-roboRIO
7740,ARM-cRIO-4-slot
7741,ARM-cRIO-4-slot
@sophec
sophec / __cplusplus values.md
Last active March 25, 2024 23:38
__cplusplus values for each C++ standard version

__cplusplus Values

Since it's impossible to find one concise source anywhere, as far as I can tell:

ISO C++ Standard Value
1998/2003 199711L
2011 201103L
2014 201402L
2017 201703L