3 ms·
Does this mean there's a Lua interpreter in ZFS? That's pretty wild!
by IshKebab 5y ago
Does this mean there's a Lua interpreter in ZFS? That's pretty wild!
- ducktective 5y agoTry pretty scary
- deleted 5y ago[deleted]
- wahern 5y ago> Channel Programs may only be run with root privileges Compare to eBPF, which not only uses a JIT compiler in the kernel, but on popular Linux distributions like Fedora and Ubuntu permits unprivileged users to run eBPF programs. I would never assume a lack of exploitable bugs in the fork of the Lua interpreter used in FreeBSD, but the fact is that eBPF has seen a steady, if infrequent, stream of actual exploits over the years and in particular unprivileged user exploits.
- throwaway2048 5y agolua is significantly MORE powerful than eBPF not less, and correspondingly will be easier to build exploits in.
- mnd999 5y agoIf you have to have root already this doesn’t buy you much though. Perhaps a hard-to-detect way for disgruntled bofhs to do bad things, that’s about it.
- 0x000000001 5y agoAppears so https://svnweb.freebsd.org/base/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/?pathrev=324163 https://svnweb.freebsd.org/base/head/sys/cddl/contrib/openso...