~/talk

Leveraging Userspace to Safely Run Untrusted Lua

Talkat Zephyr Developer Summit 2022 · 2022-06-07..06-09· [security]
links:none on file
links:none on file
slides:none on file

Lua interpreter and compiler run entirely in MPU-backed userspace on Zephyr, with custom libc/math shims and a user-space allocator; bytecode is compiled in userland and debug info stripped. A working prototype on an nrf52840 demo controls RGB LEDs over Web Bluetooth, accepts text script uploads, and hits about 4.2 kHz callback rates. Flash cost is roughly 50 KB and RAM per interpreter is on the order of 12–13 KB; sandboxing prevents device-bricking.

AI-written summary · about

  1. 0:00Start
  2. 2:40Challenge: Constraints
  3. 3:54Approaches: Custom configuration scheme
  4. 5:21Approaches: MicroPython
  5. 6:47Approaches: Lua
  6. 10:18Building Lua for Zephyr
  7. 12:09Building Lua for Userspace
  8. 14:39Using Lua in Userspace
  9. 18:00Using Lua for cool stuff
~/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.