If I want to execute a user program (not a kernel module) in Linux kernel space, what options do I have?
I have looked at KML(kernel mode linux) but that is specific
User programs don't execute in kernel space - that's what makes them user programs.
If you want to execute code in kernel space you have two options: build it in to the kernel, or load it with a kernel module.