~/talk

drgn Writing to Memory and Breakpoints, Safely in Production?

Talkat Linux Plumbers Conference 2023 · 2023-11-13..11-15· [security]
links:none on file
slides:none on file

drgn is read-only today and the concrete proposal is to add write arbitrary addresses and file:line breakpoints so scripts can patch running kernels to mitigate bugs (example: a Meta btrfs bug where a missing discard-enable bit could have been flipped by a drgn script). API ideas: byte-buffer writes, object-aware writes, breakpoints by addr/function/file:line returning stack and locals. Mechanisms considered: resurrect devkm (no), kernel module, kgdb stops all CPUs, kprobes, BPF; problems: lockdown, capability/auth (keyring), deadlock — propose watchdog bailout.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:06What is drgn?
  3. 6:04Read-only vs write features
  4. 7:09Memory writing API proposal
  5. 8:33Breakpoints API proposal
  6. 12:48Why do this in production?
  7. 16:24Mechanisms for production
  8. 23:53Access control and security
  9. 27:45Alternative approaches
  10. 28:27Wrap-up and Q&A
~/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.