mirror of https://github.com/aya-rs/aya
aya-ebpf: Remove irrelevant `FIXME` comment
eBPF verifier in recent kernels should be smart enough to track map map types and catch invalid pointer casts. Rust type system makes sure that the `get` method can return only the same type the map was created with. Therefore, safe usage of Aya map types shouldn't cause element type mismatches. Manual alignment checks (`pointer::is_aligned` or manual pointer arithmetic operations) cause the following verifier error: ``` bitwise operator &= on pointer prohibited ``` And it extremely unlikely `bpf_map_lookup_elem` ever returns a misaligned pointer.main
parent
3569c9afc3
commit
d5e4e9270a
Loading…
Reference in New Issue