News for hackers. Stuff that matters.
Re:BPF port-based firewall for systemd services by justicezyx on Friday August 30, 2019 @12:14PM (#20839974)
What are the dangers?

AFAIK, BPF has in-kernel verifier on the safety of the BPF program, which is conservative and would reject safe program, let alone the real dangerous ones.

Re:BPF port-based firewall for systemd services by geofft on Friday August 30, 2019 @04:41PM (#20842492)
The verifier has had bugs in the past. Here's six of them from 2017: https://www.openwall.com/lists/oss-security/2017/12/23/2 one of which was discovered to have an incomplete fix in 2018: https://crbug.com/project-zero/1686

https://medium.com/@tyanir/understanding-bpf-check-alu-op-vu... has a longer description of one of them - namely, you can convince the verifier that a certain part of the program is dead code and therefore doesn't need to be verified when it does, and thereby get arbitrary unverified eBPF into the kernel.

Re:BPF port-based firewall for systemd services by dfay on Friday August 30, 2019 @03:33PM (#20841813)
The talk hasn't been posted to youtube yet, but slides alone show some of the risks of eBPF. The speaker's previous talk at 35C3 went into how the verifier is arbitrary and not really designed to prevent attackers anyway.

https://media.defcon.org/DEF%20CON%2027/DEF%20CON%2027%20pre...