@jeffpc Actually our original implementation did that - parsing the LUA script in userland and passing down the bytecode. However, we discovered that LUA bytecode wasn't designed to be secure, so it's easy to pass down invalid bytecode which panic's the kernel. By comparison, the parser is hardened and fails gracefully on invalid input. Even though (for now) channel programs can only be run by privileged users, we thought that the security outweighed the ickyness of including the parser in the kernel. And FWIW, the parser (and lua in general) is pretty tiny.
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/openzfs/openzfs/pull/397#issuecomment-308494502 ------------------------------------------ openzfs-developer Archives: https://openzfs.topicbox.com/groups/developer/discussions/Tffb276f83a8ecdd2-Mf02623b971d963edeb03469b Powered by Topicbox: https://topicbox.com
