News for hackers. Stuff that matters.
Re:BPF – In-kernel virtual machine [pdf] by jgrahamc on Thursday May 14, 2015 @06:30AM (#9544271)
BPF is used at CloudFlare for DDoS filtering. We've recently written a JITer for it as well to get even greater speed.

https://blog.cloudflare.com/bpf-the-forgotten-bytecode/

https://blog.cloudflare.com/introducing-the-bpf-tools/

Re:BPF – In-kernel virtual machine [pdf] by anishathalye on Thursday May 14, 2015 @09:52AM (#9545138)
There's been some interesting work that has been done recently on building a trustworthy BPF verifier (Jitk, OSDI 2014).

https://www.usenix.org/system/files/conference/osdi14/osdi14...

Re:BPF – In-kernel virtual machine [pdf] by lukego on Thursday May 14, 2015 @03:44AM (#9543894)
Next obvious step: Compile the kernel into BPF using LLVM and run it inside itself.
Re:BPF – In-kernel virtual machine [pdf] by heinrich5991 on Thursday May 14, 2015 @03:50AM (#9543910)
Unfortunately the kernel does have loops…
Re:BPF – In-kernel virtual machine [pdf] by njohnson41 on Thursday May 14, 2015 @04:02AM (#9543936)
If BPF can be used to modify packets, can a filter be used to send packets through loopback that then come back through the same filter? Sounds like a way to bootstrap a loop.
Re:BPF – In-kernel virtual machine [pdf] by viraptor on Thursday May 14, 2015 @07:44AM (#9544493)
You have a very very dangerous mind... I like it.

Actually you could have stateful loops too. Make each packet duplicated at iptables and each time increment the counter. Send one to 127.0.0.1 (true, continue) and one to 127.0.0.2 (false, stop). The right answer is accepted, wrong dropped.

Re:BPF – In-kernel virtual machine [pdf] by amelius on Thursday May 14, 2015 @09:14AM (#9544934)
Couldn't this take the same approach as NaCl, where x86 code is being run in a sandbox environment?
Re:BPF – In-kernel virtual machine [pdf] by jsnell on Thursday May 14, 2015 @09:35AM (#9545049)
For the kernel use-case it's important to not only prevent dangerous operations, but also to guarantee termination in very short time.
Re:BPF – In-kernel virtual machine [pdf] by amelius on Thursday May 14, 2015 @09:47AM (#9545116)
Ok, then perhaps the basic blocks (parts of the code without branches) could be surrounded with some checking code?