~/talk

BPF for Security and LSM updates

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

Implemented a BPF-based safe_setid LSM that successfully blocks an unauthorized UID transition in a live VM, using libbpf bootstrap and clang 18, but hit verifier and map quirks: inner-array maps required avoiding zero entries and failed with EINVAL until switched to explicit inner-map handling, iteration uses bpf_map_for_each_elem and a max-unroll workaround for BPF-loop verifier variable-offset issues, and kernel changes needed for acquire/release K funcs and trusted-arg annotations. Patches for LSM static calls show roughly a 10% throughput improvement on pipe tests when LSMs are enabled. Extended-attribute helpers (bpf_get_xattr and bpf_set_xattr) are progressing with re-entrancy and POSIX-ACL concerns.

AI-written summary · about

  1. 0:00Introduction and goals
  2. 1:23What is safe set ID LSM
  3. 3:10BPF map challenges and fixes
  4. 6:00LSM hook implementation struggles
  5. 8:31BPF toolchain and verifier issues
  6. 11:26LSM code and demo setup
  7. 13:58Live demo and policy enforcement
  8. 17:36Gaps in BPF LSM development
  9. 18:19Use cases for BPF LSMs
  10. 21:11BPF LSM adoption barriers
  11. 21:52Performance overhead and mitigations
  12. 26:10Q&A on toolchain and patches
~/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.