KRN-232 · Linux Kernel Core · Expert

Memory Barriers & the Kernel Memory Model — full syllabus

The hardest correctness topic in the kernel: reordering, barriers, and reasoning about concurrent code that actually holds.

Duration3 full days in person · 6 half-days online
Cohortmax 14 in person · 20 online
Pricefrom SAR 10,120 in person · local pricing per city
Delivery35% principles · 20% guided investigation · 45% engineering studio

Who this course is for

Senior kernel, driver and runtime engineers writing or reviewing lockless code — the people whose bugs only reproduce on other people's hardware.

Prerequisites

Course outline

Day 1 — Reordering is real

  • Compiler reordering vs CPU reordering, and why both matter
  • Store buffers and invalidate queues: the hardware intuition
  • smp_mb, smp_rmb, smp_wmb and what each forbids
  • Acquire and release semantics as the modern default
  • READ_ONCE and WRITE_ONCE: what they do and do not do

Day 2 — The Linux Kernel Memory Model

  • What the LKMM formalises and why it exists
  • Litmus tests: structure, naming and how to read an outcome
  • Running litmus tests with herd7
  • The classic patterns: message passing, load buffering, store buffering
  • Mapping model outcomes back to real architectures

Day 3 — Dependencies and review

  • Address, data and control dependencies
  • The traps inside control dependencies specifically
  • Reviewing lockless code without fooling yourself: a structured checklist
  • When to give up and take the lock
  • Capstone workshop

Hands-on labs

  1. Lab: run classic litmus patterns (MP, LB, SB) through herd7 and predict each outcome before the tool confirms it
  2. Lab: break a message-passing handoff by removing a barrier and observe the failure — or explain why your architecture hides it
  3. Lab: audit a real kernel lockless path against LKMM rules and document every ordering guarantee
  4. Lab: rewrite a racy lockless sequence with acquire/release and verify it with KCSAN
  5. Lab: construct a control-dependency bug and explain precisely why it miscompiles

Capstone project

Review a piece of lockless kernel code the way a maintainer would: an ordering argument for every shared access, herd7 litmus tests for the two riskiest patterns, KCSAN evidence, and a final verdict — merge, fix, or take the lock — with reasoning that survives hostile review.

What you leave with

Upcoming dates

DatesWhereSeatsEarly birdRegular
8 Nov – 10 Nov 20263 full days RiyadhIn person · KAFD Conference Centre 8 of 14 SAR 9,110until 9 OctSAR 10,120
15 Nov – 17 Nov 20263 full days Kuwait CityIn person · Al Hamra Tower 3 of 14 KWD 760until 16 OctKWD 840
15 Nov – 17 Nov 20263 full days MuscatIn person · Knowledge Oasis Muscat 8 of 14 OMR 940until 16 OctOMR 1,040
22 Nov – 29 Nov 20266 half-days Gulf bandLive online · 09:00–13:00 GMT+3 14 of 20 US$1,760until 23 OctUS$1,950
23 Nov – 25 Nov 20263 full days OttawaIn person · Kanata North Tech Park 3 of 14 CAD 3,300until 24 OctCAD 3,670
23 Nov – 30 Nov 20266 half-days Europe bandLive online · 09:00–13:00 CET 3 of 20 US$1,760until 24 OctUS$1,950
30 Nov – 2 Dec 20263 full days TorontoIn person · MaRS Discovery District 8 of 14 CAD 3,300until 31 OctCAD 3,670
30 Nov – 2 Dec 20263 full days LondonIn person · Shoreditch Works 3 of 14 GBP 1,900until 31 OctGBP 2,110
30 Nov – 7 Dec 20266 half-days Americas bandLive online · 13:00–17:00 ET 8 of 20 US$1,760until 31 OctUS$1,950
7 Dec – 9 Dec 20263 full days BerlinIn person · Factory Görlitzer Park 8 of 14 EUR 2,230until 7 NovEUR 2,480

Book a seat, or bring this course to your team

Seats can be reserved online; private delivery runs on-site or live online, adapted to your stack.

Course page & booking

Questions about fit or prerequisites? Email hello@kernelsystems.academy. To save this syllabus, print this page to PDF from your browser.