BPF for HID Drivers
lwn.net
lwn.net
The monolithic GPL kernel has been a good legal defense, that strongly encourages good behavior. I love these capabilities, but the shift across the continuum towards a somewhat more microkernel-y behavior feels like it has risks.
bpftool[0] allows you to see which programs are currently running in your system, their bpf asm instructions and whether they are GPL-compliant through `bpftool prog show`.
Of course, we still need companies to actually release the source code of their eBPF programs somewhere for the promise to be fulfilled.
- Verifier can explore up to 1million insns now instead of 4096
- 512 bytes of stack but with tail chaining you have up to 8k
- Bounded loops have been added. Unbounded loops are prevented by design to not stall the kernel
Source: https://twitter.com/kernellogger/status/1592786651968839683
Linux Plumbers Conf talk: https://www.youtube.com/watch?v=w708RnBEdvE
Currently steam is required to change the controller configuration...
I wonder how Linus feels about this? Does it introduce a new attack surface for malware injection?
At the very least, Linux kernel has signed driver modules.
eBPF is also working on signed programs [0]
One should not use eBPF in production machines (along with many other things that uses the mixed write-execute memory regions such as web browsers with JavaScript enabled).