IT lexicon › Infra & Ops › Kernel space

Kernel space

Infra & Ops På svenska → Updated: 2026-07-31

The portion of memory and privilege only the kernel can reach — where all hardware access happens.

This division is the entire basis for a program being unable to bring down the system. Code in kernel space may run privileged instructions, talk directly to devices and read any address. Code in user space gets none of that and must request each such service through a system call.

Crossing the boundary costs. A system call means changing privilege level, and since Meltdown and Spectre in 2018 also swapping page tables to avoid leaking kernel memory via speculative execution — the KPTI mitigation made some workloads noticeably slower. That is one of the drivers behind io_uring and eBPF, both of which reduce the number of crossings.

← Back to the lexicon