[$] Hardening system-call dispatch

Post Syndicated from corbet original https://lwn.net/Articles/1110591/

Much of the work the kernel does is in response to system calls, each of
which is identified by a unique number. When the kernel receives a
system-call request, it must map that number to a specific function to call
within the kernel. This dispatch operation, clearly, must be carefully
done; if dispatch goes off the rails, the integrity and security of the
system will be lost in the ensuing wreckage. So it is not surprising that
attackers often focus on system-call dispatch as a way to compromise a
system. Much work has been done to harden this part of the kernel over the
years; this
early-November patch series
from Peter Zijlstra is a set of small
changes that aims to increase the security of this crucial kernel
operation.