All of lore.kernel.org
 help / color / mirror / Atom feed
* Reducing runtime complexity
@ 2022-12-01 20:09 Stefan Bavendiek
  2022-12-01 21:14 ` Pawan Gupta
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stefan Bavendiek @ 2022-12-01 20:09 UTC (permalink / raw)
  To: kernel-hardening; +Cc: linux-hardening

[-- Attachment #1: Type: text/plain, Size: 1132 bytes --]

Some time ago I wrote a thesis about complexity in the Linux kernel and how to reduce it in order to limit the attack surface[1].
While the results are unlikely to bring news to the audience here, it did indicate some possible ways to avoid exposing optional kernel features when they are not needed.
The basic idea would be to either build or configure parts of the kernel after or during the installation on a specific host.

Distributions are commonly shipping the kernel as one large binary that includes support for nearly every hardware driver and optional feature, but the end user will normally use very little of this.
In comparison, a custom kernel build for a particular device and use case, would be significantly smaller. While the reduced complexity won't be directly linked with reduction in attack surface, from my understanding the difference would make a relevant impact.

The question I keep wondering about is how feasible this is for general purpose distributions to have the kernel "rebuild" in this way when it is installed on a particular machine.

- Stefan


[1] https://doi.org/10.13140/RG.2.2.29943.70561

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-12-06 14:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-01 20:09 Reducing runtime complexity Stefan Bavendiek
2022-12-01 21:14 ` Pawan Gupta
2022-12-01 23:21 ` Kees Cook
2022-12-02  6:31   ` Stefan Bavendiek
2022-12-02 20:13     ` Kees Cook
2022-12-03  8:51       ` Stefan Bavendiek
2022-12-06  2:20 ` Luis Chamberlain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.