~/talk

What is Linux kernel keystore and why you should use it in your next application

Talkat foss-north 2025 · 2025-04-14..04-15· [linux-and-operating-systems]
slides:none on file

Explains that Linux’s kernel key retention service stores keys as kernel objects (use keyctl and request_key) so cryptographic material never sits long in a process address space, preventing leaks like the stack-uninitialized example that exposed a private key; shows session keyring auto-destroy that erases keys on process exit and measures TPM as too slow for per-request use so proposes wrapping a boot-time root key in TPM then software-unwrapping others; demonstrates a prototype request_key plugin that derives per-executable keys from TPM and an OpenSSH patch that uses kernel RSA keys — it works in demos.

AI-written summary · about

  1. 0:00Linux kernel keystore intro
  2. 2:00Memory isolation in processes
  3. 6:41Why cryptographic key protection matters
  4. 11:00Key agent model for isolation
  5. 13:34Kernel key retention service
  6. 17:10Key rings and types
  7. 21:28Key lifecycle and destruction
  8. 23:37User vs special key types
  9. 26:31Key management with encrypted keys
  10. 31:31Request key system call
  11. 34:41TPM integration for keys
  12. 38:55Generating keys from metadata
  13. 42:11TPM performance and security
  14. 45:49Q&A: Kernel callbacks security
  15. 47:55Q&A: Signing network packets
  16. 49:19Q&A: HSM vs PKCS#11
  17. 51:04Q&A: Persistent storage needs
  18. 52:32Q&A and closing
~/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.