silicon atlasTHE HARDWARE REFERENCE
العربية
Reference/The whole system
Systems & I/O

Privilege, isolation & side channels

Enforce access rules, and understand what timing can still reveal.

Architectural permission checks and microarchitectural observation are different layers.
Privilege

Restricts sensitive operations.

LIVE EXPERIMENT

Make a cache miss

Runs on your device
BYTE ADDRESS0Block 0 → Set 0MISS
SET 0tag 0
SET 1·
SET 2·
SET 3·
SET 4·
SET 5·
SET 6·
SET 7·
Accesses1
Hit rate0%
Bytes fetched64
Select any access above, or step through the trace.

A cache fetches a whole line. Locality reuses it; conflicting mappings can evict useful data even before total capacity is exhausted.

What this model includes

One read-only cache, 64-byte lines, LRU replacement, eight total lines, eight-byte elements, 32 accesses. No prefetching or multilevel effects.

FOLLOW THE MECHANISM

What happens inside

1

Create protection boundaries

Privilege levels restrict instructions and resource access. Page permissions protect address spaces; IOMMUs restrict device accesses. Virtualization adds guest execution and address translation under a hypervisor. Trusted execution mechanisms protect particular boundaries under specific threat models, not every part of a system.

2

Consider observable behavior

Caches, predictors, and shared resources can reveal information through timing or contention. Speculative execution may leave effects even when architectural results are discarded. Mitigations depend on hardware, firmware, OS, and code. Constant-time algorithms aim to avoid secret-dependent behavior but require careful validation on the target.

PUT IT TO WORK

What this means for your code

Low-level engineer

State a threat model and follow platform mitigation guidance. Correct privilege checks alone do not address every side channel.

Software developer

Use maintained cryptographic libraries and current platform patches. Avoid building secret-dependent code from unverified “branchless” tricks.

GO TO THE SOURCE

Read the actual specifications

These references supply the underlying contracts and implementation details. The diagrams here are simplified teaching models.

Linux · Spectre side channelsLinux kernel documentation
Linux · Page tablesLinux kernel documentation
Linux · DMA API guideLinux kernel documentation

Keep following the connection

Understood the idea? Keep a note of your progress.