Write a System Call (2016)
brennan.io
brennan.io
I posted this nice, real life example here back in February: https://twitter.com/RichFelker/status/1357733309737021444
Even in the example of the `sys_stephen` syscall from November 2016, it already clashes with the syscall number of `sys_leftpad`, proposed upstream in April 2016[1].
Not with that attitude ;)
> The hardware severely restricts the ways in which control can be passed from one ring to another, and also enforces restrictions on the types of memory access that can be performed across rings. Using x86 as an example, there is a special gate structure which is referenced by the call instruction that transfers control in a secure way.
https://en.wikipedia.org/wiki/Protection_ring#Implementation...