On Mon, Jul 03, 2023 at 05:06:42PM +0200, Jann Horn wrote: > But I'm not convinced that it makes sense to try to draw a security > boundary between fully-privileged root (with the ability to mount > things and configure swap and so on) and the kernel - my understanding > is that some kernel subsystems don't treat root-to-kernel privilege > escalation issues as security bugs that have to be fixed. There are certainly arguments to be made about this, but efforts continue to provide a separation between full-cap uid 0 and kernel memory. LSMs like Lockdown, IMA, and LoadPin, for example, seek to close these gaps, and systems are designed with this bright line existing between kernel and root (e.g. Chrome OS). I'm sure there are gaps in attack surface coverage, but since work continues on this kind of hardening, I'd hate to knowingly create new attack surface. Providing uid 0 with kernel memory access should continue to be mediated by at least Lockdown, and if there are gaps in coverage, let's get them recorded[1] to be fixed. -Kees [1] https://github.com/KSPP/linux/issues -- Kees Cook