~/talk

Designing Syscalls for Extensibility

slides:none on file

Examines a practical syscall extensibility pattern used by openat2, clone3 and new BPF calls: userland passes a struct plus its size and the kernel uses append-only fields semantics where new fields must have zero mean old behavior. Implementation uses copy_struct_from_user to zero-fill unknown trailing bytes or reject nonzero unknown fields (E2BIG style). Proposes a check_fields flag to let userland probe which fields and flags the running kernel actually supports.

AI-written summary · about

  1. 0:00Introduction
  2. 0:20Why Extensibility
  3. 2:59Bitflags
  4. 5:09Fixed Size Structures
  5. 6:43Extensible Structures
  6. 8:33Rules
  7. 10:52Example
  8. 11:19Improvements
  9. 12:49Flag support
  10. 14:05Check fields flag
  11. 16:05Check fields example
  12. 16:54Some caveats
  13. 18:41Questions
  14. 22:27Ideal world
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.