Kamil Rytarowski wrote:
> There is already a Lua-powered solution for traces in Linux: ktap. It
> uses nice rules written natively in Lua.. however it seems to be
> abandoned in favor of eBPF.

I see two potential problems with using Lua bytecode:

1. It's not standartised and it will very likely change in future versions

2. There is no bpf_validate for Lua bytecode. In fact, Lua team abandoned
   an idea of bytecode validation few years ago. From Lua 5.3 manual:

   Lua does not check the consistency of binary chunks. Maliciously
   crafted binary chunks can crash the interpreter.

Alex

Attachment: signature.asc
Description: PGP signature

Reply via email to