News for hackers. Stuff that matters.
Re:Testing the Lua kernel interpreter in NetBSD (2021) by ColonelPhantom on Sunday February 12, 2023 @11:47AM (#34764278)
This sounds like a really cool feature, but given that I'm not an expert I'm not sure what the practical use-cases for this are. Is it similar to what you can do with something like eBPF in Linux?
Re:Testing the Lua kernel interpreter in NetBSD (2021) by rahen on Sunday February 12, 2023 @06:29PM (#34768321)
Yes, although their scopes are different. For Linux it started as a simple virtual machine for programmable firewall rules. For NetBSD, it's more of a playground to try ideas in kernel space, while rump kernels allow to try kernel ideas in user space.
Re:Testing the Lua kernel interpreter in NetBSD (2021) by cmrdporcupine on Sunday February 12, 2023 @09:50PM (#34769606)
What are the limitations in terms of what the interpreter has access to? Can it interact with devices, physical memory, etc.?
Re:Testing the Lua kernel interpreter in NetBSD (2021) by rahen on Monday February 13, 2023 @04:56AM (#34771805)
It has its own memory namespace, so it won't be allowed to access the kernel memory. It has however full access to the devices.

The /dev/lua device, which allows interaction with the kernel interpreter: https://man.netbsd.org/lua.4

Presentation: https://www.netbsd.org/gallery/presentations/mbalmer/fosdem2...